@reltio/remotes 1.4.1621 → 1.4.1622
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/1039.js +1 -1
- package/1146.js +1 -1
- package/1148.js +1 -1
- package/1334.js +1 -1
- package/1425.js +1 -1
- package/1572.js +1 -1
- package/1664.js +1 -1
- package/1707.js +1 -1
- package/1790.js +1 -1
- package/1840.js +1 -1
- package/1925.js +1 -1
- package/2049.js +1 -1
- package/2066.js +1 -1
- package/2201.js +1 -1
- package/2400.js +1 -1
- package/2404.js +1 -1
- package/2463.js +1 -1
- package/2641.js +1 -1
- package/3096.js +1 -1
- package/3348.js +1 -1
- package/3358.js +1 -1
- package/3358.js.map +1 -1
- package/3373.js +1 -1
- package/3381.js +1 -1
- package/3383.js +1 -1
- package/3463.js +1 -1
- package/3469.js +1 -1
- package/3538.js +1 -1
- package/356.js +1 -1
- package/3727.js +1 -1
- package/3875.js +1 -1
- package/3902.js +1 -1
- package/3926.js +1 -1
- package/415.js +1 -1
- package/4212.js +1 -1
- package/4390.js +1 -1
- package/4481.js +1 -1
- package/4703.js +1 -1
- package/4780.js +1 -1
- package/4806.js +1 -1
- package/4838.js +1 -1
- package/50.js +1 -1
- package/5034.js +1 -1
- package/5039.js +1 -1
- package/5053.js +1 -1
- package/5108.js +1 -1
- package/5163.js +1 -1
- package/5617.js +1 -1
- package/6020.js +1 -1
- package/6173.js +1 -1
- package/6228.js +1 -1
- package/6280.js +1 -1
- package/6287.js +1 -1
- package/6531.js +1 -1
- package/6606.js +1 -1
- package/673.js +1 -1
- package/6799.js +1 -1
- package/6844.js +1 -1
- package/6853.js +1 -1
- package/6860.js +1 -1
- package/6903.js +1 -1
- package/7340.js +1 -1
- package/735.js +1 -1
- package/7422.js +1 -1
- package/7626.js +1 -1
- package/764.js +1 -1
- package/7896.js +1 -1
- package/8168.js +1 -1
- package/820.js +1 -1
- package/8207.js +1 -1
- package/8322.js +1 -1
- package/8565.js +1 -1
- package/8741.js +1 -1
- package/9016.js +1 -1
- package/9028.js +1 -1
- package/9283.js +1 -1
- package/9309.js +1 -1
- package/9328.js +1 -1
- package/9387.js +1 -1
- package/9719.js +1 -1
- package/9736.js +1 -1
- package/9861.js +1 -1
- package/987.js +1 -1
- package/99.js +1 -1
- package/9960.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
package/6531.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]="9d3e10b1-a030-4cd4-9ae5-52470ec5dca1",e._sentryDebugIdIdentifier="sentry-dbid-9d3e10b1-a030-4cd4-9ae5-52470ec5dca1")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1622"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[6531],{89323:(e,t,n)=>{var r=n(71600);t.Z=void 0;var a=r(n(68671)),l=n(52322),o=(0,a.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 r=n(71600);t.Z=void 0;var a=r(n(68671)),l=n(52322),o=(0,a.default)((0,l.jsx)("path",{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"}),"Flag");t.Z=o},24648:(e,t,n)=>{var r=n(71600);t.Z=void 0;var a=r(n(68671)),l=n(52322),o=(0,a.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 r=n(31461),a=n(7896),l=n(24328),o=n(6277),i=n(69075),s=n(65992),c=n(43853),p=n(33552),u=n(40602),d=n(52322);const m=["className"],f=(0,s.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,a.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,c.Z)({props:e,name:"MuiListItemIcon"}),{className:s}=n,h=(0,r.Z)(n,m),g=l.useContext(u.Z),y=(0,a.Z)({},n,{alignItems:g.alignItems}),E=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,i.Z)(r,p.f,n)})(y);return(0,d.jsx)(f,(0,a.Z)({className:(0,o.default)(E.root,s),ownerState:y,ref:t},h))}))},153:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(89323);const s=(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"}}),c=e=>{const t=t=>{const n=s();return a().createElement("div",{className:n.dragHandleContainer},a().createElement("div",{className:n.dragHandleVisibilityArea},a().createElement("div",{className:o()("viewDraggableHandle",n.dragHandle)},a().createElement(i.Z,{className:n.dragIcon}))),a().createElement(e,t))};return t.displayName="WithDragHandle",t}},33117:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(2507),s=n.n(i),c=n(82056),p=n(80852),u=n(95341),d=n(40007),m=n(17512),f=n(78223),h=n(32701),g=n(79573),y=n(19540);function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}const b=e=>a().createElement("svg",E({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{d:"M10 18h3v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1H8V8H6a1 1 0 01-1-1V3a1 1 0 011-1h6a1 1 0 011 1v4a1 1 0 01-1 1h-2v3h3v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1h-3v5z",fill:"#000",stroke:"none",strokeWidth:1,fillRule:"evenodd"}));function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}const O=e=>a().createElement("svg",v({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("rect",{fill:"#000",x:9,y:9,width:6,height:6,rx:1,stroke:"none",strokeWidth:1,fillRule:"evenodd"})),x=(0,n(72342).makeStyles)({container:{"& > $marginWrapper:first-child":{paddingLeft:"4px"}},listItem:{paddingLeft:"1px",paddingTop:"2px",paddingBottom:"2px",transition:"none","&:hover":{"& $itemAfter":{background:"linear-gradient(to right, rgba(235, 235, 235, 0.2), rgba(235, 235, 235, 1) 100%)"}},"&$listItemFocus":{"& $itemAfter":{background:"linear-gradient(to right, rgba(219, 219, 219, 0.2), rgba(219, 219, 219, 1) 100%)"}},"&:focus":{outline:"none"}},listItemFocus:{},icon:{opacity:.29,width:"16px",height:"16px",flexShrink:0,marginRight:"6px",marginLeft:"8px"},recommendedIcon:{width:"18px",height:"18px",marginRight:"5px",marginLeft:"7px",flexShrink:0},logoIcon:{width:"18px",height:"18px",flexShrink:0,marginRight:"4px"},itemAfter:{position:"absolute",right:0,top:0,width:"40px",height:"100%",pointerEvents:"none",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)"},itemText:{padding:"0",margin:0,"& span":{fontSize:"0.8125rem",letterSpacing:"normal",whiteSpace:"nowrap"}},checkbox:{opacity:.34,padding:0,marginLeft:"14px","&$checked":{opacity:1,background:"none"}},checked:{},marginWrapper:{display:"flex",alignItems:"center"},defaultCursor:{cursor:"default"},itemTooltip:{margin:"4px 0"},marginText:{marginLeft:"21px"},itemTextWrapper:{display:"flex",alignItems:"center"}}),w=e=>{let{attrType:t={}}=e;const n=x(),r=(e=>{switch(e.type){case m.oS0.TYPE_IMAGE:case m.oS0.TYPE_NESTED:return y.Z;case m.oS0.TYPE_REFERENCE:return b;default:return O}})(t);return a().createElement(r,{className:n.icon})};var S=n(33286);function T(){return T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}const R=(0,f.Z)((e=>a().createElement("svg",T({width:13,height:18,viewBox:"0 0 13 18",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("g",{transform:"translate(-3 -1)",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},a().createElement("path",{fill:"#FF4081",d:"M5.833 10h3.75v6.667l-3.75 1.666z"}),a().createElement("path",{fill:"#CE0C4E",d:"M13.333 10v8.333l-3.75-1.666V10z"}),a().createElement("circle",{fill:"#FFC058",cx:9.583,cy:7.917,r:6.25}),a().createElement("circle",{fill:"#FFCD7B",cx:9.583,cy:7.917,r:5.417}),a().createElement("path",{fill:"#FFFBB5",d:"M8.333 11.667L5 8.462l.933-.898 2.4 2.308L13.4 5l.933.897z"}))))),I=(0,r.memo)((e=>{let{groupId:t,data:n,checked:r=!1,isFocused:l=!1,isRequired:i=!1,label:f,labelInText:y,level:E,onClick:b=g.ZT,hideCheckBox:v=!1,hideIcon:O=!1,notSelectable:T=!1,disableHorizontalScrollbar:I=!1,style:P={},subItemMargin:C=20,LogoIcon:M,className:D,disableNonSelectable:N,disableGutters:k}=e;const F=x(),{attrType:j}=n||{},_=!(v&&(0,m.QZu)(j)||T),z=!!M;return a().createElement(d.Z,{value:y||f,className:F.itemTooltip,placement:"bottom-end"},a().createElement(u.Z,{className:o()(F.container,F.listItem,{[F.defaultCursor]:!_},D),onClick:_?()=>b(n,!r,t):void 0,style:P,dense:!0,disabled:N&&T,classes:{focusVisible:F.listItemFocus,selected:F.listItemFocus},selected:l,tabIndex:-1,disableGutters:k},!v&&a().createElement(p.Z,{checked:r,disableRipple:!0,disabled:!_,className:o()(F.checkbox,{[F.checked]:r}),tabIndex:-1}),a().createElement(S.Z,{margin:C,level:E,className:F.marginWrapper},a().createElement(a().Fragment,null,!O&&(e=>"recommended"===t?a().createElement(R,{className:F.recommendedIcon,tooltipTitle:s().text("Recommended"),showForDisabled:!0}):a().createElement(w,{attrType:e}))(j),a().createElement("div",{className:o()(F.itemTextWrapper,{[F.marginText]:O})},z&&a().createElement(M,{className:F.logoIcon}),a().createElement(c.Z,{primary:a().createElement(a().Fragment,null,f,i&&a().createElement(h.Z,null)),className:F.itemText})))),_&&I&&a().createElement("div",{className:F.itemAfter})))}))},55234:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(24328),a=n.n(r),l=n(2507),o=n.n(l),i=n(71153),s=n.n(i),c=n(50914),p=n(52730),u=n(50673),d=n(17512),m=n(79312),f=n(15793),h=n(19602),g=n(59952),y=n(33117),E=n(72342);function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const O={input:e=>b({},e,{fontSize:"14px"}),menuPortal:e=>b({},e,{zIndex:1300})},x=(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 w=e=>{let{entityType:t,selectedAttributes:n,className:l,onChange:i,title:E,disableUnderline:b,menuPlacement:v="bottom"}=e;const w=(0,p.useSelector)(u.ZP.selectors.getMetadata),S=x(),T=(0,r.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,r)=>{if(r.hidden)return e;const a=`${n&&n+" / "}${r.label}`;e.push({label:r.label,value:r.uri,attrType:r,chipLabel:a,level:t});const l=(0,d.EUG)(w,r);return e.concat(l?T(l,t+1,a):[])}),[])}),[w]),R=(0,r.useMemo)((()=>T((null==t?void 0:t.attributes)||[])),[t,T]);return a().createElement("div",{className:s()(S.root,l),"data-reltio-id":"attribute-selector"},a().createElement(m.Z,{className:S.title,variant:"subtitle1"},E||o().text("Attribute")),a().createElement(f.Z,{value:n,options:R,TextFieldProps:{InputProps:{disableUnderline:b},classes:{root:S.dropDownInput}},components:{DropdownIndicator:g.Z,MultiValue:e=>{let{data:t}=e,n=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["data"]);return a().createElement(h.Z,n,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:n,data:r,label:l,innerProps:o}=e;return a().createElement("div",o,a().createElement(y.Z,{checked:n,level:r.level,data:r,label:l,labelInText:l,isFocused:t}))}},onChange:(0,c.pipe)((0,c.defaultTo)([]),i),styles:O,classes:S,menuPlacement:v,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))}},30488:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(38748),a=n(50548);const l=e=>t=>(0,a.l)(r.X,e,t)},33945:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(2507),s=n.n(i),c=n(79573),p=n(50914),u=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]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){f(e,t,n[t])}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h=e=>{let{classes:t={},count:n,rowsPerPageOptions:l,page:i,onChangePage:f,rowsPerPage:h,onChangeRowsPerPage:g,basicTableRef:y,labelRowsPerPage:E}=e;const b=d(),v=(0,r.useCallback)((()=>{(0,p.pathOr)(p.identity,["current","resetScrollbarPosition"],y)()}),[y]),O=(0,r.useCallback)((e=>{f(e),v()}),[f,v]),x=(0,r.useCallback)((e=>{f(0),g(e),v()}),[f,g,v]);return a().createElement(u.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:E||s().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return s().text("${fromRow}-${toRow} of ${countRows}",{fromRow:s().number(t,"0,0"),toRow:s().number(n,"0,0"),countRows:s().number(r,"0,0")})},count:n,rowsPerPageOptions:l,page:i,onPageChange:(0,p.pipe)((0,p.nthArg)(1),O),rowsPerPage:h,onRowsPerPageChange:(0,p.pipe)(c.NA,x)})};h.displayName="BasicTablePagination";const g=(0,r.memo)(h)},82565:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),l=n(12115);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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 s=(0,n(72342).makeStyles)((e=>({basicViewPaper:o({display:"flex",flexDirection:"column"},e.basicView)})));function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const p=(0,r.forwardRef)(((e,t)=>{let{children:n,className:r}=e,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children","className"]);const i=s();return a().createElement(l.Z,c({ref:t,className:r,classes:{root:i.basicViewPaper}},o),n)}));p.displayName="BasicView";const u=p},17998:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),l=n(2507),o=n.n(l),i=n(26482),s=n(79312);const c=(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 p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}const u=e=>{let{title:t="",children:n=null,classes:r={}}=e,l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["title","children","classes"]);const u=c();return a().createElement(i.Z,p({className:r.root,classes:{root:u.toolbar}},l),a().createElement(s.Z,{className:r.title,classes:{root:u.title},variant:"h6"},o().text(t)),n)}},28831:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(39475),s=n(63655);const c=(0,n(72342).makeStyles)({collapseButton:{cursor:"pointer"},expandLess:{transform:"rotate( -180deg )"}});function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}const u=e=>{let{isOpen:t=!1,tooltipTitle:n}=e,r=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["isOpen","tooltipTitle"]);const l=c(),u={icon:s.Z,className:l.collapseButton,iconClassName:o()({[l.expandLess]:t})},d={tooltipTitle:n};return a().createElement(i.k,p({"data-reltio-id":"collapse-button"},u,d,r))}},89902:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(50914);const s=(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%"}}))),c=e=>(0,i.is)(Number,e),p=e=>{let{className:t,width:n=0,maxWidth:l}=e;const i=s(),p=(0,r.useCallback)((e=>(l?100*e/l:0)+"%"),[l]);return n?a().createElement("div",{className:o()(i.bar,t),style:{width:c(n)?p(n):n}}):null}},77875:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(24328),a=n.n(r),l=n(50914),o=n(17512),i=n(53242),s=n(90590),c=n(79573);const p=(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 u=n(7342);const d=["minutes","hours","days","weeks","months","years"],m=e=>{let{interval:[t,n],onChange:r,onFocus:m}=e;const f=p(),h=(0,l.pipe)(c.NA,parseInt,(e=>[e,n]),r),g=(0,l.pipe)((e=>{let{value:n}=e;return[t,n]}),r);return a().createElement("div",{className:f.root},a().createElement(i.Z,{variant:"standard",type:"number",value:t||"",onChange:h,inputProps:{min:1,onFocus:m},InputProps:{classes:{root:f.input}},className:f.inputNumber}),a().createElement(s.Z,{label:"",placeholder:(0,u.Z)(n),className:f.inputUnit,value:{value:n,label:(0,u.Z)((0,o.wsP)(n))},options:d.map((e=>({value:e,label:(0,u.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 r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(50914),s=n(38677),c=n(18960),p=n(55962),u=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}}))),y=(0,f.Z)(d.Z),E=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=i.identity}=e;const l=g(),{disabled:o,text:s,tooltip:c,onClick:p,id:d="",selectable:f,selected:h}=n;return a().createElement(y,{tooltipTitle:c,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{r(e),p(e)},disabled:o,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${d}`},f&&a().createElement(u.Z,{checked:h,color:"primary"}),a().createElement(m.Z,{classes:{root:l.menuText}},s))}));E.displayName="MenuItemRenderer";const b=E;function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function O(e){let{className:t,menuId:n,buttonComponent:l=s.Z,buttonContent:u,menuItems:d=[],buttonProps:m={},popoverProps:f={},onMenuOpen:h=i.identity,onMenuClose:y=i.identity,MenuItemRenderer:E=b}=e;const O=l,x=g(),w=(0,r.useRef)(),[S,T]=(0,r.useState)(!1);(0,p.D)((()=>{S?h():y()}),[S]);const R=(0,r.useCallback)((e=>{null==e||e.stopPropagation(),T((e=>!e))}),[]);return a().createElement(a().Fragment,null,a().createElement(O,v({"data-reltio-id":"drop-down-menu-button",ref:w,className:o()(x.buttonRoot,{[x.selected]:S},t),onClick:R,"aria-pressed":S,"aria-controls":S?n:void 0,"aria-haspopup":"true"},m),u),a().createElement(c.Z,v({id:n,variant:"menu",open:S,autoFocus:!1,classes:{paper:x.paper},anchorEl:w.current,onClose:R,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,MenuListProps:{autoFocusItem:S}},f),d.map(((e,t)=>a().createElement(E,{item:e,key:t,onMenuClose:R})))))}O.displayName="DropDownMenuButton";const x=O},84425:(e,t,n)=>{n.d(t,{Z:()=>z});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),i=n(71153),s=n.n(i),c=n(50914),p=n(78501),u=n(93553),d=n(72342);const m=(0,d.makeStyles)((e=>({addLabel:{display:"flex",padding:"0 7px",height:"35px",alignItems:"center",fontSize:"13px",fontWeight:"500",color:e.palette.primary.main,cursor:"pointer",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",borderTop:"solid 1px rgba(0, 0, 0, 0.14)",backgroundColor:"rgba(0, 0, 0, 0.03)"},addIcon:{height:"18px",width:"18px",padding:"0 9px"}}))),f=(0,d.makeStyles)({singleValue:{fontSize:"14px",lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"17px"}});var h=n(51556);const g=e=>{const{selectProps:{onCreate:t,createLabel:n,inputValue:r,components:l},children:o}=e,i=m();return a().createElement(h.Z,e,o,n&&!(0,c.prop)("Group",l)&&a().createElement("span",{className:i.addLabel,onClick:()=>t(r)},a().createElement(u.Z,{className:i.addIcon}),n))};g.propTypes={children:o().element.isRequired,selectProps:o().object.isRequired};const y=g;var E=n(12350),b=n(49861),v=n(79573),O=n(17512),x=n(90597),w=n(79312);function S(){return S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}function T(e){const{selectProps:{menuIsOpen:t},innerProps:n,children:r}=e,l=f();return!t&&a().createElement(w.Z,S({className:l.singleValue},n),r)}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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}T.propTypes={children:o().node,innerProps:o().object};const P=(0,d.makeStyles)({control:{height:"auto"},dropdownIndicator:{boxSizing:"content-box",transition:"transform .15s ease",padding:e=>(e.height-24)/2+"px 12px",cursor:"pointer",color:"rgba(0, 0, 0, 0.54)"},valueContainer:{marginLeft:"16px",width:0},formControl:{margin:0},filledInputRoot:{backgroundColor:"rgba(0, 0, 0, 0.03)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&.focused":{backgroundColor:"rgba(0, 0, 0, 0.03)"}},filledInputUnderline:{"&:before":{display:"none"}},inputLabel:{color:"rgba(0,0,0,0.6)",fontSize:"14px",paddingLeft:"4px","&.shrink":{paddingLeft:"4px"}}}),C={menu:e=>R({},e,{borderRadius:"0 0 4px 4px",backgroundColor:"#FFFFFFFF",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)",margin:0}),menuList:e=>R({},e,{maxHeight:"208px",padding:"8px 0"}),group:e=>R({},e,{padding:"0 0 8px 0"}),input:e=>R({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:"16px 0 0",padding:0}),option:e=>R({},e,{fontSize:"13px",lineHeight:"15px",height:"32px"})},M={menuList:e=>R({},e,{padding:0})},D={input:e=>R({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:0,padding:0})};function N(){return N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(this,arguments)}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){F(e,t,n[t])}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j=e=>{let{value:t,label:n,createLabel:l,getOptions:o,options:i,height:u=46,onChange:d=c.identity,onCreate:m,onClear:f=c.identity,components:h,textFieldInputRef:g,TextFieldProps:w,classes:S}=e,R=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["value","label","createLabel","getOptions","options","height","onChange","onCreate","onClear","components","textFieldInputRef","TextFieldProps","classes"]);const I=P({height:u}),F=(0,x.a6)(),[j,_]=(0,r.useState)(!1),z=(0,r.useRef)(null),A=o?E.Z:b.Z,Z=(0,c.prop)("ClearIndicator",h)?{}:{IndicatorSeparator:v.Vd,ClearIndicator:v.Vd},L=m?(e,t)=>{m(e,t),_(!1)}:void 0,H=(0,c.prop)("Group",h)?M:{},U=(0,c.isEmpty)(n)?D:{},B=k({},C,H,U),V=k({},I,S);return a().createElement(A,N({placeholder:"",defaultOptions:!0},R,{value:(0,c.defaultTo)(null,t),loadOptions:o,options:i,cacheOptions:!0,onChange:d,onCreate:L,onClear:f,createLabel:l,classes:V,styles:B,components:k({DropdownIndicator:p.Z,LoadingIndicator:v.Vd,SingleValue:T,Menu:y},Z,h),menuPlacement:"auto",TextFieldProps:k({},w,{label:n,variant:"filled",size:"small",classes:k({},(0,c.prop)("classes",w),{root:s()(I.formControl,(0,c.path)(["classes","root"],w))}),inputProps:k({},(0,c.prop)("inputProps",w)),InputProps:k({},(0,c.prop)("InputProps",w),{classes:k({},(0,c.path)(["InputProps","classes"],w),{root:s()(I.filledInputRoot,(0,c.path)(["InputProps","classes","root"],w)),underline:s()({[F.filledInputUnderline]:(0,O.O27)(t)},(0,c.path)(["InputProps","classes","underline"],w)),focused:s()("focused",(0,c.path)(["InputProps","classes","focused"],w))})}),InputLabelProps:k({},(0,c.prop)("InputLabelProps",w),{classes:k({},(0,c.path)(["InputLabelProps","classes"],w),{root:s()(I.inputLabel,(0,c.path)(["InputLabelProps","classes","root"],w)),shrink:s()("shrink",(0,c.path)(["InputLabelProps","classes","shrink"],w))}),shrink:!(0,O.O27)(t)||void 0}),ref:g||z}),inputRef:g||z,menuIsOpen:j,onMenuOpen:()=>_(!0),onMenuClose:()=>_(!1)}))},_={value:o().oneOfType([o().object,o().array]),label:o().string.isRequired,getOptions:o().func,options:o().array,onChange:o().func,onCreate:o().func,onClear:o().func,createLabel:o().string,components:o().object,textFieldInputRef:o().object,TextFieldProps:o().object,height:o().number,classes:o().object};j.propTypes=_;const z=j},96379:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),a=n.n(r),l=n(52730),o=n(50673),i=n(98018);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const c=e=>{const t=(0,l.useSelector)(o.ZP.selectors.getAbsoluteImagePath)||"";return a().createElement(i.ZP,s({},e,{storagePath:(n=t,n.endsWith("/")?n:n+"/")}));var n}},18527:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),l=n(52730),o=n(63532),i=n(98074),s=n(50673);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const p=(0,r.forwardRef)(((e,t)=>{let{value:n,children:p,screen:u,className:d}=e,m=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["value","children","screen","className"]);const f=(0,l.useDispatch)(),h=(0,r.useContext)(o.m),{generateEntityUrl:g}=(0,r.useContext)(i.v),y=(0,l.useSelector)(s.ZP.selectors.getUIPath),E=(0,r.useCallback)((()=>{f(s.ui.actions.openEntity({uri:n,viewId:h,screen:u}))}),[h,n,f,u]);return a().createElement("a",c({ref:t,href:(b=n,g({uiPath:y,uri:b,screen:u})),onClick:e=>{E(),e.stopPropagation(),e.preventDefault()},className:d},m),p);var b}));p.displayName="EntityUriLink";const u=p},7882:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(24328),a=n.n(r);class l extends a().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:()=>c});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(17998);const s=(0,n(72342).makeStyles)({container:{padding:"0 16px",minHeight:"48px",".react-draggable &":{paddingTop:"4px"}},title:{fontSize:"16px",lineHeight:"19px",justifyContent:"flex-start"}}),c=e=>{let{className:t,title:n,children:r}=e;const l=s();return a().createElement(i.Z,{title:n,classes:{root:o()(l.container,t),title:l.title}},r)}},12350:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(27308);const a=(0,n(4515).Z)(r.ZP)},15793:(e,t,n)=>{n.d(t,{Z:()=>P});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),i=n(50914),s=n(70347);const c=(0,n(4515).Z)(s.ZP);var p=n(49861),u=n(12350),d=n(95341),m=n(80852),f=n(71153),h=n.n(f),g=n(40007);function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function E(e){const{innerProps:t,innerRef:n,children:r,isFocused:l,isSelected:o,selectProps:{classes:i},label:s}=e;return a().createElement(d.Z,y({className:h()(i.option,{[i["option--selected"]]:o}),ref:n,selected:l,component:"div"},t),a().createElement(m.Z,{color:"primary",checked:o}),a().createElement(g.Z,{value:s},a().createElement("div",{className:i["option--item"]},r)))}E.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:E};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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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 T=(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 R=0;function I(e){const{label:t,creatable:n,getOptions:l,loadingIndicator:o,components:s,classes:d,styles:m,onChange:f,onInputChange:h,menuPlacement:g="auto"}=e,y=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["label","creatable","getOptions","loadingIndicator","components","classes","styles","onChange","onInputChange","menuPlacement"]),E=n?c:l?u.Z:p.Z,[v,S]=(0,r.useState)(""),I=T((0,i.omit)(["classes"],e)),P="custom-select-"+R++,C=w({},b,s),M=(0,O.ze)(I,d),D=w({indicatorSeparator:e=>w({},e,{margin:"10px 0"}),loadingIndicator:e=>w({},e,{display:o?e.display:"none"}),loadingMessage:e=>w({},e,{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'})},m),N=t?{inputId:P,TextFieldProps:w({label:t,InputLabelProps:{htmlFor:P,shrink:!(!e.value||!e.value.length)||void 0,className:M.label}},e.TextFieldProps)}:{};return a().createElement(E,x({isMulti:!0,inputId:P,inputValue:v,onChange:function(e,t){f(e,t),"create-option"===t.action&&(S(""),h("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;h(e,{action:n}),"set-value"!==n&&S(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:M,components:C,styles:D,menuPlacement:g,loadOptions:l},N,y))}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 r=n(24328),a=n.n(r),l=n(66244),o=n.n(l),i=n(44443),s=n(50914),c=n(71153),p=n.n(c);function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}const f=e=>{let{x:t,y:n,width:r,height:a,id:l,minWidth:o,minHeight:i,maxWidth:s,maxHeight:c,isStatic:p}=e;return{x:t,y:n,w:r,h:a,minW:o,minH:i,maxW:s,maxH:c,i:l,static:p}},h=e=>{let{x:t,y:n,w:r,h:a,maxW:l,minW:o,minH:i,maxH:s,i:c}=e;return{x:t,y:n,width:r,height:a,minWidth:o,minHeight:i,maxWidth:l,maxHeight:s,id:c,isStatic:m(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},g=e=>(e||[]).map(h),y=(0,s.curry)(((e,t)=>(e||[]).find((0,s.propEq)("id",t)))),E=(0,s.curry)(((e,t,n)=>(0,s.mergeAll)([n,(0,s.pick)(e,t)]))),b=(0,s.curry)(((e,t,n)=>(n||[]).map((n=>(0,s.pipe)((0,s.prop)("id"),y(t),(0,s.defaultTo)({}),E(e,s.__,n))(n))))),v=(0,s.curry)(((e,t)=>t.map((n=>{const r=t.filter((e=>e.y===n.y)).map((t=>e[t.id]||!t.autosizing&&t.minHeight||0)),a=Math.max(...r);if(n.height!==a&&a){const e=n.autosizing?{minHeight:a,maxHeight:a}:{};return u({},n,e,{height:a})}return n})))),O=(0,s.curry)(((e,t)=>t.map((t=>{const n=e[t.id];return n&&t.autosizing?u({},t,{minHeight:n,maxHeight:n,height:n}):t}))));var x=n(79573),w=n(72342),S=n(17512);const T=(0,w.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,S.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 R(){return R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R.apply(this,arguments)}const I={cols:4,rowHeight:30,margin:[15,15]},P=e=>{let{views:t,layout:n,layoutOptions:l=I,onLayoutChanged:c=x.ZT,draggableHandle:u,LayoutItem:d,onRemove:m,onDrop:E,droppingItem:w,isDroppable:S,isStatic:P,classes:C}=e;const M=(0,r.useRef)(),D=(0,r.useRef)({}),N=T(),[k,F]=(0,r.useState)(null),[j,_]=(0,r.useState)(null),[z,A]=(0,r.useState)(0),{cols:Z,rowHeight:L,margin:H}=l,U=(0,r.useMemo)((()=>(e=>(e||[]).map(f))(n)),[n]),B=(0,s.pipe)(g,b(["autosizing"],n),(0,s.ifElse)((0,s.always)(P),v(D.current),O(D.current)),c),V=(0,r.useCallback)((e=>_((t=>t?null:e))),[]),G=null!==j;return a().createElement(a().Fragment,null,a().createElement(i.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>A(e)}),!!z&&a().createElement(o(),{innerRef:M,layout:U,cols:Z,draggableHandle:u,autoSize:!0,rowHeight:L,width:z,margin:H,onLayoutChange:P?void 0:B,isResizable:!P&&!G,isDraggable:!P&&!G,className:p()(null==C?void 0:C.root,N.gridLayout,{[N.gridFullscreen]:G}),onDrop:(e,t,n)=>{E&&E(g(e),h(t),n)},droppingItem:w,isDroppable:!P&&S,onResizeStart:(e,t)=>F(t.i),onResizeStop:()=>F(null),"data-reltio-id":"reltio-grid-layout"},U.map((e=>{const r=j===e.i,o=k===e.i,s=(y(n,e.i)||{}).autosizing?{AutosizeComponent:(c=e.i,a().createElement(i.Z,{handleHeight:!0,onResize:(e,t)=>{if(t){const e=((e,t)=>{const{margin:n,rowHeight:r}=t;return Math.ceil((e+n[1])/(r+n[1]))})(t,l);e!==D.current[c]&&(D.current[c]=e,B(U))}}}))}:{};var c;return a().createElement(d,R({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:V,onRemove:m,className:p()(null==C?void 0:C.item,{static:P,fullscreen:r,[N.isResizing]:o}),isFullscreen:r},s))}))))};P.displayName="ReltioGridLayout";const C=(0,r.memo)(P)},32701:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(24328),a=n.n(r);const l=(0,n(72342).makeStyles)({mark:{color:"red"}}),o=()=>{const e=l();return a().createElement("span",{className:e.mark},"*")}},90590:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),a=n.n(r),l=n(84425),o=n(13980),i=n.n(o),s=n(79312);const c=(0,n(72342).makeStyles)({value:{color:"rgba(0, 0, 0, 0.87)"},placeholder:{color:"rgba(0, 0, 0, 0.38)",fontSize:"14px !important"}}),p=e=>{let{selectProps:{menuIsOpen:t},data:{label:n}}=e;const r=c();return!t&&a().createElement(s.Z,{variant:"body2",classes:{root:r.value}},n)};p.propTypes={selectProps:i().shape({menuIsOpen:i().bool}),data:i().shape({label:i().string})};const u=p;function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}const m=e=>{const t=c(),{innerProps:n={},children:r}=e;return a().createElement(s.Z,d({className:t.placeholder},n),r)};function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}m.propTypes={children:i().node,innerProps:i().object,selectProps:i().object.isRequired};const h={SingleValue:u,Placeholder:m},g=(0,r.memo)((e=>{let t=f({},e);return a().createElement(l.Z,f({components:h},t))}))},79935:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(24328),a=n.n(r);const l=()=>a().createElement("div",{style:{flex:1}})},15791:(e,t,n)=>{n.d(t,{Z:()=>O});var r=n(24328),a=n.n(r),l=n(52730),o=n(2507),i=n.n(o),s=n(50914),c=n(71153),p=n.n(c),u=n(79312),d=n(15793),m=n(59952),f=n(17512),h=n(50673),g=n(72342);function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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 b={input:e=>y({},e,{fontSize:"14px"}),loadingMessage:e=>y({},e,{fontSize:"14px"}),menuPortal:e=>y({},e,{zIndex:1300})},v=(0,g.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"}}),O=e=>{let{selectedUsers:t,onChange:n,className:o,disableUnderline:c}=e;const g=v(),y=e=>({value:e,label:e}),E=e=>e.map(y),O=(0,l.useSelector)(h.ZP.selectors.getTenant),x=(0,l.useSelector)(h.ZP.selectors.getServicesPath),w=(0,r.useRef)();return a().createElement("div",{className:p()(g.root,o),"data-reltio-id":"user-selector"},a().createElement(u.Z,{className:g.title,variant:"subtitle1"},i().text("User")),a().createElement(d.Z,{value:E(t),onChange:(0,s.pipe)((0,s.defaultTo)([]),(0,s.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(w.current||(w.current=(0,f.kz_)({tenant:O,servicesPath:x})),w.current.then((0,s.pipe)((0,s.pluck)("username"),(e=>t=>e?t.filter((t=>f.P6Y.strings.search(t,e))):t)(e),E))),TextFieldProps:{InputProps:{disableUnderline:c},className:g.dropDownInput},components:{DropdownIndicator:m.Z},styles:b,classes:g,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))}},20414:(e,t,n)=>{let r;n.d(t,{I:()=>r}),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"}(r||(r={}))},57312:(e,t,n)=>{n.d(t,{te:()=>u,Io:()=>d,rx:()=>m,_V:()=>f,Xr:()=>h});var r=n(17512),a=n(50914),l=n(2507),o=n.n(l),i=n(20414);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,a.path)(["data","type"]),u=e=>{const{items:t,label:n}=e,[r]=t||[];return p(r)||n},d=e=>{const{items:t=[],label:n}=e,r=e=>{return t=p(e)||n,(0,a.pipe)(a.values,(0,a.includes)(t))(i.I);var t},l=(0,a.filter)(r)(t);return t.length!==l.length&&console.error("Activities not implemented:",(0,a.reject)(r)(t)),s({},e,{items:l,itemsTotal:l.length})},m=e=>(0,a.pipe)((0,a.propOr)([],"items"),(0,a.groupBy)(p),a.values,(0,a.ifElse)((e=>{let{length:t}=e;return t>1}),(0,a.map)((t=>s({},e,{items:t,itemsTotal:t.length}))),(()=>[e])))(e),f=(e,t,n,l)=>{const o=(0,r.zeJ)(n,t),i=(0,r.PFL)(o),s=(0,r.mB6)({attributePresentations:l,dataTypeDefinition:i});return(0,a.isNil)(e)?"":"string"==typeof e?o?s(e):e:Object.entries(e).flatMap((e=>{let[a,o]=e;return o.map((e=>f(e.value,(0,r.tCm)(t,a),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:()=>E});var r=n(24328),a=n.n(r),l=n(95038),o=n.n(l),i=n(2507),s=n.n(i),c=n(50914),p=n(17512),u=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"}}),y=o().localeData().longDateFormat("L"),E=e=>{let{values:t,onChange:n,onFocus:l=u.ZT}=e;const o=y,i=(0,r.useRef)(null),[E,b]=(0,r.useState)(!1),v=g(),O=(0,r.useCallback)((()=>{b((e=>!e)),l()}),[l]);return a().createElement("div",{className:v.root},a().createElement(d.Z,{fullWidth:!0,value:t.map((e=>((e,t)=>(0,c.isNil)(e)?`${t}`:`${(0,p.mB6)({dataTypeDefinition:{type:p.oS0.TYPE_ACTIVENESS_DATE}},e)}`)(e,o))).join(" — "),onClick:O,variant:"filled",ref:i,InputProps:{endAdornment:a().createElement(f.Z,{selectProps:{classes:v,menuIsOpen:E},innerProps:{}}),disableUnderline:(0,c.isNil)(t),readOnly:!0,classes:{root:v.inputRoot,input:v.input}},InputLabelProps:{shrink:!1},placeholder:s().text(`${o} — ${o}`)}),a().createElement(m.ZP,{open:E,anchorEl:i.current,onClose:()=>{b(!1)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2},a().createElement(h.Z,{values:t,onApply:e=>{n(e),b(!1)},type:p.oS0.TYPE_ACTIVENESS_DATE})))}},98074:(e,t,n)=>{n.d(t,{v:()=>o});var r=n(24328),a=n.n(r),l=n(17512);const o=a().createContext({generateEntityUrl:l.OuZ,generatePivotingUrl:l.FQ2,generateTagUrl:l.W$R});o.displayName="UrlGeneratorsContext"},63532:(e,t,n)=>{n.d(t,{m:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="ViewIdContext"},19540:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(24328),a=n.n(r);function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}const o=e=>a().createElement("svg",l({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{d:"M14 11v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1h-3v1a1 1 0 01-1 1H6a1 1 0 01-1-1v-4a1 1 0 011-1h4a1 1 0 011 1v1h3z",fill:"#000",stroke:"none",strokeWidth:1,fillRule:"evenodd"}))},43129:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),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 a().createElement(l.Z,{color:"primary",className:e.loader,"data-reltio-id":"dashboard-item-loader"})}},60355:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(24328),a=n.n(r),l=n(18960),o=n(95341),i=n(83993),s=n(82056),c=n(87037),p=n(50985);const u=(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,r.useState)(null),m=Boolean(n),f=u(),h=()=>d(null),g=e=>()=>{h(),e()};return a().createElement(a().Fragment,null,a().createElement(c.Z,{className:f.openIcon,"aria-controls":"menu","aria-haspopup":"true",onClick:e=>d(e.currentTarget),size:"large"},a().createElement(p.Z,null)),a().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:r,action:l,disabled:c=!1}=e;return a().createElement(o.Z,{key:t,onClick:g(l),disabled:c},a().createElement(i.Z,null,n),a().createElement(s.Z,{classes:{primary:f.menuItemTitle}},r))}))))}},65298:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),a=n.n(r),l=n(82565),o=n(52388);const i=(0,n(72342).makeStyles)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden",boxShadow:"none"}}))),s=e=>{let{id:t,children:n}=e;const r=i();return a().createElement(o.H.Provider,{value:t},a().createElement(l.Z,{className:r.view,"data-reltio-id":`layout-item-${t}`},n))}},52388:(e,t,n)=>{n.d(t,{H:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="DashboardViewIdContext"},3330:(e,t,n)=>{n.d(t,{Z:()=>xn});var r=n(24328),a=n.n(r),l=n(153),o=n(17512),i=n(52730),s=n(50914),c=n(2507),p=n.n(c),u=n(73093),d=n(62321),m=n(33945),f=n(50673),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 y=e=>{let{options:t,offset:n,max:a}=e;const[l,i]=(0,r.useState)([]),[c,p]=(0,r.useState)(0),[u,d]=(0,r.useState)(h.o.INIT),m=e=>{console.error(e),d(h.o.ERROR),i([])},f=(0,r.useCallback)((()=>{d(h.o.LOADING);const e=e=>{i(e.result||[]),p(e.total),d(h.o.LOADED)},r=t||{},{countResults:l}=r,c=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(r,["countResults"]);(async()=>{const{result:t=[],total:r}=await(0,o.cZV)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){g(e,t,n[t])}))}return e}({offset:n,max:a},c));if(l){const n=t.map((e=>(0,o.OaI)((0,o.dWE)(e.query)))),a=(await(0,o.RGr)(n)).reduce(((e,t,n)=>{let{status:r,value:a,reason:l}=t;switch(r){case"fulfilled":return(0,s.assocPath)([n,"count"],a.total,e);case"rejected":console.error(l)}return e}),t);e({result:a,total:r})}else e({result:t,total:r})})().catch(m)}),[t,a,n]),y=()=>{try{f()}catch(e){m(e)}};return(0,r.useEffect)((()=>{y()}),[f]),{state:u,data:l,reload:y,total:c}},E=[10,25,50,100],[b]=E,v=e=>E.filter((t=>t!==e)).concat(e).sort(s.subtract);var O=n(65298),x=n(52194),w=n(19926),S=n(25744),T=n(63436),R=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:s,children:c}=e;const u=(0,r.useContext)(P.H),d=(0,r.useMemo)((()=>[{id:"refresh",title:p().text("Refresh"),icon:a().createElement(I.Z,{fontSize:"small"}),active:!!s,action:()=>s()},{id:"fullscreen",title:p().text("Fullscreen"),icon:a().createElement(S.Z,{fontSize:"small"}),active:!o,action:()=>n(u)},{id:"exitFullscreen",title:p().text("Exit fullscreen"),icon:a().createElement(T.Z,{fontSize:"small"}),active:o,action:()=>n(u)},{id:"remove",title:p().text("Remove"),icon:a().createElement(R.Z,{fontSize:"small"}),active:!!i,action:()=>{i(u),o&&n(u)}}]),[u,o,i,n,s]),m=D();return a().createElement(x.Z,{title:t},l&&a().createElement(w.Z,{label:p().text("Updated"),size:"small",className:m.updatedChip}),a().createElement("div",{className:m.rightMenu},c,a().createElement(C.Z,{items:d})))};var k=n(71153),F=n.n(k),j=n(7882),_=n(82068),z=n(79312);function A(){return A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A.apply(this,arguments)}const Z=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["styles"]);return a().createElement("svg",A({width:"148",height:"148",viewBox:"0 0 148 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),a().createElement("mask",{id:"svg2791016623a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"148",height:"148"},a().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"})),a().createElement("g",{mask:"url(#svg2791016623a)"},a().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"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 5.203h148V148H0V5.203z",fill:"url(#nodata__paint0_linear)"}),a().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},a().createElement("path",{opacity:".5",d:"M25.186 26.016h131.896V128.04H25.186V26.016z",fillOpacity:".8"}),a().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"})),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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)"}),a().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)"}),a().createElement("g",{filter:"url(#nodata__filter0_d)",fillRule:"evenodd",clipRule:"evenodd"},a().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"}),a().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"})),a().createElement("g",{style:{mixBlendMode:"soft-light"},opacity:".4"},a().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"})),a().createElement("g",{style:{mixBlendMode:"overlay"}},a().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"})),a().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"})),a().createElement("defs",null,a().createElement("linearGradient",{id:"nodata__paint0_linear",x1:"74",y1:"5.203",x2:"74",y2:"148",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:"0"}),a().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),a().createElement("linearGradient",{id:"nodata__paint1_linear",x1:"123.612",y1:"142.028",x2:"76.729",y2:"122.717",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopOpacity:"0"}),a().createElement("stop",{offset:"1"})),a().createElement("linearGradient",{id:"nodata__paint2_linear",x1:"75.156",y1:"57.234",x2:"75.156",y2:"111.578",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopColor:"#EEFBFF"}),a().createElement("stop",{offset:"1",stopColor:"#0072CE"})),a().createElement("filter",{id:"nodata__filter0_d",x:"36.469",y:"47.719",width:"97.962",height:"100.475",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().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"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().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"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"}))))},L=(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=L();return a().createElement("div",{className:e.noDataContainer},a().createElement(Z,{className:e.icon}),a().createElement(z.Z,null,p().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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(this,arguments)}const V=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["styles"]);return a().createElement("svg",B({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),a().createElement("mask",{id:"svg3217593551a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},a().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"})),a().createElement("g",{mask:"url(#svg3217593551a)"},a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),a().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"}),a().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"}),a().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"}),a().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"}),a().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),a().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"}),a().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"}),a().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"}),a().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),a().createElement("g",{filter:"url(#error__filter0_d)"},a().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"})),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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)"}),a().createElement("g",{filter:"url(#error__filter1_d)"},a().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),a().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),a().createElement("g",{filter:"url(#error__filter2_d)"},a().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"})),a().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"})),a().createElement("defs",null,a().createElement("filter",{id:"error__filter0_d",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().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"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().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"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),a().createElement("filter",{id:"error__filter1_d",x:"51.688",y:"62.625",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().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"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().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"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),a().createElement("filter",{id:"error__filter2_d",x:"51.688",y:"44.063",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().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"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().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"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),a().createElement("linearGradient",{id:"error__paint0_linear",x1:"68.438",y1:"71.571",x2:"60.119",y2:"58.801",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopOpacity:"0"}),a().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 r=G();return a().createElement("div",{className:r.errorContainer},a().createElement(V,{className:r.errorIcon}),a().createElement(z.Z,null,n),t&&a().createElement(U.Z,{className:r.refreshButton,startIcon:a().createElement(I.Z,{color:"primary",className:r.refreshIcon}),onClick:t},a().createElement(z.Z,{variant:"button"},p().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:r,data:l,className:o,EmptyPlaceholder:i}=e;const s=q();return a().createElement(_.Z,{className:F()(s.viewContent,o),"data-reltio-id":"layout-item-content"},a().createElement($.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:o=0,height:s=0}=e;switch(t){case h.o.LOADED:return l&&0!==l.length?a().createElement(j.Z,{error:a().createElement(W,{message:p().text("Something went wrong")})},r({data:l,width:o,height:s})):i||a().createElement(H,null);case h.o.LOADING:return a().createElement(Y.Z,null);case h.o.ERROR:return a().createElement(W,{message:p().text("Error Loading Data"),onRefresh:n});default:return a().createElement("div",null)}})))};function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:c}=e;const{id:h,title:g,options:E,max:x=b}=t,w=ee(),[S,T]=(0,r.useState)(0),[R,I]=(0,r.useState)(x),{data:P,state:C,reload:M,total:D}=y({options:E,max:R,offset:R*S}),k=(0,r.useMemo)((()=>(e=>e.map((e=>{let{uri:t,name:n,count:r}=e;return{value:r||0,label:n||"",group:t}})))(P)),[P]),F=(0,r.useMemo)((()=>v(x)),[x]),j=(0,i.useDispatch)(),_=(0,r.useCallback)((e=>{(0,s.pipe)((0,s.find)((0,s.propEq)("uri",e)),J,f.ui.actions.openSearch,j)(P)}),[j,P]);return(0,u.T)({state:C,reload:M}),a().createElement(O.Z,{id:h},a().createElement(N,{title:g,onToggleFullscreen:n,isFullscreen:o,isUpdated:l,onRefresh:M,onRemove:c}),a().createElement(K,{loadingState:C,onRefresh:M,data:k,className:w.content},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(d.Z,{width:n,height:r,data:t,options:{headers:[p().text("Name")],showValues:null==E?void 0:E.countResults},onItemClick:_})})),!!D&&a().createElement(m.Z,{page:S,count:D,rowsPerPage:R,onChangePage:T,onChangeRowsPerPage:I,rowsPerPageOptions:F}))}));var ne=n(45990),re=n(12960);const ae=(0,s.when)((0,s.pipe)((0,s.prop)("filter"),(0,s.includes)(s.__,[o.j5E.IN_RANGE,o.j5E.HAS_ALL])),(0,s.evolve)({values:o.FTe})),le=(0,s.curry)(((e,t)=>({filter:o.j5E.NOT_EQUALS,values:[t],fieldName:e}))),oe=e=>{var t,n,r;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!==(r=null==e?void 0:e.fieldName)&&void 0!==r?r:""}},ie=e=>({filter:o.j5E.EQUALS,fieldName:"type",values:[e]}),se=(0,s.curry)(((e,t)=>({filter:o.j5E.EQUALS,values:[t],fieldName:e}))),ce=(0,s.curry)(((e,t,n)=>{const{fieldName:r}=n,a=(0,o.Yxg)(r)||(0,o.zeJ)(e,(0,o.h2W)(r,t));return a?(0,s.pipe)(ae,(0,s.when)((()=>(0,o.EdS)(a.uri)),(0,s.assoc)("entityType",t)),(0,s.when)((()=>(0,o.Lt4)(a.type)),(0,s.evolve)({values:(0,s.map)((0,o.mOr)(o.ZBU))})))(n):null})),pe=e=>{let{filter:t,fieldName:n}=e;return t===o.j5E.EQUALS&&"type"===n},ue=(e,t)=>{let{filter:n,fieldName:r,values:a}=e;return n===o.j5E.EQUALS&&"type"===r&&(null==a?void 0:a[0])===t};function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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:r,searchByOv:a,activityFilter:l,pageSize:i,orderType:c}=e;const p=((e,t,n,r)=>{const a=(0,s.pipe)((0,s.map)(ae),(0,o.Uqd)(),(0,o.vyX)(t))(e),l=a?[`filter=${a}`]:[];return n&&l.push("options=searchByOv"),r&&l.push(`activeness=${r}`),l.join("&")})(n,r,a,l),u=[{fieldName:t,pageNo:1,orderType:c,pageSize:i}];return(0,o.FK9)({query:p,body:u}).then((e=>(0,s.pipe)((0,s.prop)(t),(0,s.defaultTo)({}),Object.entries,(0,s.map)((e=>{let[t,n]=e;return{label:t,group:t,value:n}})),(0,s.sortWith)([(0,s.descend)((0,s.prop)("value")),(0,s.ascend)((0,s.prop)("label"))]))(e)))},he=(0,s.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 r=n.flatMap((0,o.Z2f)(e));return t.map((e=>{const t=r.find((t=>{let{lookupCode:n}=t;return n===e.label}));return t?de({},e,{label:t.value}):e}))}))})),ge=(0,s.curry)(((e,t)=>t.map((0,s.pipe)((0,s.prop)("group"),le(e))))),ye="Other",Ee=(0,s.curry)(((e,t)=>{let{attribute:n,filters:r,globalFilter:a,searchByOv:l,activityFilter:i}=e;const c=(0,s.pipe)(ge(n),(0,s.concat)(r),(0,s.map)(ae))(t),u=l&&"searchByOv";return(0,o.j_Q)(c,{globalFilter:a,activityFilter:i,searchOptions:u}).then((e=>{let{total:n}=e;return n>0?t.concat([{label:p().text("Other"),group:ye,value:n}]):t}))})),be=(e,t)=>(0,o.xqc)(e,"configuration/roles/"+t),ve=(0,s.map)((e=>de({},e,{localizedValue:p().number(e.value)}))),Oe=(0,s.when)(o.EdS,o.Tde),xe=(0,s.ifElse)(o.EdS,o.Uk3,(0,s.always)(void 0)),we=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=xe(e),r=t.some((e=>ue(e,n)));return n&&!r?[ie(n),...t]:t},Se=(0,s.curry)(((e,t,n)=>{const r=Oe(e);return n===ye?(0,s.pipe)((0,s.reject)((0,s.propEq)("group",ye)),ge(r))(t):[se(r,n)]})),Te=(0,s.curry)(((e,t,n)=>{var r,a;const l=xe(t)||(null===(r=n.find(pe))||void 0===r||null===(a=r.values)||void 0===a?void 0:a[0]);return{facets:n.map(ce(e,l)).filter(s.identity)}}));const Re=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:c,onRemove:p}=e;const{id:d,title:m,filters:g,attributeUri:y,count:E,orderType:b,chartType:v,showOthers:x}=t,w=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,["id","title","filters","attributeUri","count","orderType","chartType","showOthers"]),S=v===o.$XE.MAP?100:8,{data:T,state:R,reload:I}=(e=>{let{filters:t,attributeUri:n,pageSize:a,orderType:l="reversedCount",options:c}=e;const[p,u]=(0,r.useState)([]),[d,m]=(0,r.useState)(h.o.INIT),g=(0,r.useContext)(ne.I),y=(0,r.useMemo)((()=>g.map(oe).concat(t||[])),[g,t]),E=(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]),w=(0,i.useSelector)(f.ZP.selectors.getShowSearchByOv),S=null==c?void 0:c.showOthers,T=e=>{console.error(e),m(h.o.ERROR),u([])},R=(0,r.useCallback)((()=>{m(h.o.LOADING);const e=we(n,y),t=Oe(n),r=(0,o.Yxg)(t)||(0,o.zeJ)(E,n);if(!r)return void T("Configuration is incorrect");const i=(0,s.pipe)(fe,(0,s.andThen)(((e,t)=>(0,s.pipe)((0,s.when)((()=>(0,o.CwH)(t)),he((0,o.To9)(t))),(0,s.when)((()=>(0,o.ian)(t)),(0,s.map)((t=>de({},t,{label:be(e,t.group)})))),(0,s.when)((()=>(0,o.Lt4)(t.type)),(0,s.map)((0,s.evolve)({label:(0,s.pipe)(o.ZBU,(0,o.mB6)({dataTypeDefinition:(0,o.PFL)(t)}))})))))(E,r)),(0,s.andThen)((0,s.unless)((0,s.always)(x),ve)),(0,s.andThen)((0,s.when)((0,s.always)(S),Ee({attribute:t,filters:e,globalFilter:b,searchByOv:w,activityFilter:v}))),(0,s.andThen)((e=>{m(h.o.LOADED),u(e)})),(0,s.otherwise)(T));i({attribute:t,filters:e,globalFilter:b,searchByOv:w,activityFilter:v,pageSize:a,orderType:l})}),[m,n,E,S,y,b,w,v,a,l,x]),I=()=>{try{R()}catch(e){T(e)}};return(0,r.useEffect)((()=>{I()}),[R]),{state:d,data:p,reload:I}})({filters:g,attributeUri:y,pageSize:E||S,orderType:b,options:{showOthers:x}});(0,u.T)({state:R,reload:I});const P=(0,i.useDispatch)(),C=(0,i.useSelector)(f.ZP.selectors.getMetadata),M=(0,r.useContext)(ne.I),D=(0,r.useMemo)((()=>M.map(oe).concat(g||[])),[M,g]),k=(0,s.pipe)(Se(y,T),(0,s.concat)(we(y,D)),Te(C,y),f.ui.actions.openSearch,P);return a().createElement(O.Z,{id:d},a().createElement(N,{title:m,onToggleFullscreen:n,isUpdated:l,isFullscreen:c,onRefresh:I,onRemove:p}),a().createElement(K,{loadingState:R,onRefresh:I,data:T},(e=>{let{data:t,width:n=0,height:r=0}=e;return re.Z.build(v,{data:t,width:n,height:r,options:w,onItemClick:k})})))}));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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ne.apply(this,arguments)}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Fe(e,t,n[t])}))}return e}function Fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const je=e=>{let{className:t,headCellData:n}=e,r=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","headCellData"]);const l=De();return a().createElement("div",{className:F()(l.headCell,t)},a().createElement(Pe.default,Ne({},r,{headCellData:ke({},n,{label:a().createElement(Ce.Z,{value:n.label},a().createElement("div",{className:l.headLabel},n.label))})})))};var _e=n(18527);const ze=e=>{let{value:t,rowValue:n}=e;const r=De(),l=(0,o.idV)(t);return a().createElement(Ce.Z,{value:l},a().createElement(_e.Z,{value:(0,o.wwR)(n),className:r.entityLabel},l))},Ae=(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"}}),Ze=e=>{let{height:t,width:n,basicTableRef:r,data:l}=e;const o=Ae({width:n,height:t}),i=[{id:"label",label:p().text("Entity"),resizable:!1,headCellRenderer:je,rowCellValueRenderer:ze,initialWidth:n}],s={cellBorder:o.cellBorder};return a().createElement("div",{className:o.tableContainer},a().createElement(Ie.Z,{columnsData:i,rowsData:l,headRowHeight:48,getRowCellHeight:null,classes:s,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:r}))},Le=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRemove:s}=e;const c=ee(),{id:p,title:d,filters:f,max:g=b}=t,y=(0,r.useMemo)((()=>v(g)),[g]),[E,x]=(0,r.useState)(g),[w,S]=(0,r.useState)(0),{data:T,state:R,reload:I,total:P}=(e=>{let{filters:t,max:n,offset:a}=e;const[l,i]=(0,r.useState)([]),[s,c]=(0,r.useState)(0),[p,u]=(0,r.useState)(h.o.INIT),d=(0,r.useContext)(ne.I),m=(0,r.useMemo)((()=>d.map(oe).concat(t||[])),[d,t]),f=e=>{console.error(e),u(h.o.ERROR)},g=(0,r.useCallback)((()=>{u(h.o.LOADING),Promise.all([(0,o.ZOr)(m,{max:n,offset:a}),(0,o.j_Q)(m,{max:n,offset:a})]).then((e=>{const[t,{total:n}]=e;i(t||[]),c(n),u(h.o.LOADED)})).catch(f)}),[m,n,a]),y=()=>{try{g()}catch(e){f(e)}};return(0,r.useEffect)((()=>{y()}),[g]),{state:p,data:l,reload:y,total:s}})({filters:f,max:E,offset:E*w});return(0,u.T)({state:R,reload:I}),a().createElement(O.Z,{id:p},a().createElement(N,{title:d,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRefresh:I,onRemove:s}),a().createElement(K,{loadingState:R,onRefresh:I,data:T,className:c.content},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(Ze,{height:r,width:n,data:t})})),!!P&&a().createElement(m.Z,{page:w,count:P,rowsPerPage:E,onChangePage:S,onChangeRowsPerPage:x,rowsPerPageOptions:y}))}));var He=n(65643),Ue=n(78291);const Be=(0,M.makeStyles)({button:{whiteSpace:"nowrap",textTransform:"none",fontWeight:"normal"}}),Ve=(0,r.forwardRef)(((e,t)=>{let{editorLabel:n,onMenuToggle:r}=e;const l=Be();return a().createElement(U.Z,{ref:t,onClick:r,size:"small",className:l.button,endIcon:a().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,s.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,s.pipe)(Xe,(0,s.defaultTo)([]),(0,s.map)((e=>e&&new Date(e)))),Je=[{id:"created",types:["CREATED"],get label(){return p().text("New")},color:"#4BAFFF"},{id:"updated",types:["UPDATED"],get label(){return p().text("Updated")},color:"#0072CE"},{id:"deleted",types:["DELETED"],get label(){return p().text("Deleted")},color:"#F085F2"},{id:"matched",types:["POTENTIAL_MATCHES_FOUND"],get label(){return p().text("Matched")},color:"#C4CE00"},{id:"autoMerged",types:["MERGED","MERGED_ON_THE_FLY"],get label(){return p().text("Auto-merged")},color:"#CE5C00"},{id:"mergedManually",types:["MERGED_MANUALLY"],get label(){return p().text("Manually merged")},color:"#9E7ED3"},{id:"unmerged",types:["SPLITTED"],get label(){return p().text("Unmerged")},color:"#40CFBB"},{id:"notMatch",types:["NOT_MATCHES_SET"],get label(){return p().text("Not a match")},color:"#F97061"}],et=e=>Je.find((0,s.propEq)("id",e)),tt=(0,s.pipe)(et,(0,s.propOr)("","label")),nt=(0,s.pipe)(et,(0,s.prop)("color")),rt=e=>{const[t,n]=(0,o.RHh)(e,Xe),r=e=>{let{facet:r,types:a}=e;return(0,o.NIY)({facet:r,startTime:t,endTime:n,types:a}).then((e=>{let{facets:t={},total:n=0}=e;return{total:n,data:t[r]}}))};return(()=>{const e=(0,s.chain)((0,s.prop)("types"),Je),t=(0,s.pipe)((0,s.propOr)([],"data"),(0,s.pluck)("term"));return r({facet:"type",types:e}).then((e=>t(e)))})().then((e=>e.length>0?(e=>{const a=(0,s.pipe)((0,s.map)((0,s.evolve)({term:e=>$e().utc(e).valueOf()})),(0,s.prepend)({term:t,count:0}),(0,s.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)?r({facet:"hour",types:n}):Promise.resolve({total:0,data:[]})).then((e=>{let{total:t,data:n}=e;return{total:t,data:a(n),event:l}}))})))})(e):[]))},at=(0,s.curry)(((e,t)=>(0,s.pipe)((0,s.groupBy)((t=>{let{term:n}=t;return $e()(n).startOf(e)})),s.toPairs,(0,s.map)((e=>{let[t,n]=e;return{term:$e()(t).valueOf(),count:(0,s.sum)((0,s.pluck)("count",n))}})))(t))),lt=(0,s.curry)(((e,t)=>{const[n,...r]=t;return r.reduce(((t,n)=>{const r=(0,s.last)(t).term;let a=$e()(r).add(1,e).valueOf();const l=[];for(;a<n.term;)l.push({term:a,count:0}),a=$e()(a).add(1,e).valueOf();return t.concat(l,n)}),[n])})),ot=(0,s.curry)(((e,t)=>t.map((0,s.evolve)({data:(0,s.pipe)(at(e),lt(e))})))),it=(0,s.cond)([[(0,s.equals)(qe.HOUR),(0,s.always)("LT")],[(0,s.equals)(qe.DAY),(0,s.always)("MMM D")]]),st=e=>{let{x:t,y:n,payload:r,step:l}=e;return a().createElement("g",{transform:`translate(${t},${n})`},a().createElement("text",{x:0,y:0,dy:16,textAnchor:"middle",fill:"#666"},p().date(null==r?void 0:r.value,it(l))))},ct=(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"}}),pt=(0,s.cond)([[(0,s.equals)(qe.HOUR),(0,s.always)("LT MMM D")],[(0,s.equals)(qe.DAY),(0,s.always)("ll")]]),ut=e=>{let{active:t,payload:n,label:r,step:l,events:o}=e;const i=ct();return t&&a().createElement("div",{className:i.tooltipWrapper},a().createElement("p",{className:i.tooltipTitle},p().date(r,pt(l))),n.filter((e=>{let{name:t}=e;return o.includes(t)})).map((e=>{let{color:t,name:n,value:r}=e;return a().createElement("p",{key:n},a().createElement("span",{style:{background:t},className:i.tooltipItemColor}),`${tt(n)}: ${r}`)})))};var dt=n(23883);const mt=e=>{let{payload:t,selectedItems:n,onClick:r}=e;const l=ct();return a().createElement("div",{className:l.legend},t.map((e=>{let{id:t,color:o,value:i}=e;const s=n.includes(t);return a().createElement("div",{key:t,className:l.legendItem},a().createElement(dt.Z,{title:s?p().text("Hide"):p().text("Show")},a().createElement("div",{style:s?{background:o}:{border:`${o} 1px solid`},className:l.legendItemColor,onClick:()=>r(t)})),tt(t),a().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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ft.apply(this,arguments)}const ht=e=>{let{data:t,width:n,height:l,step:i}=e;const[c,p]=(0,r.useState)((0,s.pluck)("event",t)),[u,d]=(0,r.useState)(null),{cartesianGrid:m,tooltip:f,xAxis:h,yAxis:g,line:y,legend:E}={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,r.useMemo)((()=>ot(i,t)),[i,t]),v=(0,r.useMemo)((()=>((e,t)=>{const n=(0,s.chain)((0,s.pipe)((0,s.prop)("data"),(0,s.pluck)("count")))(e),r=Math.min(...n),a=Math.max(...n);return Math.abs(a-r)<8?[0,7]:[0,"auto"]})(b)),[b]);return a().createElement(We.wW,{width:n,height:l},a().createElement(We.q3,m),a().createElement(We.Kc,ft({},h,{tick:a().createElement(st,{step:i})})),a().createElement(We.B2,ft({},g,{tickCount:8,domain:v})),b.map((e=>{let{event:t,data:n}=e;const r=c.includes(t);return a().createElement(We.x1,ft({key:t,stroke:nt(t),name:t,data:n,dot:r&&{r:5,strokeWidth:2},activeDot:r&&{r:5,strokeWidth:2,onMouseEnter:()=>d(t),onMouseLeave:()=>d(null)},strokeOpacity:r?1:0},y))})),a().createElement(We.De,ft({content:a().createElement(mt,{selectedItems:c,onClick:e=>{p((0,s.ifElse)((0,s.includes)(e),(0,s.without)([e]),(0,s.append)(e)))}}),payload:b.map((e=>{let{event:t,total:n}=e;return{id:t,type:"square",color:nt(t),value:n}}))},E)),a().createElement(We.u,ft({},f,{content:a().createElement(ut,{step:i,events:u?[u]:c})})))};var gt=n(19701);const yt=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRemove:c}=e;const{id:p,title:d}=t,[m,f]=(0,r.useState)(o.bZE.LAST_WEEK),{state:g,data:y,step:E,reload:b}=(e=>{const[t,n]=(0,r.useState)([]),[a,l]=(0,r.useState)(Ke(e)),[o,i]=(0,r.useState)(h.o.INIT),c=(0,gt._)(),p=e=>{console.error(e),i(h.o.ERROR),n([])},u=(0,r.useCallback)((()=>{i(h.o.LOADING),l(Ke(e)),n([]);const t=(0,s.pipe)(rt,c,(0,s.andThen)((e=>{i(h.o.LOADED),n(e)})),(0,s.otherwise)(p));t(e)}),[e.toString()]),d=()=>{try{u()}catch(e){p(e)}};return(0,r.useEffect)((()=>{d()}),[u]),{state:o,data:t,step:a,reload:d}})(m);return(0,u.T)({state:g,reload:b}),a().createElement(O.Z,{id:p},a().createElement(N,{title:d,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRefresh:b,onRemove:c},a().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"}}})),a().createElement(K,{loadingState:g,onRefresh:b,data:y},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(ht,{data:t,width:n,height:r,step:E})})))}));var Et=n(56215);function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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,s.pipe)((0,s.prop)("group"),Ot),wt=(0,s.curry)(((e,t)=>t.map((t=>{const n=xt(t);return bt({},t,{label:(0,o.nt9)(e,n).label})})))),St=(0,s.curry)(((e,t)=>{const n=(0,s.pipe)(xt,(0,o.io3)(e),(0,s.map)((0,o.nt9)(e)),(0,s.filter)(o.oDv),s.last),r=t.reduce(((e,t)=>{const r=n(t);if(r){const n=(0,o.nIW)(r.uri);return bt({},e,{[n]:(e[n]||0)+t.value})}return e}),{});return Object.entries(r).map((e=>{let[t,n]=e;return{group:t,label:t,value:n}}))})),Tt=(0,s.pipe)(Ot,ie,o.VGB),Rt=(0,s.pipe)((0,s.prop)("uri"),o.nIW),It=(0,s.curry)(((e,t)=>e.find((e=>e.group===t)))),Pt=e=>({label:e,group:e,value:0}),Ct=(0,s.curry)(((e,t)=>{let{entityTypes:n}=e;const r=(0,s.pipe)(Rt,(0,s.either)(It(t),Pt));return n.filter(o.oDv).map(r)})),Mt=[],Dt=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:c}=e;const{id:p,title:d,hideEmpty:m,orderType:g,inheritChildren:y}=t,{data:E,state:b,reload:v}=(e=>{let{orderType:t,inheritChildren:n,hideEmpty:a}=e;const[l,o]=(0,r.useState)([]),[c,p]=(0,r.useState)(h.o.INIT),u=(0,i.useSelector)(f.ZP.selectors.getMetadata),d=u.entityTypes.length,{globalFilter:m,activityFilter:g}=(0,i.useSelector)(f.ZP.selectors.getGlobalSearchRequestOptions),y=(0,i.useSelector)(f.ZP.selectors.getShowSearchByOv),E=e=>{console.error(e),p(h.o.ERROR),o([])},b=(0,r.useCallback)((()=>{p(h.o.LOADING);const e=(0,s.pipe)(fe,(0,s.andThen)((0,s.unless)((0,s.always)(a),Ct(u))),(0,s.andThen)((0,s.when)((0,s.always)(n),St(u))),(0,s.andThen)(wt(u)),(0,s.andThen)(ve),(0,s.andThen)((e=>{p(h.o.LOADED),o(e)})),(0,s.otherwise)(E));e({attribute:"type",pageSize:d,filters:Mt,globalFilter:m,searchByOv:y,activityFilter:g,orderType:t})}),[a,u,n,d,m,y,g,t]),v=()=>{try{b()}catch(e){E(e)}};return(0,r.useEffect)((()=>{v()}),[b]),{state:c,data:l,reload:v}})({hideEmpty:m,orderType:g,inheritChildren:y});(0,u.T)({state:b,reload:v});const x=(0,i.useDispatch)(),w=(0,i.useSelector)(f.ZP.selectors.getMetadata),S=(0,s.pipe)(Tt,Te(w,"type"),f.ui.actions.openSearch,x);return a().createElement(O.Z,{id:p},a().createElement(N,{title:d,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRefresh:v,onRemove:c}),a().createElement(K,{loadingState:b,onRefresh:v,data:E},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(Et.Z,{width:n,height:r,data:t,onItemClick:S})})))})),Nt=(0,M.makeStyles)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 16px"},iframe:{borderWidth:0,width:"100%",height:"100%"}}))),kt=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:r,isFullscreen:l,onRemove:o}=e;const{id:i,title:s,url:c}=t,p=Nt();return a().createElement(O.Z,{id:i},a().createElement(N,{title:s,onToggleFullscreen:n,isUpdated:r,isFullscreen:l,onRemove:o}),a().createElement(_.Z,{className:p.viewContent},a().createElement("iframe",{src:c,frameBorder:"0",className:p.iframe})))}));var Ft=n(98538);let jt;!function(e){e.MY="my",e.TEAM="team"}(jt||(jt={}));var _t=n(44938),zt=n(96379),At=n(80516);function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Lt(e,t,n[t])}))}return e}function Lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ht=(0,s.cond)([[(0,s.equals)(jt.MY),(0,s.always)(o.C82)],[(0,s.equals)(jt.TEAM),(0,s.always)(o.h6J)],[s.T,(0,s.always)((()=>Promise.resolve({data:[]})))]]),Ut=(0,s.pipe)((0,s.propOr)([],"objectURIs"),s.head),Bt=(0,s.startsWith)("changeRequests/"),Vt=(0,s.complement)(s.isEmpty),Gt=(0,s.pipe)((0,s.map)(Ut),(0,s.filter)(o.WgC),(0,s.when)(Vt,o.DnY)),Wt=(0,s.pipe)((0,s.map)(Ut),(0,s.filter)(Bt),(0,s.map)((0,s.pipe)(o.E6I,(0,s.otherwise)((0,s.always)(null)))),(e=>Promise.all(e))),Yt=(0,s.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:r}=e;const a=e=>(0,s.path)([e,0],n),l=e=>{const{type:t}=a(e);return"CREATE_ENTITY"==t||"CREATE_RELATIONSHIP"==t?r+"/changes/"+e:e};return(0,s.pipe)(s.keys,(0,s.filter)(a),(0,s.sort)((0,s.descend)((0,s.pipe)(a,(0,s.prop)("createdTime")))),(0,s.map)((e=>Zt({},t[e],{uri:l(e)}))))(t)},qt=(e,t,n)=>(t=(0,s.reject)(s.isNil,t),n.map((0,s.pipe)((0,s.when)((0,s.pipe)(Ut,o.WgC),(e=>t=>{const n=e.find((0,s.propEq)("uri",Ut(t)));return n?Zt({},t,{objects:[n]}):t})(e)),(0,s.when)((0,s.pipe)(Ut,Bt),(e=>t=>{const n=e.find((0,s.propEq)("uri",Ut(t)));return n?Zt({},t,{objects:$t(n)}):t})(t))))),Kt=(0,s.curry)((async(e,t)=>{let{workflowPath:n,environment:r,tenant:a,assignee:l,max:o,offset:i}=t;const s=Ht(e),{data:c,total:p}=await s({workflowPath:n,environment:r,tenant:a,assignee:l,max:o,offset:i}),[u,d]=await Yt(c);return{data:qt(u,d,c),total:p}})),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:r}=e;const l=Qt();return a().createElement(_e.Z,{value:t,screen:r,className:l.entityLabel},(0,o.idV)(n))},en=e=>{let{object:t,metadata:n,processType:r}=e;if("startObjectUri"in t&&"endObjectUri"in t){const e=(0,o.V3K)(n,t.type);return a().createElement(a().Fragment,null,e.label," ",p().text("from")," ",a().createElement(Jt,{uri:t.startObjectUri,label:t.startObjectLabel})," ",p().text("to")," ",a().createElement(Jt,{uri:t.endObjectUri,label:t.endObjectLabel}))}{const e=(0,s.cond)([[(0,s.always)((0,s.equals)(r,o.Yj_.potentialMatchReview)),(0,s.always)("potentialMatches")],[(0,s.propSatisfies)(o.FP6,"uri"),(0,s.always)("dcrReview")],[s.T,(0,s.always)("profile")]])(t);return a().createElement(Jt,{uri:(0,o.wwR)(t),label:t.label,screen:e})}},tn=e=>{let{task:t,showAssignee:n}=e;const r=Qt(),l=t.objects||[],[s]=l,c=(0,i.useSelector)(f.ZP.selectors.getMetadata),u=s&&(0,o.nt9)(c,s.type);return a().createElement("div",{className:F()(r.taskItem,t.priorityClass),"data-reltio-id":"workflow-task-item"},a().createElement(zt.Z,{entityType:u}),a().createElement("div",{className:r.taskInfo},a().createElement("div",{className:r.titleContainer},a().createElement(z.Z,{className:r.taskTitle,variant:"subtitle1"},p().text(t.processDefinitionDisplayName)),a().createElement("div",{className:F()(r.taskDueDate,{[r.overdue]:Xt(t),[r.hidden]:!t.dueDate})},a().createElement(At.Z,{className:r.flag}),p().date(t.dueDate,"L"))),l.map((e=>a().createElement("p",{key:e.uri,className:r.taskDetail},a().createElement(en,{object:e,processType:t.processType,metadata:c})))),a().createElement("p",{className:r.taskDetail},a().createElement("span",{className:r.taskDetailTitle},`${p().text("Created by")}:`),t.createdBy," ",p().text("on")," ",p().date(t.createTime,"L")),n&&t.assignee&&a().createElement("p",{className:r.taskDetail},a().createElement("span",{className:r.taskDetailTitle},`${p().text("Assigned to")}:`),t.assignee),a().createElement("p",{className:r.taskDetail},a().createElement("span",{className:r.taskDetailTitle},`${p().text("Step")}:`),t.displayName)))};var nn=n(56961);const rn=e=>{let{width:t,height:n,tasksCategory:l,tasks:o}=e;const i=(0,r.useCallback)((e=>{let{data:t,index:n}=e;const r=n===t.length-1;return a().createElement("div",null,a().createElement(tn,{task:t[n],showAssignee:l!==jt.MY}),!r&&a().createElement(nn.Z,{light:!0,variant:"inset"}))}),[l]);return a().createElement(_t.Z,{width:t,height:n,data:o,defaultItemSize:115},i)};function an(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,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:c}=e;const{id:d,title:g,pageSize:y=b}=t,E=ee(),[v,x]=(0,r.useState)(0),[w,S]=(0,r.useState)(y),[T,R]=(0,r.useState)(jt.MY),I=(0,r.useMemo)((()=>({tasksCategory:T,max:w,offset:w*v})),[w,v,T]),P=(0,r.useMemo)((()=>({[jt.MY]:p().text("My tasks"),[jt.TEAM]:p().text("Team tasks")})),[]),C=(0,r.useMemo)((()=>Object.keys(P).map((e=>({text:P[e],onClick:()=>R(e)})))),[P]),{state:M,data:D,total:k,reload:F}=(e=>{const{tasksCategory:t}=e,n=(0,r.useMemo)((()=>(0,s.pick)(["max","offset"],e)),[e]),[a,l]=(0,r.useState)([]),[o,c]=(0,r.useState)(h.o.INIT),[p,u]=(0,r.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),y=(0,i.useSelector)(f.ZP.selectors.getUserName),E=t===jt.MY?y:void 0,b=(0,gt._)(),v=e=>{console.error(e),c(h.o.ERROR),l([])},O=(0,r.useCallback)((()=>{c(h.o.LOADING);const e=(0,s.pipe)(Kt(t),b,(0,s.andThen)((e=>{let{data:t,total:n}=e;c(h.o.LOADED),l(t),u(n)})),(0,s.otherwise)(v));e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){an(e,t,n[t])}))}return e}({workflowPath:d,environment:m,tenant:g,assignee:E},n))}),[d,m,g,t,n]),x=()=>{try{O()}catch(e){v(e)}};return(0,r.useEffect)((()=>{x()}),[O]),{state:o,data:a,reload:x,total:p}})(I);return(0,u.T)({state:M,reload:F}),a().createElement(O.Z,{id:d},a().createElement(N,{title:g,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:c,onRefresh:F},a().createElement(Ft.Z,{buttonProps:{className:E.categorySelector,endIcon:a().createElement(He.Z,null),size:"small"},buttonContent:P[T],menuId:"tasks-category-menu",menuItems:C})),a().createElement(K,{loadingState:M,onRefresh:F,data:D,className:E.inboxContent},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(rn,{width:n,height:r,tasksCategory:T,tasks:t})})),!!k&&a().createElement(m.Z,{page:v,count:k,rowsPerPage:w,onChangePage:x,onChangeRowsPerPage:S}))}));var on=n(75067),sn=n(77434),cn=n(7278);const pn=(0,r.memo)((e=>{let{config:t,isUpdated:n,isFullscreen:l,onToggleFullscreen:i,onRemove:c}=e;const{id:d,title:f,exportTypes:g}=t,y=ee(),[E,x]=(0,r.useState)(0),[w,S]=(0,r.useState)(b),T=(0,r.useMemo)((()=>v(b)),[]),[R,I]=(0,r.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:a}=e;const[l,o]=(0,r.useState)([]),[i,c]=(0,r.useState)(0),[p,u]=(0,r.useState)(h.o.INIT),d=(0,gt._)(),m=e=>{console.error(e),u(h.o.ERROR)},f=(0,cn.d)({filter:t,max:n,offset:a}),g=(0,r.useCallback)((()=>{u(h.o.LOADING);const e=(0,s.pipe)(f,d,(0,s.andThen)((e=>{let{data:t,total:n}=e;o(t),c(n),u(h.o.LOADED)})),(0,s.otherwise)(m));e()}),[f]),y=()=>{try{g()}catch(e){m(e)}};return(0,r.useEffect)((()=>{y()}),[g]),{state:p,data:l,total:i,reload:y}})({filter:R,max:w,offset:E*w}),k=(0,r.useCallback)((e=>{I(e),x(0)}),[]);return(0,u.T)({state:P,reload:D}),a().createElement(O.Z,{id:d},a().createElement(N,{title:f,onToggleFullscreen:i,isUpdated:n,isFullscreen:l,onRemove:c,onRefresh:D}),a().createElement("div",{className:y.activityLogFilter},a().createElement(on.Z,{value:R,onChange:k,exportTypes:g})),a().createElement(K,{loadingState:P,onRefresh:D,data:C,className:y.content},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(sn.Z,{width:n,height:r,activities:t})})),!!M&&a().createElement(m.Z,{page:E,count:M,onChangePage:x,rowsPerPage:w,onChangeRowsPerPage:S,rowsPerPageOptions:T,labelRowsPerPage:p().text("Events per page:")}))}));function un(){return un=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},un.apply(this,arguments)}const dn=e=>(0,l.Z)(e),mn=dn(pn),fn=dn(kt),hn=dn(Re),gn=dn(Dt),yn=dn(te),En=dn(Le),bn=dn(ln),vn=dn(yt);class On{}On.ViewTypes=o.dZX,On.getComponent=e=>{let{config:t,type:n,isUpdated:r,isFullscreen:l,onToggleFullscreen:o,onRemove:i}=e;const s={isUpdated:r,isFullscreen:l,onToggleFullscreen:o,onRemove:i};switch(n){case On.ViewTypes.ActivitiesViewFacet:return a().createElement(mn,un({config:t},s));case On.ViewTypes.CustomActionViewFacet:return a().createElement(fn,un({config:t},s));case On.ViewTypes.DashboardFacet:return a().createElement(hn,un({config:t},s));case On.ViewTypes.EntitiesByTypeViewFacet:return a().createElement(gn,un({config:t},s));case On.ViewTypes.FilteredSavedSearchesFacet:return a().createElement(yn,un({config:t},s));case On.ViewTypes.FilteredEntitiesViewFacet:return a().createElement(En,un({config:t},s));case On.ViewTypes.NotificationInboxFacet:return a().createElement(bn,un({config:t},s));case On.ViewTypes.ProfileStatsFacet:return a().createElement(vn,un({config:t},s))}},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 r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function a(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,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}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 s=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+c+" 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=r,t.componentWillReceiveProps=a),"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 p=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;p.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>o}),r.__suppressDeprecationWarning=!0,a.__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]="9d3e10b1-a030-4cd4-9ae5-52470ec5dca1",e._sentryDebugIdIdentifier="sentry-dbid-9d3e10b1-a030-4cd4-9ae5-52470ec5dca1")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1623"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[6531],{89323:(e,t,n)=>{var r=n(71600);t.Z=void 0;var a=r(n(68671)),l=n(52322),o=(0,a.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 r=n(71600);t.Z=void 0;var a=r(n(68671)),l=n(52322),o=(0,a.default)((0,l.jsx)("path",{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"}),"Flag");t.Z=o},24648:(e,t,n)=>{var r=n(71600);t.Z=void 0;var a=r(n(68671)),l=n(52322),o=(0,a.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 r=n(31461),a=n(7896),l=n(24328),o=n(6277),i=n(69075),s=n(65992),c=n(43853),p=n(33552),u=n(40602),d=n(52322);const m=["className"],f=(0,s.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,a.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,c.Z)({props:e,name:"MuiListItemIcon"}),{className:s}=n,h=(0,r.Z)(n,m),g=l.useContext(u.Z),y=(0,a.Z)({},n,{alignItems:g.alignItems}),E=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,i.Z)(r,p.f,n)})(y);return(0,d.jsx)(f,(0,a.Z)({className:(0,o.default)(E.root,s),ownerState:y,ref:t},h))}))},153:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(89323);const s=(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"}}),c=e=>{const t=t=>{const n=s();return a().createElement("div",{className:n.dragHandleContainer},a().createElement("div",{className:n.dragHandleVisibilityArea},a().createElement("div",{className:o()("viewDraggableHandle",n.dragHandle)},a().createElement(i.Z,{className:n.dragIcon}))),a().createElement(e,t))};return t.displayName="WithDragHandle",t}},33117:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(2507),s=n.n(i),c=n(82056),p=n(80852),u=n(95341),d=n(40007),m=n(17512),f=n(78223),h=n(32701),g=n(79573),y=n(19540);function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}const b=e=>a().createElement("svg",E({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{d:"M10 18h3v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1H8V8H6a1 1 0 01-1-1V3a1 1 0 011-1h6a1 1 0 011 1v4a1 1 0 01-1 1h-2v3h3v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1h-3v5z",fill:"#000",stroke:"none",strokeWidth:1,fillRule:"evenodd"}));function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}const O=e=>a().createElement("svg",v({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("rect",{fill:"#000",x:9,y:9,width:6,height:6,rx:1,stroke:"none",strokeWidth:1,fillRule:"evenodd"})),x=(0,n(72342).makeStyles)({container:{"& > $marginWrapper:first-child":{paddingLeft:"4px"}},listItem:{paddingLeft:"1px",paddingTop:"2px",paddingBottom:"2px",transition:"none","&:hover":{"& $itemAfter":{background:"linear-gradient(to right, rgba(235, 235, 235, 0.2), rgba(235, 235, 235, 1) 100%)"}},"&$listItemFocus":{"& $itemAfter":{background:"linear-gradient(to right, rgba(219, 219, 219, 0.2), rgba(219, 219, 219, 1) 100%)"}},"&:focus":{outline:"none"}},listItemFocus:{},icon:{opacity:.29,width:"16px",height:"16px",flexShrink:0,marginRight:"6px",marginLeft:"8px"},recommendedIcon:{width:"18px",height:"18px",marginRight:"5px",marginLeft:"7px",flexShrink:0},logoIcon:{width:"18px",height:"18px",flexShrink:0,marginRight:"4px"},itemAfter:{position:"absolute",right:0,top:0,width:"40px",height:"100%",pointerEvents:"none",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)"},itemText:{padding:"0",margin:0,"& span":{fontSize:"0.8125rem",letterSpacing:"normal",whiteSpace:"nowrap"}},checkbox:{opacity:.34,padding:0,marginLeft:"14px","&$checked":{opacity:1,background:"none"}},checked:{},marginWrapper:{display:"flex",alignItems:"center"},defaultCursor:{cursor:"default"},itemTooltip:{margin:"4px 0"},marginText:{marginLeft:"21px"},itemTextWrapper:{display:"flex",alignItems:"center"}}),w=e=>{let{attrType:t={}}=e;const n=x(),r=(e=>{switch(e.type){case m.oS0.TYPE_IMAGE:case m.oS0.TYPE_NESTED:return y.Z;case m.oS0.TYPE_REFERENCE:return b;default:return O}})(t);return a().createElement(r,{className:n.icon})};var S=n(33286);function T(){return T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}const R=(0,f.Z)((e=>a().createElement("svg",T({width:13,height:18,viewBox:"0 0 13 18",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("g",{transform:"translate(-3 -1)",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},a().createElement("path",{fill:"#FF4081",d:"M5.833 10h3.75v6.667l-3.75 1.666z"}),a().createElement("path",{fill:"#CE0C4E",d:"M13.333 10v8.333l-3.75-1.666V10z"}),a().createElement("circle",{fill:"#FFC058",cx:9.583,cy:7.917,r:6.25}),a().createElement("circle",{fill:"#FFCD7B",cx:9.583,cy:7.917,r:5.417}),a().createElement("path",{fill:"#FFFBB5",d:"M8.333 11.667L5 8.462l.933-.898 2.4 2.308L13.4 5l.933.897z"}))))),I=(0,r.memo)((e=>{let{groupId:t,data:n,checked:r=!1,isFocused:l=!1,isRequired:i=!1,label:f,labelInText:y,level:E,onClick:b=g.ZT,hideCheckBox:v=!1,hideIcon:O=!1,notSelectable:T=!1,disableHorizontalScrollbar:I=!1,style:P={},subItemMargin:C=20,LogoIcon:M,className:D,disableNonSelectable:N,disableGutters:k}=e;const F=x(),{attrType:j}=n||{},_=!(v&&(0,m.QZu)(j)||T),z=!!M;return a().createElement(d.Z,{value:y||f,className:F.itemTooltip,placement:"bottom-end"},a().createElement(u.Z,{className:o()(F.container,F.listItem,{[F.defaultCursor]:!_},D),onClick:_?()=>b(n,!r,t):void 0,style:P,dense:!0,disabled:N&&T,classes:{focusVisible:F.listItemFocus,selected:F.listItemFocus},selected:l,tabIndex:-1,disableGutters:k},!v&&a().createElement(p.Z,{checked:r,disableRipple:!0,disabled:!_,className:o()(F.checkbox,{[F.checked]:r}),tabIndex:-1}),a().createElement(S.Z,{margin:C,level:E,className:F.marginWrapper},a().createElement(a().Fragment,null,!O&&(e=>"recommended"===t?a().createElement(R,{className:F.recommendedIcon,tooltipTitle:s().text("Recommended"),showForDisabled:!0}):a().createElement(w,{attrType:e}))(j),a().createElement("div",{className:o()(F.itemTextWrapper,{[F.marginText]:O})},z&&a().createElement(M,{className:F.logoIcon}),a().createElement(c.Z,{primary:a().createElement(a().Fragment,null,f,i&&a().createElement(h.Z,null)),className:F.itemText})))),_&&I&&a().createElement("div",{className:F.itemAfter})))}))},55234:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(24328),a=n.n(r),l=n(2507),o=n.n(l),i=n(71153),s=n.n(i),c=n(50914),p=n(52730),u=n(50673),d=n(17512),m=n(79312),f=n(15793),h=n(19602),g=n(59952),y=n(33117),E=n(72342);function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const O={input:e=>b({},e,{fontSize:"14px"}),menuPortal:e=>b({},e,{zIndex:1300})},x=(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 w=e=>{let{entityType:t,selectedAttributes:n,className:l,onChange:i,title:E,disableUnderline:b,menuPlacement:v="bottom"}=e;const w=(0,p.useSelector)(u.ZP.selectors.getMetadata),S=x(),T=(0,r.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,r)=>{if(r.hidden)return e;const a=`${n&&n+" / "}${r.label}`;e.push({label:r.label,value:r.uri,attrType:r,chipLabel:a,level:t});const l=(0,d.EUG)(w,r);return e.concat(l?T(l,t+1,a):[])}),[])}),[w]),R=(0,r.useMemo)((()=>T((null==t?void 0:t.attributes)||[])),[t,T]);return a().createElement("div",{className:s()(S.root,l),"data-reltio-id":"attribute-selector"},a().createElement(m.Z,{className:S.title,variant:"subtitle1"},E||o().text("Attribute")),a().createElement(f.Z,{value:n,options:R,TextFieldProps:{InputProps:{disableUnderline:b},classes:{root:S.dropDownInput}},components:{DropdownIndicator:g.Z,MultiValue:e=>{let{data:t}=e,n=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["data"]);return a().createElement(h.Z,n,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:n,data:r,label:l,innerProps:o}=e;return a().createElement("div",o,a().createElement(y.Z,{checked:n,level:r.level,data:r,label:l,labelInText:l,isFocused:t}))}},onChange:(0,c.pipe)((0,c.defaultTo)([]),i),styles:O,classes:S,menuPlacement:v,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))}},30488:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(38748),a=n(50548);const l=e=>t=>(0,a.l)(r.X,e,t)},33945:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(2507),s=n.n(i),c=n(79573),p=n(50914),u=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]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){f(e,t,n[t])}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h=e=>{let{classes:t={},count:n,rowsPerPageOptions:l,page:i,onChangePage:f,rowsPerPage:h,onChangeRowsPerPage:g,basicTableRef:y,labelRowsPerPage:E}=e;const b=d(),v=(0,r.useCallback)((()=>{(0,p.pathOr)(p.identity,["current","resetScrollbarPosition"],y)()}),[y]),O=(0,r.useCallback)((e=>{f(e),v()}),[f,v]),x=(0,r.useCallback)((e=>{f(0),g(e),v()}),[f,g,v]);return a().createElement(u.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:E||s().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return s().text("${fromRow}-${toRow} of ${countRows}",{fromRow:s().number(t,"0,0"),toRow:s().number(n,"0,0"),countRows:s().number(r,"0,0")})},count:n,rowsPerPageOptions:l,page:i,onPageChange:(0,p.pipe)((0,p.nthArg)(1),O),rowsPerPage:h,onRowsPerPageChange:(0,p.pipe)(c.NA,x)})};h.displayName="BasicTablePagination";const g=(0,r.memo)(h)},82565:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),l=n(12115);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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 s=(0,n(72342).makeStyles)((e=>({basicViewPaper:o({display:"flex",flexDirection:"column"},e.basicView)})));function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const p=(0,r.forwardRef)(((e,t)=>{let{children:n,className:r}=e,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children","className"]);const i=s();return a().createElement(l.Z,c({ref:t,className:r,classes:{root:i.basicViewPaper}},o),n)}));p.displayName="BasicView";const u=p},17998:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),l=n(2507),o=n.n(l),i=n(26482),s=n(79312);const c=(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 p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}const u=e=>{let{title:t="",children:n=null,classes:r={}}=e,l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["title","children","classes"]);const u=c();return a().createElement(i.Z,p({className:r.root,classes:{root:u.toolbar}},l),a().createElement(s.Z,{className:r.title,classes:{root:u.title},variant:"h6"},o().text(t)),n)}},28831:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(39475),s=n(63655);const c=(0,n(72342).makeStyles)({collapseButton:{cursor:"pointer"},expandLess:{transform:"rotate( -180deg )"}});function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}const u=e=>{let{isOpen:t=!1,tooltipTitle:n}=e,r=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["isOpen","tooltipTitle"]);const l=c(),u={icon:s.Z,className:l.collapseButton,iconClassName:o()({[l.expandLess]:t})},d={tooltipTitle:n};return a().createElement(i.k,p({"data-reltio-id":"collapse-button"},u,d,r))}},89902:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(50914);const s=(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%"}}))),c=e=>(0,i.is)(Number,e),p=e=>{let{className:t,width:n=0,maxWidth:l}=e;const i=s(),p=(0,r.useCallback)((e=>(l?100*e/l:0)+"%"),[l]);return n?a().createElement("div",{className:o()(i.bar,t),style:{width:c(n)?p(n):n}}):null}},77875:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(24328),a=n.n(r),l=n(50914),o=n(17512),i=n(53242),s=n(90590),c=n(79573);const p=(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 u=n(7342);const d=["minutes","hours","days","weeks","months","years"],m=e=>{let{interval:[t,n],onChange:r,onFocus:m}=e;const f=p(),h=(0,l.pipe)(c.NA,parseInt,(e=>[e,n]),r),g=(0,l.pipe)((e=>{let{value:n}=e;return[t,n]}),r);return a().createElement("div",{className:f.root},a().createElement(i.Z,{variant:"standard",type:"number",value:t||"",onChange:h,inputProps:{min:1,onFocus:m},InputProps:{classes:{root:f.input}},className:f.inputNumber}),a().createElement(s.Z,{label:"",placeholder:(0,u.Z)(n),className:f.inputUnit,value:{value:n,label:(0,u.Z)((0,o.wsP)(n))},options:d.map((e=>({value:e,label:(0,u.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 r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(50914),s=n(38677),c=n(18960),p=n(55962),u=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}}))),y=(0,f.Z)(d.Z),E=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=i.identity}=e;const l=g(),{disabled:o,text:s,tooltip:c,onClick:p,id:d="",selectable:f,selected:h}=n;return a().createElement(y,{tooltipTitle:c,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{r(e),p(e)},disabled:o,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${d}`},f&&a().createElement(u.Z,{checked:h,color:"primary"}),a().createElement(m.Z,{classes:{root:l.menuText}},s))}));E.displayName="MenuItemRenderer";const b=E;function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function O(e){let{className:t,menuId:n,buttonComponent:l=s.Z,buttonContent:u,menuItems:d=[],buttonProps:m={},popoverProps:f={},onMenuOpen:h=i.identity,onMenuClose:y=i.identity,MenuItemRenderer:E=b}=e;const O=l,x=g(),w=(0,r.useRef)(),[S,T]=(0,r.useState)(!1);(0,p.D)((()=>{S?h():y()}),[S]);const R=(0,r.useCallback)((e=>{null==e||e.stopPropagation(),T((e=>!e))}),[]);return a().createElement(a().Fragment,null,a().createElement(O,v({"data-reltio-id":"drop-down-menu-button",ref:w,className:o()(x.buttonRoot,{[x.selected]:S},t),onClick:R,"aria-pressed":S,"aria-controls":S?n:void 0,"aria-haspopup":"true"},m),u),a().createElement(c.Z,v({id:n,variant:"menu",open:S,autoFocus:!1,classes:{paper:x.paper},anchorEl:w.current,onClose:R,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,MenuListProps:{autoFocusItem:S}},f),d.map(((e,t)=>a().createElement(E,{item:e,key:t,onMenuClose:R})))))}O.displayName="DropDownMenuButton";const x=O},84425:(e,t,n)=>{n.d(t,{Z:()=>z});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),i=n(71153),s=n.n(i),c=n(50914),p=n(78501),u=n(93553),d=n(72342);const m=(0,d.makeStyles)((e=>({addLabel:{display:"flex",padding:"0 7px",height:"35px",alignItems:"center",fontSize:"13px",fontWeight:"500",color:e.palette.primary.main,cursor:"pointer",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",borderTop:"solid 1px rgba(0, 0, 0, 0.14)",backgroundColor:"rgba(0, 0, 0, 0.03)"},addIcon:{height:"18px",width:"18px",padding:"0 9px"}}))),f=(0,d.makeStyles)({singleValue:{fontSize:"14px",lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"17px"}});var h=n(51556);const g=e=>{const{selectProps:{onCreate:t,createLabel:n,inputValue:r,components:l},children:o}=e,i=m();return a().createElement(h.Z,e,o,n&&!(0,c.prop)("Group",l)&&a().createElement("span",{className:i.addLabel,onClick:()=>t(r)},a().createElement(u.Z,{className:i.addIcon}),n))};g.propTypes={children:o().element.isRequired,selectProps:o().object.isRequired};const y=g;var E=n(12350),b=n(49861),v=n(79573),O=n(17512),x=n(90597),w=n(79312);function S(){return S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}function T(e){const{selectProps:{menuIsOpen:t},innerProps:n,children:r}=e,l=f();return!t&&a().createElement(w.Z,S({className:l.singleValue},n),r)}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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}T.propTypes={children:o().node,innerProps:o().object};const P=(0,d.makeStyles)({control:{height:"auto"},dropdownIndicator:{boxSizing:"content-box",transition:"transform .15s ease",padding:e=>(e.height-24)/2+"px 12px",cursor:"pointer",color:"rgba(0, 0, 0, 0.54)"},valueContainer:{marginLeft:"16px",width:0},formControl:{margin:0},filledInputRoot:{backgroundColor:"rgba(0, 0, 0, 0.03)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&.focused":{backgroundColor:"rgba(0, 0, 0, 0.03)"}},filledInputUnderline:{"&:before":{display:"none"}},inputLabel:{color:"rgba(0,0,0,0.6)",fontSize:"14px",paddingLeft:"4px","&.shrink":{paddingLeft:"4px"}}}),C={menu:e=>R({},e,{borderRadius:"0 0 4px 4px",backgroundColor:"#FFFFFFFF",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)",margin:0}),menuList:e=>R({},e,{maxHeight:"208px",padding:"8px 0"}),group:e=>R({},e,{padding:"0 0 8px 0"}),input:e=>R({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:"16px 0 0",padding:0}),option:e=>R({},e,{fontSize:"13px",lineHeight:"15px",height:"32px"})},M={menuList:e=>R({},e,{padding:0})},D={input:e=>R({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:0,padding:0})};function N(){return N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(this,arguments)}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){F(e,t,n[t])}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j=e=>{let{value:t,label:n,createLabel:l,getOptions:o,options:i,height:u=46,onChange:d=c.identity,onCreate:m,onClear:f=c.identity,components:h,textFieldInputRef:g,TextFieldProps:w,classes:S}=e,R=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["value","label","createLabel","getOptions","options","height","onChange","onCreate","onClear","components","textFieldInputRef","TextFieldProps","classes"]);const I=P({height:u}),F=(0,x.a6)(),[j,_]=(0,r.useState)(!1),z=(0,r.useRef)(null),A=o?E.Z:b.Z,Z=(0,c.prop)("ClearIndicator",h)?{}:{IndicatorSeparator:v.Vd,ClearIndicator:v.Vd},L=m?(e,t)=>{m(e,t),_(!1)}:void 0,H=(0,c.prop)("Group",h)?M:{},U=(0,c.isEmpty)(n)?D:{},B=k({},C,H,U),V=k({},I,S);return a().createElement(A,N({placeholder:"",defaultOptions:!0},R,{value:(0,c.defaultTo)(null,t),loadOptions:o,options:i,cacheOptions:!0,onChange:d,onCreate:L,onClear:f,createLabel:l,classes:V,styles:B,components:k({DropdownIndicator:p.Z,LoadingIndicator:v.Vd,SingleValue:T,Menu:y},Z,h),menuPlacement:"auto",TextFieldProps:k({},w,{label:n,variant:"filled",size:"small",classes:k({},(0,c.prop)("classes",w),{root:s()(I.formControl,(0,c.path)(["classes","root"],w))}),inputProps:k({},(0,c.prop)("inputProps",w)),InputProps:k({},(0,c.prop)("InputProps",w),{classes:k({},(0,c.path)(["InputProps","classes"],w),{root:s()(I.filledInputRoot,(0,c.path)(["InputProps","classes","root"],w)),underline:s()({[F.filledInputUnderline]:(0,O.O27)(t)},(0,c.path)(["InputProps","classes","underline"],w)),focused:s()("focused",(0,c.path)(["InputProps","classes","focused"],w))})}),InputLabelProps:k({},(0,c.prop)("InputLabelProps",w),{classes:k({},(0,c.path)(["InputLabelProps","classes"],w),{root:s()(I.inputLabel,(0,c.path)(["InputLabelProps","classes","root"],w)),shrink:s()("shrink",(0,c.path)(["InputLabelProps","classes","shrink"],w))}),shrink:!(0,O.O27)(t)||void 0}),ref:g||z}),inputRef:g||z,menuIsOpen:j,onMenuOpen:()=>_(!0),onMenuClose:()=>_(!1)}))},_={value:o().oneOfType([o().object,o().array]),label:o().string.isRequired,getOptions:o().func,options:o().array,onChange:o().func,onCreate:o().func,onClear:o().func,createLabel:o().string,components:o().object,textFieldInputRef:o().object,TextFieldProps:o().object,height:o().number,classes:o().object};j.propTypes=_;const z=j},96379:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),a=n.n(r),l=n(52730),o=n(50673),i=n(98018);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const c=e=>{const t=(0,l.useSelector)(o.ZP.selectors.getAbsoluteImagePath)||"";return a().createElement(i.ZP,s({},e,{storagePath:(n=t,n.endsWith("/")?n:n+"/")}));var n}},18527:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),l=n(52730),o=n(63532),i=n(98074),s=n(50673);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const p=(0,r.forwardRef)(((e,t)=>{let{value:n,children:p,screen:u,className:d}=e,m=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["value","children","screen","className"]);const f=(0,l.useDispatch)(),h=(0,r.useContext)(o.m),{generateEntityUrl:g}=(0,r.useContext)(i.v),y=(0,l.useSelector)(s.ZP.selectors.getUIPath),E=(0,r.useCallback)((()=>{f(s.ui.actions.openEntity({uri:n,viewId:h,screen:u}))}),[h,n,f,u]);return a().createElement("a",c({ref:t,href:(b=n,g({uiPath:y,uri:b,screen:u})),onClick:e=>{E(),e.stopPropagation(),e.preventDefault()},className:d},m),p);var b}));p.displayName="EntityUriLink";const u=p},7882:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(24328),a=n.n(r);class l extends a().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:()=>c});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(17998);const s=(0,n(72342).makeStyles)({container:{padding:"0 16px",minHeight:"48px",".react-draggable &":{paddingTop:"4px"}},title:{fontSize:"16px",lineHeight:"19px",justifyContent:"flex-start"}}),c=e=>{let{className:t,title:n,children:r}=e;const l=s();return a().createElement(i.Z,{title:n,classes:{root:o()(l.container,t),title:l.title}},r)}},12350:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(27308);const a=(0,n(4515).Z)(r.ZP)},15793:(e,t,n)=>{n.d(t,{Z:()=>P});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),i=n(50914),s=n(70347);const c=(0,n(4515).Z)(s.ZP);var p=n(49861),u=n(12350),d=n(95341),m=n(80852),f=n(71153),h=n.n(f),g=n(40007);function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function E(e){const{innerProps:t,innerRef:n,children:r,isFocused:l,isSelected:o,selectProps:{classes:i},label:s}=e;return a().createElement(d.Z,y({className:h()(i.option,{[i["option--selected"]]:o}),ref:n,selected:l,component:"div"},t),a().createElement(m.Z,{color:"primary",checked:o}),a().createElement(g.Z,{value:s},a().createElement("div",{className:i["option--item"]},r)))}E.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:E};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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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 T=(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 R=0;function I(e){const{label:t,creatable:n,getOptions:l,loadingIndicator:o,components:s,classes:d,styles:m,onChange:f,onInputChange:h,menuPlacement:g="auto"}=e,y=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["label","creatable","getOptions","loadingIndicator","components","classes","styles","onChange","onInputChange","menuPlacement"]),E=n?c:l?u.Z:p.Z,[v,S]=(0,r.useState)(""),I=T((0,i.omit)(["classes"],e)),P="custom-select-"+R++,C=w({},b,s),M=(0,O.ze)(I,d),D=w({indicatorSeparator:e=>w({},e,{margin:"10px 0"}),loadingIndicator:e=>w({},e,{display:o?e.display:"none"}),loadingMessage:e=>w({},e,{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'})},m),N=t?{inputId:P,TextFieldProps:w({label:t,InputLabelProps:{htmlFor:P,shrink:!(!e.value||!e.value.length)||void 0,className:M.label}},e.TextFieldProps)}:{};return a().createElement(E,x({isMulti:!0,inputId:P,inputValue:v,onChange:function(e,t){f(e,t),"create-option"===t.action&&(S(""),h("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;h(e,{action:n}),"set-value"!==n&&S(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:M,components:C,styles:D,menuPlacement:g,loadOptions:l},N,y))}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 r=n(24328),a=n.n(r),l=n(66244),o=n.n(l),i=n(44443),s=n(50914),c=n(71153),p=n.n(c);function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}const f=e=>{let{x:t,y:n,width:r,height:a,id:l,minWidth:o,minHeight:i,maxWidth:s,maxHeight:c,isStatic:p}=e;return{x:t,y:n,w:r,h:a,minW:o,minH:i,maxW:s,maxH:c,i:l,static:p}},h=e=>{let{x:t,y:n,w:r,h:a,maxW:l,minW:o,minH:i,maxH:s,i:c}=e;return{x:t,y:n,width:r,height:a,minWidth:o,minHeight:i,maxWidth:l,maxHeight:s,id:c,isStatic:m(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},g=e=>(e||[]).map(h),y=(0,s.curry)(((e,t)=>(e||[]).find((0,s.propEq)("id",t)))),E=(0,s.curry)(((e,t,n)=>(0,s.mergeAll)([n,(0,s.pick)(e,t)]))),b=(0,s.curry)(((e,t,n)=>(n||[]).map((n=>(0,s.pipe)((0,s.prop)("id"),y(t),(0,s.defaultTo)({}),E(e,s.__,n))(n))))),v=(0,s.curry)(((e,t)=>t.map((n=>{const r=t.filter((e=>e.y===n.y)).map((t=>e[t.id]||!t.autosizing&&t.minHeight||0)),a=Math.max(...r);if(n.height!==a&&a){const e=n.autosizing?{minHeight:a,maxHeight:a}:{};return u({},n,e,{height:a})}return n})))),O=(0,s.curry)(((e,t)=>t.map((t=>{const n=e[t.id];return n&&t.autosizing?u({},t,{minHeight:n,maxHeight:n,height:n}):t}))));var x=n(79573),w=n(72342),S=n(17512);const T=(0,w.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,S.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 R(){return R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R.apply(this,arguments)}const I={cols:4,rowHeight:30,margin:[15,15]},P=e=>{let{views:t,layout:n,layoutOptions:l=I,onLayoutChanged:c=x.ZT,draggableHandle:u,LayoutItem:d,onRemove:m,onDrop:E,droppingItem:w,isDroppable:S,isStatic:P,classes:C}=e;const M=(0,r.useRef)(),D=(0,r.useRef)({}),N=T(),[k,F]=(0,r.useState)(null),[j,_]=(0,r.useState)(null),[z,A]=(0,r.useState)(0),{cols:Z,rowHeight:L,margin:H}=l,U=(0,r.useMemo)((()=>(e=>(e||[]).map(f))(n)),[n]),B=(0,s.pipe)(g,b(["autosizing"],n),(0,s.ifElse)((0,s.always)(P),v(D.current),O(D.current)),c),V=(0,r.useCallback)((e=>_((t=>t?null:e))),[]),G=null!==j;return a().createElement(a().Fragment,null,a().createElement(i.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>A(e)}),!!z&&a().createElement(o(),{innerRef:M,layout:U,cols:Z,draggableHandle:u,autoSize:!0,rowHeight:L,width:z,margin:H,onLayoutChange:P?void 0:B,isResizable:!P&&!G,isDraggable:!P&&!G,className:p()(null==C?void 0:C.root,N.gridLayout,{[N.gridFullscreen]:G}),onDrop:(e,t,n)=>{E&&E(g(e),h(t),n)},droppingItem:w,isDroppable:!P&&S,onResizeStart:(e,t)=>F(t.i),onResizeStop:()=>F(null),"data-reltio-id":"reltio-grid-layout"},U.map((e=>{const r=j===e.i,o=k===e.i,s=(y(n,e.i)||{}).autosizing?{AutosizeComponent:(c=e.i,a().createElement(i.Z,{handleHeight:!0,onResize:(e,t)=>{if(t){const e=((e,t)=>{const{margin:n,rowHeight:r}=t;return Math.ceil((e+n[1])/(r+n[1]))})(t,l);e!==D.current[c]&&(D.current[c]=e,B(U))}}}))}:{};var c;return a().createElement(d,R({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:V,onRemove:m,className:p()(null==C?void 0:C.item,{static:P,fullscreen:r,[N.isResizing]:o}),isFullscreen:r},s))}))))};P.displayName="ReltioGridLayout";const C=(0,r.memo)(P)},32701:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(24328),a=n.n(r);const l=(0,n(72342).makeStyles)({mark:{color:"red"}}),o=()=>{const e=l();return a().createElement("span",{className:e.mark},"*")}},90590:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),a=n.n(r),l=n(84425),o=n(13980),i=n.n(o),s=n(79312);const c=(0,n(72342).makeStyles)({value:{color:"rgba(0, 0, 0, 0.87)"},placeholder:{color:"rgba(0, 0, 0, 0.38)",fontSize:"14px !important"}}),p=e=>{let{selectProps:{menuIsOpen:t},data:{label:n}}=e;const r=c();return!t&&a().createElement(s.Z,{variant:"body2",classes:{root:r.value}},n)};p.propTypes={selectProps:i().shape({menuIsOpen:i().bool}),data:i().shape({label:i().string})};const u=p;function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}const m=e=>{const t=c(),{innerProps:n={},children:r}=e;return a().createElement(s.Z,d({className:t.placeholder},n),r)};function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}m.propTypes={children:i().node,innerProps:i().object,selectProps:i().object.isRequired};const h={SingleValue:u,Placeholder:m},g=(0,r.memo)((e=>{let t=f({},e);return a().createElement(l.Z,f({components:h},t))}))},79935:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(24328),a=n.n(r);const l=()=>a().createElement("div",{style:{flex:1}})},15791:(e,t,n)=>{n.d(t,{Z:()=>O});var r=n(24328),a=n.n(r),l=n(52730),o=n(2507),i=n.n(o),s=n(50914),c=n(71153),p=n.n(c),u=n(79312),d=n(15793),m=n(59952),f=n(17512),h=n(50673),g=n(72342);function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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 b={input:e=>y({},e,{fontSize:"14px"}),loadingMessage:e=>y({},e,{fontSize:"14px"}),menuPortal:e=>y({},e,{zIndex:1300})},v=(0,g.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"}}),O=e=>{let{selectedUsers:t,onChange:n,className:o,disableUnderline:c}=e;const g=v(),y=e=>({value:e,label:e}),E=e=>e.map(y),O=(0,l.useSelector)(h.ZP.selectors.getTenant),x=(0,l.useSelector)(h.ZP.selectors.getServicesPath),w=(0,r.useRef)();return a().createElement("div",{className:p()(g.root,o),"data-reltio-id":"user-selector"},a().createElement(u.Z,{className:g.title,variant:"subtitle1"},i().text("User")),a().createElement(d.Z,{value:E(t),onChange:(0,s.pipe)((0,s.defaultTo)([]),(0,s.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(w.current||(w.current=(0,f.kz_)({tenant:O,servicesPath:x})),w.current.then((0,s.pipe)((0,s.pluck)("username"),(e=>t=>e?t.filter((t=>f.P6Y.strings.search(t,e))):t)(e),E))),TextFieldProps:{InputProps:{disableUnderline:c},className:g.dropDownInput},components:{DropdownIndicator:m.Z},styles:b,classes:g,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))}},20414:(e,t,n)=>{let r;n.d(t,{I:()=>r}),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"}(r||(r={}))},57312:(e,t,n)=>{n.d(t,{te:()=>u,Io:()=>d,rx:()=>m,_V:()=>f,Xr:()=>h});var r=n(17512),a=n(50914),l=n(2507),o=n.n(l),i=n(20414);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,a.path)(["data","type"]),u=e=>{const{items:t,label:n}=e,[r]=t||[];return p(r)||n},d=e=>{const{items:t=[],label:n}=e,r=e=>{return t=p(e)||n,(0,a.pipe)(a.values,(0,a.includes)(t))(i.I);var t},l=(0,a.filter)(r)(t);return t.length!==l.length&&console.error("Activities not implemented:",(0,a.reject)(r)(t)),s({},e,{items:l,itemsTotal:l.length})},m=e=>(0,a.pipe)((0,a.propOr)([],"items"),(0,a.groupBy)(p),a.values,(0,a.ifElse)((e=>{let{length:t}=e;return t>1}),(0,a.map)((t=>s({},e,{items:t,itemsTotal:t.length}))),(()=>[e])))(e),f=(e,t,n,l)=>{const o=(0,r.zeJ)(n,t),i=(0,r.PFL)(o),s=(0,r.mB6)({attributePresentations:l,dataTypeDefinition:i});return(0,a.isNil)(e)?"":"string"==typeof e?o?s(e):e:Object.entries(e).flatMap((e=>{let[a,o]=e;return o.map((e=>f(e.value,(0,r.tCm)(t,a),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:()=>E});var r=n(24328),a=n.n(r),l=n(95038),o=n.n(l),i=n(2507),s=n.n(i),c=n(50914),p=n(17512),u=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"}}),y=o().localeData().longDateFormat("L"),E=e=>{let{values:t,onChange:n,onFocus:l=u.ZT}=e;const o=y,i=(0,r.useRef)(null),[E,b]=(0,r.useState)(!1),v=g(),O=(0,r.useCallback)((()=>{b((e=>!e)),l()}),[l]);return a().createElement("div",{className:v.root},a().createElement(d.Z,{fullWidth:!0,value:t.map((e=>((e,t)=>(0,c.isNil)(e)?`${t}`:`${(0,p.mB6)({dataTypeDefinition:{type:p.oS0.TYPE_ACTIVENESS_DATE}},e)}`)(e,o))).join(" — "),onClick:O,variant:"filled",ref:i,InputProps:{endAdornment:a().createElement(f.Z,{selectProps:{classes:v,menuIsOpen:E},innerProps:{}}),disableUnderline:(0,c.isNil)(t),readOnly:!0,classes:{root:v.inputRoot,input:v.input}},InputLabelProps:{shrink:!1},placeholder:s().text(`${o} — ${o}`)}),a().createElement(m.ZP,{open:E,anchorEl:i.current,onClose:()=>{b(!1)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2},a().createElement(h.Z,{values:t,onApply:e=>{n(e),b(!1)},type:p.oS0.TYPE_ACTIVENESS_DATE})))}},98074:(e,t,n)=>{n.d(t,{v:()=>o});var r=n(24328),a=n.n(r),l=n(17512);const o=a().createContext({generateEntityUrl:l.OuZ,generatePivotingUrl:l.FQ2,generateTagUrl:l.W$R});o.displayName="UrlGeneratorsContext"},63532:(e,t,n)=>{n.d(t,{m:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="ViewIdContext"},19540:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(24328),a=n.n(r);function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}const o=e=>a().createElement("svg",l({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{d:"M14 11v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1h-3v1a1 1 0 01-1 1H6a1 1 0 01-1-1v-4a1 1 0 011-1h4a1 1 0 011 1v1h3z",fill:"#000",stroke:"none",strokeWidth:1,fillRule:"evenodd"}))},43129:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),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 a().createElement(l.Z,{color:"primary",className:e.loader,"data-reltio-id":"dashboard-item-loader"})}},60355:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(24328),a=n.n(r),l=n(18960),o=n(95341),i=n(83993),s=n(82056),c=n(87037),p=n(50985);const u=(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,r.useState)(null),m=Boolean(n),f=u(),h=()=>d(null),g=e=>()=>{h(),e()};return a().createElement(a().Fragment,null,a().createElement(c.Z,{className:f.openIcon,"aria-controls":"menu","aria-haspopup":"true",onClick:e=>d(e.currentTarget),size:"large"},a().createElement(p.Z,null)),a().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:r,action:l,disabled:c=!1}=e;return a().createElement(o.Z,{key:t,onClick:g(l),disabled:c},a().createElement(i.Z,null,n),a().createElement(s.Z,{classes:{primary:f.menuItemTitle}},r))}))))}},65298:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),a=n.n(r),l=n(82565),o=n(52388);const i=(0,n(72342).makeStyles)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden",boxShadow:"none"}}))),s=e=>{let{id:t,children:n}=e;const r=i();return a().createElement(o.H.Provider,{value:t},a().createElement(l.Z,{className:r.view,"data-reltio-id":`layout-item-${t}`},n))}},52388:(e,t,n)=>{n.d(t,{H:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="DashboardViewIdContext"},3330:(e,t,n)=>{n.d(t,{Z:()=>xn});var r=n(24328),a=n.n(r),l=n(153),o=n(17512),i=n(52730),s=n(50914),c=n(2507),p=n.n(c),u=n(73093),d=n(62321),m=n(33945),f=n(50673),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 y=e=>{let{options:t,offset:n,max:a}=e;const[l,i]=(0,r.useState)([]),[c,p]=(0,r.useState)(0),[u,d]=(0,r.useState)(h.o.INIT),m=e=>{console.error(e),d(h.o.ERROR),i([])},f=(0,r.useCallback)((()=>{d(h.o.LOADING);const e=e=>{i(e.result||[]),p(e.total),d(h.o.LOADED)},r=t||{},{countResults:l}=r,c=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(r,["countResults"]);(async()=>{const{result:t=[],total:r}=await(0,o.cZV)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){g(e,t,n[t])}))}return e}({offset:n,max:a},c));if(l){const n=t.map((e=>(0,o.OaI)((0,o.dWE)(e.query)))),a=(await(0,o.RGr)(n)).reduce(((e,t,n)=>{let{status:r,value:a,reason:l}=t;switch(r){case"fulfilled":return(0,s.assocPath)([n,"count"],a.total,e);case"rejected":console.error(l)}return e}),t);e({result:a,total:r})}else e({result:t,total:r})})().catch(m)}),[t,a,n]),y=()=>{try{f()}catch(e){m(e)}};return(0,r.useEffect)((()=>{y()}),[f]),{state:u,data:l,reload:y,total:c}},E=[10,25,50,100],[b]=E,v=e=>E.filter((t=>t!==e)).concat(e).sort(s.subtract);var O=n(65298),x=n(52194),w=n(19926),S=n(25744),T=n(63436),R=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:s,children:c}=e;const u=(0,r.useContext)(P.H),d=(0,r.useMemo)((()=>[{id:"refresh",title:p().text("Refresh"),icon:a().createElement(I.Z,{fontSize:"small"}),active:!!s,action:()=>s()},{id:"fullscreen",title:p().text("Fullscreen"),icon:a().createElement(S.Z,{fontSize:"small"}),active:!o,action:()=>n(u)},{id:"exitFullscreen",title:p().text("Exit fullscreen"),icon:a().createElement(T.Z,{fontSize:"small"}),active:o,action:()=>n(u)},{id:"remove",title:p().text("Remove"),icon:a().createElement(R.Z,{fontSize:"small"}),active:!!i,action:()=>{i(u),o&&n(u)}}]),[u,o,i,n,s]),m=D();return a().createElement(x.Z,{title:t},l&&a().createElement(w.Z,{label:p().text("Updated"),size:"small",className:m.updatedChip}),a().createElement("div",{className:m.rightMenu},c,a().createElement(C.Z,{items:d})))};var k=n(71153),F=n.n(k),j=n(7882),_=n(82068),z=n(79312);function A(){return A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A.apply(this,arguments)}const Z=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["styles"]);return a().createElement("svg",A({width:"148",height:"148",viewBox:"0 0 148 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),a().createElement("mask",{id:"svg2791016623a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"148",height:"148"},a().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"})),a().createElement("g",{mask:"url(#svg2791016623a)"},a().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"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 5.203h148V148H0V5.203z",fill:"url(#nodata__paint0_linear)"}),a().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},a().createElement("path",{opacity:".5",d:"M25.186 26.016h131.896V128.04H25.186V26.016z",fillOpacity:".8"}),a().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"})),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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)"}),a().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)"}),a().createElement("g",{filter:"url(#nodata__filter0_d)",fillRule:"evenodd",clipRule:"evenodd"},a().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"}),a().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"})),a().createElement("g",{style:{mixBlendMode:"soft-light"},opacity:".4"},a().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"})),a().createElement("g",{style:{mixBlendMode:"overlay"}},a().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"})),a().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"})),a().createElement("defs",null,a().createElement("linearGradient",{id:"nodata__paint0_linear",x1:"74",y1:"5.203",x2:"74",y2:"148",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:"0"}),a().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),a().createElement("linearGradient",{id:"nodata__paint1_linear",x1:"123.612",y1:"142.028",x2:"76.729",y2:"122.717",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopOpacity:"0"}),a().createElement("stop",{offset:"1"})),a().createElement("linearGradient",{id:"nodata__paint2_linear",x1:"75.156",y1:"57.234",x2:"75.156",y2:"111.578",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopColor:"#EEFBFF"}),a().createElement("stop",{offset:"1",stopColor:"#0072CE"})),a().createElement("filter",{id:"nodata__filter0_d",x:"36.469",y:"47.719",width:"97.962",height:"100.475",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().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"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().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"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"}))))},L=(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=L();return a().createElement("div",{className:e.noDataContainer},a().createElement(Z,{className:e.icon}),a().createElement(z.Z,null,p().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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(this,arguments)}const V=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["styles"]);return a().createElement("svg",B({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),a().createElement("mask",{id:"svg3217593551a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},a().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"})),a().createElement("g",{mask:"url(#svg3217593551a)"},a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),a().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"}),a().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"}),a().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"}),a().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"}),a().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),a().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"}),a().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"}),a().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"}),a().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),a().createElement("g",{filter:"url(#error__filter0_d)"},a().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"})),a().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"}),a().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"}),a().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"}),a().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"}),a().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"}),a().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)"}),a().createElement("g",{filter:"url(#error__filter1_d)"},a().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),a().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),a().createElement("g",{filter:"url(#error__filter2_d)"},a().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"})),a().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"})),a().createElement("defs",null,a().createElement("filter",{id:"error__filter0_d",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().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"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().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"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),a().createElement("filter",{id:"error__filter1_d",x:"51.688",y:"62.625",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().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"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().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"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),a().createElement("filter",{id:"error__filter2_d",x:"51.688",y:"44.063",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a().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"}),a().createElement("feOffset",{dy:"2"}),a().createElement("feGaussianBlur",{stdDeviation:"2"}),a().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"}),a().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),a().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),a().createElement("linearGradient",{id:"error__paint0_linear",x1:"68.438",y1:"71.571",x2:"60.119",y2:"58.801",gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopOpacity:"0"}),a().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 r=G();return a().createElement("div",{className:r.errorContainer},a().createElement(V,{className:r.errorIcon}),a().createElement(z.Z,null,n),t&&a().createElement(U.Z,{className:r.refreshButton,startIcon:a().createElement(I.Z,{color:"primary",className:r.refreshIcon}),onClick:t},a().createElement(z.Z,{variant:"button"},p().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:r,data:l,className:o,EmptyPlaceholder:i}=e;const s=q();return a().createElement(_.Z,{className:F()(s.viewContent,o),"data-reltio-id":"layout-item-content"},a().createElement($.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:o=0,height:s=0}=e;switch(t){case h.o.LOADED:return l&&0!==l.length?a().createElement(j.Z,{error:a().createElement(W,{message:p().text("Something went wrong")})},r({data:l,width:o,height:s})):i||a().createElement(H,null);case h.o.LOADING:return a().createElement(Y.Z,null);case h.o.ERROR:return a().createElement(W,{message:p().text("Error Loading Data"),onRefresh:n});default:return a().createElement("div",null)}})))};function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:c}=e;const{id:h,title:g,options:E,max:x=b}=t,w=ee(),[S,T]=(0,r.useState)(0),[R,I]=(0,r.useState)(x),{data:P,state:C,reload:M,total:D}=y({options:E,max:R,offset:R*S}),k=(0,r.useMemo)((()=>(e=>e.map((e=>{let{uri:t,name:n,count:r}=e;return{value:r||0,label:n||"",group:t}})))(P)),[P]),F=(0,r.useMemo)((()=>v(x)),[x]),j=(0,i.useDispatch)(),_=(0,r.useCallback)((e=>{(0,s.pipe)((0,s.find)((0,s.propEq)("uri",e)),J,f.ui.actions.openSearch,j)(P)}),[j,P]);return(0,u.T)({state:C,reload:M}),a().createElement(O.Z,{id:h},a().createElement(N,{title:g,onToggleFullscreen:n,isFullscreen:o,isUpdated:l,onRefresh:M,onRemove:c}),a().createElement(K,{loadingState:C,onRefresh:M,data:k,className:w.content},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(d.Z,{width:n,height:r,data:t,options:{headers:[p().text("Name")],showValues:null==E?void 0:E.countResults},onItemClick:_})})),!!D&&a().createElement(m.Z,{page:S,count:D,rowsPerPage:R,onChangePage:T,onChangeRowsPerPage:I,rowsPerPageOptions:F}))}));var ne=n(45990),re=n(12960);const ae=(0,s.when)((0,s.pipe)((0,s.prop)("filter"),(0,s.includes)(s.__,[o.j5E.IN_RANGE,o.j5E.HAS_ALL])),(0,s.evolve)({values:o.FTe})),le=(0,s.curry)(((e,t)=>({filter:o.j5E.NOT_EQUALS,values:[t],fieldName:e}))),oe=e=>{var t,n,r;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!==(r=null==e?void 0:e.fieldName)&&void 0!==r?r:""}},ie=e=>({filter:o.j5E.EQUALS,fieldName:"type",values:[e]}),se=(0,s.curry)(((e,t)=>({filter:o.j5E.EQUALS,values:[t],fieldName:e}))),ce=(0,s.curry)(((e,t,n)=>{const{fieldName:r}=n,a=(0,o.Yxg)(r)||(0,o.zeJ)(e,(0,o.h2W)(r,t));return a?(0,s.pipe)(ae,(0,s.when)((()=>(0,o.EdS)(a.uri)),(0,s.assoc)("entityType",t)),(0,s.when)((()=>(0,o.Lt4)(a.type)),(0,s.evolve)({values:(0,s.map)((0,o.mOr)(o.ZBU))})))(n):null})),pe=e=>{let{filter:t,fieldName:n}=e;return t===o.j5E.EQUALS&&"type"===n},ue=(e,t)=>{let{filter:n,fieldName:r,values:a}=e;return n===o.j5E.EQUALS&&"type"===r&&(null==a?void 0:a[0])===t};function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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:r,searchByOv:a,activityFilter:l,pageSize:i,orderType:c}=e;const p=((e,t,n,r)=>{const a=(0,s.pipe)((0,s.map)(ae),(0,o.Uqd)(),(0,o.vyX)(t))(e),l=a?[`filter=${a}`]:[];return n&&l.push("options=searchByOv"),r&&l.push(`activeness=${r}`),l.join("&")})(n,r,a,l),u=[{fieldName:t,pageNo:1,orderType:c,pageSize:i}];return(0,o.FK9)({query:p,body:u}).then((e=>(0,s.pipe)((0,s.prop)(t),(0,s.defaultTo)({}),Object.entries,(0,s.map)((e=>{let[t,n]=e;return{label:t,group:t,value:n}})),(0,s.sortWith)([(0,s.descend)((0,s.prop)("value")),(0,s.ascend)((0,s.prop)("label"))]))(e)))},he=(0,s.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 r=n.flatMap((0,o.Z2f)(e));return t.map((e=>{const t=r.find((t=>{let{lookupCode:n}=t;return n===e.label}));return t?de({},e,{label:t.value}):e}))}))})),ge=(0,s.curry)(((e,t)=>t.map((0,s.pipe)((0,s.prop)("group"),le(e))))),ye="Other",Ee=(0,s.curry)(((e,t)=>{let{attribute:n,filters:r,globalFilter:a,searchByOv:l,activityFilter:i}=e;const c=(0,s.pipe)(ge(n),(0,s.concat)(r),(0,s.map)(ae))(t),u=l&&"searchByOv";return(0,o.j_Q)(c,{globalFilter:a,activityFilter:i,searchOptions:u}).then((e=>{let{total:n}=e;return n>0?t.concat([{label:p().text("Other"),group:ye,value:n}]):t}))})),be=(e,t)=>(0,o.xqc)(e,"configuration/roles/"+t),ve=(0,s.map)((e=>de({},e,{localizedValue:p().number(e.value)}))),Oe=(0,s.when)(o.EdS,o.Tde),xe=(0,s.ifElse)(o.EdS,o.Uk3,(0,s.always)(void 0)),we=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=xe(e),r=t.some((e=>ue(e,n)));return n&&!r?[ie(n),...t]:t},Se=(0,s.curry)(((e,t,n)=>{const r=Oe(e);return n===ye?(0,s.pipe)((0,s.reject)((0,s.propEq)("group",ye)),ge(r))(t):[se(r,n)]})),Te=(0,s.curry)(((e,t,n)=>{var r,a;const l=xe(t)||(null===(r=n.find(pe))||void 0===r||null===(a=r.values)||void 0===a?void 0:a[0]);return{facets:n.map(ce(e,l)).filter(s.identity)}}));const Re=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:c,onRemove:p}=e;const{id:d,title:m,filters:g,attributeUri:y,count:E,orderType:b,chartType:v,showOthers:x}=t,w=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,["id","title","filters","attributeUri","count","orderType","chartType","showOthers"]),S=v===o.$XE.MAP?100:8,{data:T,state:R,reload:I}=(e=>{let{filters:t,attributeUri:n,pageSize:a,orderType:l="reversedCount",options:c}=e;const[p,u]=(0,r.useState)([]),[d,m]=(0,r.useState)(h.o.INIT),g=(0,r.useContext)(ne.I),y=(0,r.useMemo)((()=>g.map(oe).concat(t||[])),[g,t]),E=(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]),w=(0,i.useSelector)(f.ZP.selectors.getShowSearchByOv),S=null==c?void 0:c.showOthers,T=e=>{console.error(e),m(h.o.ERROR),u([])},R=(0,r.useCallback)((()=>{m(h.o.LOADING);const e=we(n,y),t=Oe(n),r=(0,o.Yxg)(t)||(0,o.zeJ)(E,n);if(!r)return void T("Configuration is incorrect");const i=(0,s.pipe)(fe,(0,s.andThen)(((e,t)=>(0,s.pipe)((0,s.when)((()=>(0,o.CwH)(t)),he((0,o.To9)(t))),(0,s.when)((()=>(0,o.ian)(t)),(0,s.map)((t=>de({},t,{label:be(e,t.group)})))),(0,s.when)((()=>(0,o.Lt4)(t.type)),(0,s.map)((0,s.evolve)({label:(0,s.pipe)(o.ZBU,(0,o.mB6)({dataTypeDefinition:(0,o.PFL)(t)}))})))))(E,r)),(0,s.andThen)((0,s.unless)((0,s.always)(x),ve)),(0,s.andThen)((0,s.when)((0,s.always)(S),Ee({attribute:t,filters:e,globalFilter:b,searchByOv:w,activityFilter:v}))),(0,s.andThen)((e=>{m(h.o.LOADED),u(e)})),(0,s.otherwise)(T));i({attribute:t,filters:e,globalFilter:b,searchByOv:w,activityFilter:v,pageSize:a,orderType:l})}),[m,n,E,S,y,b,w,v,a,l,x]),I=()=>{try{R()}catch(e){T(e)}};return(0,r.useEffect)((()=>{I()}),[R]),{state:d,data:p,reload:I}})({filters:g,attributeUri:y,pageSize:E||S,orderType:b,options:{showOthers:x}});(0,u.T)({state:R,reload:I});const P=(0,i.useDispatch)(),C=(0,i.useSelector)(f.ZP.selectors.getMetadata),M=(0,r.useContext)(ne.I),D=(0,r.useMemo)((()=>M.map(oe).concat(g||[])),[M,g]),k=(0,s.pipe)(Se(y,T),(0,s.concat)(we(y,D)),Te(C,y),f.ui.actions.openSearch,P);return a().createElement(O.Z,{id:d},a().createElement(N,{title:m,onToggleFullscreen:n,isUpdated:l,isFullscreen:c,onRefresh:I,onRemove:p}),a().createElement(K,{loadingState:R,onRefresh:I,data:T},(e=>{let{data:t,width:n=0,height:r=0}=e;return re.Z.build(v,{data:t,width:n,height:r,options:w,onItemClick:k})})))}));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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ne.apply(this,arguments)}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Fe(e,t,n[t])}))}return e}function Fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const je=e=>{let{className:t,headCellData:n}=e,r=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","headCellData"]);const l=De();return a().createElement("div",{className:F()(l.headCell,t)},a().createElement(Pe.default,Ne({},r,{headCellData:ke({},n,{label:a().createElement(Ce.Z,{value:n.label},a().createElement("div",{className:l.headLabel},n.label))})})))};var _e=n(18527);const ze=e=>{let{value:t,rowValue:n}=e;const r=De(),l=(0,o.idV)(t);return a().createElement(Ce.Z,{value:l},a().createElement(_e.Z,{value:(0,o.wwR)(n),className:r.entityLabel},l))},Ae=(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"}}),Ze=e=>{let{height:t,width:n,basicTableRef:r,data:l}=e;const o=Ae({width:n,height:t}),i=[{id:"label",label:p().text("Entity"),resizable:!1,headCellRenderer:je,rowCellValueRenderer:ze,initialWidth:n}],s={cellBorder:o.cellBorder};return a().createElement("div",{className:o.tableContainer},a().createElement(Ie.Z,{columnsData:i,rowsData:l,headRowHeight:48,getRowCellHeight:null,classes:s,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:r}))},Le=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRemove:s}=e;const c=ee(),{id:p,title:d,filters:f,max:g=b}=t,y=(0,r.useMemo)((()=>v(g)),[g]),[E,x]=(0,r.useState)(g),[w,S]=(0,r.useState)(0),{data:T,state:R,reload:I,total:P}=(e=>{let{filters:t,max:n,offset:a}=e;const[l,i]=(0,r.useState)([]),[s,c]=(0,r.useState)(0),[p,u]=(0,r.useState)(h.o.INIT),d=(0,r.useContext)(ne.I),m=(0,r.useMemo)((()=>d.map(oe).concat(t||[])),[d,t]),f=e=>{console.error(e),u(h.o.ERROR)},g=(0,r.useCallback)((()=>{u(h.o.LOADING),Promise.all([(0,o.ZOr)(m,{max:n,offset:a}),(0,o.j_Q)(m,{max:n,offset:a})]).then((e=>{const[t,{total:n}]=e;i(t||[]),c(n),u(h.o.LOADED)})).catch(f)}),[m,n,a]),y=()=>{try{g()}catch(e){f(e)}};return(0,r.useEffect)((()=>{y()}),[g]),{state:p,data:l,reload:y,total:s}})({filters:f,max:E,offset:E*w});return(0,u.T)({state:R,reload:I}),a().createElement(O.Z,{id:p},a().createElement(N,{title:d,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRefresh:I,onRemove:s}),a().createElement(K,{loadingState:R,onRefresh:I,data:T,className:c.content},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(Ze,{height:r,width:n,data:t})})),!!P&&a().createElement(m.Z,{page:w,count:P,rowsPerPage:E,onChangePage:S,onChangeRowsPerPage:x,rowsPerPageOptions:y}))}));var He=n(65643),Ue=n(78291);const Be=(0,M.makeStyles)({button:{whiteSpace:"nowrap",textTransform:"none",fontWeight:"normal"}}),Ve=(0,r.forwardRef)(((e,t)=>{let{editorLabel:n,onMenuToggle:r}=e;const l=Be();return a().createElement(U.Z,{ref:t,onClick:r,size:"small",className:l.button,endIcon:a().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,s.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,s.pipe)(Xe,(0,s.defaultTo)([]),(0,s.map)((e=>e&&new Date(e)))),Je=[{id:"created",types:["CREATED"],get label(){return p().text("New")},color:"#4BAFFF"},{id:"updated",types:["UPDATED"],get label(){return p().text("Updated")},color:"#0072CE"},{id:"deleted",types:["DELETED"],get label(){return p().text("Deleted")},color:"#F085F2"},{id:"matched",types:["POTENTIAL_MATCHES_FOUND"],get label(){return p().text("Matched")},color:"#C4CE00"},{id:"autoMerged",types:["MERGED","MERGED_ON_THE_FLY"],get label(){return p().text("Auto-merged")},color:"#CE5C00"},{id:"mergedManually",types:["MERGED_MANUALLY"],get label(){return p().text("Manually merged")},color:"#9E7ED3"},{id:"unmerged",types:["SPLITTED"],get label(){return p().text("Unmerged")},color:"#40CFBB"},{id:"notMatch",types:["NOT_MATCHES_SET"],get label(){return p().text("Not a match")},color:"#F97061"}],et=e=>Je.find((0,s.propEq)("id",e)),tt=(0,s.pipe)(et,(0,s.propOr)("","label")),nt=(0,s.pipe)(et,(0,s.prop)("color")),rt=e=>{const[t,n]=(0,o.RHh)(e,Xe),r=e=>{let{facet:r,types:a}=e;return(0,o.NIY)({facet:r,startTime:t,endTime:n,types:a}).then((e=>{let{facets:t={},total:n=0}=e;return{total:n,data:t[r]}}))};return(()=>{const e=(0,s.chain)((0,s.prop)("types"),Je),t=(0,s.pipe)((0,s.propOr)([],"data"),(0,s.pluck)("term"));return r({facet:"type",types:e}).then((e=>t(e)))})().then((e=>e.length>0?(e=>{const a=(0,s.pipe)((0,s.map)((0,s.evolve)({term:e=>$e().utc(e).valueOf()})),(0,s.prepend)({term:t,count:0}),(0,s.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)?r({facet:"hour",types:n}):Promise.resolve({total:0,data:[]})).then((e=>{let{total:t,data:n}=e;return{total:t,data:a(n),event:l}}))})))})(e):[]))},at=(0,s.curry)(((e,t)=>(0,s.pipe)((0,s.groupBy)((t=>{let{term:n}=t;return $e()(n).startOf(e)})),s.toPairs,(0,s.map)((e=>{let[t,n]=e;return{term:$e()(t).valueOf(),count:(0,s.sum)((0,s.pluck)("count",n))}})))(t))),lt=(0,s.curry)(((e,t)=>{const[n,...r]=t;return r.reduce(((t,n)=>{const r=(0,s.last)(t).term;let a=$e()(r).add(1,e).valueOf();const l=[];for(;a<n.term;)l.push({term:a,count:0}),a=$e()(a).add(1,e).valueOf();return t.concat(l,n)}),[n])})),ot=(0,s.curry)(((e,t)=>t.map((0,s.evolve)({data:(0,s.pipe)(at(e),lt(e))})))),it=(0,s.cond)([[(0,s.equals)(qe.HOUR),(0,s.always)("LT")],[(0,s.equals)(qe.DAY),(0,s.always)("MMM D")]]),st=e=>{let{x:t,y:n,payload:r,step:l}=e;return a().createElement("g",{transform:`translate(${t},${n})`},a().createElement("text",{x:0,y:0,dy:16,textAnchor:"middle",fill:"#666"},p().date(null==r?void 0:r.value,it(l))))},ct=(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"}}),pt=(0,s.cond)([[(0,s.equals)(qe.HOUR),(0,s.always)("LT MMM D")],[(0,s.equals)(qe.DAY),(0,s.always)("ll")]]),ut=e=>{let{active:t,payload:n,label:r,step:l,events:o}=e;const i=ct();return t&&a().createElement("div",{className:i.tooltipWrapper},a().createElement("p",{className:i.tooltipTitle},p().date(r,pt(l))),n.filter((e=>{let{name:t}=e;return o.includes(t)})).map((e=>{let{color:t,name:n,value:r}=e;return a().createElement("p",{key:n},a().createElement("span",{style:{background:t},className:i.tooltipItemColor}),`${tt(n)}: ${r}`)})))};var dt=n(23883);const mt=e=>{let{payload:t,selectedItems:n,onClick:r}=e;const l=ct();return a().createElement("div",{className:l.legend},t.map((e=>{let{id:t,color:o,value:i}=e;const s=n.includes(t);return a().createElement("div",{key:t,className:l.legendItem},a().createElement(dt.Z,{title:s?p().text("Hide"):p().text("Show")},a().createElement("div",{style:s?{background:o}:{border:`${o} 1px solid`},className:l.legendItemColor,onClick:()=>r(t)})),tt(t),a().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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ft.apply(this,arguments)}const ht=e=>{let{data:t,width:n,height:l,step:i}=e;const[c,p]=(0,r.useState)((0,s.pluck)("event",t)),[u,d]=(0,r.useState)(null),{cartesianGrid:m,tooltip:f,xAxis:h,yAxis:g,line:y,legend:E}={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,r.useMemo)((()=>ot(i,t)),[i,t]),v=(0,r.useMemo)((()=>((e,t)=>{const n=(0,s.chain)((0,s.pipe)((0,s.prop)("data"),(0,s.pluck)("count")))(e),r=Math.min(...n),a=Math.max(...n);return Math.abs(a-r)<8?[0,7]:[0,"auto"]})(b)),[b]);return a().createElement(We.wW,{width:n,height:l},a().createElement(We.q3,m),a().createElement(We.Kc,ft({},h,{tick:a().createElement(st,{step:i})})),a().createElement(We.B2,ft({},g,{tickCount:8,domain:v})),b.map((e=>{let{event:t,data:n}=e;const r=c.includes(t);return a().createElement(We.x1,ft({key:t,stroke:nt(t),name:t,data:n,dot:r&&{r:5,strokeWidth:2},activeDot:r&&{r:5,strokeWidth:2,onMouseEnter:()=>d(t),onMouseLeave:()=>d(null)},strokeOpacity:r?1:0},y))})),a().createElement(We.De,ft({content:a().createElement(mt,{selectedItems:c,onClick:e=>{p((0,s.ifElse)((0,s.includes)(e),(0,s.without)([e]),(0,s.append)(e)))}}),payload:b.map((e=>{let{event:t,total:n}=e;return{id:t,type:"square",color:nt(t),value:n}}))},E)),a().createElement(We.u,ft({},f,{content:a().createElement(ut,{step:i,events:u?[u]:c})})))};var gt=n(19701);const yt=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRemove:c}=e;const{id:p,title:d}=t,[m,f]=(0,r.useState)(o.bZE.LAST_WEEK),{state:g,data:y,step:E,reload:b}=(e=>{const[t,n]=(0,r.useState)([]),[a,l]=(0,r.useState)(Ke(e)),[o,i]=(0,r.useState)(h.o.INIT),c=(0,gt._)(),p=e=>{console.error(e),i(h.o.ERROR),n([])},u=(0,r.useCallback)((()=>{i(h.o.LOADING),l(Ke(e)),n([]);const t=(0,s.pipe)(rt,c,(0,s.andThen)((e=>{i(h.o.LOADED),n(e)})),(0,s.otherwise)(p));t(e)}),[e.toString()]),d=()=>{try{u()}catch(e){p(e)}};return(0,r.useEffect)((()=>{d()}),[u]),{state:o,data:t,step:a,reload:d}})(m);return(0,u.T)({state:g,reload:b}),a().createElement(O.Z,{id:p},a().createElement(N,{title:d,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRefresh:b,onRemove:c},a().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"}}})),a().createElement(K,{loadingState:g,onRefresh:b,data:y},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(ht,{data:t,width:n,height:r,step:E})})))}));var Et=n(56215);function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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,s.pipe)((0,s.prop)("group"),Ot),wt=(0,s.curry)(((e,t)=>t.map((t=>{const n=xt(t);return bt({},t,{label:(0,o.nt9)(e,n).label})})))),St=(0,s.curry)(((e,t)=>{const n=(0,s.pipe)(xt,(0,o.io3)(e),(0,s.map)((0,o.nt9)(e)),(0,s.filter)(o.oDv),s.last),r=t.reduce(((e,t)=>{const r=n(t);if(r){const n=(0,o.nIW)(r.uri);return bt({},e,{[n]:(e[n]||0)+t.value})}return e}),{});return Object.entries(r).map((e=>{let[t,n]=e;return{group:t,label:t,value:n}}))})),Tt=(0,s.pipe)(Ot,ie,o.VGB),Rt=(0,s.pipe)((0,s.prop)("uri"),o.nIW),It=(0,s.curry)(((e,t)=>e.find((e=>e.group===t)))),Pt=e=>({label:e,group:e,value:0}),Ct=(0,s.curry)(((e,t)=>{let{entityTypes:n}=e;const r=(0,s.pipe)(Rt,(0,s.either)(It(t),Pt));return n.filter(o.oDv).map(r)})),Mt=[],Dt=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:c}=e;const{id:p,title:d,hideEmpty:m,orderType:g,inheritChildren:y}=t,{data:E,state:b,reload:v}=(e=>{let{orderType:t,inheritChildren:n,hideEmpty:a}=e;const[l,o]=(0,r.useState)([]),[c,p]=(0,r.useState)(h.o.INIT),u=(0,i.useSelector)(f.ZP.selectors.getMetadata),d=u.entityTypes.length,{globalFilter:m,activityFilter:g}=(0,i.useSelector)(f.ZP.selectors.getGlobalSearchRequestOptions),y=(0,i.useSelector)(f.ZP.selectors.getShowSearchByOv),E=e=>{console.error(e),p(h.o.ERROR),o([])},b=(0,r.useCallback)((()=>{p(h.o.LOADING);const e=(0,s.pipe)(fe,(0,s.andThen)((0,s.unless)((0,s.always)(a),Ct(u))),(0,s.andThen)((0,s.when)((0,s.always)(n),St(u))),(0,s.andThen)(wt(u)),(0,s.andThen)(ve),(0,s.andThen)((e=>{p(h.o.LOADED),o(e)})),(0,s.otherwise)(E));e({attribute:"type",pageSize:d,filters:Mt,globalFilter:m,searchByOv:y,activityFilter:g,orderType:t})}),[a,u,n,d,m,y,g,t]),v=()=>{try{b()}catch(e){E(e)}};return(0,r.useEffect)((()=>{v()}),[b]),{state:c,data:l,reload:v}})({hideEmpty:m,orderType:g,inheritChildren:y});(0,u.T)({state:b,reload:v});const x=(0,i.useDispatch)(),w=(0,i.useSelector)(f.ZP.selectors.getMetadata),S=(0,s.pipe)(Tt,Te(w,"type"),f.ui.actions.openSearch,x);return a().createElement(O.Z,{id:p},a().createElement(N,{title:d,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRefresh:v,onRemove:c}),a().createElement(K,{loadingState:b,onRefresh:v,data:E},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(Et.Z,{width:n,height:r,data:t,onItemClick:S})})))})),Nt=(0,M.makeStyles)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 16px"},iframe:{borderWidth:0,width:"100%",height:"100%"}}))),kt=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:r,isFullscreen:l,onRemove:o}=e;const{id:i,title:s,url:c}=t,p=Nt();return a().createElement(O.Z,{id:i},a().createElement(N,{title:s,onToggleFullscreen:n,isUpdated:r,isFullscreen:l,onRemove:o}),a().createElement(_.Z,{className:p.viewContent},a().createElement("iframe",{src:c,frameBorder:"0",className:p.iframe})))}));var Ft=n(98538);let jt;!function(e){e.MY="my",e.TEAM="team"}(jt||(jt={}));var _t=n(44938),zt=n(96379),At=n(80516);function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Lt(e,t,n[t])}))}return e}function Lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ht=(0,s.cond)([[(0,s.equals)(jt.MY),(0,s.always)(o.C82)],[(0,s.equals)(jt.TEAM),(0,s.always)(o.h6J)],[s.T,(0,s.always)((()=>Promise.resolve({data:[]})))]]),Ut=(0,s.pipe)((0,s.propOr)([],"objectURIs"),s.head),Bt=(0,s.startsWith)("changeRequests/"),Vt=(0,s.complement)(s.isEmpty),Gt=(0,s.pipe)((0,s.map)(Ut),(0,s.filter)(o.WgC),(0,s.when)(Vt,o.DnY)),Wt=(0,s.pipe)((0,s.map)(Ut),(0,s.filter)(Bt),(0,s.map)((0,s.pipe)(o.E6I,(0,s.otherwise)((0,s.always)(null)))),(e=>Promise.all(e))),Yt=(0,s.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:r}=e;const a=e=>(0,s.path)([e,0],n),l=e=>{const{type:t}=a(e);return"CREATE_ENTITY"==t||"CREATE_RELATIONSHIP"==t?r+"/changes/"+e:e};return(0,s.pipe)(s.keys,(0,s.filter)(a),(0,s.sort)((0,s.descend)((0,s.pipe)(a,(0,s.prop)("createdTime")))),(0,s.map)((e=>Zt({},t[e],{uri:l(e)}))))(t)},qt=(e,t,n)=>(t=(0,s.reject)(s.isNil,t),n.map((0,s.pipe)((0,s.when)((0,s.pipe)(Ut,o.WgC),(e=>t=>{const n=e.find((0,s.propEq)("uri",Ut(t)));return n?Zt({},t,{objects:[n]}):t})(e)),(0,s.when)((0,s.pipe)(Ut,Bt),(e=>t=>{const n=e.find((0,s.propEq)("uri",Ut(t)));return n?Zt({},t,{objects:$t(n)}):t})(t))))),Kt=(0,s.curry)((async(e,t)=>{let{workflowPath:n,environment:r,tenant:a,assignee:l,max:o,offset:i}=t;const s=Ht(e),{data:c,total:p}=await s({workflowPath:n,environment:r,tenant:a,assignee:l,max:o,offset:i}),[u,d]=await Yt(c);return{data:qt(u,d,c),total:p}})),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:r}=e;const l=Qt();return a().createElement(_e.Z,{value:t,screen:r,className:l.entityLabel},(0,o.idV)(n))},en=e=>{let{object:t,metadata:n,processType:r}=e;if("startObjectUri"in t&&"endObjectUri"in t){const e=(0,o.V3K)(n,t.type);return a().createElement(a().Fragment,null,e.label," ",p().text("from")," ",a().createElement(Jt,{uri:t.startObjectUri,label:t.startObjectLabel})," ",p().text("to")," ",a().createElement(Jt,{uri:t.endObjectUri,label:t.endObjectLabel}))}{const e=(0,s.cond)([[(0,s.always)((0,s.equals)(r,o.Yj_.potentialMatchReview)),(0,s.always)("potentialMatches")],[(0,s.propSatisfies)(o.FP6,"uri"),(0,s.always)("dcrReview")],[s.T,(0,s.always)("profile")]])(t);return a().createElement(Jt,{uri:(0,o.wwR)(t),label:t.label,screen:e})}},tn=e=>{let{task:t,showAssignee:n}=e;const r=Qt(),l=t.objects||[],[s]=l,c=(0,i.useSelector)(f.ZP.selectors.getMetadata),u=s&&(0,o.nt9)(c,s.type);return a().createElement("div",{className:F()(r.taskItem,t.priorityClass),"data-reltio-id":"workflow-task-item"},a().createElement(zt.Z,{entityType:u}),a().createElement("div",{className:r.taskInfo},a().createElement("div",{className:r.titleContainer},a().createElement(z.Z,{className:r.taskTitle,variant:"subtitle1"},p().text(t.processDefinitionDisplayName)),a().createElement("div",{className:F()(r.taskDueDate,{[r.overdue]:Xt(t),[r.hidden]:!t.dueDate})},a().createElement(At.Z,{className:r.flag}),p().date(t.dueDate,"L"))),l.map((e=>a().createElement("p",{key:e.uri,className:r.taskDetail},a().createElement(en,{object:e,processType:t.processType,metadata:c})))),a().createElement("p",{className:r.taskDetail},a().createElement("span",{className:r.taskDetailTitle},`${p().text("Created by")}:`),t.createdBy," ",p().text("on")," ",p().date(t.createTime,"L")),n&&t.assignee&&a().createElement("p",{className:r.taskDetail},a().createElement("span",{className:r.taskDetailTitle},`${p().text("Assigned to")}:`),t.assignee),a().createElement("p",{className:r.taskDetail},a().createElement("span",{className:r.taskDetailTitle},`${p().text("Step")}:`),t.displayName)))};var nn=n(56961);const rn=e=>{let{width:t,height:n,tasksCategory:l,tasks:o}=e;const i=(0,r.useCallback)((e=>{let{data:t,index:n}=e;const r=n===t.length-1;return a().createElement("div",null,a().createElement(tn,{task:t[n],showAssignee:l!==jt.MY}),!r&&a().createElement(nn.Z,{light:!0,variant:"inset"}))}),[l]);return a().createElement(_t.Z,{width:t,height:n,data:o,defaultItemSize:115},i)};function an(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,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:c}=e;const{id:d,title:g,pageSize:y=b}=t,E=ee(),[v,x]=(0,r.useState)(0),[w,S]=(0,r.useState)(y),[T,R]=(0,r.useState)(jt.MY),I=(0,r.useMemo)((()=>({tasksCategory:T,max:w,offset:w*v})),[w,v,T]),P=(0,r.useMemo)((()=>({[jt.MY]:p().text("My tasks"),[jt.TEAM]:p().text("Team tasks")})),[]),C=(0,r.useMemo)((()=>Object.keys(P).map((e=>({text:P[e],onClick:()=>R(e)})))),[P]),{state:M,data:D,total:k,reload:F}=(e=>{const{tasksCategory:t}=e,n=(0,r.useMemo)((()=>(0,s.pick)(["max","offset"],e)),[e]),[a,l]=(0,r.useState)([]),[o,c]=(0,r.useState)(h.o.INIT),[p,u]=(0,r.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),y=(0,i.useSelector)(f.ZP.selectors.getUserName),E=t===jt.MY?y:void 0,b=(0,gt._)(),v=e=>{console.error(e),c(h.o.ERROR),l([])},O=(0,r.useCallback)((()=>{c(h.o.LOADING);const e=(0,s.pipe)(Kt(t),b,(0,s.andThen)((e=>{let{data:t,total:n}=e;c(h.o.LOADED),l(t),u(n)})),(0,s.otherwise)(v));e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){an(e,t,n[t])}))}return e}({workflowPath:d,environment:m,tenant:g,assignee:E},n))}),[d,m,g,t,n]),x=()=>{try{O()}catch(e){v(e)}};return(0,r.useEffect)((()=>{x()}),[O]),{state:o,data:a,reload:x,total:p}})(I);return(0,u.T)({state:M,reload:F}),a().createElement(O.Z,{id:d},a().createElement(N,{title:g,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:c,onRefresh:F},a().createElement(Ft.Z,{buttonProps:{className:E.categorySelector,endIcon:a().createElement(He.Z,null),size:"small"},buttonContent:P[T],menuId:"tasks-category-menu",menuItems:C})),a().createElement(K,{loadingState:M,onRefresh:F,data:D,className:E.inboxContent},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(rn,{width:n,height:r,tasksCategory:T,tasks:t})})),!!k&&a().createElement(m.Z,{page:v,count:k,rowsPerPage:w,onChangePage:x,onChangeRowsPerPage:S}))}));var on=n(75067),sn=n(77434),cn=n(7278);const pn=(0,r.memo)((e=>{let{config:t,isUpdated:n,isFullscreen:l,onToggleFullscreen:i,onRemove:c}=e;const{id:d,title:f,exportTypes:g}=t,y=ee(),[E,x]=(0,r.useState)(0),[w,S]=(0,r.useState)(b),T=(0,r.useMemo)((()=>v(b)),[]),[R,I]=(0,r.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:a}=e;const[l,o]=(0,r.useState)([]),[i,c]=(0,r.useState)(0),[p,u]=(0,r.useState)(h.o.INIT),d=(0,gt._)(),m=e=>{console.error(e),u(h.o.ERROR)},f=(0,cn.d)({filter:t,max:n,offset:a}),g=(0,r.useCallback)((()=>{u(h.o.LOADING);const e=(0,s.pipe)(f,d,(0,s.andThen)((e=>{let{data:t,total:n}=e;o(t),c(n),u(h.o.LOADED)})),(0,s.otherwise)(m));e()}),[f]),y=()=>{try{g()}catch(e){m(e)}};return(0,r.useEffect)((()=>{y()}),[g]),{state:p,data:l,total:i,reload:y}})({filter:R,max:w,offset:E*w}),k=(0,r.useCallback)((e=>{I(e),x(0)}),[]);return(0,u.T)({state:P,reload:D}),a().createElement(O.Z,{id:d},a().createElement(N,{title:f,onToggleFullscreen:i,isUpdated:n,isFullscreen:l,onRemove:c,onRefresh:D}),a().createElement("div",{className:y.activityLogFilter},a().createElement(on.Z,{value:R,onChange:k,exportTypes:g})),a().createElement(K,{loadingState:P,onRefresh:D,data:C,className:y.content},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(sn.Z,{width:n,height:r,activities:t})})),!!M&&a().createElement(m.Z,{page:E,count:M,onChangePage:x,rowsPerPage:w,onChangeRowsPerPage:S,rowsPerPageOptions:T,labelRowsPerPage:p().text("Events per page:")}))}));function un(){return un=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},un.apply(this,arguments)}const dn=e=>(0,l.Z)(e),mn=dn(pn),fn=dn(kt),hn=dn(Re),gn=dn(Dt),yn=dn(te),En=dn(Le),bn=dn(ln),vn=dn(yt);class On{}On.ViewTypes=o.dZX,On.getComponent=e=>{let{config:t,type:n,isUpdated:r,isFullscreen:l,onToggleFullscreen:o,onRemove:i}=e;const s={isUpdated:r,isFullscreen:l,onToggleFullscreen:o,onRemove:i};switch(n){case On.ViewTypes.ActivitiesViewFacet:return a().createElement(mn,un({config:t},s));case On.ViewTypes.CustomActionViewFacet:return a().createElement(fn,un({config:t},s));case On.ViewTypes.DashboardFacet:return a().createElement(hn,un({config:t},s));case On.ViewTypes.EntitiesByTypeViewFacet:return a().createElement(gn,un({config:t},s));case On.ViewTypes.FilteredSavedSearchesFacet:return a().createElement(yn,un({config:t},s));case On.ViewTypes.FilteredEntitiesViewFacet:return a().createElement(En,un({config:t},s));case On.ViewTypes.NotificationInboxFacet:return a().createElement(bn,un({config:t},s));case On.ViewTypes.ProfileStatsFacet:return a().createElement(vn,un({config:t},s))}},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 r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function a(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,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}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 s=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+c+" 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=r,t.componentWillReceiveProps=a),"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 p=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;p.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>o}),r.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0,l.__suppressDeprecationWarning=!0}}]);
|
|
2
2
|
//# sourceMappingURL=6531.js.map
|