@reltio/remotes 1.4.1501 → 1.4.1502

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/9258.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[9258],{7785:(e,t,n)=>{n.d(t,{Z:()=>R});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(87918),c=n.n(i),s=n(38402),p=n(94079),u=n(95613),d=n(73122),m=n(83348),f=n(55299),h=n(31276),g=n(71543);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 y=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 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=>a().createElement("svg",b({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"})),O=(0,n(79692).Z)({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"}}),x=e=>{let{attrType:t={}}=e;const n=O(),r=(e=>{switch(e.type){case d.oS0.TYPE_IMAGE:case d.oS0.TYPE_NESTED:return g.Z;case d.oS0.TYPE_REFERENCE:return y;default:return v}})(t);return a().createElement(r,{className:n.icon})};var w=n(31269);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 S=(0,m.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"}))))),R=(0,r.memo)((e=>{let{groupId:t,data:n,checked:r=!1,isFocused:l=!1,isRequired:i=!1,label:m,labelInText:g,level:E,onClick:y=h.ZT,hideCheckBox:b=!1,hideIcon:v=!1,notSelectable:T=!1,disableHorizontalScrollbar:R=!1,style:I={},subItemMargin:P=20,LogoIcon:C,className:M}=e;const D=O(),{attrType:N}=n||{},j=!(b&&(0,d.QZu)(N)||T),F=!!C;return a().createElement(u.Z,{value:g||m,className:D.itemTooltip,placement:"bottom-end"},a().createElement(s.Z,{className:o()(D.container,D.listItem,{[D.defaultCursor]:!j},M),onClick:j?()=>y(n,!r,t):void 0,style:I,dense:!0,button:j,classes:{focusVisible:D.listItemFocus,selected:D.listItemFocus},selected:l,tabIndex:-1},!b&&a().createElement(p.Checkbox,{checked:r,disableRipple:!0,disabled:!j,className:o()(D.checkbox,{[D.checked]:r}),tabIndex:-1}),a().createElement(w.Z,{margin:P,level:E,className:D.marginWrapper},a().createElement(a().Fragment,null,!v&&(e=>"recommended"===t?a().createElement(S,{className:D.recommendedIcon,tooltipTitle:c().text("Recommended"),showForDisabled:!0}):a().createElement(x,{attrType:e}))(N),a().createElement("div",{className:o()(D.itemTextWrapper,{[D.marginText]:v})},F&&a().createElement(C,{className:D.logoIcon}),a().createElement(p.ListItemText,{primary:a().createElement(a().Fragment,null,m,i&&a().createElement(f.Z,null)),className:D.itemText})))),j&&R&&a().createElement("div",{className:D.itemAfter})))}))},27815:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l),i=n(71153),c=n.n(i),s=n(17440),p=n(52730),u=n(49885),d=n(73122),m=n(94079),f=n(92575),h=n(37285),g=n(96808),E=n(7785),y=n(79692);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,y.Z)({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:y,disableUnderline:b,menuPlacement:v="bottom"}=e;const w=(0,p.useSelector)(u.ZP.selectors.getMetadata),T=x(),S=(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?S(l,t+1,a):[])}),[])}),[w]),R=(0,r.useMemo)((()=>S((null==t?void 0:t.attributes)||[])),[t,S]);return a().createElement("div",{className:c()(T.root,l)},a().createElement(m.Typography,{className:T.title,variant:"subtitle1"},y||o().text("Attribute")),a().createElement(f.Z,{value:n,options:R,TextFieldProps:{InputProps:{disableUnderline:b},classes:{root:T.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(E.Z,{checked:n,level:r.level,data:r,label:l,labelInText:l,isFocused:t}))}},onChange:(0,s.pipe)((0,s.defaultTo)([]),i),styles:O,classes:T,menuPlacement:v,menuPortalTarget:document.body}))}},32528:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(13688),a=n(48852);const l=e=>t=>(0,a.l)(r.X,e,t)},58662:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(13980),a=n.n(r),l=n(24328),o=n.n(l),i=n(71153),c=n.n(i),s=n(94079),p=n(87918),u=n.n(p),d=n(31276),m=n(17440);const f=(0,n(79692).Z)({pagination:{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"56px",borderTop:"1px solid rgba(0,0,0,0.12)",boxShadow:"none"},caption:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px"},selectRoot:{marginLeft:"5px",marginRight:"36px"},select:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px",textAlign:"right"},actions:{marginLeft:"32px"}});function h(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}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const E=e=>{let{classes:t={},count:n,rowsPerPageOptions:r,page:a,onChangePage:i,rowsPerPage:p,onChangeRowsPerPage:g,basicTableRef:E,labelRowsPerPage:y}=e;const b=f(),v=(0,l.useCallback)((()=>{(0,m.pathOr)(m.identity,["current","resetScrollbarPosition"],E)()}),[E]),O=(0,l.useCallback)((e=>{i(e),v()}),[i,v]),x=(0,l.useCallback)((e=>{i(0),g(e),v()}),[i,g,v]);return o().createElement(s.TablePagination,{classes:h({},t,{root:c()(b.pagination,t.root),select:c()(b.select,t.select),caption:b.caption,selectRoot:b.selectRoot,actions:b.actions}),component:"div",labelRowsPerPage:y||u().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return u().text("${fromRow}-${toRow} of ${countRows}",{fromRow:u().number(t,"0,0"),toRow:u().number(n,"0,0"),countRows:u().number(r,"0,0")})},count:n,rowsPerPageOptions:r,page:a,onChangePage:(0,m.pipe)((0,m.nthArg)(1),O),rowsPerPage:p,onChangeRowsPerPage:(0,m.pipe)(d.NA,x)})};E.propTypes={classes:a().object,rowsPerPageOptions:a().arrayOf(a().number),count:a().number,page:a().number,onChangePage:a().func,rowsPerPage:a().number,onChangeRowsPerPage:a().func,basicTableRef:a().shape({current:a().object}),labelRowsPerPage:a().string};const y=o().memo(E)},10237:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(27556),a=n(13980),l=n.n(a),o=n(24328),i=n.n(o);function c(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 p=(0,n(79692).Z)((e=>({"basic-view__paper":c({display:"flex",flexDirection:"column"},e.basicView)})));function u(){return u=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},u.apply(this,arguments)}const d=(0,o.forwardRef)(((e,t)=>{let{children:n,className:a}=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,["children","className"]);const o=p();return i().createElement(r.Z,u({ref:t,className:a,classes:{root:o["basic-view__paper"]}},l),n)}));d.displayName="BasicView",d.propTypes={children:l().node,className:l().string};const m=d},92778:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l),i=n(15223),c=n(94079);const s=(0,n(79692).Z)({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",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=s();return a().createElement(i.Z,p({className:r.root,classes:{root:u.toolbar}},l),a().createElement(c.Typography,{className:r.title,classes:{root:u.title},variant:"h6"},o().text(t)),n)}},58241:(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(8818),c=n(38016);const s=(0,n(79692).Z)({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=s(),u={icon:c.Z,className:l.collapseButton,iconClassName:o()({[l.expandLess]:t})},d={tooltipTitle:n};return a().createElement(i.k,p({},u,d,r))}},43290:(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(17440);const c=(0,n(79692).Z)((e=>({bar:{backgroundColor:e.palette.secondary.main,opacity:.12,position:"absolute",minHeight:"20px",minWidth:"5px",borderRadius:"2px",top:0,left:0,height:"100%"}}))),s=e=>(0,i.is)(Number,e),p=e=>{let{className:t,width:n=0,maxWidth:l}=e;const i=c(),p=(0,r.useCallback)((e=>(l?100*e/l:0)+"%"),[l]);return n?a().createElement("div",{className:o()(i.bar,t),style:{width:s(n)?p(n):n}}):null}},39621:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(24328),a=n.n(r),l=n(17440),o=n(73122),i=n(6782),c=n(94079),s=n(31517),p=n(31276);const u=(0,n(79692).Z)({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%"}}),d=["minutes","hours","days","weeks","months","years"],m=e=>{let{interval:[t,n],onChange:r,onFocus:m}=e;const f=u(),h=(0,l.pipe)(p.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(c.TextField,{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,i.Z)(n),className:f.inputUnit,value:{value:n,label:(0,i.Z)((0,o.wsP)(n))},options:d.map((e=>({value:e,label:(0,i.Z)((0,o.wsP)(e))}))),onChange:g,TextFieldProps:{inputProps:{onFocus:m},InputProps:{classes:{root:f.input}}}}))}},55847:(e,t,n)=>{n.d(t,{Z:()=>v});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(17440),c=n(94079),s=n(48348),p=n(20562),u=n(83348),d=n(79692),m=n(41128);const f=(0,d.Z)((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,m.U1)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,m.U1)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),h=(0,u.Z)(c.MenuItem),g=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=i.identity}=e;const l=f(),{disabled:o,text:s,tooltip:p,onClick:u,id:d="",selectable:m,selected:g}=n;return a().createElement(h,{tooltipTitle:p,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{r(e),u(e)},disabled:o,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${d}`},m&&a().createElement(c.Checkbox,{checked:g,color:"primary"}),a().createElement(c.Typography,{classes:{root:l.menuText}},s))}));g.displayName="MenuItemRenderer";const E=g;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 b(e){let{className:t,menuId:n,buttonComponent:l=c.Button,buttonContent:u,menuItems:d=[],buttonProps:m={},popoverProps:h={},onMenuOpen:g=i.identity,onMenuClose:b=i.identity,MenuItemRenderer:v=E}=e;const O=l,x=f(),w=(0,r.useRef)(),[T,S]=(0,r.useState)(!1);(0,p.D)((()=>{T?g():b()}),[T]);const R=(0,r.useCallback)((e=>{null==e||e.stopPropagation(),S((e=>!e))}),[]);return a().createElement(a().Fragment,null,a().createElement(O,y({ref:w,className:o()(x.buttonRoot,{[x.selected]:T},t),onClick:R,"aria-pressed":T,"aria-controls":T?n:void 0,"aria-haspopup":"true"},m),u),a().createElement(s.Z,y({id:n,variant:"menu",open:T,autoFocus:!1,classes:{paper:x.paper},anchorEl:w.current,onClose:R,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:T}},h),d.map(((e,t)=>a().createElement(v,{item:e,key:t,onMenuClose:R})))))}b.displayName="DropDownMenuButton";const v=b},24737:(e,t,n)=>{n.d(t,{Z:()=>A});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),i=n(71153),c=n.n(i),s=n(17440),p=n(94113),u=n(65549),d=n(79692);const m=(0,d.Z)((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.Z)({singleValue:{fontSize:"14px",lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"21px"}});var h=n(36179);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,s.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 E=g;var y=n(18461),b=n(5190),v=n(31276),O=n(73122),x=n(72436),w=n(94079);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)}function S(e){const{selectProps:{menuIsOpen:t},innerProps:n,children:r}=e,l=f();return!t&&a().createElement(w.Typography,T({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}S.propTypes={children:o().node,innerProps:o().object};const P=(0,d.Z)({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",lineHeight:"16px",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 j(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 k=e=>{let{value:t,label:n,createLabel:l,getOptions:o,options:i,height:u=46,onChange:d=s.identity,onCreate:m,onClear:f=s.identity,components:h,textFieldInputRef:g,TextFieldProps:w,classes:T}=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)(),[k,_]=(0,r.useState)(!1),A=(0,r.useRef)(null),z=o?y.Z:b.Z,L=(0,s.prop)("ClearIndicator",h)?{}:{IndicatorSeparator:v.Vd,ClearIndicator:v.Vd},Z=m?(e,t)=>{m(e,t),_(!1)}:void 0,H=(0,s.prop)("Group",h)?M:{},U=(0,s.isEmpty)(n)?D:{},B=j({},C,H,U),V=j({},I,T);return a().createElement(z,N({placeholder:"",defaultOptions:!0},R,{value:(0,s.defaultTo)(null,t),loadOptions:o,options:i,cacheOptions:!0,onChange:d,onCreate:Z,onClear:f,createLabel:l,classes:V,styles:B,components:j({DropdownIndicator:p.Z,LoadingIndicator:v.Vd,SingleValue:S,Menu:E},L,h),menuPlacement:"auto",TextFieldProps:j({},w,{label:n,variant:"filled",margin:"dense",classes:j({},(0,s.prop)("classes",w),{root:c()(I.formControl,(0,s.path)(["classes","root"],w))}),inputProps:j({},(0,s.prop)("inputProps",w)),InputProps:j({},(0,s.prop)("InputProps",w),{classes:j({},(0,s.path)(["InputProps","classes"],w),{root:c()(I.filledInputRoot,(0,s.path)(["InputProps","classes","root"],w)),underline:c()({[F.filledInputUnderline]:(0,O.O27)(t)},(0,s.path)(["InputProps","classes","underline"],w)),focused:c()("focused",(0,s.path)(["InputProps","classes","focused"],w))})}),InputLabelProps:j({},(0,s.prop)("InputLabelProps",w),{classes:j({},(0,s.path)(["InputLabelProps","classes"],w),{root:c()(I.inputLabel,(0,s.path)(["InputLabelProps","classes","root"],w)),shrink:c()("shrink",(0,s.path)(["InputLabelProps","classes","shrink"],w))}),shrink:!(0,O.O27)(t)||void 0}),ref:g||A}),inputRef:g||A,menuIsOpen:k,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};k.propTypes=_;const A=k},34e3:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),a=n.n(r),l=n(52730),o=n(49885),i=n(98018);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 s=e=>{const t=(0,l.useSelector)(o.ZP.selectors.getAbsoluteImagePath)||"";return a().createElement(i.ZP,c({},e,{storagePath:(n=t,n.endsWith("/")?n:n+"/")}));var n}},31039:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),a=n.n(r),l=n(52730),o=n(39450),i=n(72383),c=n(49885);const s=(0,r.forwardRef)(((e,t)=>{let{value:n,children:s,screen:p,className:u}=e;const d=(0,l.useDispatch)(),m=(0,r.useContext)(o.m),{generateEntityUrl:f}=(0,r.useContext)(i.v),h=(0,l.useSelector)(c.ZP.selectors.getUIPath),g=(0,r.useCallback)((()=>{d(c.ui.actions.openEntity({uri:n,viewId:m,screen:p}))}),[m,n,d,p]);return a().createElement("a",{ref:t,href:(E=n,f({uiPath:h,uri:E,screen:p})),onClick:e=>{g(),e.stopPropagation(),e.preventDefault()},className:u},s);var E}));s.displayName="EntityUriLink";const p=s},2256:(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}}},18461:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(27308);const a=(0,n(5407).Z)(r.ZP)},92575:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),i=n(17440),c=n(70347);const s=(0,n(5407).Z)(c.ZP);var p=n(5190),u=n(18461),d=n(94079),m=n(71153),f=n.n(m),h=n(95613);function g(){return g=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},g.apply(this,arguments)}function E(e){const{innerProps:t,innerRef:n,children:r,isFocused:l,isSelected:o,selectProps:{classes:i},label:c}=e;return a().createElement(d.MenuItem,g({className:f()(i.option,{[i["option--selected"]]:o}),ref:n,selected:l,component:"div"},t),a().createElement(d.Checkbox,{color:"primary",checked:o}),a().createElement(h.Z,{value:c},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 y={Option:E};var b=n(79692),v=n(31276);function O(){return O=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},O.apply(this,arguments)}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){w(e,t,n[t])}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const T=(0,b.Z)((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 S=0;function R(e){const{label:t,creatable:n,getOptions:l,loadingIndicator:o,components:c,classes:d,styles:m,onChange:f,onInputChange:h,menuPlacement:g="auto"}=e,E=function(e,t){if(null==e)return{};var n,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"]),b=n?s:l?u.Z:p.Z,[w,R]=(0,r.useState)(""),I=T((0,i.omit)(["classes"],e)),P="custom-select-"+S++,C=x({},y,c),M=(0,v.ze)(I,d),D=x({indicatorSeparator:e=>x({},e,{margin:"10px 0"}),loadingIndicator:e=>x({},e,{display:o?e.display:"none"}),loadingMessage:e=>x({},e,{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'})},m),N=t?{inputId:P,TextFieldProps:x({label:t,InputLabelProps:{htmlFor:P,shrink:!(!e.value||!e.value.length)||void 0,className:M.label}},e.TextFieldProps)}:{};return a().createElement(b,O({isMulti:!0,inputId:P,inputValue:w,onChange:function(e,t){f(e,t),"create-option"===t.action&&(R(""),h("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;h(e,{action:n}),"set-value"!==n&&R(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:M,components:C,styles:D,menuPlacement:g,loadOptions:l},N,E))}R.defaultProps={creatable:!1,cacheOptions:!0,components:{},classes:{},placeholder:"",loadingIndicator:!1,onInputChange:()=>{},onChange:()=>{}},R.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,getOptionValue:o().func,isSearchable:o().bool,inputRef:o().shape({current:o().object})};const I=R},67268:(e,t,n)=>{n.d(t,{Z:()=>R});var r=n(13980),a=n.n(r),l=n(24328),o=n.n(l),i=n(66244),c=n.n(i),s=n(44443),p=n(17440),u=n(71153),d=n.n(u);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:c,maxHeight:s,isStatic:p}=e;return{x:t,y:n,w:r,h:a,minW:o,minH:i,maxW:c,maxH:s,i:l,static:p}},h=e=>{let{x:t,y:n,w:r,h:a,maxW:l,minW:o,minH:i,maxH:c,i:s}=e;return{x:t,y:n,width:r,height:a,minWidth:o,minHeight:i,maxWidth:l,maxHeight:c,id:s,isStatic:m(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},g=e=>(e||[]).map(h),E=(0,p.curry)(((e,t)=>(e||[]).find((0,p.propEq)("id",t)))),y=(0,p.curry)(((e,t,n)=>(0,p.mergeAll)([n,(0,p.pick)(e,t)]))),b=(0,p.curry)(((e,t,n)=>(n||[]).map((n=>(0,p.pipe)((0,p.prop)("id"),E(t),(0,p.defaultTo)({}),y(e,p.__,n))(n)))));var v=n(79692),O=n(73122);const x=(0,v.Z)((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"},"&.cssTransforms":{transitionProperty:"transform"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"17px",height:"17px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,O.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 w(){return w=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},w.apply(this,arguments)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const S=e=>{let{views:t,layout:n,layoutOptions:r,onLayoutChanged:a,draggableHandle:i,LayoutItem:u,onRemove:m,onDrop:y,droppingItem:v,isDroppable:O,classes:S}=e;const R=(0,l.useRef)(),I=x(),[P,C]=(0,l.useState)(null),[M,D]=(0,l.useState)(null),[N,j]=(0,l.useState)(0),{cols:F,rowHeight:k,margin:_}=r,A=(0,l.useMemo)((()=>(e=>(e||[]).map(f))(n)),[n]),z=(0,p.pipe)(g,b(["autosizing"],n),a),L=(0,l.useCallback)((e=>D((t=>t?null:e))),[]),Z=null!==M,H=(0,l.useCallback)(((e,t)=>{let l=!1;const o=n.map((n=>{if(n.id===t&&e){const t=((e,t)=>{const{margin:n,rowHeight:r}=t;return Math.ceil((e+n[1])/(r+n[1]))})(e,r);if(n.height!==t)return l=!0,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){T(e,t,n[t])}))}return e}({},n,{minHeight:t,maxHeight:t,height:t})}return n}));l&&a(o)}),[n,r,a]);return o().createElement(o().Fragment,null,o().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>j(e)}),!!N&&o().createElement(c(),{innerRef:R,layout:A,cols:F,draggableHandle:i,autoSize:!0,rowHeight:k,width:N,margin:_,onLayoutChange:z,isResizable:!Z,isDraggable:!Z,className:d()(S.root,I.gridLayout,{[I.gridFullscreen]:Z}),onDrop:(e,t,n)=>{y&&y(g(e),h(t),n)},droppingItem:v,isDroppable:O,onResizeStart:(e,t)=>C(t.i),onResizeStop:()=>C(null)},A.map((e=>{const r=M===e.i,a=P===e.i,l=(E(n,e.i)||{}).autosizing?{AutosizeComponent:(i=e.i,o().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>{H(t,i)}}))}:{};var i;return o().createElement(u,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:L,onRemove:m,className:d()({fullscreen:r,[I.isResizing]:a},S.item),isFullscreen:r},l))}))))};S.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:p.identity,onLayoutChanged:p.identity,classes:{}},S.propTypes={views:a().array,layout:a().array,layoutOptions:a().object,onConfigChanged:a().func,onLayoutChanged:a().func,onDrop:a().func,onRemove:a().func,LayoutItem:a().elementType,draggableHandle:a().string,isDroppable:a().bool,droppingItem:a().object,classes:a().shape({root:a().string,item:a().string})};const R=(0,l.memo)(S)},55299:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(24328),a=n.n(r);const l=(0,n(79692).Z)({mark:{color:"red"}}),o=()=>{const e=l();return a().createElement("span",{className:e.mark},"*")}},31517:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),a=n.n(r),l=n(24737),o=n(13980),i=n.n(o),c=n(94079);const s=(0,n(79692).Z)({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=s();return!t&&a().createElement(c.Typography,{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=s(),{innerProps:n={},children:r}=e;return a().createElement(c.Typography,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))}))},51229:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(24328),a=n.n(r);const l=()=>a().createElement("div",{style:{flex:1}})},85451:(e,t,n)=>{n.d(t,{Z:()=>O});var r=n(24328),a=n.n(r),l=n(52730),o=n(87918),i=n.n(o),c=n(17440),s=n(71153),p=n.n(s),u=n(94079),d=n(92575),m=n(96808),f=n(73122),h=n(49885),g=n(79692);function E(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){y(e,t,n[t])}))}return e}function y(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=>E({},e,{fontSize:"14px"}),loadingMessage:e=>E({},e,{fontSize:"14px"}),menuPortal:e=>E({},e,{zIndex:1300})},v=(0,g.Z)({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:s}=e;const g=v(),E=e=>({value:e,label:e}),y=e=>e.map(E),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)},a().createElement(u.Typography,{className:g.title,variant:"subtitle1"},i().text("User")),a().createElement(d.Z,{value:y(t),onChange:(0,c.pipe)((0,c.defaultTo)([]),(0,c.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(w.current||(w.current=(0,f.kz_)({tenant:O,servicesPath:x})),w.current.then((0,c.pipe)((0,c.pluck)("username"),(e=>t=>e?t.filter((t=>f.P6Y.strings.search(t,e))):t)(e),y))),TextFieldProps:{InputProps:{disableUnderline:s},className:g.dropDownInput},components:{DropdownIndicator:m.Z},styles:b,classes:g,menuPortalTarget:document.body}))}},31537:(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={}))},34606:(e,t,n)=>{n.d(t,{te:()=>u,Io:()=>d,rx:()=>m,_V:()=>f,Xr:()=>h});var r=n(73122),a=n(17440),l=n(87918),o=n.n(l),i=n(31537);function c(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 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)),c({},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=>c({},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),c=(0,r.mB6)({attributePresentations:l,dataTypeDefinition:i});return(0,a.isNil)(e)?"":"string"==typeof e?o?c(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]||"")},51843:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),a=n.n(r),l=n(95038),o=n.n(l),i=n(87918),c=n.n(i),s=n(17440),p=n(73122),u=n(94079),d=n(96808),m=n(82943);const f=(0,n(79692).Z)({root:{flex:1},dropdownIndicator:{transition:"transform .15s ease"},inputRoot:{fontSize:"14px",height:46},input:{padding:"0 12px 0"},dateOptionLabel:{minWidth:"100px"},paper:{minWidth:"112px"}}),h=o().localeData().longDateFormat("L"),g=e=>{let{values:t,onChange:n,onFocus:l}=e;const o=h,i=(0,r.useRef)(null),[g,E]=(0,r.useState)(!1),y=f(),b=(0,r.useCallback)((()=>{E((e=>!e)),l()}),[l]),v=()=>{E(!1)};return a().createElement("div",{className:y.root},a().createElement(u.TextField,{fullWidth:!0,value:t.map((e=>((e,t)=>(0,s.isNil)(e)?`${t}`:`${(0,p.mB6)({dataTypeDefinition:{type:p.oS0.TYPE_ACTIVENESS_DATE}},e)}`)(e,o))).join(" — "),onClick:b,variant:"filled",ref:i,InputProps:{endAdornment:a().createElement(d.Z,{selectProps:{classes:y,menuIsOpen:g},innerProps:{}}),disableUnderline:(0,s.isNil)(t),readOnly:!0,classes:{root:y.inputRoot,input:y.input}},InputLabelProps:{shrink:!1},placeholder:c().text(`${o} — ${o}`)}),a().createElement(u.Menu,{variant:"menu",open:g,autoFocus:!1,classes:{paper:y.paper},anchorEl:i.current,onClose:v,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:g,style:{width:"100%"}}},a().createElement(m.Z,{values:t,onCancel:v,onApply:e=>{n(e),E(!1)},type:p.oS0.TYPE_ACTIVENESS_DATE})))}},72383:(e,t,n)=>{n.d(t,{v:()=>o});var r=n(24328),a=n.n(r),l=n(73122);const o=a().createContext({generateEntityUrl:l.OuZ,generatePivotingUrl:l.FQ2,generateTagUrl:l.W$R});o.displayName="UrlGeneratorsContext"},39450:(e,t,n)=>{n.d(t,{m:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="ViewIdContext"},71543:(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"}))},32944:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),l=n(94079);const o=(0,n(79692).Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),i=()=>{const e=o();return a().createElement(l.LinearProgress,{color:"primary",className:e.loader})}},58141:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),a=n.n(r),l=n(10237),o=n(92316);const i=(0,n(79692).Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),c=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},n))}},92316:(e,t,n)=>{n.d(t,{H:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="DashboardViewIdContext"},22243:(e,t,n)=>{n.d(t,{Z:()=>un});var r=n(24328),a=n.n(r),l=n(52730),o=n(17440),i=n(87918),c=n.n(i),s=n(83535),p=n(98884),u=n(49885),d=n(67885),m=n(73122);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{options:t,offset:n,max:a}=e;const[l,i]=(0,r.useState)([]),[c,s]=(0,r.useState)(0),[p,u]=(0,r.useState)(d.o.INIT),h=e=>{console.error(e),u(d.o.ERROR),i([])},g=(0,r.useCallback)((()=>{u(d.o.LOADING);const e=e=>{i(e.result||[]),s(e.total),u(d.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,m.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){f(e,t,n[t])}))}return e}({offset:n,max:a},c));if(l){const n=t.map((e=>(0,m.OaI)((0,m.dWE)(e.query)))),a=(await(0,m.RGr)(n)).reduce(((e,t,n)=>{let{status:r,value:a,reason:l}=t;switch(r){case"fulfilled":return(0,o.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(h)}),[t,a,n]),E=()=>{try{g()}catch(e){h(e)}};return(0,r.useEffect)((()=>{E()}),[g]),{state:p,data:l,reload:E,total:c}},g=[10,25,50,100],[E]=g,y=e=>g.filter((t=>t!==e)).concat(e).sort(o.subtract);var b=n(58141),v=n(92778),O=n(92316),x=n(94079),w=n(43054),T=n(79692);const S=(0,T.Z)((()=>({itemTitle:{fontSize:"13px"},itemIcon:{minWidth:"49px"},menuItem:{padding:"12px 16px",minWidth:"177px"},openIcon:{padding:"4px",borderRadius:"2px",marginTop:"-6px",marginRight:"-10px"}}))),R=e=>{let{items:t}=e;const[n,l]=(0,r.useState)(null),o=Boolean(n),i=S(),c=()=>l(null),s=e=>()=>{c(),e()};return a().createElement(a().Fragment,null,a().createElement(x.IconButton,{className:i.openIcon,"aria-controls":"menu","aria-haspopup":"true",onClick:e=>l(e.currentTarget)},a().createElement(w.Z,null)),a().createElement(x.Menu,{id:"menu",anchorEl:n,open:o,onClose:c,transitionDuration:0,getContentAnchorEl:null,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}=e;return a().createElement(x.MenuItem,{key:t,onClick:s(l),className:i.menuItem},a().createElement(x.ListItemIcon,{className:i.itemIcon},n),a().createElement(x.Typography,{className:i.itemTitle},r))}))))};var I=n(29103),P=n(83911),C=n(41039),M=n(43266),D=n(14940),N=n(71153),j=n.n(N);const F=(0,T.Z)((()=>({toolbarRoot:{padding:"16px",minHeight:"18px",lineHeight:"18px",marginBottom:"8px"},title:{fontSize:"16px",lineHeight:"20px",fontWeight:"normal",color:"rgba(0, 0, 0, 0.87)",letterSpacing:"0.15px",marginRight:"6px"},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",".react-draggable $toolbarRoot:hover &.viewDraggableHandle":{visibility:"visible"}},rightMenu:{display:"flex",flexGrow:1,justifyContent:"flex-end",alignItems:"baseline"},updatedChip:{background:"#FF9E1B",height:20,fontSize:"10px",color:"white",marginRight:"6px"}}))),k=e=>{let{title:t,onToggleFullscreen:n,isUpdated:l=!1,isFullscreen:o,onRemove:i,onRefresh:s,children:p}=e;const u=(0,r.useContext)(O.H),d=(0,r.useMemo)((()=>[{id:"refresh",title:c().text("Refresh"),icon:a().createElement(M.Z,null),active:!!s,action:()=>s()},{id:"fullscreen",title:c().text("Fullscreen"),icon:a().createElement(I.Z,null),active:!o,action:()=>n(u)},{id:"exitFullscreen",title:c().text("Exit fullscreen"),icon:a().createElement(P.Z,null),active:o,action:()=>n(u)},{id:"remove",title:c().text("Remove"),icon:a().createElement(C.Z,null),active:!!i,action:()=>{i(u),o&&n(u)}}]),[u,o,i,n,s]),m=F();return a().createElement(v.Z,{title:t,className:m.toolbarRoot,classes:{title:m.title}},l&&a().createElement(x.Chip,{label:c().text("Updated"),size:"small",className:m.updatedChip}),a().createElement("div",{className:m.rightMenu},p,a().createElement(R,{items:d})),a().createElement(D.Z,{className:j()("viewDraggableHandle",m.dragIcon)}))};var _=n(2256),A=n(4094);function z(){return z=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},z.apply(this,arguments)}const L=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",z({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"}))))},Z=(0,T.Z)((()=>({noDataContainer:e=>{let{height:t}=e;return{height:t?`${t}px`:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)"}},icon:{height:"88px",width:"88px",marginBottom:"20px"}}))),H=e=>{let{height:t}=e;const n=Z({height:t});return a().createElement("div",{className:n.noDataContainer},a().createElement(L,{className:n.icon}),a().createElement(x.Typography,null,c().text("No Data")))};function U(){return U=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},U.apply(this,arguments)}const B=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",U({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"}))))},V=(0,T.Z)((e=>({errorContainer:e=>{let{height:t}=e;return{height:t?`${t}px`:"auto",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"}}))),G=e=>{let{height:t,onRefresh:n,message:r}=e;const l=V({height:t});return a().createElement("div",{className:l.errorContainer},a().createElement(B,{className:l.errorIcon}),a().createElement(x.Typography,null,r),n&&a().createElement(x.Button,{className:l.refreshButton,startIcon:a().createElement(M.Z,{color:"primary",className:l.refreshIcon}),onClick:n},a().createElement(x.Typography,{variant:"button"},c().text("Refresh"))))};var W=n(32944),Y=n(44443);const $=(0,T.Z)((()=>({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"}}))),q=e=>{let{loadingState:t,onRefresh:n,children:r,data:l,className:o,EmptyPlaceholder:i}=e;const s=$();return a().createElement(A.Z,{className:j()(s.viewContent,o)},a().createElement(Y.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:o,height:s}=e;switch(t){case d.o.LOADED:return l&&0!==l.length?a().createElement(_.Z,{error:a().createElement(G,{message:c().text("Something went wrong"),height:s})},r({data:l,width:o,height:s})):i||a().createElement(H,{height:s});case d.o.LOADING:return a().createElement(W.Z,null);case d.o.ERROR:return a().createElement(G,{message:c().text("Error Loading Data"),height:s,onRefresh:n});default:return a().createElement("div",null,"Loading...")}})))};var K=n(58662);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 Q(e){const t=t=>{const n=(0,r.useRef)(null);return a().createElement(a().Fragment,null,a().createElement(e,X({},t,{basicTableRef:n,height:t.height-60})),a().createElement(K.Z,X({},t,{basicTableRef:n})))};return t.displayName="WithPagination",t}function J(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){ee(e,t,n[t])}))}return e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const te=e=>{let{uiState:t,uri:n}=e;return"2.0"===t.version?J({},t,{currentSavedSearchUri:n}):J({},t.state,{curSavedSearchUri:n})},ne=Q(s.Z),re=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:i,isFullscreen:s,onRemove:d}=e;const{id:m,title:f,options:g,max:v=E}=t,O=(0,r.useMemo)((()=>y(v)),[v]),[x,w]=(0,r.useState)(v),[T,S]=(0,r.useState)(0),{data:R,state:I,reload:P,total:C}=h({options:g,max:x,offset:x*T}),M=(0,r.useMemo)((()=>(e=>e.map((e=>{let{uri:t,name:n,count:r}=e;return{value:r||0,label:n||"",group:t}})))(R)),[R]),D=(0,l.useDispatch)(),N=(0,r.useCallback)((e=>{(0,o.pipe)((0,o.find)((0,o.propEq)("uri",e)),te,u.ui.actions.openSearch,D)(R)}),[D,R]);return(0,p.T)({state:I,reload:P}),a().createElement(b.Z,{id:m},a().createElement(k,{title:f,onToggleFullscreen:n,isFullscreen:s,isUpdated:i,onRefresh:P,onRemove:d}),a().createElement(q,{loadingState:I,onRefresh:P,data:M},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(ne,{width:n,height:r,data:t,count:C,onChangePage:S,page:T,rowsPerPage:x,onChangeRowsPerPage:w,rowsPerPageOptions:O,options:{headers:[c().text("Name")],showValues:null==g?void 0:g.countResults},onItemClick:N})})))}));var ae=n(56259),le=n(66675);const oe=(0,o.when)((0,o.pipe)((0,o.prop)("filter"),(0,o.includes)(o.__,[m.j5E.IN_RANGE,m.j5E.HAS_ALL])),(0,o.evolve)({values:m.FTe})),ie=(0,o.curry)(((e,t)=>({filter:m.j5E.NOT_EQUALS,values:[t],fieldName:e}))),ce=e=>{var t,n,r;return{filter:null!==(t=null==e?void 0:e.filter)&&void 0!==t?t:m.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:""}},se=e=>({filter:m.j5E.EQUALS,fieldName:"type",values:[e]}),pe=(0,o.curry)(((e,t)=>({filter:m.j5E.EQUALS,values:[t],fieldName:e}))),ue=(0,o.curry)(((e,t,n)=>{const{fieldName:r}=n,a=/^(attributes|analyticsAttributes)/.test(r),l=a?(0,m.zeJ)(e,(0,m.h2W)(r,t)):(0,m.Yxg)(r);return(0,o.pipe)(oe,(0,o.when)((()=>a),(0,o.assoc)("entityType",t)),(0,o.when)((()=>(0,m.Lt4)(l.type)),(0,o.evolve)({values:(0,o.map)((0,m.mOr)(m.ZBU))})))(n)})),de=e=>{let{filter:t,fieldName:n}=e;return t===m.j5E.EQUALS&&"type"===n},me=(e,t)=>{let{filter:n,fieldName:r,values:a}=e;return n===m.j5E.EQUALS&&"type"===r&&(null==a?void 0:a[0])===t};function fe(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){he(e,t,n[t])}))}return e}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ge=e=>{let{attribute:t,filters:n,globalFilter:r,searchByOv:a,activityFilter:l,pageSize:i,orderType:c}=e;const s=((e,t,n,r)=>{const a=(0,o.pipe)((0,o.map)(oe),(0,m.Uqd)(),(0,m.vyX)(t))(e),l=a?[`filter=${a}`]:[];return n&&l.push("options=searchByOv"),r&&l.push(`activeness=${r}`),l.join("&")})(n,r,a,l),p=[{fieldName:t,pageNo:1,orderType:c,pageSize:i}];return(0,m.FK9)({query:s,body:p}).then((e=>(0,o.pipe)((0,o.prop)(t),(0,o.defaultTo)({}),Object.entries,(0,o.map)((e=>{let[t,n]=e;return{label:t,group:t,value:n}})),(0,o.sortWith)([(0,o.descend)((0,o.prop)("value")),(0,o.ascend)((0,o.prop)("label"))]))(e)))},Ee=(0,o.curry)(((e,t)=>{const n=t.map((t=>{let{label:n}=t;return{codeValue:n,type:e}}));return(0,m.hK$)(n).then((n=>{const r=n.flatMap((0,m.Z2f)(e));return t.map((e=>{const t=r.find((t=>{let{lookupCode:n}=t;return n===e.label}));return t?fe({},e,{label:t.value}):e}))}))})),ye=(0,o.curry)(((e,t)=>t.map((0,o.pipe)((0,o.prop)("group"),ie(e))))),be="Other",ve=(0,o.curry)(((e,t)=>{let{attribute:n,filters:r,globalFilter:a,searchByOv:l,activityFilter:i}=e;const s=(0,o.pipe)(ye(n),(0,o.concat)(r),(0,o.map)(oe))(t),p=l&&"searchByOv";return(0,m.j_Q)(s,{globalFilter:a,activityFilter:i,searchOptions:p}).then((e=>{let{total:n}=e;return n>0?t.concat([{label:c().text("Other"),group:be,value:n}]):t}))})),Oe=(e,t)=>(0,m.xqc)(e,"configuration/roles/"+t),xe=(0,o.map)((e=>fe({},e,{localizedValue:c().number(e.value)}))),we=(0,o.when)(m.EdS,m.Tde),Te=(0,o.ifElse)(m.EdS,m.Uk3,(0,o.always)(void 0)),Se=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=Te(e),r=t.some((e=>me(e,n)));return n&&!r?[se(n),...t]:t},Re=(0,o.curry)(((e,t,n)=>{const r=we(e);return n===be?(0,o.pipe)((0,o.reject)((0,o.propEq)("group",be)),ye(r))(t):[pe(r,n)]})),Ie=(0,o.curry)(((e,t,n)=>{var r,a;const l=Te(t)||(null===(r=n.find(de))||void 0===r||null===(a=r.values)||void 0===a?void 0:a[0]);return{facets:n.map(ue(e,l))}}));const Pe=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:i,isFullscreen:c,onRemove:s}=e;const{id:f,title:h,filters:g,attributeUri:E,count:y,orderType:v,chartType:O,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"]),T=O===m.$XE.MAP?100:8,{data:S,state:R,reload:I}=(e=>{let{filters:t,attributeUri:n,pageSize:a,orderType:i="reversedCount",options:c}=e;const[s,p]=(0,r.useState)([]),[f,h]=(0,r.useState)(d.o.INIT),g=(0,r.useContext)(ae.I),E=(0,r.useMemo)((()=>g.map(ce).concat(t||[])),[g,t]),y=(0,l.useSelector)(u.ZP.selectors.getMetadata),{globalFilter:b,activityFilter:v}=(0,l.useSelector)(u.ZP.selectors.getGlobalSearchRequestOptions),O=(0,l.useSelector)(u.ZP.selectors.getAttributePresentations),x=!(null==O||!O[n]),w=(0,l.useSelector)(u.ZP.selectors.getShowSearchByOv),T=null==c?void 0:c.showOthers,S=e=>{console.error(e),h(d.o.ERROR),p([])},R=(0,r.useCallback)((()=>{h(d.o.LOADING);const e=Se(n,E),t=we(n),r=(0,m.Yxg)(t)||(0,m.zeJ)(y,n);if(!r)return void S("Configuration is incorrect");const l=(0,o.pipe)(ge,(0,o.andThen)(((e,t)=>(0,o.pipe)((0,o.when)((()=>(0,m.CwH)(t)),Ee((0,m.To9)(t))),(0,o.when)((()=>(0,m.ian)(t)),(0,o.map)((t=>fe({},t,{label:Oe(e,t.group)})))),(0,o.when)((()=>(0,m.Lt4)(t.type)),(0,o.map)((0,o.evolve)({label:(0,o.pipe)(m.ZBU,(0,m.mB6)({dataTypeDefinition:(0,m.PFL)(t)}))})))))(y,r)),(0,o.andThen)((0,o.unless)((0,o.always)(x),xe)),(0,o.andThen)((0,o.when)((0,o.always)(T),ve({attribute:t,filters:e,globalFilter:b,searchByOv:w,activityFilter:v}))),(0,o.andThen)((e=>{h(d.o.LOADED),p(e)})),(0,o.otherwise)(S));l({attribute:t,filters:e,globalFilter:b,searchByOv:w,activityFilter:v,pageSize:a,orderType:i})}),[h,n,y,T,E,b,w,v,a,i,x]),I=()=>{try{R()}catch(e){S(e)}};return(0,r.useEffect)((()=>{I()}),[R]),{state:f,data:s,reload:I}})({filters:g,attributeUri:E,pageSize:y||T,orderType:v,options:{showOthers:x}});(0,p.T)({state:R,reload:I});const P=(0,l.useDispatch)(),C=(0,l.useSelector)(u.ZP.selectors.getMetadata),M=(0,r.useContext)(ae.I),D=(0,r.useMemo)((()=>M.map(ce).concat(g||[])),[M,g]),N=(0,o.pipe)(Re(E,S),(0,o.concat)(Se(E,D)),Ie(C,E),u.ui.actions.openSearch,P);return a().createElement(b.Z,{id:f},a().createElement(k,{title:h,onToggleFullscreen:n,isUpdated:i,isFullscreen:c,onRefresh:I,onRemove:s}),a().createElement(q,{loadingState:R,onRefresh:I,data:S},(e=>{let{data:t,width:n=0,height:r=0}=e;return le.Z.build(O,{data:t,width:n,height:r,options:w,onItemClick:N})})))}));var Ce=n(85709),Me=n(92332),De=n(95613);const Ne={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"},je=(0,T.Z)((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":Ne},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":Ne}})));function Fe(){return Fe=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},Fe.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){_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 Ae=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=je();return a().createElement("div",{className:j()(l.headCell,t)},a().createElement(Me.default,Fe({},r,{headCellData:ke({},n,{label:a().createElement(De.Z,{value:n.label},a().createElement("div",{className:l.headLabel},n.label))})})))};var ze=n(31039);const Le=e=>{let{value:t,rowValue:n}=e;const r=je(),l=(0,m.idV)(t);return a().createElement(De.Z,{value:l},a().createElement(ze.Z,{value:(0,m.wwR)(n),className:r.entityLabel},l))},Ze=(0,T.Z)({tableContainer:e=>{let{width:t,height:n}=e;return{height:n,width:t,display:"flex",flexDirection:"column"}},cellBorder:{borderLeft:"none",borderRight:"none"}}),He=Q((e=>{let{height:t,width:n,basicTableRef:r,data:l}=e;const o=Ze({width:n,height:t}),i=[{id:"label",label:c().text("Entity"),resizable:!1,headCellRenderer:Ae,rowCellValueRenderer:Le,initialWidth:n}],s={cellBorder:o.cellBorder};return a().createElement("div",{className:o.tableContainer},a().createElement(Ce.Z,{columnsData:i,rowsData:l,headRowHeight:48,getRowCellHeight:null,classes:s,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:r}))})),Ue=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:i}=e;const{id:c,title:s,filters:u,max:f=E}=t,h=(0,r.useMemo)((()=>y(f)),[f]),[g,v]=(0,r.useState)(f),[O,x]=(0,r.useState)(0),{data:w,state:T,reload:S,total:R}=(e=>{let{filters:t,max:n,offset:a}=e;const[l,o]=(0,r.useState)([]),[i,c]=(0,r.useState)(0),[s,p]=(0,r.useState)(d.o.INIT),u=(0,r.useContext)(ae.I),f=(0,r.useMemo)((()=>u.map(ce).concat(t||[])),[u,t]),h=e=>{console.error(e),p(d.o.ERROR),o([]),c(0)},g=(0,r.useCallback)((()=>{p(d.o.LOADING),Promise.all([(0,m.ZOr)(f,{max:n,offset:a}),(0,m.j_Q)(f,{max:n,offset:a})]).then((e=>{const[t,{total:n}]=e;o(t||[]),c(n),p(d.o.LOADED)})).catch(h)}),[f,n,a]),E=()=>{try{g()}catch(e){h(e)}};return(0,r.useEffect)((()=>{E()}),[g]),{state:s,data:l,reload:E,total:i}})({filters:u,max:g,offset:g*O});return(0,p.T)({state:T,reload:S}),a().createElement(b.Z,{id:c},a().createElement(k,{title:s,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRefresh:S,onRemove:i}),a().createElement(q,{loadingState:T,onRefresh:S,data:w},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(He,{height:r,onChangePage:x,page:O,rowsPerPage:g,count:R,onChangeRowsPerPage:v,rowsPerPageOptions:h,width:n,data:t})})))}));var Be=n(59983),Ve=n(2899);var Ge=n(95038),We=n.n(Ge);let Ye;!function(e){e.HOUR="hour",e.DAY="day"}(Ye||(Ye={}));const $e=(0,o.pipe)((e=>(0,m.RHh)(e,qe)),(e=>{let[t,n]=e;return n-t>+We().duration(1,"day")?Ye.DAY:Ye.HOUR})),qe=e=>{const t=We()();return e===m.bZE.LAST_WEEK?[We()(t).subtract(6,"days").valueOf(),t.valueOf()]:(0,m.VQ1)(e)},Ke=(0,o.pipe)(qe,(0,o.defaultTo)([]),(0,o.map)((e=>e&&new Date(e)))),Xe=[{id:"created",types:["CREATED"],get label(){return c().text("New")},color:"#4BAFFF"},{id:"updated",types:["UPDATED"],get label(){return c().text("Updated")},color:"#0072CE"},{id:"deleted",types:["DELETED"],get label(){return c().text("Deleted")},color:"#F085F2"},{id:"matched",types:["POTENTIAL_MATCHES_FOUND"],get label(){return c().text("Matched")},color:"#C4CE00"},{id:"autoMerged",types:["MERGED","MERGED_ON_THE_FLY"],get label(){return c().text("Auto-merged")},color:"#CE5C00"},{id:"mergedManually",types:["MERGED_MANUALLY"],get label(){return c().text("Manually merged")},color:"#9E7ED3"},{id:"unmerged",types:["SPLITTED"],get label(){return c().text("Unmerged")},color:"#40CFBB"},{id:"notMatch",types:["NOT_MATCHES_SET"],get label(){return c().text("Not a match")},color:"#F97061"}],Qe=e=>Xe.find((0,o.propEq)("id",e)),Je=(0,o.pipe)(Qe,(0,o.propOr)("","label")),et=(0,o.pipe)(Qe,(0,o.prop)("color")),tt=e=>{const[t,n]=(0,m.RHh)(e,qe),r=e=>{let{facet:r,types:a}=e;return(0,m.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,o.chain)((0,o.prop)("types"),Xe),t=(0,o.pipe)((0,o.propOr)([],"data"),(0,o.pluck)("term"));return r({facet:"type",types:e}).then((e=>t(e)))})().then((e=>e.length>0?(e=>{const a=(0,o.pipe)((0,o.map)((0,o.evolve)({term:e=>We().utc(e).valueOf()})),(0,o.prepend)({term:t,count:0}),(0,o.append)({term:n,count:0}));return Promise.all(Xe.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):[]))},nt=(0,o.curry)(((e,t)=>(0,o.pipe)((0,o.groupBy)((t=>{let{term:n}=t;return We()(n).startOf(e)})),o.toPairs,(0,o.map)((e=>{let[t,n]=e;return{term:We()(t).valueOf(),count:(0,o.sum)((0,o.pluck)("count",n))}})))(t))),rt=(0,o.curry)(((e,t)=>{const[n,...r]=t;return r.reduce(((t,n)=>{const r=(0,o.last)(t).term;let a=We()(r).add(1,e).valueOf();const l=[];for(;a<n.term;)l.push({term:a,count:0}),a=We()(a).add(1,e).valueOf();return t.concat(l,n)}),[n])})),at=(0,o.curry)(((e,t)=>t.map((0,o.evolve)({data:(0,o.pipe)(nt(e),rt(e))})))),lt=(0,o.cond)([[(0,o.equals)(Ye.HOUR),(0,o.always)("LT")],[(0,o.equals)(Ye.DAY),(0,o.always)("MMM D")]]),ot=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"},c().date(null==r?void 0:r.value,lt(l))))},it=(0,T.Z)({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"}}),ct=(0,o.cond)([[(0,o.equals)(Ye.HOUR),(0,o.always)("LT MMM D")],[(0,o.equals)(Ye.DAY),(0,o.always)("ll")]]),st=e=>{let{active:t,payload:n,label:r,step:l,events:o}=e;const i=it();return t&&a().createElement("div",{className:i.tooltipWrapper},a().createElement("p",{className:i.tooltipTitle},c().date(r,ct(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}),`${Je(n)}: ${r}`)})))},pt=e=>{let{payload:t,selectedItems:n,onClick:r}=e;const l=it();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(x.Tooltip,{title:s?c().text("Hide"):c().text("Show")},a().createElement("div",{style:s?{background:o}:{border:`${o} 1px solid`},className:l.legendItemColor,onClick:()=>r(t)})),Je(t),a().createElement("span",{className:l.legendItemValue},i))})))};function ut(){return ut=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},ut.apply(this,arguments)}const dt=e=>{let{data:t,width:n,height:l,step:i}=e;const[c,s]=(0,r.useState)((0,o.pluck)("event",t)),[p,u]=(0,r.useState)(null),{cartesianGrid:d,tooltip:f,xAxis:h,yAxis:g,line:E,legend:y}={xAxis:{type:"category",dataKey:"term",tick:{fill:"#000",opacity:"0.54"},angle:0,textAnchor:"middle",stroke:"#666",allowDuplicatedCategory:!1},yAxis:{dataKey:"",type:"number",tick:{fill:"#000",opacity:"0.54",width:void 0},stroke:"#666",tickFormatter:m.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)((()=>at(i,t)),[i,t]),v=(0,r.useMemo)((()=>((e,t)=>{const n=(0,o.chain)((0,o.pipe)((0,o.prop)("data"),(0,o.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(Ve.wW,{width:n,height:l},a().createElement(Ve.q3,d),a().createElement(Ve.Kc,ut({},h,{tick:a().createElement(ot,{step:i})})),a().createElement(Ve.B2,ut({},g,{tickCount:8,domain:v})),b.map((e=>{let{event:t,data:n}=e;const r=c.includes(t);return a().createElement(Ve.x1,ut({key:t,stroke:et(t),name:t,data:n,dot:r&&{r:5,strokeWidth:2},activeDot:r&&{r:5,strokeWidth:2,onMouseEnter:()=>u(t),onMouseLeave:()=>u(null)},strokeOpacity:r?1:0},E))})),a().createElement(Ve.De,ut({content:a().createElement(pt,{selectedItems:c,onClick:e=>{s((0,o.ifElse)((0,o.includes)(e),(0,o.without)([e]),(0,o.append)(e)))}}),payload:b.map((e=>{let{event:t,total:n}=e;return{id:t,type:"square",color:et(t),value:n}}))},y)),a().createElement(Ve.u,ut({},f,{content:a().createElement(st,{step:i,events:p?[p]:c})})))};var mt=n(85229);const ft=(0,T.Z)({periodSelector:{position:"relative",margin:"0 6px 0 0",flexBasis:"220px",flexShrink:1,'& input[type="text"]':{padding:"0 0 0 8px"}}}),ht=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRemove:c}=e;const s=ft(),{id:u,title:f}=t,[h,g]=(0,r.useState)(m.bZE.LAST_WEEK),{state:E,data:y,reload:v}=(e=>{const[t,n]=(0,r.useState)([]),[a,l]=(0,r.useState)(d.o.INIT),i=(0,mt._)(),c=e=>{console.error(e),l(d.o.ERROR),n([])},s=(0,r.useCallback)((()=>{l(d.o.LOADING);const t=(0,o.pipe)(tt,i,(0,o.andThen)((e=>{l(d.o.LOADED),n(e)})),(0,o.otherwise)(c));t(e)}),[e.toString()]),p=()=>{try{s()}catch(e){c(e)}};return(0,r.useEffect)((()=>{p()}),[s]),{state:a,data:t,reload:p}})(h);return(0,p.T)({state:E,reload:v}),a().createElement(b.Z,{id:u},a().createElement(k,{title:f,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRefresh:v,onRemove:c},a().createElement(Be.Z,{values:h,options:(0,m.cGG)(),getValuesDateRange:Ke,onChange:g,className:s.periodSelector})),a().createElement(q,{loadingState:E,onRefresh:v,data:y},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(dt,{data:t,width:n,height:r,step:$e(h)})})))}));var gt=n(3292);function Et(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){yt(e,t,n[t])}))}return e}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bt=e=>`configuration/entityTypes/${e}`,vt=(0,o.pipe)((0,o.prop)("group"),bt),Ot=(0,o.curry)(((e,t)=>t.map((t=>{const n=vt(t);return Et({},t,{label:(0,m.nt9)(e,n).label})})))),xt=(0,o.curry)(((e,t)=>{const n=(0,o.pipe)(vt,(0,m.io3)(e),(0,o.map)((0,m.nt9)(e)),(0,o.filter)(m.oDv),o.last),r=t.reduce(((e,t)=>{const r=n(t);if(r){const n=(0,m.nIW)(r.uri);return Et({},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}}))})),wt=(0,o.pipe)(bt,se,m.VGB),Tt=(0,o.pipe)((0,o.prop)("uri"),m.nIW),St=(0,o.curry)(((e,t)=>e.find((e=>e.group===t)))),Rt=e=>({label:e,group:e,value:0}),It=(0,o.curry)(((e,t)=>{let{entityTypes:n}=e;const r=(0,o.pipe)(Tt,(0,o.either)(St(t),Rt));return n.filter(m.oDv).map(r)})),Pt=[],Ct=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:i,isFullscreen:c,onRemove:s}=e;const{id:m,title:f,hideEmpty:h,orderType:g,inheritChildren:E}=t,{data:y,state:v,reload:O}=(e=>{let{orderType:t,inheritChildren:n,hideEmpty:a}=e;const[i,c]=(0,r.useState)([]),[s,p]=(0,r.useState)(d.o.INIT),m=(0,l.useSelector)(u.ZP.selectors.getMetadata),f=m.entityTypes.length,{globalFilter:h,activityFilter:g}=(0,l.useSelector)(u.ZP.selectors.getGlobalSearchRequestOptions),E=(0,l.useSelector)(u.ZP.selectors.getShowSearchByOv),y=e=>{console.error(e),p(d.o.ERROR),c([])},b=(0,r.useCallback)((()=>{p(d.o.LOADING);const e=(0,o.pipe)(ge,(0,o.andThen)((0,o.unless)((0,o.always)(a),It(m))),(0,o.andThen)((0,o.when)((0,o.always)(n),xt(m))),(0,o.andThen)(Ot(m)),(0,o.andThen)(xe),(0,o.andThen)((e=>{p(d.o.LOADED),c(e)})),(0,o.otherwise)(y));e({attribute:"type",pageSize:f,filters:Pt,globalFilter:h,searchByOv:E,activityFilter:g,orderType:t})}),[a,m,n,f,h,E,g,t]),v=()=>{try{b()}catch(e){y(e)}};return(0,r.useEffect)((()=>{v()}),[b]),{state:s,data:i,reload:v}})({hideEmpty:h,orderType:g,inheritChildren:E});(0,p.T)({state:v,reload:O});const x=(0,l.useDispatch)(),w=(0,l.useSelector)(u.ZP.selectors.getMetadata),T=(0,o.pipe)(wt,Ie(w,"type"),u.ui.actions.openSearch,x);return a().createElement(b.Z,{id:m},a().createElement(k,{title:f,onToggleFullscreen:n,isUpdated:i,isFullscreen:c,onRefresh:O,onRemove:s}),a().createElement(q,{loadingState:v,onRefresh:O,data:y},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(gt.Z,{width:n,height:r,data:t,onItemClick:T})})))})),Mt=(0,T.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 16px"},iframe:{borderWidth:0,width:"100%",height:"100%"},tasksSelector:{position:"relative",margin:"0 6px 0 0",flexBasis:"220px",flexShrink:1},tasksSelectorInput:{fontSize:"14px",lineHeight:"16px",padding:"12px 32px 10px 12px"},pagination:{height:"52px",flexGrow:0,flexShrink:0}}))),Dt=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:r,isFullscreen:l,onRemove:o}=e;const{id:i,title:c,url:s}=t,p=Mt();return a().createElement(b.Z,{id:i},a().createElement(k,{title:c,onToggleFullscreen:n,isUpdated:r,isFullscreen:l,onRemove:o}),a().createElement(A.Z,{className:p.viewContent},a().createElement("iframe",{src:s,frameBorder:"0",className:p.iframe})))}));let Nt;!function(e){e.MY="my",e.TEAM="team"}(Nt||(Nt={}));var jt=n(30739),Ft=n(34e3),kt=n(73272);function _t(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){At(e,t,n[t])}))}return e}function At(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zt=(0,o.cond)([[(0,o.equals)(Nt.MY),(0,o.always)(m.C82)],[(0,o.equals)(Nt.TEAM),(0,o.always)(m.h6J)],[o.T,(0,o.always)((()=>Promise.resolve({data:[]})))]]),Lt=(0,o.pipe)((0,o.propOr)([],"objectURIs"),o.head),Zt=(0,o.startsWith)("changeRequests/"),Ht=(0,o.complement)(o.isEmpty),Ut=(0,o.pipe)((0,o.map)(Lt),(0,o.filter)(m.WgC),(0,o.when)(Ht,m.DnY)),Bt=(0,o.pipe)((0,o.map)(Lt),(0,o.filter)(Zt),(0,o.map)((0,o.pipe)(m.E6I,(0,o.otherwise)((0,o.always)(null)))),(e=>Promise.all(e))),Vt=(0,o.converge)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Promise.all(t)}),[Ut,Bt]),Gt=e=>{let{objectsInfo:t={},changes:n={},uri:r}=e;const a=e=>(0,o.path)([e,0],n),l=e=>{const{type:t}=a(e);return"CREATE_ENTITY"==t||"CREATE_RELATIONSHIP"==t?r+"/changes/"+e:e};return(0,o.pipe)(o.keys,(0,o.filter)(a),(0,o.sort)((0,o.descend)((0,o.pipe)(a,(0,o.prop)("createdTime")))),(0,o.map)((e=>_t({},t[e],{uri:l(e)}))))(t)},Wt=(e,t,n)=>(t=(0,o.reject)(o.isNil,t),n.map((0,o.pipe)((0,o.when)((0,o.pipe)(Lt,m.WgC),(e=>t=>{const n=e.find((0,o.propEq)("uri",Lt(t)));return n?_t({},t,{objects:[n]}):t})(e)),(0,o.when)((0,o.pipe)(Lt,Zt),(e=>t=>{const n=e.find((0,o.propEq)("uri",Lt(t)));return n?_t({},t,{objects:Gt(n)}):t})(t))))),Yt=(0,o.curry)((async(e,t)=>{let{workflowPath:n,environment:r,tenant:a,assignee:l,max:o,offset:i}=t;const c=zt(e),{data:s,total:p}=await c({workflowPath:n,environment:r,tenant:a,assignee:l,max:o,offset:i}),[u,d]=await Vt(s);return{data:Wt(u,d,s),total:p}})),$t=e=>e.dueDate&&e.dueDate<Date.now(),qt=(0,T.Z)((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,padding:"0 15px",overflow:"hidden",overflowWrap:"anywhere"},taskTitle:{lineHeight:"18px",marginBottom:"6px"},taskDetail:{lineHeight:"15px",fontSize:"12px",margin:"5px 0"},taskDetailTitle:{color:e.palette.text.secondary,marginRight:"3px"},taskDueDate:{flex:"0 0 110px",fontSize:"13px",lineHeight:"15px",textAlign:"right",paddingTop:"6px"},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"}}))),Kt=e=>{let{uri:t,label:n,screen:r}=e;const l=qt();return a().createElement(ze.Z,{value:t,screen:r,className:l.entityLabel},(0,m.idV)(n))},Xt=e=>{let{object:t,metadata:n,processType:r}=e;if("startObjectUri"in t&&"endObjectUri"in t){const e=(0,m.V3K)(n,t.type);return a().createElement(a().Fragment,null,e.label," ",c().text("from")," ",a().createElement(Kt,{uri:t.startObjectUri,label:t.startObjectLabel})," ",c().text("to")," ",a().createElement(Kt,{uri:t.endObjectUri,label:t.endObjectLabel}))}{const e=(0,o.cond)([[(0,o.always)((0,o.equals)(r,m.Yj_.potentialMatchReview)),(0,o.always)("potentialMatches")],[(0,o.propSatisfies)(m.FP6,"uri"),(0,o.always)("dcrReview")],[o.T,(0,o.always)("profile")]])(t);return a().createElement(Kt,{uri:(0,m.wwR)(t),label:t.label,screen:e})}},Qt=e=>{let{task:t,showAssignee:n}=e;const r=qt(),o=t.objects||[],[i]=o,s=(0,l.useSelector)(u.ZP.selectors.getMetadata),p=i&&(0,m.nt9)(s,i.type);return a().createElement("div",{className:j()(r.taskItem,t.priorityClass)},a().createElement(Ft.Z,{entityType:p}),a().createElement("div",{className:r.taskInfo},a().createElement(x.Typography,{className:r.taskTitle,variant:"subtitle1"},c().text(t.processDefinitionDisplayName)),o.map((e=>a().createElement("p",{key:e.uri,className:r.taskDetail},a().createElement(Xt,{object:e,processType:t.processType,metadata:s})))),a().createElement("p",{className:r.taskDetail},a().createElement("span",{className:r.taskDetailTitle},`${c().text("Created by")}:`),t.createdBy," ",c().text("on")," ",c().date(t.createTime,"L")),n&&t.assignee&&a().createElement("p",{className:r.taskDetail},a().createElement("span",{className:r.taskDetailTitle},`${c().text("Assigned to")}:`),t.assignee),a().createElement("p",{className:r.taskDetail},a().createElement("span",{className:r.taskDetailTitle},`${c().text("Step")}:`),t.displayName)),a().createElement("div",{className:j()(r.taskDueDate,{[r.overdue]:$t(t),[r.hidden]:!t.dueDate})},a().createElement(kt.Z,{className:r.flag}),c().date(t.dueDate,"L")))},Jt=e=>{let{width:t,height:n,tasksCategory:l,tasks:o}=e;const i=(0,r.useCallback)((e=>{let{data:t,index:n}=e;return a().createElement("div",null,a().createElement(Qt,{task:t[n],showAssignee:l!==Nt.MY}),a().createElement(x.Divider,{light:!0,variant:"inset"}))}),[l]);return a().createElement(jt.Z,{width:t,height:n,data:o,defaultItemSize:115},i)};function en(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tn=n(31276);const nn=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:i,isFullscreen:s,onRemove:m}=e;const f=Mt(),{id:h,title:g,pageSize:E}=t,[y,v]=(0,r.useState)(0),[O,w]=(0,r.useState)(E||10),[T,S]=(0,r.useState)(Nt.MY),R=(0,r.useMemo)((()=>({tasksCategory:T,max:O,offset:O*y})),[O,y,T]),{state:I,data:P,total:C,reload:M}=(e=>{const{tasksCategory:t}=e,n=(0,r.useMemo)((()=>(0,o.pick)(["max","offset"],e)),[e]),[a,i]=(0,r.useState)([]),[c,s]=(0,r.useState)(d.o.INIT),[p,m]=(0,r.useState)(),f=(0,l.useSelector)(u.ZP.selectors.getWorkflowPath),h=(0,l.useSelector)(u.ZP.selectors.getWorkflowEnvironmentUrl),g=(0,l.useSelector)(u.ZP.selectors.getTenant),E=(0,l.useSelector)(u.ZP.selectors.getUserName),y=t===Nt.MY?E:void 0,b=(0,mt._)(),v=e=>{console.error(e),s(d.o.ERROR),i([])},O=(0,r.useCallback)((()=>{s(d.o.LOADING);const e=(0,o.pipe)(Yt(t),b,(0,o.andThen)((e=>{let{data:t,total:n}=e;s(d.o.LOADED),i(t),m(n)})),(0,o.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){en(e,t,n[t])}))}return e}({workflowPath:f,environment:h,tenant:g,assignee:y},n))}),[f,h,g,t,n]),x=()=>{try{O()}catch(e){v(e)}};return(0,r.useEffect)((()=>{x()}),[O]),{state:c,data:a,reload:x,total:p}})(R);return(0,p.T)({state:I,reload:M}),a().createElement(b.Z,{id:h},a().createElement(k,{title:g,onToggleFullscreen:n,isUpdated:i,isFullscreen:s,onRemove:m,onRefresh:M},a().createElement(x.Select,{className:f.tasksSelector,classes:{root:f.tasksSelectorInput},variant:"filled",value:T,onChange:(0,o.pipe)(tn.NA,S)},a().createElement(x.MenuItem,{value:Nt.MY},c().text("My tasks")),a().createElement(x.MenuItem,{value:Nt.TEAM},c().text("Team tasks")))),a().createElement(q,{loadingState:I,onRefresh:M,data:P},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(Jt,{width:n,height:r,tasksCategory:T,tasks:t})})),C>(E||10)&&a().createElement("div",{className:f.pagination},a().createElement(K.Z,{count:C,rowsPerPage:O,page:y,onChangePage:v,onChangeRowsPerPage:w})))}));var rn=n(46188),an=n(88234),ln=n(67486);const on=(0,T.Z)((()=>({activityLogFilter:{padding:"0 9px"}}))),cn=(0,r.memo)((e=>{let{config:t,isUpdated:n,isFullscreen:l,onToggleFullscreen:i,onRemove:c}=e;const{id:s,title:u,exportTypes:f}=t,h=on(),[g,v]=(0,r.useState)(0),[O,x]=(0,r.useState)(E),w=(0,r.useMemo)((()=>y(E)),[]),[T,S]=(0,r.useState)({users:[],activities:[],dateRange:{type:m.KfU.WITHIN,period:[4,"months"]}}),{state:R,data:I,total:P,reload:C}=(e=>{let{filter:t,max:n,offset:a}=e;const[l,i]=(0,r.useState)([]),[c,s]=(0,r.useState)(0),[p,u]=(0,r.useState)(d.o.INIT),m=(0,mt._)(),f=e=>{console.error(e),u(d.o.ERROR),i([]),s(0)},h=(0,ln.d)({filter:t,max:n,offset:a}),g=(0,r.useCallback)((()=>{u(d.o.LOADING);const e=(0,o.pipe)(h,m,(0,o.andThen)((e=>{let{data:t,total:n}=e;i(t),s(n),u(d.o.LOADED)})),(0,o.otherwise)(f));e()}),[h]),E=()=>{try{g()}catch(e){f(e)}};return(0,r.useEffect)((()=>{E()}),[g]),{state:p,data:l,total:c,reload:E}})({filter:T,max:O,offset:g*O}),M=(0,r.useCallback)((e=>{S(e),v(0)}),[]);return(0,p.T)({state:R,reload:C}),a().createElement(b.Z,{id:s},a().createElement(k,{title:u,onToggleFullscreen:i,isUpdated:n,isFullscreen:l,onRemove:c,onRefresh:C}),a().createElement("div",{className:h.activityLogFilter},a().createElement(rn.Z,{value:T,onChange:M,exportTypes:f})),a().createElement(q,{loadingState:R,onRefresh:C,data:I},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(an.Z,{width:n,height:r,activities:t,count:P,page:g,onChangePage:v,rowsPerPage:O,onChangeRowsPerPage:x,rowsPerPageOptions:w})})))}));function sn(){return sn=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},sn.apply(this,arguments)}class pn{}pn.ViewTypes=m.dZX,pn.getComponent=e=>{let{config:t,type:n,isUpdated:r,isFullscreen:l,onToggleFullscreen:o,onRemove:i}=e;const c={isUpdated:r,isFullscreen:l,onToggleFullscreen:o,onRemove:i};switch(n){case pn.ViewTypes.ActivitiesViewFacet:return a().createElement(cn,sn({config:t},c));case pn.ViewTypes.CustomActionViewFacet:return a().createElement(Dt,sn({config:t},c));case pn.ViewTypes.DashboardFacet:return a().createElement(Pe,sn({config:t},c));case pn.ViewTypes.EntitiesByTypeViewFacet:return a().createElement(Ct,sn({config:t},c));case pn.ViewTypes.FilteredSavedSearchesFacet:return a().createElement(re,sn({config:t},c));case pn.ViewTypes.FilteredEntitiesViewFacet:return a().createElement(Ue,sn({config:t},c));case pn.ViewTypes.NotificationInboxFacet:return a().createElement(nn,sn({config:t},c));case pn.ViewTypes.ProfileStatsFacet:return a().createElement(ht,sn({config:t},c));default:return a().createElement("div",null,"NOT IMPLEMENTED")}},pn.getChartType=e=>{const t={[pn.ViewTypes.EntitiesByTypeViewFacet]:m.$XE.TREE,[pn.ViewTypes.FilteredSavedSearchesFacet]:m.$XE.TABLE,[pn.ViewTypes.FilteredEntitiesViewFacet]:m.$XE.TABLE,[pn.ViewTypes.ProfileStatsFacet]:m.$XE.LINE,[pn.ViewTypes.NotificationInboxFacet]:m.$XE.TABLE,[pn.ViewTypes.ActivitiesViewFacet]:m.$XE.TABLE};return e.chartType||t[e.component]};const un=pn}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[9258],{7785:(e,t,n)=>{n.d(t,{Z:()=>R});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(87918),c=n.n(i),s=n(38402),p=n(94079),u=n(95613),d=n(16657),m=n(83348),f=n(55299),h=n(31276),g=n(71543);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 y=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 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=>a().createElement("svg",b({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"})),O=(0,n(79692).Z)({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"}}),x=e=>{let{attrType:t={}}=e;const n=O(),r=(e=>{switch(e.type){case d.oS0.TYPE_IMAGE:case d.oS0.TYPE_NESTED:return g.Z;case d.oS0.TYPE_REFERENCE:return y;default:return v}})(t);return a().createElement(r,{className:n.icon})};var w=n(31269);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 S=(0,m.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"}))))),R=(0,r.memo)((e=>{let{groupId:t,data:n,checked:r=!1,isFocused:l=!1,isRequired:i=!1,label:m,labelInText:g,level:E,onClick:y=h.ZT,hideCheckBox:b=!1,hideIcon:v=!1,notSelectable:T=!1,disableHorizontalScrollbar:R=!1,style:I={},subItemMargin:P=20,LogoIcon:C,className:M}=e;const D=O(),{attrType:N}=n||{},j=!(b&&(0,d.QZu)(N)||T),F=!!C;return a().createElement(u.Z,{value:g||m,className:D.itemTooltip,placement:"bottom-end"},a().createElement(s.Z,{className:o()(D.container,D.listItem,{[D.defaultCursor]:!j},M),onClick:j?()=>y(n,!r,t):void 0,style:I,dense:!0,button:j,classes:{focusVisible:D.listItemFocus,selected:D.listItemFocus},selected:l,tabIndex:-1},!b&&a().createElement(p.Checkbox,{checked:r,disableRipple:!0,disabled:!j,className:o()(D.checkbox,{[D.checked]:r}),tabIndex:-1}),a().createElement(w.Z,{margin:P,level:E,className:D.marginWrapper},a().createElement(a().Fragment,null,!v&&(e=>"recommended"===t?a().createElement(S,{className:D.recommendedIcon,tooltipTitle:c().text("Recommended"),showForDisabled:!0}):a().createElement(x,{attrType:e}))(N),a().createElement("div",{className:o()(D.itemTextWrapper,{[D.marginText]:v})},F&&a().createElement(C,{className:D.logoIcon}),a().createElement(p.ListItemText,{primary:a().createElement(a().Fragment,null,m,i&&a().createElement(f.Z,null)),className:D.itemText})))),j&&R&&a().createElement("div",{className:D.itemAfter})))}))},27815:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l),i=n(71153),c=n.n(i),s=n(17440),p=n(52730),u=n(49885),d=n(16657),m=n(94079),f=n(92575),h=n(37285),g=n(96808),E=n(7785),y=n(79692);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,y.Z)({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:y,disableUnderline:b,menuPlacement:v="bottom"}=e;const w=(0,p.useSelector)(u.ZP.selectors.getMetadata),T=x(),S=(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?S(l,t+1,a):[])}),[])}),[w]),R=(0,r.useMemo)((()=>S((null==t?void 0:t.attributes)||[])),[t,S]);return a().createElement("div",{className:c()(T.root,l)},a().createElement(m.Typography,{className:T.title,variant:"subtitle1"},y||o().text("Attribute")),a().createElement(f.Z,{value:n,options:R,TextFieldProps:{InputProps:{disableUnderline:b},classes:{root:T.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(E.Z,{checked:n,level:r.level,data:r,label:l,labelInText:l,isFocused:t}))}},onChange:(0,s.pipe)((0,s.defaultTo)([]),i),styles:O,classes:T,menuPlacement:v,menuPortalTarget:document.body}))}},32528:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(13688),a=n(48852);const l=e=>t=>(0,a.l)(r.X,e,t)},58662:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(13980),a=n.n(r),l=n(24328),o=n.n(l),i=n(71153),c=n.n(i),s=n(94079),p=n(87918),u=n.n(p),d=n(31276),m=n(17440);const f=(0,n(79692).Z)({pagination:{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"56px",borderTop:"1px solid rgba(0,0,0,0.12)",boxShadow:"none"},caption:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px"},selectRoot:{marginLeft:"5px",marginRight:"36px"},select:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px",textAlign:"right"},actions:{marginLeft:"32px"}});function h(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}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const E=e=>{let{classes:t={},count:n,rowsPerPageOptions:r,page:a,onChangePage:i,rowsPerPage:p,onChangeRowsPerPage:g,basicTableRef:E,labelRowsPerPage:y}=e;const b=f(),v=(0,l.useCallback)((()=>{(0,m.pathOr)(m.identity,["current","resetScrollbarPosition"],E)()}),[E]),O=(0,l.useCallback)((e=>{i(e),v()}),[i,v]),x=(0,l.useCallback)((e=>{i(0),g(e),v()}),[i,g,v]);return o().createElement(s.TablePagination,{classes:h({},t,{root:c()(b.pagination,t.root),select:c()(b.select,t.select),caption:b.caption,selectRoot:b.selectRoot,actions:b.actions}),component:"div",labelRowsPerPage:y||u().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return u().text("${fromRow}-${toRow} of ${countRows}",{fromRow:u().number(t,"0,0"),toRow:u().number(n,"0,0"),countRows:u().number(r,"0,0")})},count:n,rowsPerPageOptions:r,page:a,onChangePage:(0,m.pipe)((0,m.nthArg)(1),O),rowsPerPage:p,onChangeRowsPerPage:(0,m.pipe)(d.NA,x)})};E.propTypes={classes:a().object,rowsPerPageOptions:a().arrayOf(a().number),count:a().number,page:a().number,onChangePage:a().func,rowsPerPage:a().number,onChangeRowsPerPage:a().func,basicTableRef:a().shape({current:a().object}),labelRowsPerPage:a().string};const y=o().memo(E)},10237:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(27556),a=n(13980),l=n.n(a),o=n(24328),i=n.n(o);function c(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 p=(0,n(79692).Z)((e=>({"basic-view__paper":c({display:"flex",flexDirection:"column"},e.basicView)})));function u(){return u=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},u.apply(this,arguments)}const d=(0,o.forwardRef)(((e,t)=>{let{children:n,className:a}=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,["children","className"]);const o=p();return i().createElement(r.Z,u({ref:t,className:a,classes:{root:o["basic-view__paper"]}},l),n)}));d.displayName="BasicView",d.propTypes={children:l().node,className:l().string};const m=d},92778:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l),i=n(15223),c=n(94079);const s=(0,n(79692).Z)({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",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=s();return a().createElement(i.Z,p({className:r.root,classes:{root:u.toolbar}},l),a().createElement(c.Typography,{className:r.title,classes:{root:u.title},variant:"h6"},o().text(t)),n)}},58241:(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(8818),c=n(38016);const s=(0,n(79692).Z)({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=s(),u={icon:c.Z,className:l.collapseButton,iconClassName:o()({[l.expandLess]:t})},d={tooltipTitle:n};return a().createElement(i.k,p({},u,d,r))}},43290:(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(17440);const c=(0,n(79692).Z)((e=>({bar:{backgroundColor:e.palette.secondary.main,opacity:.12,position:"absolute",minHeight:"20px",minWidth:"5px",borderRadius:"2px",top:0,left:0,height:"100%"}}))),s=e=>(0,i.is)(Number,e),p=e=>{let{className:t,width:n=0,maxWidth:l}=e;const i=c(),p=(0,r.useCallback)((e=>(l?100*e/l:0)+"%"),[l]);return n?a().createElement("div",{className:o()(i.bar,t),style:{width:s(n)?p(n):n}}):null}},39621:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(24328),a=n.n(r),l=n(17440),o=n(16657),i=n(6782),c=n(94079),s=n(31517),p=n(31276);const u=(0,n(79692).Z)({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%"}}),d=["minutes","hours","days","weeks","months","years"],m=e=>{let{interval:[t,n],onChange:r,onFocus:m}=e;const f=u(),h=(0,l.pipe)(p.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(c.TextField,{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,i.Z)(n),className:f.inputUnit,value:{value:n,label:(0,i.Z)((0,o.wsP)(n))},options:d.map((e=>({value:e,label:(0,i.Z)((0,o.wsP)(e))}))),onChange:g,TextFieldProps:{inputProps:{onFocus:m},InputProps:{classes:{root:f.input}}}}))}},55847:(e,t,n)=>{n.d(t,{Z:()=>v});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),i=n(17440),c=n(94079),s=n(48348),p=n(20562),u=n(83348),d=n(79692),m=n(41128);const f=(0,d.Z)((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,m.U1)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,m.U1)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),h=(0,u.Z)(c.MenuItem),g=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=i.identity}=e;const l=f(),{disabled:o,text:s,tooltip:p,onClick:u,id:d="",selectable:m,selected:g}=n;return a().createElement(h,{tooltipTitle:p,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{r(e),u(e)},disabled:o,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${d}`},m&&a().createElement(c.Checkbox,{checked:g,color:"primary"}),a().createElement(c.Typography,{classes:{root:l.menuText}},s))}));g.displayName="MenuItemRenderer";const E=g;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 b(e){let{className:t,menuId:n,buttonComponent:l=c.Button,buttonContent:u,menuItems:d=[],buttonProps:m={},popoverProps:h={},onMenuOpen:g=i.identity,onMenuClose:b=i.identity,MenuItemRenderer:v=E}=e;const O=l,x=f(),w=(0,r.useRef)(),[T,S]=(0,r.useState)(!1);(0,p.D)((()=>{T?g():b()}),[T]);const R=(0,r.useCallback)((e=>{null==e||e.stopPropagation(),S((e=>!e))}),[]);return a().createElement(a().Fragment,null,a().createElement(O,y({ref:w,className:o()(x.buttonRoot,{[x.selected]:T},t),onClick:R,"aria-pressed":T,"aria-controls":T?n:void 0,"aria-haspopup":"true"},m),u),a().createElement(s.Z,y({id:n,variant:"menu",open:T,autoFocus:!1,classes:{paper:x.paper},anchorEl:w.current,onClose:R,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:T}},h),d.map(((e,t)=>a().createElement(v,{item:e,key:t,onMenuClose:R})))))}b.displayName="DropDownMenuButton";const v=b},24737:(e,t,n)=>{n.d(t,{Z:()=>A});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),i=n(71153),c=n.n(i),s=n(17440),p=n(94113),u=n(65549),d=n(79692);const m=(0,d.Z)((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.Z)({singleValue:{fontSize:"14px",lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"21px"}});var h=n(36179);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,s.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 E=g;var y=n(18461),b=n(5190),v=n(31276),O=n(16657),x=n(72436),w=n(94079);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)}function S(e){const{selectProps:{menuIsOpen:t},innerProps:n,children:r}=e,l=f();return!t&&a().createElement(w.Typography,T({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}S.propTypes={children:o().node,innerProps:o().object};const P=(0,d.Z)({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",lineHeight:"16px",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 j(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 k=e=>{let{value:t,label:n,createLabel:l,getOptions:o,options:i,height:u=46,onChange:d=s.identity,onCreate:m,onClear:f=s.identity,components:h,textFieldInputRef:g,TextFieldProps:w,classes:T}=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)(),[k,_]=(0,r.useState)(!1),A=(0,r.useRef)(null),z=o?y.Z:b.Z,L=(0,s.prop)("ClearIndicator",h)?{}:{IndicatorSeparator:v.Vd,ClearIndicator:v.Vd},Z=m?(e,t)=>{m(e,t),_(!1)}:void 0,H=(0,s.prop)("Group",h)?M:{},U=(0,s.isEmpty)(n)?D:{},B=j({},C,H,U),V=j({},I,T);return a().createElement(z,N({placeholder:"",defaultOptions:!0},R,{value:(0,s.defaultTo)(null,t),loadOptions:o,options:i,cacheOptions:!0,onChange:d,onCreate:Z,onClear:f,createLabel:l,classes:V,styles:B,components:j({DropdownIndicator:p.Z,LoadingIndicator:v.Vd,SingleValue:S,Menu:E},L,h),menuPlacement:"auto",TextFieldProps:j({},w,{label:n,variant:"filled",margin:"dense",classes:j({},(0,s.prop)("classes",w),{root:c()(I.formControl,(0,s.path)(["classes","root"],w))}),inputProps:j({},(0,s.prop)("inputProps",w)),InputProps:j({},(0,s.prop)("InputProps",w),{classes:j({},(0,s.path)(["InputProps","classes"],w),{root:c()(I.filledInputRoot,(0,s.path)(["InputProps","classes","root"],w)),underline:c()({[F.filledInputUnderline]:(0,O.O27)(t)},(0,s.path)(["InputProps","classes","underline"],w)),focused:c()("focused",(0,s.path)(["InputProps","classes","focused"],w))})}),InputLabelProps:j({},(0,s.prop)("InputLabelProps",w),{classes:j({},(0,s.path)(["InputLabelProps","classes"],w),{root:c()(I.inputLabel,(0,s.path)(["InputLabelProps","classes","root"],w)),shrink:c()("shrink",(0,s.path)(["InputLabelProps","classes","shrink"],w))}),shrink:!(0,O.O27)(t)||void 0}),ref:g||A}),inputRef:g||A,menuIsOpen:k,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};k.propTypes=_;const A=k},34e3:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),a=n.n(r),l=n(52730),o=n(49885),i=n(98018);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 s=e=>{const t=(0,l.useSelector)(o.ZP.selectors.getAbsoluteImagePath)||"";return a().createElement(i.ZP,c({},e,{storagePath:(n=t,n.endsWith("/")?n:n+"/")}));var n}},31039:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),a=n.n(r),l=n(52730),o=n(39450),i=n(72383),c=n(49885);const s=(0,r.forwardRef)(((e,t)=>{let{value:n,children:s,screen:p,className:u}=e;const d=(0,l.useDispatch)(),m=(0,r.useContext)(o.m),{generateEntityUrl:f}=(0,r.useContext)(i.v),h=(0,l.useSelector)(c.ZP.selectors.getUIPath),g=(0,r.useCallback)((()=>{d(c.ui.actions.openEntity({uri:n,viewId:m,screen:p}))}),[m,n,d,p]);return a().createElement("a",{ref:t,href:(E=n,f({uiPath:h,uri:E,screen:p})),onClick:e=>{g(),e.stopPropagation(),e.preventDefault()},className:u},s);var E}));s.displayName="EntityUriLink";const p=s},2256:(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}}},18461:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(27308);const a=(0,n(5407).Z)(r.ZP)},92575:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),i=n(17440),c=n(70347);const s=(0,n(5407).Z)(c.ZP);var p=n(5190),u=n(18461),d=n(94079),m=n(71153),f=n.n(m),h=n(95613);function g(){return g=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},g.apply(this,arguments)}function E(e){const{innerProps:t,innerRef:n,children:r,isFocused:l,isSelected:o,selectProps:{classes:i},label:c}=e;return a().createElement(d.MenuItem,g({className:f()(i.option,{[i["option--selected"]]:o}),ref:n,selected:l,component:"div"},t),a().createElement(d.Checkbox,{color:"primary",checked:o}),a().createElement(h.Z,{value:c},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 y={Option:E};var b=n(79692),v=n(31276);function O(){return O=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},O.apply(this,arguments)}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){w(e,t,n[t])}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const T=(0,b.Z)((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 S=0;function R(e){const{label:t,creatable:n,getOptions:l,loadingIndicator:o,components:c,classes:d,styles:m,onChange:f,onInputChange:h,menuPlacement:g="auto"}=e,E=function(e,t){if(null==e)return{};var n,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"]),b=n?s:l?u.Z:p.Z,[w,R]=(0,r.useState)(""),I=T((0,i.omit)(["classes"],e)),P="custom-select-"+S++,C=x({},y,c),M=(0,v.ze)(I,d),D=x({indicatorSeparator:e=>x({},e,{margin:"10px 0"}),loadingIndicator:e=>x({},e,{display:o?e.display:"none"}),loadingMessage:e=>x({},e,{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'})},m),N=t?{inputId:P,TextFieldProps:x({label:t,InputLabelProps:{htmlFor:P,shrink:!(!e.value||!e.value.length)||void 0,className:M.label}},e.TextFieldProps)}:{};return a().createElement(b,O({isMulti:!0,inputId:P,inputValue:w,onChange:function(e,t){f(e,t),"create-option"===t.action&&(R(""),h("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;h(e,{action:n}),"set-value"!==n&&R(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:M,components:C,styles:D,menuPlacement:g,loadOptions:l},N,E))}R.defaultProps={creatable:!1,cacheOptions:!0,components:{},classes:{},placeholder:"",loadingIndicator:!1,onInputChange:()=>{},onChange:()=>{}},R.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,getOptionValue:o().func,isSearchable:o().bool,inputRef:o().shape({current:o().object})};const I=R},67268:(e,t,n)=>{n.d(t,{Z:()=>R});var r=n(13980),a=n.n(r),l=n(24328),o=n.n(l),i=n(66244),c=n.n(i),s=n(44443),p=n(17440),u=n(71153),d=n.n(u);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:c,maxHeight:s,isStatic:p}=e;return{x:t,y:n,w:r,h:a,minW:o,minH:i,maxW:c,maxH:s,i:l,static:p}},h=e=>{let{x:t,y:n,w:r,h:a,maxW:l,minW:o,minH:i,maxH:c,i:s}=e;return{x:t,y:n,width:r,height:a,minWidth:o,minHeight:i,maxWidth:l,maxHeight:c,id:s,isStatic:m(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},g=e=>(e||[]).map(h),E=(0,p.curry)(((e,t)=>(e||[]).find((0,p.propEq)("id",t)))),y=(0,p.curry)(((e,t,n)=>(0,p.mergeAll)([n,(0,p.pick)(e,t)]))),b=(0,p.curry)(((e,t,n)=>(n||[]).map((n=>(0,p.pipe)((0,p.prop)("id"),E(t),(0,p.defaultTo)({}),y(e,p.__,n))(n)))));var v=n(79692),O=n(16657);const x=(0,v.Z)((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"},"&.cssTransforms":{transitionProperty:"transform"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"17px",height:"17px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,O.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 w(){return w=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},w.apply(this,arguments)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const S=e=>{let{views:t,layout:n,layoutOptions:r,onLayoutChanged:a,draggableHandle:i,LayoutItem:u,onRemove:m,onDrop:y,droppingItem:v,isDroppable:O,classes:S}=e;const R=(0,l.useRef)(),I=x(),[P,C]=(0,l.useState)(null),[M,D]=(0,l.useState)(null),[N,j]=(0,l.useState)(0),{cols:F,rowHeight:k,margin:_}=r,A=(0,l.useMemo)((()=>(e=>(e||[]).map(f))(n)),[n]),z=(0,p.pipe)(g,b(["autosizing"],n),a),L=(0,l.useCallback)((e=>D((t=>t?null:e))),[]),Z=null!==M,H=(0,l.useCallback)(((e,t)=>{let l=!1;const o=n.map((n=>{if(n.id===t&&e){const t=((e,t)=>{const{margin:n,rowHeight:r}=t;return Math.ceil((e+n[1])/(r+n[1]))})(e,r);if(n.height!==t)return l=!0,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){T(e,t,n[t])}))}return e}({},n,{minHeight:t,maxHeight:t,height:t})}return n}));l&&a(o)}),[n,r,a]);return o().createElement(o().Fragment,null,o().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>j(e)}),!!N&&o().createElement(c(),{innerRef:R,layout:A,cols:F,draggableHandle:i,autoSize:!0,rowHeight:k,width:N,margin:_,onLayoutChange:z,isResizable:!Z,isDraggable:!Z,className:d()(S.root,I.gridLayout,{[I.gridFullscreen]:Z}),onDrop:(e,t,n)=>{y&&y(g(e),h(t),n)},droppingItem:v,isDroppable:O,onResizeStart:(e,t)=>C(t.i),onResizeStop:()=>C(null)},A.map((e=>{const r=M===e.i,a=P===e.i,l=(E(n,e.i)||{}).autosizing?{AutosizeComponent:(i=e.i,o().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>{H(t,i)}}))}:{};var i;return o().createElement(u,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:L,onRemove:m,className:d()({fullscreen:r,[I.isResizing]:a},S.item),isFullscreen:r},l))}))))};S.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:p.identity,onLayoutChanged:p.identity,classes:{}},S.propTypes={views:a().array,layout:a().array,layoutOptions:a().object,onConfigChanged:a().func,onLayoutChanged:a().func,onDrop:a().func,onRemove:a().func,LayoutItem:a().elementType,draggableHandle:a().string,isDroppable:a().bool,droppingItem:a().object,classes:a().shape({root:a().string,item:a().string})};const R=(0,l.memo)(S)},55299:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(24328),a=n.n(r);const l=(0,n(79692).Z)({mark:{color:"red"}}),o=()=>{const e=l();return a().createElement("span",{className:e.mark},"*")}},31517:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),a=n.n(r),l=n(24737),o=n(13980),i=n.n(o),c=n(94079);const s=(0,n(79692).Z)({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=s();return!t&&a().createElement(c.Typography,{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=s(),{innerProps:n={},children:r}=e;return a().createElement(c.Typography,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))}))},51229:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(24328),a=n.n(r);const l=()=>a().createElement("div",{style:{flex:1}})},85451:(e,t,n)=>{n.d(t,{Z:()=>O});var r=n(24328),a=n.n(r),l=n(52730),o=n(87918),i=n.n(o),c=n(17440),s=n(71153),p=n.n(s),u=n(94079),d=n(92575),m=n(96808),f=n(16657),h=n(49885),g=n(79692);function E(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){y(e,t,n[t])}))}return e}function y(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=>E({},e,{fontSize:"14px"}),loadingMessage:e=>E({},e,{fontSize:"14px"}),menuPortal:e=>E({},e,{zIndex:1300})},v=(0,g.Z)({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:s}=e;const g=v(),E=e=>({value:e,label:e}),y=e=>e.map(E),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)},a().createElement(u.Typography,{className:g.title,variant:"subtitle1"},i().text("User")),a().createElement(d.Z,{value:y(t),onChange:(0,c.pipe)((0,c.defaultTo)([]),(0,c.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(w.current||(w.current=(0,f.kz_)({tenant:O,servicesPath:x})),w.current.then((0,c.pipe)((0,c.pluck)("username"),(e=>t=>e?t.filter((t=>f.P6Y.strings.search(t,e))):t)(e),y))),TextFieldProps:{InputProps:{disableUnderline:s},className:g.dropDownInput},components:{DropdownIndicator:m.Z},styles:b,classes:g,menuPortalTarget:document.body}))}},31537:(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={}))},34606:(e,t,n)=>{n.d(t,{te:()=>u,Io:()=>d,rx:()=>m,_V:()=>f,Xr:()=>h});var r=n(16657),a=n(17440),l=n(87918),o=n.n(l),i=n(31537);function c(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 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)),c({},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=>c({},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),c=(0,r.mB6)({attributePresentations:l,dataTypeDefinition:i});return(0,a.isNil)(e)?"":"string"==typeof e?o?c(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]||"")},51843:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),a=n.n(r),l=n(95038),o=n.n(l),i=n(87918),c=n.n(i),s=n(17440),p=n(16657),u=n(94079),d=n(96808),m=n(82943);const f=(0,n(79692).Z)({root:{flex:1},dropdownIndicator:{transition:"transform .15s ease"},inputRoot:{fontSize:"14px",height:46},input:{padding:"0 12px 0"},dateOptionLabel:{minWidth:"100px"},paper:{minWidth:"112px"}}),h=o().localeData().longDateFormat("L"),g=e=>{let{values:t,onChange:n,onFocus:l}=e;const o=h,i=(0,r.useRef)(null),[g,E]=(0,r.useState)(!1),y=f(),b=(0,r.useCallback)((()=>{E((e=>!e)),l()}),[l]),v=()=>{E(!1)};return a().createElement("div",{className:y.root},a().createElement(u.TextField,{fullWidth:!0,value:t.map((e=>((e,t)=>(0,s.isNil)(e)?`${t}`:`${(0,p.mB6)({dataTypeDefinition:{type:p.oS0.TYPE_ACTIVENESS_DATE}},e)}`)(e,o))).join(" — "),onClick:b,variant:"filled",ref:i,InputProps:{endAdornment:a().createElement(d.Z,{selectProps:{classes:y,menuIsOpen:g},innerProps:{}}),disableUnderline:(0,s.isNil)(t),readOnly:!0,classes:{root:y.inputRoot,input:y.input}},InputLabelProps:{shrink:!1},placeholder:c().text(`${o} — ${o}`)}),a().createElement(u.Menu,{variant:"menu",open:g,autoFocus:!1,classes:{paper:y.paper},anchorEl:i.current,onClose:v,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:g,style:{width:"100%"}}},a().createElement(m.Z,{values:t,onCancel:v,onApply:e=>{n(e),E(!1)},type:p.oS0.TYPE_ACTIVENESS_DATE})))}},72383:(e,t,n)=>{n.d(t,{v:()=>o});var r=n(24328),a=n.n(r),l=n(16657);const o=a().createContext({generateEntityUrl:l.OuZ,generatePivotingUrl:l.FQ2,generateTagUrl:l.W$R});o.displayName="UrlGeneratorsContext"},39450:(e,t,n)=>{n.d(t,{m:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="ViewIdContext"},71543:(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"}))},32944:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),l=n(94079);const o=(0,n(79692).Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),i=()=>{const e=o();return a().createElement(l.LinearProgress,{color:"primary",className:e.loader})}},58141:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),a=n.n(r),l=n(10237),o=n(92316);const i=(0,n(79692).Z)((()=>({view:{flex:1,width:"100%",height:"100%",overflow:"hidden"}}))),c=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},n))}},92316:(e,t,n)=>{n.d(t,{H:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="DashboardViewIdContext"},22243:(e,t,n)=>{n.d(t,{Z:()=>un});var r=n(24328),a=n.n(r),l=n(52730),o=n(17440),i=n(87918),c=n.n(i),s=n(83535),p=n(98884),u=n(49885),d=n(67885),m=n(16657);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{options:t,offset:n,max:a}=e;const[l,i]=(0,r.useState)([]),[c,s]=(0,r.useState)(0),[p,u]=(0,r.useState)(d.o.INIT),h=e=>{console.error(e),u(d.o.ERROR),i([])},g=(0,r.useCallback)((()=>{u(d.o.LOADING);const e=e=>{i(e.result||[]),s(e.total),u(d.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,m.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){f(e,t,n[t])}))}return e}({offset:n,max:a},c));if(l){const n=t.map((e=>(0,m.OaI)((0,m.dWE)(e.query)))),a=(await(0,m.RGr)(n)).reduce(((e,t,n)=>{let{status:r,value:a,reason:l}=t;switch(r){case"fulfilled":return(0,o.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(h)}),[t,a,n]),E=()=>{try{g()}catch(e){h(e)}};return(0,r.useEffect)((()=>{E()}),[g]),{state:p,data:l,reload:E,total:c}},g=[10,25,50,100],[E]=g,y=e=>g.filter((t=>t!==e)).concat(e).sort(o.subtract);var b=n(58141),v=n(92778),O=n(92316),x=n(94079),w=n(43054),T=n(79692);const S=(0,T.Z)((()=>({itemTitle:{fontSize:"13px"},itemIcon:{minWidth:"49px"},menuItem:{padding:"12px 16px",minWidth:"177px"},openIcon:{padding:"4px",borderRadius:"2px",marginTop:"-6px",marginRight:"-10px"}}))),R=e=>{let{items:t}=e;const[n,l]=(0,r.useState)(null),o=Boolean(n),i=S(),c=()=>l(null),s=e=>()=>{c(),e()};return a().createElement(a().Fragment,null,a().createElement(x.IconButton,{className:i.openIcon,"aria-controls":"menu","aria-haspopup":"true",onClick:e=>l(e.currentTarget)},a().createElement(w.Z,null)),a().createElement(x.Menu,{id:"menu",anchorEl:n,open:o,onClose:c,transitionDuration:0,getContentAnchorEl:null,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}=e;return a().createElement(x.MenuItem,{key:t,onClick:s(l),className:i.menuItem},a().createElement(x.ListItemIcon,{className:i.itemIcon},n),a().createElement(x.Typography,{className:i.itemTitle},r))}))))};var I=n(29103),P=n(83911),C=n(41039),M=n(43266),D=n(14940),N=n(71153),j=n.n(N);const F=(0,T.Z)((()=>({toolbarRoot:{padding:"16px",minHeight:"18px",lineHeight:"18px",marginBottom:"8px"},title:{fontSize:"16px",lineHeight:"20px",fontWeight:"normal",color:"rgba(0, 0, 0, 0.87)",letterSpacing:"0.15px",marginRight:"6px"},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",".react-draggable $toolbarRoot:hover &.viewDraggableHandle":{visibility:"visible"}},rightMenu:{display:"flex",flexGrow:1,justifyContent:"flex-end",alignItems:"baseline"},updatedChip:{background:"#FF9E1B",height:20,fontSize:"10px",color:"white",marginRight:"6px"}}))),k=e=>{let{title:t,onToggleFullscreen:n,isUpdated:l=!1,isFullscreen:o,onRemove:i,onRefresh:s,children:p}=e;const u=(0,r.useContext)(O.H),d=(0,r.useMemo)((()=>[{id:"refresh",title:c().text("Refresh"),icon:a().createElement(M.Z,null),active:!!s,action:()=>s()},{id:"fullscreen",title:c().text("Fullscreen"),icon:a().createElement(I.Z,null),active:!o,action:()=>n(u)},{id:"exitFullscreen",title:c().text("Exit fullscreen"),icon:a().createElement(P.Z,null),active:o,action:()=>n(u)},{id:"remove",title:c().text("Remove"),icon:a().createElement(C.Z,null),active:!!i,action:()=>{i(u),o&&n(u)}}]),[u,o,i,n,s]),m=F();return a().createElement(v.Z,{title:t,className:m.toolbarRoot,classes:{title:m.title}},l&&a().createElement(x.Chip,{label:c().text("Updated"),size:"small",className:m.updatedChip}),a().createElement("div",{className:m.rightMenu},p,a().createElement(R,{items:d})),a().createElement(D.Z,{className:j()("viewDraggableHandle",m.dragIcon)}))};var _=n(2256),A=n(4094);function z(){return z=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},z.apply(this,arguments)}const L=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",z({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"}))))},Z=(0,T.Z)((()=>({noDataContainer:e=>{let{height:t}=e;return{height:t?`${t}px`:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)"}},icon:{height:"88px",width:"88px",marginBottom:"20px"}}))),H=e=>{let{height:t}=e;const n=Z({height:t});return a().createElement("div",{className:n.noDataContainer},a().createElement(L,{className:n.icon}),a().createElement(x.Typography,null,c().text("No Data")))};function U(){return U=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},U.apply(this,arguments)}const B=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",U({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"}))))},V=(0,T.Z)((e=>({errorContainer:e=>{let{height:t}=e;return{height:t?`${t}px`:"auto",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"}}))),G=e=>{let{height:t,onRefresh:n,message:r}=e;const l=V({height:t});return a().createElement("div",{className:l.errorContainer},a().createElement(B,{className:l.errorIcon}),a().createElement(x.Typography,null,r),n&&a().createElement(x.Button,{className:l.refreshButton,startIcon:a().createElement(M.Z,{color:"primary",className:l.refreshIcon}),onClick:n},a().createElement(x.Typography,{variant:"button"},c().text("Refresh"))))};var W=n(32944),Y=n(44443);const $=(0,T.Z)((()=>({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"}}))),q=e=>{let{loadingState:t,onRefresh:n,children:r,data:l,className:o,EmptyPlaceholder:i}=e;const s=$();return a().createElement(A.Z,{className:j()(s.viewContent,o)},a().createElement(Y.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:o,height:s}=e;switch(t){case d.o.LOADED:return l&&0!==l.length?a().createElement(_.Z,{error:a().createElement(G,{message:c().text("Something went wrong"),height:s})},r({data:l,width:o,height:s})):i||a().createElement(H,{height:s});case d.o.LOADING:return a().createElement(W.Z,null);case d.o.ERROR:return a().createElement(G,{message:c().text("Error Loading Data"),height:s,onRefresh:n});default:return a().createElement("div",null,"Loading...")}})))};var K=n(58662);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 Q(e){const t=t=>{const n=(0,r.useRef)(null);return a().createElement(a().Fragment,null,a().createElement(e,X({},t,{basicTableRef:n,height:t.height-60})),a().createElement(K.Z,X({},t,{basicTableRef:n})))};return t.displayName="WithPagination",t}function J(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){ee(e,t,n[t])}))}return e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const te=e=>{let{uiState:t,uri:n}=e;return"2.0"===t.version?J({},t,{currentSavedSearchUri:n}):J({},t.state,{curSavedSearchUri:n})},ne=Q(s.Z),re=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:i,isFullscreen:s,onRemove:d}=e;const{id:m,title:f,options:g,max:v=E}=t,O=(0,r.useMemo)((()=>y(v)),[v]),[x,w]=(0,r.useState)(v),[T,S]=(0,r.useState)(0),{data:R,state:I,reload:P,total:C}=h({options:g,max:x,offset:x*T}),M=(0,r.useMemo)((()=>(e=>e.map((e=>{let{uri:t,name:n,count:r}=e;return{value:r||0,label:n||"",group:t}})))(R)),[R]),D=(0,l.useDispatch)(),N=(0,r.useCallback)((e=>{(0,o.pipe)((0,o.find)((0,o.propEq)("uri",e)),te,u.ui.actions.openSearch,D)(R)}),[D,R]);return(0,p.T)({state:I,reload:P}),a().createElement(b.Z,{id:m},a().createElement(k,{title:f,onToggleFullscreen:n,isFullscreen:s,isUpdated:i,onRefresh:P,onRemove:d}),a().createElement(q,{loadingState:I,onRefresh:P,data:M},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(ne,{width:n,height:r,data:t,count:C,onChangePage:S,page:T,rowsPerPage:x,onChangeRowsPerPage:w,rowsPerPageOptions:O,options:{headers:[c().text("Name")],showValues:null==g?void 0:g.countResults},onItemClick:N})})))}));var ae=n(56259),le=n(66675);const oe=(0,o.when)((0,o.pipe)((0,o.prop)("filter"),(0,o.includes)(o.__,[m.j5E.IN_RANGE,m.j5E.HAS_ALL])),(0,o.evolve)({values:m.FTe})),ie=(0,o.curry)(((e,t)=>({filter:m.j5E.NOT_EQUALS,values:[t],fieldName:e}))),ce=e=>{var t,n,r;return{filter:null!==(t=null==e?void 0:e.filter)&&void 0!==t?t:m.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:""}},se=e=>({filter:m.j5E.EQUALS,fieldName:"type",values:[e]}),pe=(0,o.curry)(((e,t)=>({filter:m.j5E.EQUALS,values:[t],fieldName:e}))),ue=(0,o.curry)(((e,t,n)=>{const{fieldName:r}=n,a=/^(attributes|analyticsAttributes)/.test(r),l=a?(0,m.zeJ)(e,(0,m.h2W)(r,t)):(0,m.Yxg)(r);return(0,o.pipe)(oe,(0,o.when)((()=>a),(0,o.assoc)("entityType",t)),(0,o.when)((()=>(0,m.Lt4)(l.type)),(0,o.evolve)({values:(0,o.map)((0,m.mOr)(m.ZBU))})))(n)})),de=e=>{let{filter:t,fieldName:n}=e;return t===m.j5E.EQUALS&&"type"===n},me=(e,t)=>{let{filter:n,fieldName:r,values:a}=e;return n===m.j5E.EQUALS&&"type"===r&&(null==a?void 0:a[0])===t};function fe(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){he(e,t,n[t])}))}return e}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ge=e=>{let{attribute:t,filters:n,globalFilter:r,searchByOv:a,activityFilter:l,pageSize:i,orderType:c}=e;const s=((e,t,n,r)=>{const a=(0,o.pipe)((0,o.map)(oe),(0,m.Uqd)(),(0,m.vyX)(t))(e),l=a?[`filter=${a}`]:[];return n&&l.push("options=searchByOv"),r&&l.push(`activeness=${r}`),l.join("&")})(n,r,a,l),p=[{fieldName:t,pageNo:1,orderType:c,pageSize:i}];return(0,m.FK9)({query:s,body:p}).then((e=>(0,o.pipe)((0,o.prop)(t),(0,o.defaultTo)({}),Object.entries,(0,o.map)((e=>{let[t,n]=e;return{label:t,group:t,value:n}})),(0,o.sortWith)([(0,o.descend)((0,o.prop)("value")),(0,o.ascend)((0,o.prop)("label"))]))(e)))},Ee=(0,o.curry)(((e,t)=>{const n=t.map((t=>{let{label:n}=t;return{codeValue:n,type:e}}));return(0,m.hK$)(n).then((n=>{const r=n.flatMap((0,m.Z2f)(e));return t.map((e=>{const t=r.find((t=>{let{lookupCode:n}=t;return n===e.label}));return t?fe({},e,{label:t.value}):e}))}))})),ye=(0,o.curry)(((e,t)=>t.map((0,o.pipe)((0,o.prop)("group"),ie(e))))),be="Other",ve=(0,o.curry)(((e,t)=>{let{attribute:n,filters:r,globalFilter:a,searchByOv:l,activityFilter:i}=e;const s=(0,o.pipe)(ye(n),(0,o.concat)(r),(0,o.map)(oe))(t),p=l&&"searchByOv";return(0,m.j_Q)(s,{globalFilter:a,activityFilter:i,searchOptions:p}).then((e=>{let{total:n}=e;return n>0?t.concat([{label:c().text("Other"),group:be,value:n}]):t}))})),Oe=(e,t)=>(0,m.xqc)(e,"configuration/roles/"+t),xe=(0,o.map)((e=>fe({},e,{localizedValue:c().number(e.value)}))),we=(0,o.when)(m.EdS,m.Tde),Te=(0,o.ifElse)(m.EdS,m.Uk3,(0,o.always)(void 0)),Se=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=Te(e),r=t.some((e=>me(e,n)));return n&&!r?[se(n),...t]:t},Re=(0,o.curry)(((e,t,n)=>{const r=we(e);return n===be?(0,o.pipe)((0,o.reject)((0,o.propEq)("group",be)),ye(r))(t):[pe(r,n)]})),Ie=(0,o.curry)(((e,t,n)=>{var r,a;const l=Te(t)||(null===(r=n.find(de))||void 0===r||null===(a=r.values)||void 0===a?void 0:a[0]);return{facets:n.map(ue(e,l))}}));const Pe=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:i,isFullscreen:c,onRemove:s}=e;const{id:f,title:h,filters:g,attributeUri:E,count:y,orderType:v,chartType:O,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"]),T=O===m.$XE.MAP?100:8,{data:S,state:R,reload:I}=(e=>{let{filters:t,attributeUri:n,pageSize:a,orderType:i="reversedCount",options:c}=e;const[s,p]=(0,r.useState)([]),[f,h]=(0,r.useState)(d.o.INIT),g=(0,r.useContext)(ae.I),E=(0,r.useMemo)((()=>g.map(ce).concat(t||[])),[g,t]),y=(0,l.useSelector)(u.ZP.selectors.getMetadata),{globalFilter:b,activityFilter:v}=(0,l.useSelector)(u.ZP.selectors.getGlobalSearchRequestOptions),O=(0,l.useSelector)(u.ZP.selectors.getAttributePresentations),x=!(null==O||!O[n]),w=(0,l.useSelector)(u.ZP.selectors.getShowSearchByOv),T=null==c?void 0:c.showOthers,S=e=>{console.error(e),h(d.o.ERROR),p([])},R=(0,r.useCallback)((()=>{h(d.o.LOADING);const e=Se(n,E),t=we(n),r=(0,m.Yxg)(t)||(0,m.zeJ)(y,n);if(!r)return void S("Configuration is incorrect");const l=(0,o.pipe)(ge,(0,o.andThen)(((e,t)=>(0,o.pipe)((0,o.when)((()=>(0,m.CwH)(t)),Ee((0,m.To9)(t))),(0,o.when)((()=>(0,m.ian)(t)),(0,o.map)((t=>fe({},t,{label:Oe(e,t.group)})))),(0,o.when)((()=>(0,m.Lt4)(t.type)),(0,o.map)((0,o.evolve)({label:(0,o.pipe)(m.ZBU,(0,m.mB6)({dataTypeDefinition:(0,m.PFL)(t)}))})))))(y,r)),(0,o.andThen)((0,o.unless)((0,o.always)(x),xe)),(0,o.andThen)((0,o.when)((0,o.always)(T),ve({attribute:t,filters:e,globalFilter:b,searchByOv:w,activityFilter:v}))),(0,o.andThen)((e=>{h(d.o.LOADED),p(e)})),(0,o.otherwise)(S));l({attribute:t,filters:e,globalFilter:b,searchByOv:w,activityFilter:v,pageSize:a,orderType:i})}),[h,n,y,T,E,b,w,v,a,i,x]),I=()=>{try{R()}catch(e){S(e)}};return(0,r.useEffect)((()=>{I()}),[R]),{state:f,data:s,reload:I}})({filters:g,attributeUri:E,pageSize:y||T,orderType:v,options:{showOthers:x}});(0,p.T)({state:R,reload:I});const P=(0,l.useDispatch)(),C=(0,l.useSelector)(u.ZP.selectors.getMetadata),M=(0,r.useContext)(ae.I),D=(0,r.useMemo)((()=>M.map(ce).concat(g||[])),[M,g]),N=(0,o.pipe)(Re(E,S),(0,o.concat)(Se(E,D)),Ie(C,E),u.ui.actions.openSearch,P);return a().createElement(b.Z,{id:f},a().createElement(k,{title:h,onToggleFullscreen:n,isUpdated:i,isFullscreen:c,onRefresh:I,onRemove:s}),a().createElement(q,{loadingState:R,onRefresh:I,data:S},(e=>{let{data:t,width:n=0,height:r=0}=e;return le.Z.build(O,{data:t,width:n,height:r,options:w,onItemClick:N})})))}));var Ce=n(85709),Me=n(92332),De=n(95613);const Ne={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"},je=(0,T.Z)((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":Ne},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":Ne}})));function Fe(){return Fe=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},Fe.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){_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 Ae=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=je();return a().createElement("div",{className:j()(l.headCell,t)},a().createElement(Me.default,Fe({},r,{headCellData:ke({},n,{label:a().createElement(De.Z,{value:n.label},a().createElement("div",{className:l.headLabel},n.label))})})))};var ze=n(31039);const Le=e=>{let{value:t,rowValue:n}=e;const r=je(),l=(0,m.idV)(t);return a().createElement(De.Z,{value:l},a().createElement(ze.Z,{value:(0,m.wwR)(n),className:r.entityLabel},l))},Ze=(0,T.Z)({tableContainer:e=>{let{width:t,height:n}=e;return{height:n,width:t,display:"flex",flexDirection:"column"}},cellBorder:{borderLeft:"none",borderRight:"none"}}),He=Q((e=>{let{height:t,width:n,basicTableRef:r,data:l}=e;const o=Ze({width:n,height:t}),i=[{id:"label",label:c().text("Entity"),resizable:!1,headCellRenderer:Ae,rowCellValueRenderer:Le,initialWidth:n}],s={cellBorder:o.cellBorder};return a().createElement("div",{className:o.tableContainer},a().createElement(Ce.Z,{columnsData:i,rowsData:l,headRowHeight:48,getRowCellHeight:null,classes:s,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:r}))})),Ue=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:i}=e;const{id:c,title:s,filters:u,max:f=E}=t,h=(0,r.useMemo)((()=>y(f)),[f]),[g,v]=(0,r.useState)(f),[O,x]=(0,r.useState)(0),{data:w,state:T,reload:S,total:R}=(e=>{let{filters:t,max:n,offset:a}=e;const[l,o]=(0,r.useState)([]),[i,c]=(0,r.useState)(0),[s,p]=(0,r.useState)(d.o.INIT),u=(0,r.useContext)(ae.I),f=(0,r.useMemo)((()=>u.map(ce).concat(t||[])),[u,t]),h=e=>{console.error(e),p(d.o.ERROR),o([]),c(0)},g=(0,r.useCallback)((()=>{p(d.o.LOADING),Promise.all([(0,m.ZOr)(f,{max:n,offset:a}),(0,m.j_Q)(f,{max:n,offset:a})]).then((e=>{const[t,{total:n}]=e;o(t||[]),c(n),p(d.o.LOADED)})).catch(h)}),[f,n,a]),E=()=>{try{g()}catch(e){h(e)}};return(0,r.useEffect)((()=>{E()}),[g]),{state:s,data:l,reload:E,total:i}})({filters:u,max:g,offset:g*O});return(0,p.T)({state:T,reload:S}),a().createElement(b.Z,{id:c},a().createElement(k,{title:s,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRefresh:S,onRemove:i}),a().createElement(q,{loadingState:T,onRefresh:S,data:w},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(He,{height:r,onChangePage:x,page:O,rowsPerPage:g,count:R,onChangeRowsPerPage:v,rowsPerPageOptions:h,width:n,data:t})})))}));var Be=n(59983),Ve=n(2899);var Ge=n(95038),We=n.n(Ge);let Ye;!function(e){e.HOUR="hour",e.DAY="day"}(Ye||(Ye={}));const $e=(0,o.pipe)((e=>(0,m.RHh)(e,qe)),(e=>{let[t,n]=e;return n-t>+We().duration(1,"day")?Ye.DAY:Ye.HOUR})),qe=e=>{const t=We()();return e===m.bZE.LAST_WEEK?[We()(t).subtract(6,"days").valueOf(),t.valueOf()]:(0,m.VQ1)(e)},Ke=(0,o.pipe)(qe,(0,o.defaultTo)([]),(0,o.map)((e=>e&&new Date(e)))),Xe=[{id:"created",types:["CREATED"],get label(){return c().text("New")},color:"#4BAFFF"},{id:"updated",types:["UPDATED"],get label(){return c().text("Updated")},color:"#0072CE"},{id:"deleted",types:["DELETED"],get label(){return c().text("Deleted")},color:"#F085F2"},{id:"matched",types:["POTENTIAL_MATCHES_FOUND"],get label(){return c().text("Matched")},color:"#C4CE00"},{id:"autoMerged",types:["MERGED","MERGED_ON_THE_FLY"],get label(){return c().text("Auto-merged")},color:"#CE5C00"},{id:"mergedManually",types:["MERGED_MANUALLY"],get label(){return c().text("Manually merged")},color:"#9E7ED3"},{id:"unmerged",types:["SPLITTED"],get label(){return c().text("Unmerged")},color:"#40CFBB"},{id:"notMatch",types:["NOT_MATCHES_SET"],get label(){return c().text("Not a match")},color:"#F97061"}],Qe=e=>Xe.find((0,o.propEq)("id",e)),Je=(0,o.pipe)(Qe,(0,o.propOr)("","label")),et=(0,o.pipe)(Qe,(0,o.prop)("color")),tt=e=>{const[t,n]=(0,m.RHh)(e,qe),r=e=>{let{facet:r,types:a}=e;return(0,m.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,o.chain)((0,o.prop)("types"),Xe),t=(0,o.pipe)((0,o.propOr)([],"data"),(0,o.pluck)("term"));return r({facet:"type",types:e}).then((e=>t(e)))})().then((e=>e.length>0?(e=>{const a=(0,o.pipe)((0,o.map)((0,o.evolve)({term:e=>We().utc(e).valueOf()})),(0,o.prepend)({term:t,count:0}),(0,o.append)({term:n,count:0}));return Promise.all(Xe.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):[]))},nt=(0,o.curry)(((e,t)=>(0,o.pipe)((0,o.groupBy)((t=>{let{term:n}=t;return We()(n).startOf(e)})),o.toPairs,(0,o.map)((e=>{let[t,n]=e;return{term:We()(t).valueOf(),count:(0,o.sum)((0,o.pluck)("count",n))}})))(t))),rt=(0,o.curry)(((e,t)=>{const[n,...r]=t;return r.reduce(((t,n)=>{const r=(0,o.last)(t).term;let a=We()(r).add(1,e).valueOf();const l=[];for(;a<n.term;)l.push({term:a,count:0}),a=We()(a).add(1,e).valueOf();return t.concat(l,n)}),[n])})),at=(0,o.curry)(((e,t)=>t.map((0,o.evolve)({data:(0,o.pipe)(nt(e),rt(e))})))),lt=(0,o.cond)([[(0,o.equals)(Ye.HOUR),(0,o.always)("LT")],[(0,o.equals)(Ye.DAY),(0,o.always)("MMM D")]]),ot=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"},c().date(null==r?void 0:r.value,lt(l))))},it=(0,T.Z)({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"}}),ct=(0,o.cond)([[(0,o.equals)(Ye.HOUR),(0,o.always)("LT MMM D")],[(0,o.equals)(Ye.DAY),(0,o.always)("ll")]]),st=e=>{let{active:t,payload:n,label:r,step:l,events:o}=e;const i=it();return t&&a().createElement("div",{className:i.tooltipWrapper},a().createElement("p",{className:i.tooltipTitle},c().date(r,ct(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}),`${Je(n)}: ${r}`)})))},pt=e=>{let{payload:t,selectedItems:n,onClick:r}=e;const l=it();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(x.Tooltip,{title:s?c().text("Hide"):c().text("Show")},a().createElement("div",{style:s?{background:o}:{border:`${o} 1px solid`},className:l.legendItemColor,onClick:()=>r(t)})),Je(t),a().createElement("span",{className:l.legendItemValue},i))})))};function ut(){return ut=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},ut.apply(this,arguments)}const dt=e=>{let{data:t,width:n,height:l,step:i}=e;const[c,s]=(0,r.useState)((0,o.pluck)("event",t)),[p,u]=(0,r.useState)(null),{cartesianGrid:d,tooltip:f,xAxis:h,yAxis:g,line:E,legend:y}={xAxis:{type:"category",dataKey:"term",tick:{fill:"#000",opacity:"0.54"},angle:0,textAnchor:"middle",stroke:"#666",allowDuplicatedCategory:!1},yAxis:{dataKey:"",type:"number",tick:{fill:"#000",opacity:"0.54",width:void 0},stroke:"#666",tickFormatter:m.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)((()=>at(i,t)),[i,t]),v=(0,r.useMemo)((()=>((e,t)=>{const n=(0,o.chain)((0,o.pipe)((0,o.prop)("data"),(0,o.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(Ve.wW,{width:n,height:l},a().createElement(Ve.q3,d),a().createElement(Ve.Kc,ut({},h,{tick:a().createElement(ot,{step:i})})),a().createElement(Ve.B2,ut({},g,{tickCount:8,domain:v})),b.map((e=>{let{event:t,data:n}=e;const r=c.includes(t);return a().createElement(Ve.x1,ut({key:t,stroke:et(t),name:t,data:n,dot:r&&{r:5,strokeWidth:2},activeDot:r&&{r:5,strokeWidth:2,onMouseEnter:()=>u(t),onMouseLeave:()=>u(null)},strokeOpacity:r?1:0},E))})),a().createElement(Ve.De,ut({content:a().createElement(pt,{selectedItems:c,onClick:e=>{s((0,o.ifElse)((0,o.includes)(e),(0,o.without)([e]),(0,o.append)(e)))}}),payload:b.map((e=>{let{event:t,total:n}=e;return{id:t,type:"square",color:et(t),value:n}}))},y)),a().createElement(Ve.u,ut({},f,{content:a().createElement(st,{step:i,events:p?[p]:c})})))};var mt=n(85229);const ft=(0,T.Z)({periodSelector:{position:"relative",margin:"0 6px 0 0",flexBasis:"220px",flexShrink:1,'& input[type="text"]':{padding:"0 0 0 8px"}}}),ht=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRemove:c}=e;const s=ft(),{id:u,title:f}=t,[h,g]=(0,r.useState)(m.bZE.LAST_WEEK),{state:E,data:y,reload:v}=(e=>{const[t,n]=(0,r.useState)([]),[a,l]=(0,r.useState)(d.o.INIT),i=(0,mt._)(),c=e=>{console.error(e),l(d.o.ERROR),n([])},s=(0,r.useCallback)((()=>{l(d.o.LOADING);const t=(0,o.pipe)(tt,i,(0,o.andThen)((e=>{l(d.o.LOADED),n(e)})),(0,o.otherwise)(c));t(e)}),[e.toString()]),p=()=>{try{s()}catch(e){c(e)}};return(0,r.useEffect)((()=>{p()}),[s]),{state:a,data:t,reload:p}})(h);return(0,p.T)({state:E,reload:v}),a().createElement(b.Z,{id:u},a().createElement(k,{title:f,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRefresh:v,onRemove:c},a().createElement(Be.Z,{values:h,options:(0,m.cGG)(),getValuesDateRange:Ke,onChange:g,className:s.periodSelector})),a().createElement(q,{loadingState:E,onRefresh:v,data:y},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(dt,{data:t,width:n,height:r,step:$e(h)})})))}));var gt=n(3292);function Et(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){yt(e,t,n[t])}))}return e}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bt=e=>`configuration/entityTypes/${e}`,vt=(0,o.pipe)((0,o.prop)("group"),bt),Ot=(0,o.curry)(((e,t)=>t.map((t=>{const n=vt(t);return Et({},t,{label:(0,m.nt9)(e,n).label})})))),xt=(0,o.curry)(((e,t)=>{const n=(0,o.pipe)(vt,(0,m.io3)(e),(0,o.map)((0,m.nt9)(e)),(0,o.filter)(m.oDv),o.last),r=t.reduce(((e,t)=>{const r=n(t);if(r){const n=(0,m.nIW)(r.uri);return Et({},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}}))})),wt=(0,o.pipe)(bt,se,m.VGB),Tt=(0,o.pipe)((0,o.prop)("uri"),m.nIW),St=(0,o.curry)(((e,t)=>e.find((e=>e.group===t)))),Rt=e=>({label:e,group:e,value:0}),It=(0,o.curry)(((e,t)=>{let{entityTypes:n}=e;const r=(0,o.pipe)(Tt,(0,o.either)(St(t),Rt));return n.filter(m.oDv).map(r)})),Pt=[],Ct=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:i,isFullscreen:c,onRemove:s}=e;const{id:m,title:f,hideEmpty:h,orderType:g,inheritChildren:E}=t,{data:y,state:v,reload:O}=(e=>{let{orderType:t,inheritChildren:n,hideEmpty:a}=e;const[i,c]=(0,r.useState)([]),[s,p]=(0,r.useState)(d.o.INIT),m=(0,l.useSelector)(u.ZP.selectors.getMetadata),f=m.entityTypes.length,{globalFilter:h,activityFilter:g}=(0,l.useSelector)(u.ZP.selectors.getGlobalSearchRequestOptions),E=(0,l.useSelector)(u.ZP.selectors.getShowSearchByOv),y=e=>{console.error(e),p(d.o.ERROR),c([])},b=(0,r.useCallback)((()=>{p(d.o.LOADING);const e=(0,o.pipe)(ge,(0,o.andThen)((0,o.unless)((0,o.always)(a),It(m))),(0,o.andThen)((0,o.when)((0,o.always)(n),xt(m))),(0,o.andThen)(Ot(m)),(0,o.andThen)(xe),(0,o.andThen)((e=>{p(d.o.LOADED),c(e)})),(0,o.otherwise)(y));e({attribute:"type",pageSize:f,filters:Pt,globalFilter:h,searchByOv:E,activityFilter:g,orderType:t})}),[a,m,n,f,h,E,g,t]),v=()=>{try{b()}catch(e){y(e)}};return(0,r.useEffect)((()=>{v()}),[b]),{state:s,data:i,reload:v}})({hideEmpty:h,orderType:g,inheritChildren:E});(0,p.T)({state:v,reload:O});const x=(0,l.useDispatch)(),w=(0,l.useSelector)(u.ZP.selectors.getMetadata),T=(0,o.pipe)(wt,Ie(w,"type"),u.ui.actions.openSearch,x);return a().createElement(b.Z,{id:m},a().createElement(k,{title:f,onToggleFullscreen:n,isUpdated:i,isFullscreen:c,onRefresh:O,onRemove:s}),a().createElement(q,{loadingState:v,onRefresh:O,data:y},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(gt.Z,{width:n,height:r,data:t,onItemClick:T})})))})),Mt=(0,T.Z)((()=>({viewContent:{height:"100%",overflow:"hidden",position:"relative",padding:"0 16px 16px"},iframe:{borderWidth:0,width:"100%",height:"100%"},tasksSelector:{position:"relative",margin:"0 6px 0 0",flexBasis:"220px",flexShrink:1},tasksSelectorInput:{fontSize:"14px",lineHeight:"16px",padding:"12px 32px 10px 12px"},pagination:{height:"52px",flexGrow:0,flexShrink:0}}))),Dt=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:r,isFullscreen:l,onRemove:o}=e;const{id:i,title:c,url:s}=t,p=Mt();return a().createElement(b.Z,{id:i},a().createElement(k,{title:c,onToggleFullscreen:n,isUpdated:r,isFullscreen:l,onRemove:o}),a().createElement(A.Z,{className:p.viewContent},a().createElement("iframe",{src:s,frameBorder:"0",className:p.iframe})))}));let Nt;!function(e){e.MY="my",e.TEAM="team"}(Nt||(Nt={}));var jt=n(30739),Ft=n(34e3),kt=n(73272);function _t(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){At(e,t,n[t])}))}return e}function At(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zt=(0,o.cond)([[(0,o.equals)(Nt.MY),(0,o.always)(m.C82)],[(0,o.equals)(Nt.TEAM),(0,o.always)(m.h6J)],[o.T,(0,o.always)((()=>Promise.resolve({data:[]})))]]),Lt=(0,o.pipe)((0,o.propOr)([],"objectURIs"),o.head),Zt=(0,o.startsWith)("changeRequests/"),Ht=(0,o.complement)(o.isEmpty),Ut=(0,o.pipe)((0,o.map)(Lt),(0,o.filter)(m.WgC),(0,o.when)(Ht,m.DnY)),Bt=(0,o.pipe)((0,o.map)(Lt),(0,o.filter)(Zt),(0,o.map)((0,o.pipe)(m.E6I,(0,o.otherwise)((0,o.always)(null)))),(e=>Promise.all(e))),Vt=(0,o.converge)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Promise.all(t)}),[Ut,Bt]),Gt=e=>{let{objectsInfo:t={},changes:n={},uri:r}=e;const a=e=>(0,o.path)([e,0],n),l=e=>{const{type:t}=a(e);return"CREATE_ENTITY"==t||"CREATE_RELATIONSHIP"==t?r+"/changes/"+e:e};return(0,o.pipe)(o.keys,(0,o.filter)(a),(0,o.sort)((0,o.descend)((0,o.pipe)(a,(0,o.prop)("createdTime")))),(0,o.map)((e=>_t({},t[e],{uri:l(e)}))))(t)},Wt=(e,t,n)=>(t=(0,o.reject)(o.isNil,t),n.map((0,o.pipe)((0,o.when)((0,o.pipe)(Lt,m.WgC),(e=>t=>{const n=e.find((0,o.propEq)("uri",Lt(t)));return n?_t({},t,{objects:[n]}):t})(e)),(0,o.when)((0,o.pipe)(Lt,Zt),(e=>t=>{const n=e.find((0,o.propEq)("uri",Lt(t)));return n?_t({},t,{objects:Gt(n)}):t})(t))))),Yt=(0,o.curry)((async(e,t)=>{let{workflowPath:n,environment:r,tenant:a,assignee:l,max:o,offset:i}=t;const c=zt(e),{data:s,total:p}=await c({workflowPath:n,environment:r,tenant:a,assignee:l,max:o,offset:i}),[u,d]=await Vt(s);return{data:Wt(u,d,s),total:p}})),$t=e=>e.dueDate&&e.dueDate<Date.now(),qt=(0,T.Z)((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,padding:"0 15px",overflow:"hidden",overflowWrap:"anywhere"},taskTitle:{lineHeight:"18px",marginBottom:"6px"},taskDetail:{lineHeight:"15px",fontSize:"12px",margin:"5px 0"},taskDetailTitle:{color:e.palette.text.secondary,marginRight:"3px"},taskDueDate:{flex:"0 0 110px",fontSize:"13px",lineHeight:"15px",textAlign:"right",paddingTop:"6px"},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"}}))),Kt=e=>{let{uri:t,label:n,screen:r}=e;const l=qt();return a().createElement(ze.Z,{value:t,screen:r,className:l.entityLabel},(0,m.idV)(n))},Xt=e=>{let{object:t,metadata:n,processType:r}=e;if("startObjectUri"in t&&"endObjectUri"in t){const e=(0,m.V3K)(n,t.type);return a().createElement(a().Fragment,null,e.label," ",c().text("from")," ",a().createElement(Kt,{uri:t.startObjectUri,label:t.startObjectLabel})," ",c().text("to")," ",a().createElement(Kt,{uri:t.endObjectUri,label:t.endObjectLabel}))}{const e=(0,o.cond)([[(0,o.always)((0,o.equals)(r,m.Yj_.potentialMatchReview)),(0,o.always)("potentialMatches")],[(0,o.propSatisfies)(m.FP6,"uri"),(0,o.always)("dcrReview")],[o.T,(0,o.always)("profile")]])(t);return a().createElement(Kt,{uri:(0,m.wwR)(t),label:t.label,screen:e})}},Qt=e=>{let{task:t,showAssignee:n}=e;const r=qt(),o=t.objects||[],[i]=o,s=(0,l.useSelector)(u.ZP.selectors.getMetadata),p=i&&(0,m.nt9)(s,i.type);return a().createElement("div",{className:j()(r.taskItem,t.priorityClass)},a().createElement(Ft.Z,{entityType:p}),a().createElement("div",{className:r.taskInfo},a().createElement(x.Typography,{className:r.taskTitle,variant:"subtitle1"},c().text(t.processDefinitionDisplayName)),o.map((e=>a().createElement("p",{key:e.uri,className:r.taskDetail},a().createElement(Xt,{object:e,processType:t.processType,metadata:s})))),a().createElement("p",{className:r.taskDetail},a().createElement("span",{className:r.taskDetailTitle},`${c().text("Created by")}:`),t.createdBy," ",c().text("on")," ",c().date(t.createTime,"L")),n&&t.assignee&&a().createElement("p",{className:r.taskDetail},a().createElement("span",{className:r.taskDetailTitle},`${c().text("Assigned to")}:`),t.assignee),a().createElement("p",{className:r.taskDetail},a().createElement("span",{className:r.taskDetailTitle},`${c().text("Step")}:`),t.displayName)),a().createElement("div",{className:j()(r.taskDueDate,{[r.overdue]:$t(t),[r.hidden]:!t.dueDate})},a().createElement(kt.Z,{className:r.flag}),c().date(t.dueDate,"L")))},Jt=e=>{let{width:t,height:n,tasksCategory:l,tasks:o}=e;const i=(0,r.useCallback)((e=>{let{data:t,index:n}=e;return a().createElement("div",null,a().createElement(Qt,{task:t[n],showAssignee:l!==Nt.MY}),a().createElement(x.Divider,{light:!0,variant:"inset"}))}),[l]);return a().createElement(jt.Z,{width:t,height:n,data:o,defaultItemSize:115},i)};function en(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tn=n(31276);const nn=(0,r.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:i,isFullscreen:s,onRemove:m}=e;const f=Mt(),{id:h,title:g,pageSize:E}=t,[y,v]=(0,r.useState)(0),[O,w]=(0,r.useState)(E||10),[T,S]=(0,r.useState)(Nt.MY),R=(0,r.useMemo)((()=>({tasksCategory:T,max:O,offset:O*y})),[O,y,T]),{state:I,data:P,total:C,reload:M}=(e=>{const{tasksCategory:t}=e,n=(0,r.useMemo)((()=>(0,o.pick)(["max","offset"],e)),[e]),[a,i]=(0,r.useState)([]),[c,s]=(0,r.useState)(d.o.INIT),[p,m]=(0,r.useState)(),f=(0,l.useSelector)(u.ZP.selectors.getWorkflowPath),h=(0,l.useSelector)(u.ZP.selectors.getWorkflowEnvironmentUrl),g=(0,l.useSelector)(u.ZP.selectors.getTenant),E=(0,l.useSelector)(u.ZP.selectors.getUserName),y=t===Nt.MY?E:void 0,b=(0,mt._)(),v=e=>{console.error(e),s(d.o.ERROR),i([])},O=(0,r.useCallback)((()=>{s(d.o.LOADING);const e=(0,o.pipe)(Yt(t),b,(0,o.andThen)((e=>{let{data:t,total:n}=e;s(d.o.LOADED),i(t),m(n)})),(0,o.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){en(e,t,n[t])}))}return e}({workflowPath:f,environment:h,tenant:g,assignee:y},n))}),[f,h,g,t,n]),x=()=>{try{O()}catch(e){v(e)}};return(0,r.useEffect)((()=>{x()}),[O]),{state:c,data:a,reload:x,total:p}})(R);return(0,p.T)({state:I,reload:M}),a().createElement(b.Z,{id:h},a().createElement(k,{title:g,onToggleFullscreen:n,isUpdated:i,isFullscreen:s,onRemove:m,onRefresh:M},a().createElement(x.Select,{className:f.tasksSelector,classes:{root:f.tasksSelectorInput},variant:"filled",value:T,onChange:(0,o.pipe)(tn.NA,S)},a().createElement(x.MenuItem,{value:Nt.MY},c().text("My tasks")),a().createElement(x.MenuItem,{value:Nt.TEAM},c().text("Team tasks")))),a().createElement(q,{loadingState:I,onRefresh:M,data:P},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(Jt,{width:n,height:r,tasksCategory:T,tasks:t})})),C>(E||10)&&a().createElement("div",{className:f.pagination},a().createElement(K.Z,{count:C,rowsPerPage:O,page:y,onChangePage:v,onChangeRowsPerPage:w})))}));var rn=n(46188),an=n(88234),ln=n(67486);const on=(0,T.Z)((()=>({activityLogFilter:{padding:"0 9px"}}))),cn=(0,r.memo)((e=>{let{config:t,isUpdated:n,isFullscreen:l,onToggleFullscreen:i,onRemove:c}=e;const{id:s,title:u,exportTypes:f}=t,h=on(),[g,v]=(0,r.useState)(0),[O,x]=(0,r.useState)(E),w=(0,r.useMemo)((()=>y(E)),[]),[T,S]=(0,r.useState)({users:[],activities:[],dateRange:{type:m.KfU.WITHIN,period:[4,"months"]}}),{state:R,data:I,total:P,reload:C}=(e=>{let{filter:t,max:n,offset:a}=e;const[l,i]=(0,r.useState)([]),[c,s]=(0,r.useState)(0),[p,u]=(0,r.useState)(d.o.INIT),m=(0,mt._)(),f=e=>{console.error(e),u(d.o.ERROR),i([]),s(0)},h=(0,ln.d)({filter:t,max:n,offset:a}),g=(0,r.useCallback)((()=>{u(d.o.LOADING);const e=(0,o.pipe)(h,m,(0,o.andThen)((e=>{let{data:t,total:n}=e;i(t),s(n),u(d.o.LOADED)})),(0,o.otherwise)(f));e()}),[h]),E=()=>{try{g()}catch(e){f(e)}};return(0,r.useEffect)((()=>{E()}),[g]),{state:p,data:l,total:c,reload:E}})({filter:T,max:O,offset:g*O}),M=(0,r.useCallback)((e=>{S(e),v(0)}),[]);return(0,p.T)({state:R,reload:C}),a().createElement(b.Z,{id:s},a().createElement(k,{title:u,onToggleFullscreen:i,isUpdated:n,isFullscreen:l,onRemove:c,onRefresh:C}),a().createElement("div",{className:h.activityLogFilter},a().createElement(rn.Z,{value:T,onChange:M,exportTypes:f})),a().createElement(q,{loadingState:R,onRefresh:C,data:I},(e=>{let{data:t,width:n,height:r}=e;return a().createElement(an.Z,{width:n,height:r,activities:t,count:P,page:g,onChangePage:v,rowsPerPage:O,onChangeRowsPerPage:x,rowsPerPageOptions:w})})))}));function sn(){return sn=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},sn.apply(this,arguments)}class pn{}pn.ViewTypes=m.dZX,pn.getComponent=e=>{let{config:t,type:n,isUpdated:r,isFullscreen:l,onToggleFullscreen:o,onRemove:i}=e;const c={isUpdated:r,isFullscreen:l,onToggleFullscreen:o,onRemove:i};switch(n){case pn.ViewTypes.ActivitiesViewFacet:return a().createElement(cn,sn({config:t},c));case pn.ViewTypes.CustomActionViewFacet:return a().createElement(Dt,sn({config:t},c));case pn.ViewTypes.DashboardFacet:return a().createElement(Pe,sn({config:t},c));case pn.ViewTypes.EntitiesByTypeViewFacet:return a().createElement(Ct,sn({config:t},c));case pn.ViewTypes.FilteredSavedSearchesFacet:return a().createElement(re,sn({config:t},c));case pn.ViewTypes.FilteredEntitiesViewFacet:return a().createElement(Ue,sn({config:t},c));case pn.ViewTypes.NotificationInboxFacet:return a().createElement(nn,sn({config:t},c));case pn.ViewTypes.ProfileStatsFacet:return a().createElement(ht,sn({config:t},c));default:return a().createElement("div",null,"NOT IMPLEMENTED")}},pn.getChartType=e=>{const t={[pn.ViewTypes.EntitiesByTypeViewFacet]:m.$XE.TREE,[pn.ViewTypes.FilteredSavedSearchesFacet]:m.$XE.TABLE,[pn.ViewTypes.FilteredEntitiesViewFacet]:m.$XE.TABLE,[pn.ViewTypes.ProfileStatsFacet]:m.$XE.LINE,[pn.ViewTypes.NotificationInboxFacet]:m.$XE.TABLE,[pn.ViewTypes.ActivitiesViewFacet]:m.$XE.TABLE};return e.chartType||t[e.component]};const un=pn}}]);
2
2
  //# sourceMappingURL=9258.js.map