@reltio/remotes 1.4.1152 → 1.4.1153
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/6186.js +1 -1
- package/package.json +1 -1
package/6186.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[6186],{27815:(e,t,n)=>{n.d(t,{Z:()=>w});var a=n(24328),r=n.n(a),l=n(87918),o=n.n(l),i=n(71153),c=n.n(i),s=n(17440),u=n(52730),p=n(59431),d=n(58991),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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){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,u.useSelector)(p.ZP.selectors.getMetadata),T=x(),R=(0,a.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.reduce(((e,a)=>{if(a.hidden)return e;const r=`${n&&n+" / "}${a.label}`;e.push({label:a.label,value:a.uri,attrType:a,chipLabel:r,level:t});const l=(0,d.EUG)(w,a);return e.concat(l?R(l,t+1,r):[])}),[])}),[w]),S=(0,a.useMemo)((()=>R((null==t?void 0:t.attributes)||[])),[t,R]);return r().createElement("div",{className:c()(T.root,l)},r().createElement(m.Typography,{className:T.title,variant:"subtitle1"},y||o().text("Attribute")),r().createElement(f.Z,{value:n,options:S,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,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["data"]);return r().createElement(h.Z,n,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:n,data:a,label:l,innerProps:o}=e;return r().createElement("div",o,r().createElement(E.Z,{checked:n,level:a.level,data:a,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 a=n(13688),r=n(48852);const l=e=>t=>(0,r.l)(a.X,e,t)},58662:(e,t,n)=>{n.d(t,{Z:()=>y});var a=n(13980),r=n.n(a),l=n(24328),o=n.n(l),i=n(71153),c=n.n(i),s=n(94079),u=n(87918),p=n.n(u),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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){g(e,t,n[t])}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const E=e=>{let{classes:t={},count:n,rowsPerPageOptions:a,page:r,onChangePage:i,rowsPerPage:u,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||p().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:a}=e;return p().text("${fromRow}-${toRow} of ${countRows}",{fromRow:p().number(t,"0,0"),toRow:p().number(n,"0,0"),countRows:p().number(a,"0,0")})},count:n,rowsPerPageOptions:a,page:r,onChangePage:(0,m.pipe)((0,m.nthArg)(1),O),rowsPerPage:u,onChangeRowsPerPage:(0,m.pipe)(d.NA,x)})};E.propTypes={classes:r().object,rowsPerPageOptions:r().arrayOf(r().number),count:r().number,page:r().number,onChangePage:r().func,rowsPerPage:r().number,onChangeRowsPerPage:r().func,basicTableRef:r().shape({current:r().object}),labelRowsPerPage:r().string};const y=o().memo(E)},10237:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(27556),r=n(13980),l=n.n(r),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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=(0,n(79692).Z)((e=>({"basic-view__paper":c({display:"flex",flexDirection:"column"},e.basicView)})));function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},p.apply(this,arguments)}const d=(0,o.forwardRef)(((e,t)=>{let{children:n,className:r}=e,l=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["children","className"]);const o=u();return i().createElement(a.Z,p({ref:t,className:r,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:()=>s});var a=n(24328),r=n.n(a),l=n(15223),o=n(94079);const i=(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 c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c.apply(this,arguments)}const s=e=>{let{title:t,children:n=null,classes:a={}}=e,s=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["title","children","classes"]);const u=i();return r().createElement(l.Z,c({className:a.root,classes:{root:u.toolbar}},s),r().createElement(o.Typography,{className:a.title,classes:{root:u.title},variant:"h6"},t),n)}},58241:(e,t,n)=>{n.d(t,{Z:()=>p});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(8818),c=n(38016);const s=(0,n(79692).Z)({collapseButton:{cursor:"pointer"},expandLess:{transform:"rotate( -180deg )"}});function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},u.apply(this,arguments)}const p=e=>{let{isOpen:t=!1,tooltipTitle:n}=e,a=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["isOpen","tooltipTitle"]);const l=s(),p={icon:c.Z,className:l.collapseButton,iconClassName:o()({[l.expandLess]:t})},d={tooltipTitle:n};return r().createElement(i.k,u({},p,d,a))}},43290:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(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),u=e=>{let{className:t,width:n=0,maxWidth:l}=e;const i=c(),u=(0,a.useCallback)((e=>(l?100*e/l:0)+"%"),[l]);return n?r().createElement("div",{className:o()(i.bar,t),style:{width:s(n)?u(n):n}}):null}},39621:(e,t,n)=>{n.d(t,{Z:()=>f});var a=n(24328),r=n.n(a),l=n(17440),o=n(87918),i=n.n(o),c=n(6782),s=n(94079),u=n(31517),p=n(31276);const d=(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%"}}),m=[i().text("minutes"),i().text("hours"),i().text("days"),i().text("weeks"),i().text("months"),i().text("years")],f=e=>{let{interval:[t,n],onChange:a,onFocus:o}=e;const i=d(),f=(0,l.pipe)(p.NA,parseInt,(e=>[e,n]),a),h=(0,l.pipe)((e=>{let{value:n}=e;return[t,n]}),a);return r().createElement("div",{className:i.root},r().createElement(s.TextField,{type:"number",value:t||"",onChange:f,inputProps:{min:1,onFocus:o},InputProps:{classes:{root:i.input}},className:i.inputNumber}),r().createElement(u.Z,{label:"",placeholder:(0,c.Z)(n),className:i.inputUnit,value:{value:n,label:(0,c.Z)(n)},options:m.map((e=>({value:e,label:(0,c.Z)(e)}))),onChange:h,TextFieldProps:{inputProps:{onFocus:o},InputProps:{classes:{root:i.input}}}}))}},55847:(e,t,n)=>{n.d(t,{Z:()=>v});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(17440),c=n(94079),s=n(48348),u=n(20562),p=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,p.Z)(c.MenuItem),g=(0,a.forwardRef)(((e,t)=>{let{item:n,onMenuClose:a=i.identity}=e;const l=f(),{disabled:o,text:s,tooltip:u,onClick:p,id:d=""}=n;return r().createElement(h,{tooltipTitle:u,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{a(e),p(e)},disabled:o,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${d}`},r().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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},y.apply(this,arguments)}function b(e){let{className:t,menuId:n,buttonComponent:l=c.Button,buttonContent:p,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,a.useRef)(),[T,R]=(0,a.useState)(!1);(0,u.D)((()=>{T?g():b()}),[T]);const S=(0,a.useCallback)((e=>{null==e||e.stopPropagation(),R((e=>!e))}),[]);return r().createElement(r().Fragment,null,r().createElement(O,y({ref:w,className:o()(x.buttonRoot,{[x.selected]:T},t),onClick:S,"aria-pressed":T,"aria-controls":T?n:void 0,"aria-haspopup":"true"},m),p),r().createElement(s.Z,y({id:n,variant:"menu",open:T,autoFocus:!1,classes:{paper:x.paper},anchorEl:w.current,onClose:S,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:T}},h),d.map(((e,t)=>r().createElement(v,{item:e,key:t,onMenuClose:S})))))}b.displayName="DropDownMenuButton";const v=b},31254:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(24328),r=n.n(a),l=n(52730),o=n(59431),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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c.apply(this,arguments)}const s=e=>{const t=(0,l.useSelector)(o.ZP.selectors.getAbsoluteImagePath)||"";return r().createElement(i.ZP,c({},e,{storagePath:(n=t,n.endsWith("/")?n:n+"/")}));var n}},92575:(e,t,n)=>{n.d(t,{Z:()=>I});var a=n(24328),r=n.n(a),l=n(13980),o=n.n(l),i=n(17440),c=n(70347);const s=(0,n(5407).Z)(c.ZP);var u=n(5190),p=n(18461),d=n(94079),m=n(71153),f=n.n(m),h=n(88611);function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},g.apply(this,arguments)}function E(e){const{innerProps:t,innerRef:n,children:a,isFocused:l,isSelected:o,selectProps:{classes:i},label:c}=e;return r().createElement(d.MenuItem,g({className:f()(i.option,{[i["option--selected"]]:o}),ref:n,selected:l,component:"div"},t),r().createElement(d.Checkbox,{color:"primary",checked:o}),r().createElement(h.C,{value:c},r().createElement("div",{className:i["option--item"]},a)))}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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){w(e,t,n[t])}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const 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 R=0;function S(e){const{label:t,creatable:n,getOptions:l,loadingIndicator:o,components:c,classes:d,styles:m,onChange:f,onInputChange:h,menuPlacement:g="auto"}=e,E=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["label","creatable","getOptions","loadingIndicator","components","classes","styles","onChange","onInputChange","menuPlacement"]),b=n?s:l?p.Z:u.Z,[w,S]=(0,a.useState)(""),I=T((0,i.omit)(["classes"],e)),C="custom-select-"+R++,P=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:C,TextFieldProps:x({label:t,InputLabelProps:{htmlFor:C,shrink:!(!e.value||!e.value.length)||void 0,className:M.label}},e.TextFieldProps)}:{};return r().createElement(b,O({isMulti:!0,inputId:C,inputValue:w,onChange:function(e,t){f(e,t),"create-option"===t.action&&(S(""),h("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;h(e,{action:n}),"set-value"!==n&&S(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:M,components:P,styles:D,menuPlacement:g,loadOptions:l},N,E))}S.defaultProps={creatable:!1,cacheOptions:!0,components:{},classes:{},placeholder:"",loadingIndicator:!1,onInputChange:()=>{},onChange:()=>{}},S.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};const I=S},67268:(e,t,n)=>{n.d(t,{Z:()=>S});var a=n(13980),r=n.n(a),l=n(24328),o=n.n(l),i=n(66244),c=n.n(i),s=n(44443),u=n(17440),p=n(71153),d=n.n(p);function m(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}const f=e=>{let{x:t,y:n,width:a,height:r,id:l,minWidth:o,minHeight:i,maxWidth:c,maxHeight:s,isStatic:u}=e;return{x:t,y:n,w:a,h:r,minW:o,minH:i,maxW:c,maxH:s,i:l,static:u}},h=e=>{let{x:t,y:n,w:a,h:r,maxW:l,minW:o,minH:i,maxH:c,i:s}=e;return{x:t,y:n,width:a,height:r,minWidth:o,minHeight:i,maxWidth:l,maxHeight:c,id:s,isStatic:m(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},g=e=>(e||[]).map(h),E=(0,u.curry)(((e,t)=>(e||[]).find((0,u.propEq)("id",t)))),y=(0,u.curry)(((e,t,n)=>(0,u.mergeAll)([n,(0,u.pick)(e,t)]))),b=(0,u.curry)(((e,t,n)=>(n||[]).map((n=>(0,u.pipe)((0,u.prop)("id"),E(t),(0,u.defaultTo)({}),y(e,u.__,n))(n)))));var v=n(79692),O=n(58991);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"},"&.resizing":{zIndex:9,willChange:"width, height",pointerEvents:"none"},"&.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"}}})));function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},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 R=e=>{let{views:t,layout:n,layoutOptions:a,onLayoutChanged:r,draggableHandle:i,LayoutItem:p,onRemove:m,onDrop:y,droppingItem:v,isDroppable:O,classes:R}=e;const S=(0,l.useRef)(),I=x(),[C,P]=(0,l.useState)(null),[M,D]=(0,l.useState)(0),{cols:N,rowHeight:_,margin:A}=a,j=(0,l.useMemo)((()=>(e=>(e||[]).map(f))(n)),[n]),F=(0,u.pipe)(g,b(["autosizing"],n),r),k=(0,l.useCallback)((e=>P((t=>t?null:e))),[]),z=null!==C,L=(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:a}=t;return Math.ceil((e+n[1])/(a+n[1]))})(e,a);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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){T(e,t,n[t])}))}return e}({},n,{minHeight:t,maxHeight:t,height:t})}return n}));l&&r(o)}),[n,a,r]);return o().createElement(o().Fragment,null,o().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>D(e)}),o().createElement(c(),{innerRef:S,layout:j,cols:N,draggableHandle:i,autoSize:!0,rowHeight:_,width:M,margin:A,onLayoutChange:F,isResizable:!z,isDraggable:!z,className:d()(I.gridLayout,{[I.gridFullscreen]:z}),onDrop:(e,t,n)=>{y&&y(g(e),h(t),n)},droppingItem:v,isDroppable:O},j.map((e=>{const a=C===e.i,r=(E(n,e.i)||{}).autosizing?{AutosizeComponent:(l=e.i,o().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>{L(t,l)}}))}:{};var l;return o().createElement(p,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:k,onRemove:m,className:d()({fullscreen:a},R.item),isFullscreen:a},r))}))))};R.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:u.identity,onLayoutChanged:u.identity,classes:{}},R.propTypes={views:r().array,layout:r().array,layoutOptions:r().object,onConfigChanged:r().func,onLayoutChanged:r().func,onDrop:r().func,onRemove:r().func,LayoutItem:r().elementType,draggableHandle:r().string,isDroppable:r().bool,droppingItem:r().object,classes:r().shape({item:r().string})};const S=(0,l.memo)(R)},51229:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(24328),r=n.n(a);const l=()=>r().createElement("div",{style:{flex:1}})},85451:(e,t,n)=>{n.d(t,{Z:()=>O});var a=n(24328),r=n.n(a),l=n(52730),o=n(87918),i=n.n(o),c=n(17440),s=n(71153),u=n.n(s),p=n(94079),d=n(92575),m=n(96808),f=n(58991),h=n(59431),g=n(79692);function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){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,a.useRef)();return r().createElement("div",{className:u()(g.root,o)},r().createElement(p.Typography,{className:g.title,variant:"subtitle1"},i().text("User")),r().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.prop)("array"),(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 a;n.d(t,{I:()=>a}),function(e){e.MODEL_UPDATED="MODEL_UPDATED",e.ENTITY_REMOVED="ENTITY_REMOVED",e.ENTITY_CREATED="ENTITY_CREATED",e.ENTITY_CHANGED="ENTITY_CHANGED",e.ENTITIES_MERGED="ENTITIES_MERGED",e.ENTITIES_SPLITTED="ENTITIES_SPLITTED",e.ENTITY_LOST_MERGE="ENTITY_LOST_MERGE",e.RELATIONSHIP_CREATED="RELATIONSHIP_CREATED",e.RELATIONSHIP_REMOVED="RELATIONSHIP_REMOVED",e.RELATIONSHIP_CHANGED="RELATIONSHIP_CHANGED",e.POTENTIAL_MATCHES_FOUND="POTENTIAL_MATCHES_FOUND",e.NOT_MATCHES_SET="NOT_MATCHES_SET",e.NOT_MATCHES_RESET="NOT_MATCHES_RESET",e.PERIODIC_TASK_SCHEDULED="PERIODIC_TASK_SCHEDULED",e.ENTITIES_MERGED_MANUALLY="ENTITIES_MERGED_MANUALLY",e.POTENTIAL_MATCHES_REMOVED="POTENTIAL_MATCHES_REMOVED",e.ENTITIES_MERGED_ON_THE_FLY="ENTITIES_MERGED_ON_THE_FLY",e.USER_LOGIN="USER_LOGIN",e.USER_LOGOUT="USER_LOGOUT",e.USER_SEARCH="USER_SEARCH",e.USER_PROFILE_VIEW="USER_PROFILE_VIEW",e.COMMENT_ADDED="COMMENT_ADDED",e.COMMENT_UPDATED="COMMENT_UPDATED",e.COMMENT_DELETED="COMMENT_DELETED",e.ANALYTICS_ATTRIBUTES_CHANGED="ANALYTICS_ATTRIBUTES_CHANGED",e.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE="SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE",e.GROUP_CREATED="GROUP_CREATED",e.GROUP_REMOVED="GROUP_REMOVED",e.GROUP_CHANGED="GROUP_CHANGED"}(a||(a={}))},34606:(e,t,n)=>{n.d(t,{te:()=>s,VV:()=>u,rx:()=>p,_V:()=>d,Xr:()=>m});var a=n(17440),r=n(87918),l=n.n(r),o=n(31537);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(0,a.path)(["data","type"]),s=e=>{const{items:t,label:n}=e,[a]=t||[];return c(a)||n},u=(0,a.pipe)(s,(e=>(0,a.pipe)(a.values,(0,a.includes)(e))(o.I))),p=e=>(0,a.pipe)((0,a.propOr)([],"items"),(0,a.groupBy)(c),a.values,(0,a.ifElse)((e=>{let{length:t}=e;return t>1}),(0,a.map)((t=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){i(e,t,n[t])}))}return e}({},e,{items:t,itemsTotal:t.length}))),(()=>[e])))(e),d=e=>(0,a.isNil)(e)?"":"string"==typeof e?e:Array.isArray(e)?e.map(d).join(", "):(0,a.is)(Object,e)?d("value"in e?e.value:Object.values(e)):e.toString(),m=e=>({[o.I.COMMENT_ADDED]:l().text("Comment added"),[o.I.COMMENT_DELETED]:l().text("Comment deleted"),[o.I.COMMENT_UPDATED]:l().text("Comment updated"),[o.I.ENTITIES_MERGED]:l().text("Profile merged"),[o.I.ENTITIES_MERGED_MANUALLY]:l().text("Profile merged manually"),[o.I.ENTITIES_MERGED_ON_THE_FLY]:l().text("Profile merged on the fly"),[o.I.ENTITIES_SPLITTED]:l().text("Profile un-merged"),[o.I.ENTITY_CHANGED]:l().text("Profile updated"),[o.I.ENTITY_CREATED]:l().text("Profile created"),[o.I.ENTITY_LOST_MERGE]:l().text("Profile lost merge"),[o.I.ENTITY_REMOVED]:l().text("Profile removed"),[o.I.GROUP_CHANGED]:l().text("Group updated"),[o.I.GROUP_CREATED]:l().text("Group created"),[o.I.GROUP_REMOVED]:l().text("Group removed"),[o.I.MODEL_UPDATED]:l().text("Model was updated"),[o.I.NOT_MATCHES_RESET]:l().text("Not matches reset"),[o.I.NOT_MATCHES_SET]:l().text("Not matches set"),[o.I.PERIODIC_TASK_SCHEDULED]:l().text("Periodic task was scheduled"),[o.I.POTENTIAL_MATCHES_FOUND]:l().text("Potential matches found"),[o.I.POTENTIAL_MATCHES_REMOVED]:l().text("Potential matches removed"),[o.I.RELATIONSHIP_CHANGED]:l().text("Relationship updated"),[o.I.RELATIONSHIP_CREATED]:l().text("Relationship created"),[o.I.RELATIONSHIP_REMOVED]:l().text("Relationship removed"),[o.I.USER_LOGIN]:l().text("Logged in"),[o.I.USER_LOGOUT]:l().text("Logged out"),[o.I.USER_PROFILE_VIEW]:l().text("Profile viewed"),[o.I.USER_SEARCH]:l().text("Searched"),[o.I.ANALYTICS_ATTRIBUTES_CHANGED]:l().text("Analytics attribute changed"),[o.I.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE]:l().text("SFDC connector synchronization issue")}[e]||"")},51843:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(24328),r=n.n(a),l=n(95038),o=n.n(l),i=n(87918),c=n.n(i),s=n(17440),u=n(58991),p=n(94079),d=n(96808),m=n(37699);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,a.useRef)(null),[g,E]=(0,a.useState)(!1),y=f(),b=(0,a.useCallback)((()=>{E((e=>!e)),l()}),[l]),v=()=>{E(!1)};return r().createElement("div",{className:y.root},r().createElement(p.TextField,{fullWidth:!0,value:t.map((e=>((e,t)=>(0,s.isNil)(e)?`${t}`:`${(0,u.mB6)({dataTypeDefinition:{type:u.oS0.TYPE_ACTIVENESS_DATE}},e)}`)(e,o))).join(" — "),onClick:b,variant:"filled",ref:i,InputProps:{endAdornment:r().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}`)}),r().createElement(p.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%"}}},r().createElement(m.Z,{values:t,onCancel:v,onApply:e=>{n(e),E(!1)},type:u.oS0.TYPE_ACTIVENESS_DATE})))}},67885:(e,t,n)=>{let a,r;n.d(t,{K:()=>a,o:()=>r}),function(e){e.WITHIN="within",e.AGO="ago",e.BETWEEN="between"}(a||(a={})),function(e){e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(r||(r={}))},32944:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(24328),r=n.n(a),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 r().createElement(l.LinearProgress,{color:"secondary",className:e.loader})}},58141:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(24328),r=n.n(a),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 a=i();return r().createElement(o.H.Provider,{value:t},r().createElement(l.Z,{className:a.view},n))}},92316:(e,t,n)=>{n.d(t,{H:()=>r});var a=n(24328);const r=n.n(a)().createContext(null);r.displayName="DashboardViewIdContext"},19874:(e,t,n)=>{n.d(t,{Z:()=>hn});var a=n(24328),r=n.n(a),l=n(52730),o=n(17440),i=n(87918),c=n.n(i),s=n(83535),u=n(98884),p=n(59431),d=n(67885),m=n(58991);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:r}=e;const[l,i]=(0,a.useState)([]),[c,s]=(0,a.useState)(0),[u,p]=(0,a.useState)(d.o.INIT),h=e=>{console.error(e),p(d.o.ERROR),i([])},g=(0,a.useCallback)((()=>{p(d.o.LOADING);const e=e=>{i(e.result||[]),s(e.total),p(d.o.LOADED)},a=t||{},{countResults:l}=a,c=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(a,["countResults"]);(async()=>{const{result:t,total:a}=await(0,m.cZV)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){f(e,t,n[t])}))}return e}({offset:n,max:r},c));if(l){const n=t.map((e=>(0,m.OaI)((0,m.dWE)(e.query)))),r=(await(0,m.RGr)(n)).reduce(((e,t,n)=>{let{status:a,value:r,reason:l}=t;switch(a){case"fulfilled":return(0,o.assocPath)([n,"count"],r.total,e);case"rejected":console.error(l)}return e}),t);e({result:r,total:a})}else e({result:t,total:a})})().catch(h)}),[t,r,n]),E=()=>{try{g()}catch(e){h(e)}};return(0,a.useEffect)((()=>{E()}),[g]),{state:u,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 R=(0,T.Z)((()=>({itemTitle:{fontSize:"13px"},itemIcon:{minWidth:"49px"},menuItem:{padding:"12px 16px",minWidth:"177px"},openIcon:{padding:"4px",borderRadius:"2px",marginTop:"-6px",marginRight:"-10px"}}))),S=e=>{let{items:t}=e;const[n,l]=(0,a.useState)(null),o=Boolean(n),i=R(),c=()=>l(null),s=e=>()=>{c(),e()};return r().createElement(r().Fragment,null,r().createElement(x.IconButton,{className:i.openIcon,"aria-controls":"menu","aria-haspopup":"true",onClick:e=>l(e.currentTarget)},r().createElement(w.Z,null)),r().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:a,action:l}=e;return r().createElement(x.MenuItem,{key:t,onClick:s(l),className:i.menuItem},r().createElement(x.ListItemIcon,{className:i.itemIcon},n),r().createElement(x.Typography,{className:i.itemTitle},a))}))))};var I=n(29103),C=n(83911),P=n(41039),M=n(43266),D=n(14940),N=n(71153),_=n.n(N);const A=(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"}}))),j=e=>{let{title:t,onToggleFullscreen:n,isUpdated:l=!1,isFullscreen:o,onRemove:i,onRefresh:s,children:u}=e;const p=(0,a.useContext)(O.H),d=(0,a.useMemo)((()=>[{id:"refresh",title:"Refresh",icon:r().createElement(M.Z,null),active:!!s,action:()=>s()},{id:"fullscreen",title:"Fullscreen",icon:r().createElement(I.Z,null),active:!o,action:()=>n(p)},{id:"exitFullscreen",title:"Exit fullscreen",icon:r().createElement(C.Z,null),active:o,action:()=>n(p)},{id:"remove",title:"Remove",icon:r().createElement(P.Z,null),active:!!i,action:()=>{i(p),o&&n(p)}}]),[p,o,i,n,s]),m=A();return r().createElement(v.Z,{title:t,className:m.toolbarRoot,classes:{title:m.title}},l&&r().createElement(x.Chip,{label:c().text("Updated"),size:"small",className:m.updatedChip}),r().createElement("div",{className:m.rightMenu},u,r().createElement(S,{items:d})),r().createElement(D.Z,{className:_()("viewDraggableHandle",m.dragIcon)}))};var F=n(2256),k=n(4094);function z(){return z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},z.apply(this,arguments)}const L=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["styles"]);return r().createElement("svg",z({width:"148",height:"148",viewBox:"0 0 148 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r().createElement("mask",{id:"svg2791016623a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"148",height:"148"},r().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#fff"})),r().createElement("g",{mask:"url(#svg2791016623a)"},r().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#0072CE",fillOpacity:".1"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 5.203h148V148H0V5.203z",fill:"url(#nodata__paint0_linear)"}),r().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},r().createElement("path",{opacity:".5",d:"M25.186 26.016h131.896V128.04H25.186V26.016z",fillOpacity:".8"}),r().createElement("path",{opacity:".9",d:"M16.766 26.021a4.626 4.626 0 014.623-4.63h129.406a4.623 4.623 0 014.623 4.63v88.107a4.625 4.625 0 01-4.623 4.631H21.389a4.623 4.623 0 01-4.623-4.631V26.021z"})),r().createElement("path",{opacity:".5",d:"M141.553 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 46.313a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 01-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 46.19h37.054a2.029 2.029 0 010 4.057H47.102a2.028 2.028 0 110-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 53.725h67.006a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 58.941h21.62a.87.87 0 010 1.74h-21.62a.87.87 0 110-1.74z",fill:"#B1AABD"}),r().createElement("path",{opacity:".5",d:"M71.35 30.664H31.508a3.188 3.188 0 100 6.375H71.35a3.188 3.188 0 000-6.375z",fill:"#645F6D"}),r().createElement("path",{opacity:".5",d:"M141.553 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.318 2.315 2.315 0 002.311 2.319zM133.465 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.318 2.314 2.314 0 002.311 2.319z",fill:"#6DBCFF"}),r().createElement("path",{d:"M39.297 73.824a5.488 5.488 0 10-10.977 0v.035a5.488 5.488 0 0010.977 0v-.035z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 68.214h43.894a2.029 2.029 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 75.748h74.516a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 80.965h60.077a.87.87 0 010 1.739H45.943a.87.87 0 010-1.74z",fill:"#B1AABD"}),r().createElement("path",{opacity:".5",d:"M141.553 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 90.36a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 11-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 90.237h58.915a2.028 2.028 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 97.772h49.096a1.449 1.449 0 110 2.897H46.524a1.448 1.448 0 110-2.897z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 102.988h21.62a.87.87 0 010 1.739h-21.62a.87.87 0 110-1.739z",fill:"#B1AABD"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M102.927 64.75l44.536 77.139-58.989 34.057-44.536-77.14.405-.234c4.06 9.263 12.074 16.712 22.462 19.616 18.103 5.059 36.562-5.599 41.232-23.805 2.679-10.449.235-21.113-5.757-29.26l.647-.374z",fill:"url(#nodata__paint1_linear)"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"url(#nodata__paint2_linear)"}),r().createElement("g",{filter:"url(#nodata__filter0_d)",fillRule:"evenodd",clipRule:"evenodd"},r().createElement("path",{d:"M74.981 49.719c19.06 0 34.512 15.462 34.512 34.536a34.418 34.418 0 01-8.665 22.886l29.603 29.623a51.708 51.708 0 01-5.837 5.43l-29.705-29.725a34.338 34.338 0 01-19.908 6.322c-19.06 0-34.512-15.462-34.512-34.536S55.92 49.719 74.98 49.719zm0 10.265c-13.395 0-24.254 10.866-24.254 24.27 0 13.405 10.859 24.272 24.254 24.272 13.395 0 24.254-10.867 24.254-24.271S88.376 59.984 74.981 59.984z",fill:"#B5C8C9"}),r().createElement("path",{d:"M52.903 110.801c-7.598-6.335-12.434-15.876-12.434-26.546 0-19.074 15.451-34.536 34.512-34.536 10.663 0 20.197 4.839 26.528 12.442l-5.662 5.667c-4.862-6.175-12.401-10.14-20.866-10.14-14.662 0-26.548 11.895-26.548 26.567 0 8.47 3.962 16.015 10.132 20.88l-5.662 5.666z",fill:"#fff",fillOpacity:".4"})),r().createElement("g",{style:{mixBlendMode:"soft-light"},opacity:".4"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"#D9F5FF"})),r().createElement("g",{style:{mixBlendMode:"overlay"}},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#000",fillOpacity:".87"})),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#3C74B4",fillOpacity:".38"})),r().createElement("defs",null,r().createElement("linearGradient",{id:"nodata__paint0_linear",x1:"74",y1:"5.203",x2:"74",y2:"148",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:"0"}),r().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"nodata__paint1_linear",x1:"123.612",y1:"142.028",x2:"76.729",y2:"122.717",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:"0"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"nodata__paint2_linear",x1:"75.156",y1:"57.234",x2:"75.156",y2:"111.578",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#EEFBFF"}),r().createElement("stop",{offset:"1",stopColor:"#0072CE"})),r().createElement("filter",{id:"nodata__filter0_d",x:"36.469",y:"47.719",width:"97.962",height:"100.475",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"}))))},H=(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"}}))),Z=e=>{let{height:t}=e;const n=H({height:t});return r().createElement("div",{className:n.noDataContainer},r().createElement(L,{className:n.icon}),r().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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},U.apply(this,arguments)}const B=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["styles"]);return r().createElement("svg",U({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r().createElement("mask",{id:"svg3217593551a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),r().createElement("g",{mask:"url(#svg3217593551a)"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:".3"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),r().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),r().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),r().createElement("path",{opacity:".5",d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".3",d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".8",d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),r().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".2",d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),r().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),r().createElement("g",{filter:"url(#error__filter0_d)"},r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),r().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),r().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#error__paint0_linear)"}),r().createElement("g",{filter:"url(#error__filter1_d)"},r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),r().createElement("g",{filter:"url(#error__filter2_d)"},r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),r().createElement("defs",null,r().createElement("filter",{id:"error__filter0_d",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"error__filter1_d",x:"51.688",y:"62.625",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"error__filter2_d",x:"51.688",y:"44.063",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("linearGradient",{id:"error__paint0_linear",x1:"68.438",y1:"71.571",x2:"60.119",y2:"58.801",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:"0"}),r().createElement("stop",{offset:"1"}))))},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:a}=e;const l=V({height:t});return r().createElement("div",{className:l.errorContainer},r().createElement(B,{className:l.errorIcon}),r().createElement(x.Typography,null,a),n&&r().createElement(x.Button,{className:l.refreshButton,startIcon:r().createElement(M.Z,{color:"primary",className:l.refreshIcon}),onClick:n},r().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:a,data:l,className:o}=e;const i=$();return r().createElement(k.Z,{className:_()(i.viewContent,o)},r().createElement(Y.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:o,height:i}=e;switch(t){case d.o.LOADED:return l&&0!==l.length?r().createElement(F.Z,{error:r().createElement(G,{message:c().text("Something went wrong"),height:i})},a({data:l,width:o,height:i})):r().createElement(Z,{height:i});case d.o.LOADING:return r().createElement(W.Z,null);case d.o.ERROR:return r().createElement(G,{message:c().text("Error Loading Data"),height:i,onRefresh:n});default:return r().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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},X.apply(this,arguments)}function Q(e){const t=t=>{const n=(0,a.useRef)(null);return r().createElement(r().Fragment,null,r().createElement(e,X({},t,{basicTableRef:n,height:t.height-60})),r().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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){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),ae=(0,a.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,a.useMemo)((()=>y(v)),[v]),[x,w]=(0,a.useState)(v),[T,R]=(0,a.useState)(0),{data:S,state:I,reload:C,total:P}=h({options:g,max:x,offset:x*T}),M=(0,a.useMemo)((()=>(e=>e.map((e=>{let{uri:t,name:n,count:a}=e;return{value:a||0,label:n||"",group:t}})))(S)),[S]),D=(0,l.useDispatch)(),N=(0,a.useCallback)((e=>{(0,o.pipe)((0,o.find)((0,o.propEq)("uri",e)),te,p.ui.actions.openSearch,D)(S)}),[D,S]);return(0,u.T)({state:I,reload:C}),r().createElement(b.Z,{id:m},r().createElement(j,{title:f,onToggleFullscreen:n,isFullscreen:s,isUpdated:i,onRefresh:C,onRemove:d}),r().createElement(q,{loadingState:I,onRefresh:C,data:M},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(ne,{width:n,height:a,data:t,count:P,onChangePage:R,page:T,rowsPerPage:x,onChangeRowsPerPage:w,rowsPerPageOptions:O,options:{headers:[c().text("Name")],showValues:null==g?void 0:g.countResults},onItemClick:N})})))}));var re=n(66675);const le=(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})),oe=(0,o.curry)(((e,t)=>({filter:m.j5E.NOT_EQUALS,values:[t],fieldName:e}))),ie=e=>{var t,n,a;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!==(a=null==e?void 0:e.fieldName)&&void 0!==a?a:""}},ce=e=>({filter:m.j5E.EQUALS,fieldName:"type",values:[e]}),se=(0,o.curry)(((e,t)=>({filter:m.j5E.EQUALS,values:[t],fieldName:e}))),ue=(0,o.curry)(((e,t,n)=>{const{fieldName:a}=n,r=/^(attributes|analyticsAttributes)/.test(a),l=r?(0,m.zeJ)(e,(0,m.h2W)(a,t)):(0,m.Yxg)(a);return(0,o.pipe)(le,(0,o.when)((()=>r),(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)})),pe=(e,t)=>{let{filter:n,fieldName:a,values:r}=e;return n===m.j5E.EQUALS&&"type"===a&&(null==r?void 0:r[0])===t};function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){me(e,t,n[t])}))}return e}function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fe=e=>{let{attribute:t,filters:n,globalFilter:a,searchByOv:r,activityFilter:l,pageSize:i,orderType:c}=e;const s=((e,t,n,a)=>{const r=(0,o.pipe)((0,o.map)(le),(0,m.Uqd)(),(0,m.vyX)(t))(e),l=r?[`filter=${r}`]:[];return n&&l.push("options=searchByOv"),a&&l.push(`activeness=${a}`),l.join("&")})(n,a,r,l),u=[{fieldName:t,pageNo:1,orderType:c,pageSize:i}];return(0,m.FK9)({query:s,body:u}).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)))},he=(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 a=n.flatMap((0,m.Z2f)(e));return t.map((e=>{const t=a.find((t=>{let{lookupCode:n}=t;return n===e.label}));return t?de({},e,{label:t.value}):e}))}))})),ge=(0,o.curry)(((e,t)=>t.map((0,o.pipe)((0,o.prop)("group"),oe(e))))),Ee="Other",ye=(0,o.curry)(((e,t)=>{let{attribute:n,filters:a,globalFilter:r,searchByOv:l,activityFilter:i}=e;const s=(0,o.pipe)(ge(n),(0,o.concat)(a),(0,o.map)(le))(t),u=l&&"searchByOv";return(0,m.j_Q)(s,{globalFilter:r,activityFilter:i,searchOptions:u}).then((e=>{let{total:n}=e;return n>0?t.concat([{label:c().text("Other"),group:Ee,value:n}]):t}))})),be=(e,t)=>(0,m.xqc)(e,"configuration/roles/"+t),ve=(0,o.map)((e=>de({},e,{localizedValue:c().number(e.value)}))),Oe=(0,o.when)(m.EdS,m.Tde),xe=(0,o.ifElse)(m.EdS,m.Uk3,(0,o.always)(void 0)),we=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=xe(e),a=t.some((e=>pe(e,n)));return n&&!a?[ce(n),...t]:t},Te=(0,o.curry)(((e,t,n)=>{const a=Oe(e);return n===Ee?(0,o.pipe)((0,o.reject)((0,o.propEq)("group",Ee)),ge(a))(t):[se(a,n)]})),Re=(0,o.curry)(((e,t,n)=>{const a=xe(t);return{facets:n.map(ue(e,a))}}));var Se=n(56259);const Ie=(0,a.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,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,["id","title","filters","attributeUri","count","orderType","chartType","showOthers"]),T=O===m.$XE.MAP?100:8,{data:R,state:S,reload:I}=(e=>{let{filters:t,attributeUri:n,pageSize:r,orderType:i="reversedCount",options:c}=e;const[s,u]=(0,a.useState)([]),[f,h]=(0,a.useState)(d.o.INIT),g=(0,a.useContext)(Se.I),E=(0,a.useMemo)((()=>g.map(ie).concat(t||[])),[g,t]),y=(0,l.useSelector)(p.ZP.selectors.getMetadata),{globalFilter:b,activityFilter:v}=(0,l.useSelector)(p.ZP.selectors.getGlobalSearchRequestOptions),O=(0,l.useSelector)(p.ZP.selectors.getAttributePresentations),x=!(null==O||!O[n]),w=(0,l.useSelector)(p.ZP.selectors.getSearchOptions),T=null==w?void 0:w.searchByOv,R=null==c?void 0:c.showOthers,S=e=>{console.error(e),h(d.o.ERROR),u([])},I=(0,a.useCallback)((()=>{h(d.o.LOADING);const e=we(n,E),t=Oe(n),a=(0,m.Yxg)(t)||(0,m.zeJ)(y,n);if(!a)return void S("Configuration is incorrect");const l=(0,o.pipe)(fe,(0,o.andThen)(((e,t)=>(0,o.pipe)((0,o.when)((()=>(0,m.CwH)(t)),he((0,m.To9)(t))),(0,o.when)((()=>(0,m.ian)(t)),(0,o.map)((t=>de({},t,{label:be(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,a)),(0,o.andThen)((0,o.unless)((0,o.always)(x),ve)),(0,o.andThen)((0,o.when)((0,o.always)(R),ye({attribute:t,filters:e,globalFilter:b,searchByOv:T,activityFilter:v}))),(0,o.andThen)((e=>{h(d.o.LOADED),u(e)})),(0,o.otherwise)(S));l({attribute:t,filters:e,globalFilter:b,searchByOv:T,activityFilter:v,pageSize:r,orderType:i})}),[h,n,y,R,E,b,T,v,r,i,x]),C=()=>{try{I()}catch(e){S(e)}};return(0,a.useEffect)((()=>{C()}),[I]),{state:f,data:s,reload:C}})({filters:g,attributeUri:E,pageSize:y||T,orderType:v,options:{showOthers:x}});(0,u.T)({state:S,reload:I});const C=(0,l.useDispatch)(),P=(0,l.useSelector)(p.ZP.selectors.getMetadata),M=(0,o.pipe)(Te(E,R),(0,o.concat)(we(E,g)),Re(P,E),p.ui.actions.openSearch,C);return r().createElement(b.Z,{id:f},r().createElement(j,{title:h,onToggleFullscreen:n,isUpdated:i,isFullscreen:c,onRefresh:I,onRemove:s}),r().createElement(q,{loadingState:S,onRefresh:I,data:R},(e=>{let{data:t,width:n=0,height:a=0}=e;return re.Z.build(O,{data:t,width:n,height:a,options:w,onItemClick:M})})))}));var Ce=n(85709),Pe=n(92332),Me=n(88611);const De={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"},Ne=(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":De},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":De}})));function _e(){return _e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_e.apply(this,arguments)}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){je(e,t,n[t])}))}return e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fe=e=>{let{className:t,headCellData:n}=e,a=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["className","headCellData"]);const l=Ne();return r().createElement("div",{className:_()(l.headCell,t)},r().createElement(Pe.default,_e({},a,{headCellData:Ae({},n,{label:r().createElement(Me.C,{value:n.label},r().createElement("div",{className:l.headLabel},n.label))})})))};var ke=n(31039);const ze=e=>{let{value:t,rowValue:n}=e;const a=Ne(),l=(0,m.idV)(t);return r().createElement(Me.C,{value:l},r().createElement(ke.Z,{value:(0,m.wwR)(n),className:a.entityLabel},l))},Le=(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:a,data:l}=e;const o=Le({width:n,height:t}),i=[{id:"label",label:c().text("Entity"),resizable:!1,headCellRenderer:Fe,rowCellValueRenderer:ze,initialWidth:n}],s={cellBorder:o.cellBorder};return r().createElement("div",{className:o.tableContainer},r().createElement(Ce.Z,{columnsData:i,rowsData:l,headRowHeight:48,getRowCellHeight:null,classes:s,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:a}))})),Ze=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:i}=e;const{id:c,title:s,filters:p,max:f=E}=t,h=(0,a.useMemo)((()=>y(f)),[f]),[g,v]=(0,a.useState)(f),[O,x]=(0,a.useState)(0),{data:w,state:T,reload:R,total:S}=(e=>{let{filters:t,max:n,offset:r}=e;const[l,o]=(0,a.useState)([]),[i,c]=(0,a.useState)(0),[s,u]=(0,a.useState)(d.o.INIT),p=(0,a.useContext)(Se.I),f=(0,a.useMemo)((()=>p.map(ie).concat(t||[])),[p,t]),h=e=>{console.error(e),u(d.o.ERROR),o([]),c(0)},g=(0,a.useCallback)((()=>{u(d.o.LOADING),Promise.all([(0,m.ZOr)(f,{max:n,offset:r}),(0,m.j_Q)(f,{max:n,offset:r})]).then((e=>{const[t,{total:n}]=e;o(t||[]),c(n),u(d.o.LOADED)})).catch(h)}),[f,n,r]),E=()=>{try{g()}catch(e){h(e)}};return(0,a.useEffect)((()=>{E()}),[g]),{state:s,data:l,reload:E,total:i}})({filters:p,max:g,offset:g*O});return(0,u.T)({state:T,reload:R}),r().createElement(b.Z,{id:c},r().createElement(j,{title:s,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRefresh:R,onRemove:i}),r().createElement(q,{loadingState:T,onRefresh:R,data:w},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(He,{height:a,onChangePage:x,page:O,rowsPerPage:g,count:S,onChangeRowsPerPage:v,rowsPerPageOptions:h,width:n,data:t})})))}));var Ue=n(31276),Be=n(46923);let Ve;!function(e){e.HOUR="hour",e.DAY="day"}(Ve||(Ve={}));var Ge=n(95038),We=n.n(Ge);const Ye=e=>{const t=(e=>{let[t,n]=e;return We().duration(+t,n)})(e);return t.isValid()&&t.valueOf()>0},$e=(0,o.ifElse)(Ye,(e=>{let[t,n]=e;const a=We()().valueOf();return[We()(a).endOf(n).subtract(t,n).valueOf()+1,a]}),(e=>{let[t,n]=e;return[We()(t).valueOf(),We()(n).endOf("date").valueOf()]})),qe=(0,o.pipe)($e,(e=>{let[t,n]=e;return n-t>+We().duration(1,"day")?Ve.DAY:Ve.HOUR})),Ke="_",Xe=[{value:[24,"hours"].join(Ke),get label(){return c().text("Last 24 hours")}},{value:[7,"days"].join(Ke),get label(){return c().text("Last 7 days")}},{value:[30,"days"].join(Ke),get label(){return c().text("Last 30 days")}},{value:m.lL_.PICK_DATE,get label(){return c().text("Pick date")}}],Qe=(0,o.when)(Ye,(0,o.join)(Ke)),Je=(0,o.when)((0,o.is)(String),(0,o.pipe)((0,o.split)(Ke),(0,o.adjust)(0,parseInt))),et=e=>{let{value:t,onChange:n=Ue.ZT,className:a}=e;return r().createElement(Be.Z,{label:null,values:t&&Qe(t),options:Xe,getValuesDateRange:(0,o.pipe)(Je,$e,(0,o.map)((e=>new Date(e)))),onChange:(0,o.pipe)(Je,n),className:a,dataTypeDefinition:{type:m.oS0.TYPE_LOCAL_DATE}})};var tt=n(2899);const nt=[{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"}],at=e=>nt.find((0,o.propEq)("id",e)),rt=(0,o.pipe)(at,(0,o.propOr)("","label")),lt=(0,o.pipe)(at,(0,o.prop)("color")),ot=e=>{const[t,n]=$e(e),a=e=>{let{facet:a,types:r}=e;return(0,m.NIY)({facet:a,startTime:t,endTime:n,types:r}).then((e=>{let{facets:t={},total:n=0}=e;return{total:n,data:t[a]}}))};return(()=>{const e=(0,o.chain)((0,o.prop)("types"),nt),t=(0,o.pipe)((0,o.propOr)([],"data"),(0,o.pluck)("term"));return a({facet:"type",types:e}).then((e=>t(e)))})().then((e=>e.length>0?(e=>{const r=(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(nt.map((t=>{let{types:n,id:l}=t;return((t=>t.some((t=>e.includes(t))))(n)?a({facet:"hour",types:n}):Promise.resolve({total:0,data:[]})).then((e=>{let{total:t,data:n}=e;return{total:t,data:r(n),event:l}}))})))})(e):[]))},it=(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))),ct=(0,o.curry)(((e,t)=>{const[n,...a]=t;return a.reduce(((t,n)=>{const a=+We().duration(1,e);let r=(0,o.last)(t).term+a;const l=[];for(;r<n.term;)l.push({term:r,count:0}),r+=a;return t.concat(l,n)}),[n])})),st=(0,o.curry)(((e,t)=>t.map((0,o.evolve)({data:(0,o.pipe)(it(e),ct(e))})))),ut=(0,o.cond)([[(0,o.equals)(Ve.HOUR),(0,o.always)("LT")],[(0,o.equals)(Ve.DAY),(0,o.always)("MMM D")]]),pt=e=>{let{x:t,y:n,payload:a,step:l}=e;return r().createElement("g",{transform:`translate(${t},${n})`},r().createElement("text",{x:0,y:0,dy:16,textAnchor:"middle",fill:"#666"},c().date(null==a?void 0:a.value,ut(l))))},dt=(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"}}),mt=(0,o.cond)([[(0,o.equals)(Ve.HOUR),(0,o.always)("LT MMM D")],[(0,o.equals)(Ve.DAY),(0,o.always)("ll")]]),ft=e=>{let{active:t,payload:n,label:a,step:l,events:o}=e;const i=dt();return t&&r().createElement("div",{className:i.tooltipWrapper},r().createElement("p",{className:i.tooltipTitle},c().date(a,mt(l))),n.filter((e=>{let{name:t}=e;return o.includes(t)})).map((e=>{let{color:t,name:n,value:a}=e;return r().createElement("p",{key:n},r().createElement("span",{style:{background:t},className:i.tooltipItemColor}),`${rt(n)}: ${a}`)})))},ht=e=>{let{payload:t,selectedItems:n,onClick:a}=e;const l=dt();return r().createElement("div",{className:l.legend},t.map((e=>{let{id:t,color:o,value:i}=e;const s=n.includes(t);return r().createElement("div",{key:t,className:l.legendItem},r().createElement(x.Tooltip,{title:s?c().text("Hide"):c().text("Show")},r().createElement("div",{style:s?{background:o}:{border:`${o} 1px solid`},className:l.legendItemColor,onClick:()=>a(t)})),rt(t),r().createElement("span",{className:l.legendItemValue},i))})))};function gt(){return gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},gt.apply(this,arguments)}const Et=e=>{let{data:t,width:n,height:l,step:i}=e;const[c,s]=(0,a.useState)((0,o.pluck)("event",t)),[u,p]=(0,a.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,a.useMemo)((()=>st(i,t)),[i,t]),v=(0,a.useMemo)((()=>((e,t)=>{const n=(0,o.chain)((0,o.pipe)((0,o.prop)("data"),(0,o.pluck)("count")))(e),a=Math.min(...n),r=Math.max(...n);return Math.abs(r-a)<8?[0,7]:[0,"auto"]})(b)),[b]);return r().createElement(tt.wW,{width:n,height:l},r().createElement(tt.q3,d),r().createElement(tt.Kc,gt({},h,{tick:r().createElement(pt,{step:i})})),r().createElement(tt.B2,gt({},g,{tickCount:8,domain:v})),b.map((e=>{let{event:t,data:n}=e;const a=c.includes(t);return r().createElement(tt.x1,gt({key:t,stroke:lt(t),name:t,data:n,dot:a&&{r:5,strokeWidth:2},activeDot:a&&{r:5,strokeWidth:2,onMouseEnter:()=>p(t),onMouseLeave:()=>p(null)},strokeOpacity:a?1:0},E))})),r().createElement(tt.De,gt({content:r().createElement(ht,{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:lt(t),value:n}}))},y)),r().createElement(tt.u,gt({},f,{content:r().createElement(ft,{step:i,events:u?[u]:c})})))};var yt=n(67218);const bt=(0,T.Z)({periodSelector:{position:"relative",margin:"0 6px 0 0",flexBasis:"220px",flexShrink:1,'& input[type="text"]':{padding:"0 0 0 8px"}}}),vt=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRemove:c}=e;const s=bt(),{id:p,title:m}=t,[f,h]=(0,a.useState)([7,"days"]),{state:g,data:E,reload:y}=(e=>{const[t,n]=(0,a.useState)([]),[r,l]=(0,a.useState)(d.o.INIT),i=(0,yt._)(),c=e=>{console.error(e),l(d.o.ERROR),n([])},s=(0,a.useCallback)((()=>{l(d.o.LOADING);const t=(0,o.pipe)(ot,i,(0,o.andThen)((e=>{l(d.o.LOADED),n(e)})),(0,o.otherwise)(c));t(e)}),[...e]),u=()=>{try{s()}catch(e){c(e)}};return(0,a.useEffect)((()=>{u()}),[s]),{state:r,data:t,reload:u}})(f);return(0,u.T)({state:g,reload:y}),r().createElement(b.Z,{id:p},r().createElement(j,{title:m,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRefresh:y,onRemove:c},r().createElement(et,{value:f,onChange:h,className:s.periodSelector})),r().createElement(q,{loadingState:g,onRefresh:y,data:E},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(Et,{data:t,width:n,height:a,step:qe(f)})})))}));var Ot=n(3292);function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){wt(e,t,n[t])}))}return e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tt=e=>`configuration/entityTypes/${e}`,Rt=(0,o.pipe)((0,o.prop)("group"),Tt),St=(0,o.curry)(((e,t)=>t.map((t=>{const n=Rt(t);return xt({},t,{label:(0,m.nt9)(e,n).label})})))),It=(0,o.curry)(((e,t)=>{const n=(0,o.pipe)(Rt,(0,m.io3)(e),(0,o.map)((0,m.nt9)(e)),(0,o.filter)(m.oDv),o.last),a=t.reduce(((e,t)=>{const a=n(t);if(a){const n=(0,m.nIW)(a.uri);return xt({},e,{[n]:(e[n]||0)+t.value})}return e}),{});return Object.entries(a).map((e=>{let[t,n]=e;return{group:t,label:t,value:n}}))})),Ct=(0,o.pipe)(Tt,ce,m.VGB),Pt=(0,o.pipe)((0,o.prop)("uri"),m.nIW),Mt=(0,o.curry)(((e,t)=>e.find((e=>e.group===t)))),Dt=e=>({label:e,group:e,value:0}),Nt=(0,o.curry)(((e,t)=>{let{entityTypes:n}=e;const a=(0,o.pipe)(Pt,(0,o.either)(Mt(t),Dt));return n.filter(m.oDv).map(a)})),_t=[],At=(0,a.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:r}=e;const[i,c]=(0,a.useState)([]),[s,u]=(0,a.useState)(d.o.INIT),m=(0,l.useSelector)(p.ZP.selectors.getMetadata),f=m.entityTypes.length,{globalFilter:h,activityFilter:g}=(0,l.useSelector)(p.ZP.selectors.getGlobalSearchRequestOptions),E=(0,l.useSelector)(p.ZP.selectors.getSearchOptions),y=E&&E.searchByOv,b=e=>{console.error(e),u(d.o.ERROR),c([])},v=(0,a.useCallback)((()=>{u(d.o.LOADING);const e=(0,o.pipe)(fe,(0,o.andThen)((0,o.unless)((0,o.always)(r),Nt(m))),(0,o.andThen)((0,o.when)((0,o.always)(n),It(m))),(0,o.andThen)(St(m)),(0,o.andThen)(ve),(0,o.andThen)((e=>{u(d.o.LOADED),c(e)})),(0,o.otherwise)(b));e({attribute:"type",pageSize:f,filters:_t,globalFilter:h,searchByOv:y,activityFilter:g,orderType:t})}),[r,m,n,f,h,y,g,t]),O=()=>{try{v()}catch(e){b(e)}};return(0,a.useEffect)((()=>{O()}),[v]),{state:s,data:i,reload:O}})({hideEmpty:h,orderType:g,inheritChildren:E});(0,u.T)({state:v,reload:O});const x=(0,l.useDispatch)(),w=(0,l.useSelector)(p.ZP.selectors.getMetadata),T=(0,o.pipe)(Ct,Re(w,"type"),p.ui.actions.openSearch,x);return r().createElement(b.Z,{id:m},r().createElement(j,{title:f,onToggleFullscreen:n,isUpdated:i,isFullscreen:c,onRefresh:O,onRemove:s}),r().createElement(q,{loadingState:v,onRefresh:O,data:y},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(Ot.Z,{width:n,height:a,data:t,onItemClick:T})})))})),jt=(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}}))),Ft=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:a,isFullscreen:l,onRemove:o}=e;const{id:i,title:c,url:s}=t,u=jt();return r().createElement(b.Z,{id:i},r().createElement(j,{title:c,onToggleFullscreen:n,isUpdated:a,isFullscreen:l,onRemove:o}),r().createElement(k.Z,{className:u.viewContent},r().createElement("iframe",{src:s,frameBorder:"0",className:u.iframe})))}));let kt;!function(e){e.MY="my",e.TEAM="team"}(kt||(kt={}));var zt=n(30739),Lt=n(31254),Ht=n(73272);function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){Ut(e,t,n[t])}))}return e}function Ut(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=(0,o.cond)([[(0,o.equals)(kt.MY),(0,o.always)(m.C82)],[(0,o.equals)(kt.TEAM),(0,o.always)(m.h6J)],[o.T,(0,o.always)((()=>Promise.resolve({data:[]})))]]),Vt=(0,o.pipe)((0,o.propOr)([],"objectURIs"),o.head),Gt=(0,o.startsWith)("changeRequests/"),Wt=(0,o.complement)(o.isEmpty),Yt=(0,o.pipe)((0,o.map)(Vt),(0,o.filter)(m.WgC),(0,o.when)(Wt,m.DnY)),$t=(0,o.pipe)((0,o.map)(Vt),(0,o.filter)(Gt),(0,o.map)((0,o.pipe)(m.E6I,(0,o.otherwise)((0,o.always)(null)))),(e=>Promise.all(e))),qt=(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)}),[Yt,$t]),Kt=e=>{let{objectsInfo:t={},changes:n={},uri:a}=e;const r=e=>(0,o.path)([e,0],n),l=e=>{const{type:t}=r(e);return"CREATE_ENTITY"==t||"CREATE_RELATIONSHIP"==t?a+"/changes/"+e:e};return(0,o.pipe)(o.keys,(0,o.filter)(r),(0,o.sort)((0,o.descend)((0,o.pipe)(r,(0,o.prop)("createdTime")))),(0,o.map)((e=>Zt({},t[e],{uri:l(e)}))))(t)},Xt=(e,t,n)=>(t=(0,o.reject)(o.isNil,t),n.map((0,o.pipe)((0,o.when)((0,o.pipe)(Vt,m.WgC),(e=>t=>{const n=e.find((0,o.propEq)("uri",Vt(t)));return n?Zt({},t,{objects:[n]}):t})(e)),(0,o.when)((0,o.pipe)(Vt,Gt),(e=>t=>{const n=e.find((0,o.propEq)("uri",Vt(t)));return n?Zt({},t,{objects:Kt(n)}):t})(t))))),Qt=(0,o.curry)((async(e,t)=>{let{workflowPath:n,environment:a,tenant:r,assignee:l,max:o,offset:i}=t;const c=Bt(e),{data:s,total:u}=await c({workflowPath:n,environment:a,tenant:r,assignee:l,max:o,offset:i}),[p,d]=await qt(s);return{data:Xt(p,d,s),total:u}})),Jt=e=>e.dueDate&&e.dueDate<Date.now(),en=(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"}}))),tn=e=>{let{uri:t,label:n}=e;const a=en();return r().createElement(ke.Z,{value:t,className:a.entityLabel},(0,m.idV)(n))},nn=e=>{let{object:t,metadata:n}=e;if("startObjectUri"in t&&"endObjectUri"in t){const e=(0,m.V3K)(n,t.type);return r().createElement(r().Fragment,null,e.label," ",c().text("from")," ",r().createElement(tn,{uri:t.startObjectUri,label:t.startObjectLabel})," ",c().text("to")," ",r().createElement(tn,{uri:t.endObjectUri,label:t.endObjectLabel}))}return r().createElement(tn,{uri:(0,m.wwR)(t),label:t.label})},an=e=>{let{task:t,showAssignee:n}=e;const a=en(),o=t.objects||[],[i]=o,s=(0,l.useSelector)(p.ZP.selectors.getMetadata),u=i&&(0,m.nt9)(s,i.type);return r().createElement("div",{className:_()(a.taskItem,t.priorityClass)},r().createElement(Lt.Z,{entityType:u}),r().createElement("div",{className:a.taskInfo},r().createElement(x.Typography,{className:a.taskTitle,variant:"subtitle1"},t.processDefinitionDisplayName),o.map((e=>r().createElement("p",{key:e.uri,className:a.taskDetail},r().createElement(nn,{object:e,metadata:s})))),r().createElement("p",{className:a.taskDetail},r().createElement("span",{className:a.taskDetailTitle},c().text("Created by:")),t.createdBy," ",c().text("on")," ",c().date(t.createTime,"L")),n&&t.assignee&&r().createElement("p",{className:a.taskDetail},r().createElement("span",{className:a.taskDetailTitle},c().text("Assigned to:")),t.assignee),r().createElement("p",{className:a.taskDetail},r().createElement("span",{className:a.taskDetailTitle},c().text("Step:")),t.displayName)),r().createElement("div",{className:_()(a.taskDueDate,{[a.overdue]:Jt(t),[a.hidden]:!t.dueDate})},r().createElement(Ht.Z,{className:a.flag}),c().date(t.dueDate,"L")))},rn=e=>{let{width:t,height:n,tasksCategory:l,tasks:o}=e;const i=(0,a.useCallback)((e=>{let{data:t,index:n}=e;return r().createElement("div",null,r().createElement(an,{task:t[n],showAssignee:l!==kt.MY}),r().createElement(x.Divider,{light:!0,variant:"inset"}))}),[l]);return r().createElement(zt.Z,{width:t,height:n,data:o,defaultItemSize:115},i)};function ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const on=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:i,isFullscreen:s,onRemove:m}=e;const f=jt(),{id:h,title:g,pageSize:E}=t,[y,v]=(0,a.useState)(0),[O,w]=(0,a.useState)(E||10),[T,R]=(0,a.useState)(kt.MY),S=(0,a.useMemo)((()=>({tasksCategory:T,max:O,offset:O*y})),[O,y,T]),{state:I,data:C,total:P,reload:M}=(e=>{const{tasksCategory:t}=e,n=(0,a.useMemo)((()=>(0,o.pick)(["max","offset"],e)),[e]),[r,i]=(0,a.useState)([]),[c,s]=(0,a.useState)(d.o.INIT),[u,m]=(0,a.useState)(),f=(0,l.useSelector)(p.ZP.selectors.getWorkflowPath),h=(0,l.useSelector)(p.ZP.selectors.getWorkflowEnvironmentUrl),g=(0,l.useSelector)(p.ZP.selectors.getTenant),E=(0,l.useSelector)(p.ZP.selectors.getUserName),y=t===kt.MY?E:void 0,b=(0,yt._)(),v=e=>{console.error(e),s(d.o.ERROR),i([])},O=(0,a.useCallback)((()=>{s(d.o.LOADING);const e=(0,o.pipe)(Qt(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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){ln(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,a.useEffect)((()=>{x()}),[O]),{state:c,data:r,reload:x,total:u}})(S);return(0,u.T)({state:I,reload:M}),r().createElement(b.Z,{id:h},r().createElement(j,{title:g,onToggleFullscreen:n,isUpdated:i,isFullscreen:s,onRemove:m,onRefresh:M},r().createElement(x.Select,{className:f.tasksSelector,classes:{root:f.tasksSelectorInput},variant:"filled",value:T,onChange:(0,o.pipe)(Ue.NA,R)},r().createElement(x.MenuItem,{value:kt.MY},c().text("My tasks")),r().createElement(x.MenuItem,{value:kt.TEAM},c().text("Team tasks")))),r().createElement(q,{loadingState:I,onRefresh:M,data:C},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(rn,{width:n,height:a,tasksCategory:T,tasks:t})})),P>(E||10)&&r().createElement("div",{className:f.pagination},r().createElement(K.Z,{count:P,rowsPerPage:O,page:y,onChangePage:v,onChangeRowsPerPage:w})))}));var cn=n(93438),sn=n(88234),un=n(67486);const pn=(0,T.Z)((()=>({activityLogFilter:{padding:"0 9px"}}))),dn=(0,a.memo)((e=>{let{config:t,isUpdated:n,isFullscreen:l,onToggleFullscreen:i,onRemove:c}=e;const{id:s,title:p,exportTypes:m}=t,f=pn(),[h,g]=(0,a.useState)(0),[v,O]=(0,a.useState)(E),x=(0,a.useMemo)((()=>y(E)),[]),[w,T]=(0,a.useState)({users:[],activities:[],dateRange:{type:d.K.WITHIN,period:[4,"months"]}}),{state:R,data:S,total:I,reload:C}=(e=>{let{filter:t,max:n,offset:r}=e;const[l,i]=(0,a.useState)([]),[c,s]=(0,a.useState)(0),[u,p]=(0,a.useState)(d.o.INIT),m=(0,yt._)(),f=e=>{console.error(e),p(d.o.ERROR),i([]),s(0)},h=(0,un.d)({filter:t,max:n,offset:r}),g=(0,a.useCallback)((()=>{p(d.o.LOADING);const e=(0,o.pipe)(h,m,(0,o.andThen)((e=>{let{data:t,total:n}=e;p(d.o.LOADED),i(t),s(n)})),(0,o.otherwise)(f));e()}),[h]),E=()=>{try{g()}catch(e){f(e)}};return(0,a.useEffect)((()=>{E()}),[g]),{state:u,data:l,total:c,reload:E}})({filter:w,max:v,offset:h*v}),P=(0,a.useCallback)((e=>{T(e),g(0)}),[]);return(0,u.T)({state:R,reload:C}),r().createElement(b.Z,{id:s},r().createElement(j,{title:p,onToggleFullscreen:i,isUpdated:n,isFullscreen:l,onRemove:c,onRefresh:C}),r().createElement("div",{className:f.activityLogFilter},r().createElement(cn.Z,{value:w,onChange:P,exportTypes:m})),r().createElement(q,{loadingState:R,onRefresh:C,data:S},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(sn.Z,{width:n,height:a,activities:t,count:I,page:h,onChangePage:g,rowsPerPage:v,onChangeRowsPerPage:O,rowsPerPageOptions:x})})))}));function mn(){return mn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},mn.apply(this,arguments)}class fn{}fn.ViewTypes=m.dZX,fn.getComponent=e=>{let{config:t,type:n,isUpdated:a,isFullscreen:l,onToggleFullscreen:o,onRemove:i}=e;const c={isUpdated:a,isFullscreen:l,onToggleFullscreen:o,onRemove:i};switch(n){case fn.ViewTypes.ActivitiesViewFacet:return r().createElement(dn,mn({config:t},c));case fn.ViewTypes.CustomActionViewFacet:return r().createElement(Ft,mn({config:t},c));case fn.ViewTypes.DashboardFacet:return r().createElement(Ie,mn({config:t},c));case fn.ViewTypes.EntitiesByTypeViewFacet:return r().createElement(At,mn({config:t},c));case fn.ViewTypes.FilteredSavedSearchesFacet:return r().createElement(ae,mn({config:t},c));case fn.ViewTypes.FilteredEntitiesViewFacet:return r().createElement(Ze,mn({config:t},c));case fn.ViewTypes.NotificationInboxFacet:return r().createElement(on,mn({config:t},c));case fn.ViewTypes.ProfileStatsFacet:return r().createElement(vt,mn({config:t},c));default:return r().createElement("div",null,"NOT IMPLEMENTED")}},fn.getChartType=e=>{const t={[fn.ViewTypes.EntitiesByTypeViewFacet]:m.$XE.TREE,[fn.ViewTypes.FilteredSavedSearchesFacet]:m.$XE.TABLE,[fn.ViewTypes.FilteredEntitiesViewFacet]:m.$XE.TABLE,[fn.ViewTypes.ProfileStatsFacet]:m.$XE.LINE,[fn.ViewTypes.NotificationInboxFacet]:m.$XE.TABLE,[fn.ViewTypes.ActivitiesViewFacet]:m.$XE.TABLE};return e.chartType||t[e.component]};const hn=fn}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[6186],{27815:(e,t,n)=>{n.d(t,{Z:()=>w});var a=n(24328),r=n.n(a),l=n(87918),o=n.n(l),i=n(71153),c=n.n(i),s=n(17440),u=n(52730),p=n(59431),d=n(58991),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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){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,u.useSelector)(p.ZP.selectors.getMetadata),T=x(),R=(0,a.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.reduce(((e,a)=>{if(a.hidden)return e;const r=`${n&&n+" / "}${a.label}`;e.push({label:a.label,value:a.uri,attrType:a,chipLabel:r,level:t});const l=(0,d.EUG)(w,a);return e.concat(l?R(l,t+1,r):[])}),[])}),[w]),S=(0,a.useMemo)((()=>R((null==t?void 0:t.attributes)||[])),[t,R]);return r().createElement("div",{className:c()(T.root,l)},r().createElement(m.Typography,{className:T.title,variant:"subtitle1"},y||o().text("Attribute")),r().createElement(f.Z,{value:n,options:S,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,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["data"]);return r().createElement(h.Z,n,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:n,data:a,label:l,innerProps:o}=e;return r().createElement("div",o,r().createElement(E.Z,{checked:n,level:a.level,data:a,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 a=n(13688),r=n(48852);const l=e=>t=>(0,r.l)(a.X,e,t)},58662:(e,t,n)=>{n.d(t,{Z:()=>y});var a=n(13980),r=n.n(a),l=n(24328),o=n.n(l),i=n(71153),c=n.n(i),s=n(94079),u=n(87918),p=n.n(u),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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){g(e,t,n[t])}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const E=e=>{let{classes:t={},count:n,rowsPerPageOptions:a,page:r,onChangePage:i,rowsPerPage:u,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||p().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:a}=e;return p().text("${fromRow}-${toRow} of ${countRows}",{fromRow:p().number(t,"0,0"),toRow:p().number(n,"0,0"),countRows:p().number(a,"0,0")})},count:n,rowsPerPageOptions:a,page:r,onChangePage:(0,m.pipe)((0,m.nthArg)(1),O),rowsPerPage:u,onChangeRowsPerPage:(0,m.pipe)(d.NA,x)})};E.propTypes={classes:r().object,rowsPerPageOptions:r().arrayOf(r().number),count:r().number,page:r().number,onChangePage:r().func,rowsPerPage:r().number,onChangeRowsPerPage:r().func,basicTableRef:r().shape({current:r().object}),labelRowsPerPage:r().string};const y=o().memo(E)},10237:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(27556),r=n(13980),l=n.n(r),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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=(0,n(79692).Z)((e=>({"basic-view__paper":c({display:"flex",flexDirection:"column"},e.basicView)})));function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},p.apply(this,arguments)}const d=(0,o.forwardRef)(((e,t)=>{let{children:n,className:r}=e,l=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["children","className"]);const o=u();return i().createElement(a.Z,p({ref:t,className:r,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:()=>s});var a=n(24328),r=n.n(a),l=n(15223),o=n(94079);const i=(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 c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c.apply(this,arguments)}const s=e=>{let{title:t,children:n=null,classes:a={}}=e,s=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["title","children","classes"]);const u=i();return r().createElement(l.Z,c({className:a.root,classes:{root:u.toolbar}},s),r().createElement(o.Typography,{className:a.title,classes:{root:u.title},variant:"h6"},t),n)}},58241:(e,t,n)=>{n.d(t,{Z:()=>p});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(8818),c=n(38016);const s=(0,n(79692).Z)({collapseButton:{cursor:"pointer"},expandLess:{transform:"rotate( -180deg )"}});function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},u.apply(this,arguments)}const p=e=>{let{isOpen:t=!1,tooltipTitle:n}=e,a=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["isOpen","tooltipTitle"]);const l=s(),p={icon:c.Z,className:l.collapseButton,iconClassName:o()({[l.expandLess]:t})},d={tooltipTitle:n};return r().createElement(i.k,u({},p,d,a))}},43290:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(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),u=e=>{let{className:t,width:n=0,maxWidth:l}=e;const i=c(),u=(0,a.useCallback)((e=>(l?100*e/l:0)+"%"),[l]);return n?r().createElement("div",{className:o()(i.bar,t),style:{width:s(n)?u(n):n}}):null}},39621:(e,t,n)=>{n.d(t,{Z:()=>f});var a=n(24328),r=n.n(a),l=n(17440),o=n(87918),i=n.n(o),c=n(6782),s=n(94079),u=n(31517),p=n(31276);const d=(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%"}}),m=[i().text("minutes"),i().text("hours"),i().text("days"),i().text("weeks"),i().text("months"),i().text("years")],f=e=>{let{interval:[t,n],onChange:a,onFocus:o}=e;const i=d(),f=(0,l.pipe)(p.NA,parseInt,(e=>[e,n]),a),h=(0,l.pipe)((e=>{let{value:n}=e;return[t,n]}),a);return r().createElement("div",{className:i.root},r().createElement(s.TextField,{type:"number",value:t||"",onChange:f,inputProps:{min:1,onFocus:o},InputProps:{classes:{root:i.input}},className:i.inputNumber}),r().createElement(u.Z,{label:"",placeholder:(0,c.Z)(n),className:i.inputUnit,value:{value:n,label:(0,c.Z)(n)},options:m.map((e=>({value:e,label:(0,c.Z)(e)}))),onChange:h,TextFieldProps:{inputProps:{onFocus:o},InputProps:{classes:{root:i.input}}}}))}},55847:(e,t,n)=>{n.d(t,{Z:()=>v});var a=n(24328),r=n.n(a),l=n(71153),o=n.n(l),i=n(17440),c=n(94079),s=n(48348),u=n(20562),p=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,p.Z)(c.MenuItem),g=(0,a.forwardRef)(((e,t)=>{let{item:n,onMenuClose:a=i.identity}=e;const l=f(),{disabled:o,text:s,tooltip:u,onClick:p,id:d=""}=n;return r().createElement(h,{tooltipTitle:u,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{a(e),p(e)},disabled:o,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${d}`},r().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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},y.apply(this,arguments)}function b(e){let{className:t,menuId:n,buttonComponent:l=c.Button,buttonContent:p,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,a.useRef)(),[T,R]=(0,a.useState)(!1);(0,u.D)((()=>{T?g():b()}),[T]);const S=(0,a.useCallback)((e=>{null==e||e.stopPropagation(),R((e=>!e))}),[]);return r().createElement(r().Fragment,null,r().createElement(O,y({ref:w,className:o()(x.buttonRoot,{[x.selected]:T},t),onClick:S,"aria-pressed":T,"aria-controls":T?n:void 0,"aria-haspopup":"true"},m),p),r().createElement(s.Z,y({id:n,variant:"menu",open:T,autoFocus:!1,classes:{paper:x.paper},anchorEl:w.current,onClose:S,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:T}},h),d.map(((e,t)=>r().createElement(v,{item:e,key:t,onMenuClose:S})))))}b.displayName="DropDownMenuButton";const v=b},31254:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(24328),r=n.n(a),l=n(52730),o=n(59431),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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c.apply(this,arguments)}const s=e=>{const t=(0,l.useSelector)(o.ZP.selectors.getAbsoluteImagePath)||"";return r().createElement(i.ZP,c({},e,{storagePath:(n=t,n.endsWith("/")?n:n+"/")}));var n}},92575:(e,t,n)=>{n.d(t,{Z:()=>I});var a=n(24328),r=n.n(a),l=n(13980),o=n.n(l),i=n(17440),c=n(70347);const s=(0,n(5407).Z)(c.ZP);var u=n(5190),p=n(18461),d=n(94079),m=n(71153),f=n.n(m),h=n(88611);function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},g.apply(this,arguments)}function E(e){const{innerProps:t,innerRef:n,children:a,isFocused:l,isSelected:o,selectProps:{classes:i},label:c}=e;return r().createElement(d.MenuItem,g({className:f()(i.option,{[i["option--selected"]]:o}),ref:n,selected:l,component:"div"},t),r().createElement(d.Checkbox,{color:"primary",checked:o}),r().createElement(h.C,{value:c},r().createElement("div",{className:i["option--item"]},a)))}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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){w(e,t,n[t])}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const 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 R=0;function S(e){const{label:t,creatable:n,getOptions:l,loadingIndicator:o,components:c,classes:d,styles:m,onChange:f,onInputChange:h,menuPlacement:g="auto"}=e,E=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["label","creatable","getOptions","loadingIndicator","components","classes","styles","onChange","onInputChange","menuPlacement"]),b=n?s:l?p.Z:u.Z,[w,S]=(0,a.useState)(""),I=T((0,i.omit)(["classes"],e)),C="custom-select-"+R++,P=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:C,TextFieldProps:x({label:t,InputLabelProps:{htmlFor:C,shrink:!(!e.value||!e.value.length)||void 0,className:M.label}},e.TextFieldProps)}:{};return r().createElement(b,O({isMulti:!0,inputId:C,inputValue:w,onChange:function(e,t){f(e,t),"create-option"===t.action&&(S(""),h("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;h(e,{action:n}),"set-value"!==n&&S(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:M,components:P,styles:D,menuPlacement:g,loadOptions:l},N,E))}S.defaultProps={creatable:!1,cacheOptions:!0,components:{},classes:{},placeholder:"",loadingIndicator:!1,onInputChange:()=>{},onChange:()=>{}},S.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};const I=S},67268:(e,t,n)=>{n.d(t,{Z:()=>S});var a=n(13980),r=n.n(a),l=n(24328),o=n.n(l),i=n(66244),c=n.n(i),s=n(44443),u=n(17440),p=n(71153),d=n.n(p);function m(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}const f=e=>{let{x:t,y:n,width:a,height:r,id:l,minWidth:o,minHeight:i,maxWidth:c,maxHeight:s,isStatic:u}=e;return{x:t,y:n,w:a,h:r,minW:o,minH:i,maxW:c,maxH:s,i:l,static:u}},h=e=>{let{x:t,y:n,w:a,h:r,maxW:l,minW:o,minH:i,maxH:c,i:s}=e;return{x:t,y:n,width:a,height:r,minWidth:o,minHeight:i,maxWidth:l,maxHeight:c,id:s,isStatic:m(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},g=e=>(e||[]).map(h),E=(0,u.curry)(((e,t)=>(e||[]).find((0,u.propEq)("id",t)))),y=(0,u.curry)(((e,t,n)=>(0,u.mergeAll)([n,(0,u.pick)(e,t)]))),b=(0,u.curry)(((e,t,n)=>(n||[]).map((n=>(0,u.pipe)((0,u.prop)("id"),E(t),(0,u.defaultTo)({}),y(e,u.__,n))(n)))));var v=n(79692),O=n(58991);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"},"&.resizing":{zIndex:9,willChange:"width, height",pointerEvents:"none"},"&.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"}}})));function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},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 R=e=>{let{views:t,layout:n,layoutOptions:a,onLayoutChanged:r,draggableHandle:i,LayoutItem:p,onRemove:m,onDrop:y,droppingItem:v,isDroppable:O,classes:R}=e;const S=(0,l.useRef)(),I=x(),[C,P]=(0,l.useState)(null),[M,D]=(0,l.useState)(0),{cols:N,rowHeight:_,margin:A}=a,j=(0,l.useMemo)((()=>(e=>(e||[]).map(f))(n)),[n]),F=(0,u.pipe)(g,b(["autosizing"],n),r),k=(0,l.useCallback)((e=>P((t=>t?null:e))),[]),z=null!==C,L=(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:a}=t;return Math.ceil((e+n[1])/(a+n[1]))})(e,a);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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){T(e,t,n[t])}))}return e}({},n,{minHeight:t,maxHeight:t,height:t})}return n}));l&&r(o)}),[n,a,r]);return o().createElement(o().Fragment,null,o().createElement(s.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>D(e)}),o().createElement(c(),{innerRef:S,layout:j,cols:N,draggableHandle:i,autoSize:!0,rowHeight:_,width:M,margin:A,onLayoutChange:F,isResizable:!z,isDraggable:!z,className:d()(I.gridLayout,{[I.gridFullscreen]:z}),onDrop:(e,t,n)=>{y&&y(g(e),h(t),n)},droppingItem:v,isDroppable:O},j.map((e=>{const a=C===e.i,r=(E(n,e.i)||{}).autosizing?{AutosizeComponent:(l=e.i,o().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>{L(t,l)}}))}:{};var l;return o().createElement(p,w({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:k,onRemove:m,className:d()({fullscreen:a},R.item),isFullscreen:a},r))}))))};R.defaultProps={layoutOptions:{cols:4,rowHeight:30,margin:[15,15]},onConfigChanged:u.identity,onLayoutChanged:u.identity,classes:{}},R.propTypes={views:r().array,layout:r().array,layoutOptions:r().object,onConfigChanged:r().func,onLayoutChanged:r().func,onDrop:r().func,onRemove:r().func,LayoutItem:r().elementType,draggableHandle:r().string,isDroppable:r().bool,droppingItem:r().object,classes:r().shape({item:r().string})};const S=(0,l.memo)(R)},51229:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(24328),r=n.n(a);const l=()=>r().createElement("div",{style:{flex:1}})},85451:(e,t,n)=>{n.d(t,{Z:()=>O});var a=n(24328),r=n.n(a),l=n(52730),o=n(87918),i=n.n(o),c=n(17440),s=n(71153),u=n.n(s),p=n(94079),d=n(92575),m=n(96808),f=n(58991),h=n(59431),g=n(79692);function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){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,a.useRef)();return r().createElement("div",{className:u()(g.root,o)},r().createElement(p.Typography,{className:g.title,variant:"subtitle1"},i().text("User")),r().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.prop)("array"),(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 a;n.d(t,{I:()=>a}),function(e){e.MODEL_UPDATED="MODEL_UPDATED",e.ENTITY_REMOVED="ENTITY_REMOVED",e.ENTITY_CREATED="ENTITY_CREATED",e.ENTITY_CHANGED="ENTITY_CHANGED",e.ENTITIES_MERGED="ENTITIES_MERGED",e.ENTITIES_SPLITTED="ENTITIES_SPLITTED",e.ENTITY_LOST_MERGE="ENTITY_LOST_MERGE",e.RELATIONSHIP_CREATED="RELATIONSHIP_CREATED",e.RELATIONSHIP_REMOVED="RELATIONSHIP_REMOVED",e.RELATIONSHIP_CHANGED="RELATIONSHIP_CHANGED",e.POTENTIAL_MATCHES_FOUND="POTENTIAL_MATCHES_FOUND",e.NOT_MATCHES_SET="NOT_MATCHES_SET",e.NOT_MATCHES_RESET="NOT_MATCHES_RESET",e.PERIODIC_TASK_SCHEDULED="PERIODIC_TASK_SCHEDULED",e.ENTITIES_MERGED_MANUALLY="ENTITIES_MERGED_MANUALLY",e.POTENTIAL_MATCHES_REMOVED="POTENTIAL_MATCHES_REMOVED",e.ENTITIES_MERGED_ON_THE_FLY="ENTITIES_MERGED_ON_THE_FLY",e.USER_LOGIN="USER_LOGIN",e.USER_LOGOUT="USER_LOGOUT",e.USER_SEARCH="USER_SEARCH",e.USER_PROFILE_VIEW="USER_PROFILE_VIEW",e.COMMENT_ADDED="COMMENT_ADDED",e.COMMENT_UPDATED="COMMENT_UPDATED",e.COMMENT_DELETED="COMMENT_DELETED",e.ANALYTICS_ATTRIBUTES_CHANGED="ANALYTICS_ATTRIBUTES_CHANGED",e.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE="SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE",e.GROUP_CREATED="GROUP_CREATED",e.GROUP_REMOVED="GROUP_REMOVED",e.GROUP_CHANGED="GROUP_CHANGED"}(a||(a={}))},34606:(e,t,n)=>{n.d(t,{te:()=>s,VV:()=>u,rx:()=>p,_V:()=>d,Xr:()=>m});var a=n(17440),r=n(87918),l=n.n(r),o=n(31537);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(0,a.path)(["data","type"]),s=e=>{const{items:t,label:n}=e,[a]=t||[];return c(a)||n},u=(0,a.pipe)(s,(e=>(0,a.pipe)(a.values,(0,a.includes)(e))(o.I))),p=e=>(0,a.pipe)((0,a.propOr)([],"items"),(0,a.groupBy)(c),a.values,(0,a.ifElse)((e=>{let{length:t}=e;return t>1}),(0,a.map)((t=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){i(e,t,n[t])}))}return e}({},e,{items:t,itemsTotal:t.length}))),(()=>[e])))(e),d=e=>(0,a.isNil)(e)?"":"string"==typeof e?e:Array.isArray(e)?e.map(d).join(", "):(0,a.is)(Object,e)?d("value"in e?e.value:Object.values(e)):e.toString(),m=e=>({[o.I.COMMENT_ADDED]:l().text("Comment added"),[o.I.COMMENT_DELETED]:l().text("Comment deleted"),[o.I.COMMENT_UPDATED]:l().text("Comment updated"),[o.I.ENTITIES_MERGED]:l().text("Profile merged"),[o.I.ENTITIES_MERGED_MANUALLY]:l().text("Profile merged manually"),[o.I.ENTITIES_MERGED_ON_THE_FLY]:l().text("Profile merged on the fly"),[o.I.ENTITIES_SPLITTED]:l().text("Profile un-merged"),[o.I.ENTITY_CHANGED]:l().text("Profile updated"),[o.I.ENTITY_CREATED]:l().text("Profile created"),[o.I.ENTITY_LOST_MERGE]:l().text("Profile lost merge"),[o.I.ENTITY_REMOVED]:l().text("Profile removed"),[o.I.GROUP_CHANGED]:l().text("Group updated"),[o.I.GROUP_CREATED]:l().text("Group created"),[o.I.GROUP_REMOVED]:l().text("Group removed"),[o.I.MODEL_UPDATED]:l().text("Model was updated"),[o.I.NOT_MATCHES_RESET]:l().text("Not matches reset"),[o.I.NOT_MATCHES_SET]:l().text("Not matches set"),[o.I.PERIODIC_TASK_SCHEDULED]:l().text("Periodic task was scheduled"),[o.I.POTENTIAL_MATCHES_FOUND]:l().text("Potential matches found"),[o.I.POTENTIAL_MATCHES_REMOVED]:l().text("Potential matches removed"),[o.I.RELATIONSHIP_CHANGED]:l().text("Relationship updated"),[o.I.RELATIONSHIP_CREATED]:l().text("Relationship created"),[o.I.RELATIONSHIP_REMOVED]:l().text("Relationship removed"),[o.I.USER_LOGIN]:l().text("Logged in"),[o.I.USER_LOGOUT]:l().text("Logged out"),[o.I.USER_PROFILE_VIEW]:l().text("Profile viewed"),[o.I.USER_SEARCH]:l().text("Searched"),[o.I.ANALYTICS_ATTRIBUTES_CHANGED]:l().text("Analytics attribute changed"),[o.I.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE]:l().text("SFDC connector synchronization issue")}[e]||"")},51843:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(24328),r=n.n(a),l=n(95038),o=n.n(l),i=n(87918),c=n.n(i),s=n(17440),u=n(58991),p=n(94079),d=n(96808),m=n(37699);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,a.useRef)(null),[g,E]=(0,a.useState)(!1),y=f(),b=(0,a.useCallback)((()=>{E((e=>!e)),l()}),[l]),v=()=>{E(!1)};return r().createElement("div",{className:y.root},r().createElement(p.TextField,{fullWidth:!0,value:t.map((e=>((e,t)=>(0,s.isNil)(e)?`${t}`:`${(0,u.mB6)({dataTypeDefinition:{type:u.oS0.TYPE_ACTIVENESS_DATE}},e)}`)(e,o))).join(" — "),onClick:b,variant:"filled",ref:i,InputProps:{endAdornment:r().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}`)}),r().createElement(p.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%"}}},r().createElement(m.Z,{values:t,onCancel:v,onApply:e=>{n(e),E(!1)},type:u.oS0.TYPE_ACTIVENESS_DATE})))}},67885:(e,t,n)=>{let a,r;n.d(t,{K:()=>a,o:()=>r}),function(e){e.WITHIN="within",e.AGO="ago",e.BETWEEN="between"}(a||(a={})),function(e){e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(r||(r={}))},32944:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(24328),r=n.n(a),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 r().createElement(l.LinearProgress,{color:"secondary",className:e.loader})}},58141:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(24328),r=n.n(a),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 a=i();return r().createElement(o.H.Provider,{value:t},r().createElement(l.Z,{className:a.view},n))}},92316:(e,t,n)=>{n.d(t,{H:()=>r});var a=n(24328);const r=n.n(a)().createContext(null);r.displayName="DashboardViewIdContext"},19874:(e,t,n)=>{n.d(t,{Z:()=>hn});var a=n(24328),r=n.n(a),l=n(52730),o=n(17440),i=n(87918),c=n.n(i),s=n(83535),u=n(98884),p=n(59431),d=n(67885),m=n(58991);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:r}=e;const[l,i]=(0,a.useState)([]),[c,s]=(0,a.useState)(0),[u,p]=(0,a.useState)(d.o.INIT),h=e=>{console.error(e),p(d.o.ERROR),i([])},g=(0,a.useCallback)((()=>{p(d.o.LOADING);const e=e=>{i(e.result||[]),s(e.total),p(d.o.LOADED)},a=t||{},{countResults:l}=a,c=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(a,["countResults"]);(async()=>{const{result:t=[],total:a}=await(0,m.cZV)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){f(e,t,n[t])}))}return e}({offset:n,max:r},c));if(l){const n=t.map((e=>(0,m.OaI)((0,m.dWE)(e.query)))),r=(await(0,m.RGr)(n)).reduce(((e,t,n)=>{let{status:a,value:r,reason:l}=t;switch(a){case"fulfilled":return(0,o.assocPath)([n,"count"],r.total,e);case"rejected":console.error(l)}return e}),t);e({result:r,total:a})}else e({result:t,total:a})})().catch(h)}),[t,r,n]),E=()=>{try{g()}catch(e){h(e)}};return(0,a.useEffect)((()=>{E()}),[g]),{state:u,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 R=(0,T.Z)((()=>({itemTitle:{fontSize:"13px"},itemIcon:{minWidth:"49px"},menuItem:{padding:"12px 16px",minWidth:"177px"},openIcon:{padding:"4px",borderRadius:"2px",marginTop:"-6px",marginRight:"-10px"}}))),S=e=>{let{items:t}=e;const[n,l]=(0,a.useState)(null),o=Boolean(n),i=R(),c=()=>l(null),s=e=>()=>{c(),e()};return r().createElement(r().Fragment,null,r().createElement(x.IconButton,{className:i.openIcon,"aria-controls":"menu","aria-haspopup":"true",onClick:e=>l(e.currentTarget)},r().createElement(w.Z,null)),r().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:a,action:l}=e;return r().createElement(x.MenuItem,{key:t,onClick:s(l),className:i.menuItem},r().createElement(x.ListItemIcon,{className:i.itemIcon},n),r().createElement(x.Typography,{className:i.itemTitle},a))}))))};var I=n(29103),C=n(83911),P=n(41039),M=n(43266),D=n(14940),N=n(71153),_=n.n(N);const A=(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"}}))),j=e=>{let{title:t,onToggleFullscreen:n,isUpdated:l=!1,isFullscreen:o,onRemove:i,onRefresh:s,children:u}=e;const p=(0,a.useContext)(O.H),d=(0,a.useMemo)((()=>[{id:"refresh",title:"Refresh",icon:r().createElement(M.Z,null),active:!!s,action:()=>s()},{id:"fullscreen",title:"Fullscreen",icon:r().createElement(I.Z,null),active:!o,action:()=>n(p)},{id:"exitFullscreen",title:"Exit fullscreen",icon:r().createElement(C.Z,null),active:o,action:()=>n(p)},{id:"remove",title:"Remove",icon:r().createElement(P.Z,null),active:!!i,action:()=>{i(p),o&&n(p)}}]),[p,o,i,n,s]),m=A();return r().createElement(v.Z,{title:t,className:m.toolbarRoot,classes:{title:m.title}},l&&r().createElement(x.Chip,{label:c().text("Updated"),size:"small",className:m.updatedChip}),r().createElement("div",{className:m.rightMenu},u,r().createElement(S,{items:d})),r().createElement(D.Z,{className:_()("viewDraggableHandle",m.dragIcon)}))};var F=n(2256),k=n(4094);function z(){return z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},z.apply(this,arguments)}const L=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["styles"]);return r().createElement("svg",z({width:"148",height:"148",viewBox:"0 0 148 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r().createElement("mask",{id:"svg2791016623a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"148",height:"148"},r().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#fff"})),r().createElement("g",{mask:"url(#svg2791016623a)"},r().createElement("path",{d:"M74 148c40.869 0 74-33.131 74-74 0-40.87-33.131-74-74-74C33.13 0 0 33.13 0 74c0 40.869 33.13 74 74 74z",fill:"#0072CE",fillOpacity:".1"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 5.203h148V148H0V5.203z",fill:"url(#nodata__paint0_linear)"}),r().createElement("g",{opacity:".9",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},r().createElement("path",{opacity:".5",d:"M25.186 26.016h131.896V128.04H25.186V26.016z",fillOpacity:".8"}),r().createElement("path",{opacity:".9",d:"M16.766 26.021a4.626 4.626 0 014.623-4.63h129.406a4.623 4.623 0 014.623 4.63v88.107a4.625 4.625 0 01-4.623 4.631H21.389a4.623 4.623 0 01-4.623-4.631V26.021z"})),r().createElement("path",{opacity:".5",d:"M141.553 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 50.95a2.315 2.315 0 002.311-2.32 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 46.313a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 01-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 46.19h37.054a2.029 2.029 0 010 4.057H47.102a2.028 2.028 0 110-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 53.725h67.006a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 58.941h21.62a.87.87 0 010 1.74h-21.62a.87.87 0 110-1.74z",fill:"#B1AABD"}),r().createElement("path",{opacity:".5",d:"M71.35 30.664H31.508a3.188 3.188 0 100 6.375H71.35a3.188 3.188 0 000-6.375z",fill:"#645F6D"}),r().createElement("path",{opacity:".5",d:"M141.553 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.315 2.315 0 00-2.311 2.318 2.315 2.315 0 002.311 2.319zM133.465 72.972a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.318 2.314 2.314 0 00-2.311 2.318 2.314 2.314 0 002.311 2.319z",fill:"#6DBCFF"}),r().createElement("path",{d:"M39.297 73.824a5.488 5.488 0 10-10.977 0v.035a5.488 5.488 0 0010.977 0v-.035z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 68.214h43.894a2.029 2.029 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 75.748h74.516a1.45 1.45 0 010 2.898H46.523a1.449 1.449 0 110-2.898z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 80.965h60.077a.87.87 0 010 1.739H45.943a.87.87 0 010-1.74z",fill:"#B1AABD"}),r().createElement("path",{opacity:".5",d:"M141.553 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.315 2.315 0 00-2.311 2.319 2.315 2.315 0 002.311 2.318zM133.465 94.996a2.315 2.315 0 002.311-2.318 2.315 2.315 0 00-2.311-2.319 2.314 2.314 0 00-2.311 2.319 2.314 2.314 0 002.311 2.318z",fill:"#6DBCFF"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.808 90.36a5.488 5.488 0 015.489 5.488v.035a5.488 5.488 0 11-10.977 0v-.035a5.488 5.488 0 015.488-5.489z",fill:"#E3EBF4"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M47.102 90.237h58.915a2.028 2.028 0 010 4.057H47.102a2.029 2.029 0 010-4.057z",fill:"#B1AABD"}),r().createElement("path",{opacity:".43",fillRule:"evenodd",clipRule:"evenodd",d:"M46.523 97.772h49.096a1.449 1.449 0 110 2.897H46.524a1.448 1.448 0 110-2.897z",fill:"#B1AABD"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M45.943 102.988h21.62a.87.87 0 010 1.739h-21.62a.87.87 0 110-1.739z",fill:"#B1AABD"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M102.927 64.75l44.536 77.139-58.989 34.057-44.536-77.14.405-.234c4.06 9.263 12.074 16.712 22.462 19.616 18.103 5.059 36.562-5.599 41.232-23.805 2.679-10.449.235-21.113-5.757-29.26l.647-.374z",fill:"url(#nodata__paint1_linear)"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"url(#nodata__paint2_linear)"}),r().createElement("g",{filter:"url(#nodata__filter0_d)",fillRule:"evenodd",clipRule:"evenodd"},r().createElement("path",{d:"M74.981 49.719c19.06 0 34.512 15.462 34.512 34.536a34.418 34.418 0 01-8.665 22.886l29.603 29.623a51.708 51.708 0 01-5.837 5.43l-29.705-29.725a34.338 34.338 0 01-19.908 6.322c-19.06 0-34.512-15.462-34.512-34.536S55.92 49.719 74.98 49.719zm0 10.265c-13.395 0-24.254 10.866-24.254 24.27 0 13.405 10.859 24.272 24.254 24.272 13.395 0 24.254-10.867 24.254-24.271S88.376 59.984 74.981 59.984z",fill:"#B5C8C9"}),r().createElement("path",{d:"M52.903 110.801c-7.598-6.335-12.434-15.876-12.434-26.546 0-19.074 15.451-34.536 34.512-34.536 10.663 0 20.197 4.839 26.528 12.442l-5.662 5.667c-4.862-6.175-12.401-10.14-20.866-10.14-14.662 0-26.548 11.895-26.548 26.567 0 8.47 3.962 16.015 10.132 20.88l-5.662 5.666z",fill:"#fff",fillOpacity:".4"})),r().createElement("g",{style:{mixBlendMode:"soft-light"},opacity:".4"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.352 103.62c10.385 10.611 27.223 10.611 37.609 0 10.385-10.612 10.385-27.816 0-38.427-10.386-10.611-27.224-10.611-37.61 0-10.385 10.611-10.385 27.815 0 38.427z",fill:"#D9F5FF"})),r().createElement("g",{style:{mixBlendMode:"overlay"}},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#000",fillOpacity:".87"})),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.621 91.769c0-2.272.257-4.065.77-5.38.513-1.314 1.346-2.453 2.497-3.418 1.151-.964 2.026-1.847 2.625-2.648.6-.802.899-1.684.899-2.649 0-2.35-1.012-3.524-3.034-3.524-.933 0-1.688.343-2.263 1.027-.576.685-.88 1.61-.91 2.777h-7.888c.031-3.111 1.011-5.534 2.94-7.27 1.93-1.734 4.636-2.601 8.121-2.601 3.47 0 6.157.801 8.063 2.404 1.905 1.602 2.858 3.881 2.858 6.837 0 1.291-.257 2.466-.77 3.524-.513 1.058-1.338 2.139-2.474 3.243l-2.683 2.497c-.762.732-1.291 1.482-1.587 2.252-.295.77-.459 1.746-.49 2.929h-6.674zm-.957 7.094c0-1.151.416-2.096 1.249-2.835.832-.74 1.87-1.109 3.115-1.109s2.283.37 3.115 1.109c.833.739 1.249 1.684 1.249 2.835s-.416 2.096-1.249 2.835c-.832.739-1.87 1.109-3.115 1.109s-2.283-.37-3.115-1.109c-.833-.739-1.249-1.684-1.249-2.835z",fill:"#3C74B4",fillOpacity:".38"})),r().createElement("defs",null,r().createElement("linearGradient",{id:"nodata__paint0_linear",x1:"74",y1:"5.203",x2:"74",y2:"148",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:"0"}),r().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"nodata__paint1_linear",x1:"123.612",y1:"142.028",x2:"76.729",y2:"122.717",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:"0"}),r().createElement("stop",{offset:"1"})),r().createElement("linearGradient",{id:"nodata__paint2_linear",x1:"75.156",y1:"57.234",x2:"75.156",y2:"111.578",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#EEFBFF"}),r().createElement("stop",{offset:"1",stopColor:"#0072CE"})),r().createElement("filter",{id:"nodata__filter0_d",x:"36.469",y:"47.719",width:"97.962",height:"100.475",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"}))))},H=(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"}}))),Z=e=>{let{height:t}=e;const n=H({height:t});return r().createElement("div",{className:n.noDataContainer},r().createElement(L,{className:n.icon}),r().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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},U.apply(this,arguments)}const B=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["styles"]);return r().createElement("svg",U({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r().createElement("mask",{id:"svg3217593551a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),r().createElement("g",{mask:"url(#svg3217593551a)"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:".3"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),r().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),r().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),r().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),r().createElement("path",{opacity:".5",d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".3",d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".8",d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),r().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".2",d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),r().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),r().createElement("g",{filter:"url(#error__filter0_d)"},r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),r().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),r().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),r().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),r().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#error__paint0_linear)"}),r().createElement("g",{filter:"url(#error__filter1_d)"},r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),r().createElement("g",{filter:"url(#error__filter2_d)"},r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),r().createElement("defs",null,r().createElement("filter",{id:"error__filter0_d",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"error__filter1_d",x:"51.688",y:"62.625",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"error__filter2_d",x:"51.688",y:"44.063",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:"2"}),r().createElement("feGaussianBlur",{stdDeviation:"2"}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("linearGradient",{id:"error__paint0_linear",x1:"68.438",y1:"71.571",x2:"60.119",y2:"58.801",gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:"0"}),r().createElement("stop",{offset:"1"}))))},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:a}=e;const l=V({height:t});return r().createElement("div",{className:l.errorContainer},r().createElement(B,{className:l.errorIcon}),r().createElement(x.Typography,null,a),n&&r().createElement(x.Button,{className:l.refreshButton,startIcon:r().createElement(M.Z,{color:"primary",className:l.refreshIcon}),onClick:n},r().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:a,data:l,className:o}=e;const i=$();return r().createElement(k.Z,{className:_()(i.viewContent,o)},r().createElement(Y.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:o,height:i}=e;switch(t){case d.o.LOADED:return l&&0!==l.length?r().createElement(F.Z,{error:r().createElement(G,{message:c().text("Something went wrong"),height:i})},a({data:l,width:o,height:i})):r().createElement(Z,{height:i});case d.o.LOADING:return r().createElement(W.Z,null);case d.o.ERROR:return r().createElement(G,{message:c().text("Error Loading Data"),height:i,onRefresh:n});default:return r().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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},X.apply(this,arguments)}function Q(e){const t=t=>{const n=(0,a.useRef)(null);return r().createElement(r().Fragment,null,r().createElement(e,X({},t,{basicTableRef:n,height:t.height-60})),r().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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){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),ae=(0,a.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,a.useMemo)((()=>y(v)),[v]),[x,w]=(0,a.useState)(v),[T,R]=(0,a.useState)(0),{data:S,state:I,reload:C,total:P}=h({options:g,max:x,offset:x*T}),M=(0,a.useMemo)((()=>(e=>e.map((e=>{let{uri:t,name:n,count:a}=e;return{value:a||0,label:n||"",group:t}})))(S)),[S]),D=(0,l.useDispatch)(),N=(0,a.useCallback)((e=>{(0,o.pipe)((0,o.find)((0,o.propEq)("uri",e)),te,p.ui.actions.openSearch,D)(S)}),[D,S]);return(0,u.T)({state:I,reload:C}),r().createElement(b.Z,{id:m},r().createElement(j,{title:f,onToggleFullscreen:n,isFullscreen:s,isUpdated:i,onRefresh:C,onRemove:d}),r().createElement(q,{loadingState:I,onRefresh:C,data:M},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(ne,{width:n,height:a,data:t,count:P,onChangePage:R,page:T,rowsPerPage:x,onChangeRowsPerPage:w,rowsPerPageOptions:O,options:{headers:[c().text("Name")],showValues:null==g?void 0:g.countResults},onItemClick:N})})))}));var re=n(66675);const le=(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})),oe=(0,o.curry)(((e,t)=>({filter:m.j5E.NOT_EQUALS,values:[t],fieldName:e}))),ie=e=>{var t,n,a;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!==(a=null==e?void 0:e.fieldName)&&void 0!==a?a:""}},ce=e=>({filter:m.j5E.EQUALS,fieldName:"type",values:[e]}),se=(0,o.curry)(((e,t)=>({filter:m.j5E.EQUALS,values:[t],fieldName:e}))),ue=(0,o.curry)(((e,t,n)=>{const{fieldName:a}=n,r=/^(attributes|analyticsAttributes)/.test(a),l=r?(0,m.zeJ)(e,(0,m.h2W)(a,t)):(0,m.Yxg)(a);return(0,o.pipe)(le,(0,o.when)((()=>r),(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)})),pe=(e,t)=>{let{filter:n,fieldName:a,values:r}=e;return n===m.j5E.EQUALS&&"type"===a&&(null==r?void 0:r[0])===t};function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){me(e,t,n[t])}))}return e}function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fe=e=>{let{attribute:t,filters:n,globalFilter:a,searchByOv:r,activityFilter:l,pageSize:i,orderType:c}=e;const s=((e,t,n,a)=>{const r=(0,o.pipe)((0,o.map)(le),(0,m.Uqd)(),(0,m.vyX)(t))(e),l=r?[`filter=${r}`]:[];return n&&l.push("options=searchByOv"),a&&l.push(`activeness=${a}`),l.join("&")})(n,a,r,l),u=[{fieldName:t,pageNo:1,orderType:c,pageSize:i}];return(0,m.FK9)({query:s,body:u}).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)))},he=(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 a=n.flatMap((0,m.Z2f)(e));return t.map((e=>{const t=a.find((t=>{let{lookupCode:n}=t;return n===e.label}));return t?de({},e,{label:t.value}):e}))}))})),ge=(0,o.curry)(((e,t)=>t.map((0,o.pipe)((0,o.prop)("group"),oe(e))))),Ee="Other",ye=(0,o.curry)(((e,t)=>{let{attribute:n,filters:a,globalFilter:r,searchByOv:l,activityFilter:i}=e;const s=(0,o.pipe)(ge(n),(0,o.concat)(a),(0,o.map)(le))(t),u=l&&"searchByOv";return(0,m.j_Q)(s,{globalFilter:r,activityFilter:i,searchOptions:u}).then((e=>{let{total:n}=e;return n>0?t.concat([{label:c().text("Other"),group:Ee,value:n}]):t}))})),be=(e,t)=>(0,m.xqc)(e,"configuration/roles/"+t),ve=(0,o.map)((e=>de({},e,{localizedValue:c().number(e.value)}))),Oe=(0,o.when)(m.EdS,m.Tde),xe=(0,o.ifElse)(m.EdS,m.Uk3,(0,o.always)(void 0)),we=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=xe(e),a=t.some((e=>pe(e,n)));return n&&!a?[ce(n),...t]:t},Te=(0,o.curry)(((e,t,n)=>{const a=Oe(e);return n===Ee?(0,o.pipe)((0,o.reject)((0,o.propEq)("group",Ee)),ge(a))(t):[se(a,n)]})),Re=(0,o.curry)(((e,t,n)=>{const a=xe(t);return{facets:n.map(ue(e,a))}}));var Se=n(56259);const Ie=(0,a.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,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,["id","title","filters","attributeUri","count","orderType","chartType","showOthers"]),T=O===m.$XE.MAP?100:8,{data:R,state:S,reload:I}=(e=>{let{filters:t,attributeUri:n,pageSize:r,orderType:i="reversedCount",options:c}=e;const[s,u]=(0,a.useState)([]),[f,h]=(0,a.useState)(d.o.INIT),g=(0,a.useContext)(Se.I),E=(0,a.useMemo)((()=>g.map(ie).concat(t||[])),[g,t]),y=(0,l.useSelector)(p.ZP.selectors.getMetadata),{globalFilter:b,activityFilter:v}=(0,l.useSelector)(p.ZP.selectors.getGlobalSearchRequestOptions),O=(0,l.useSelector)(p.ZP.selectors.getAttributePresentations),x=!(null==O||!O[n]),w=(0,l.useSelector)(p.ZP.selectors.getSearchOptions),T=null==w?void 0:w.searchByOv,R=null==c?void 0:c.showOthers,S=e=>{console.error(e),h(d.o.ERROR),u([])},I=(0,a.useCallback)((()=>{h(d.o.LOADING);const e=we(n,E),t=Oe(n),a=(0,m.Yxg)(t)||(0,m.zeJ)(y,n);if(!a)return void S("Configuration is incorrect");const l=(0,o.pipe)(fe,(0,o.andThen)(((e,t)=>(0,o.pipe)((0,o.when)((()=>(0,m.CwH)(t)),he((0,m.To9)(t))),(0,o.when)((()=>(0,m.ian)(t)),(0,o.map)((t=>de({},t,{label:be(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,a)),(0,o.andThen)((0,o.unless)((0,o.always)(x),ve)),(0,o.andThen)((0,o.when)((0,o.always)(R),ye({attribute:t,filters:e,globalFilter:b,searchByOv:T,activityFilter:v}))),(0,o.andThen)((e=>{h(d.o.LOADED),u(e)})),(0,o.otherwise)(S));l({attribute:t,filters:e,globalFilter:b,searchByOv:T,activityFilter:v,pageSize:r,orderType:i})}),[h,n,y,R,E,b,T,v,r,i,x]),C=()=>{try{I()}catch(e){S(e)}};return(0,a.useEffect)((()=>{C()}),[I]),{state:f,data:s,reload:C}})({filters:g,attributeUri:E,pageSize:y||T,orderType:v,options:{showOthers:x}});(0,u.T)({state:S,reload:I});const C=(0,l.useDispatch)(),P=(0,l.useSelector)(p.ZP.selectors.getMetadata),M=(0,o.pipe)(Te(E,R),(0,o.concat)(we(E,g)),Re(P,E),p.ui.actions.openSearch,C);return r().createElement(b.Z,{id:f},r().createElement(j,{title:h,onToggleFullscreen:n,isUpdated:i,isFullscreen:c,onRefresh:I,onRemove:s}),r().createElement(q,{loadingState:S,onRefresh:I,data:R},(e=>{let{data:t,width:n=0,height:a=0}=e;return re.Z.build(O,{data:t,width:n,height:a,options:w,onItemClick:M})})))}));var Ce=n(85709),Pe=n(92332),Me=n(88611);const De={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"},Ne=(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":De},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":De}})));function _e(){return _e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_e.apply(this,arguments)}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){je(e,t,n[t])}))}return e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fe=e=>{let{className:t,headCellData:n}=e,a=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["className","headCellData"]);const l=Ne();return r().createElement("div",{className:_()(l.headCell,t)},r().createElement(Pe.default,_e({},a,{headCellData:Ae({},n,{label:r().createElement(Me.C,{value:n.label},r().createElement("div",{className:l.headLabel},n.label))})})))};var ke=n(31039);const ze=e=>{let{value:t,rowValue:n}=e;const a=Ne(),l=(0,m.idV)(t);return r().createElement(Me.C,{value:l},r().createElement(ke.Z,{value:(0,m.wwR)(n),className:a.entityLabel},l))},Le=(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:a,data:l}=e;const o=Le({width:n,height:t}),i=[{id:"label",label:c().text("Entity"),resizable:!1,headCellRenderer:Fe,rowCellValueRenderer:ze,initialWidth:n}],s={cellBorder:o.cellBorder};return r().createElement("div",{className:o.tableContainer},r().createElement(Ce.Z,{columnsData:i,rowsData:l,headRowHeight:48,getRowCellHeight:null,classes:s,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:a}))})),Ze=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRemove:i}=e;const{id:c,title:s,filters:p,max:f=E}=t,h=(0,a.useMemo)((()=>y(f)),[f]),[g,v]=(0,a.useState)(f),[O,x]=(0,a.useState)(0),{data:w,state:T,reload:R,total:S}=(e=>{let{filters:t,max:n,offset:r}=e;const[l,o]=(0,a.useState)([]),[i,c]=(0,a.useState)(0),[s,u]=(0,a.useState)(d.o.INIT),p=(0,a.useContext)(Se.I),f=(0,a.useMemo)((()=>p.map(ie).concat(t||[])),[p,t]),h=e=>{console.error(e),u(d.o.ERROR),o([]),c(0)},g=(0,a.useCallback)((()=>{u(d.o.LOADING),Promise.all([(0,m.ZOr)(f,{max:n,offset:r}),(0,m.j_Q)(f,{max:n,offset:r})]).then((e=>{const[t,{total:n}]=e;o(t||[]),c(n),u(d.o.LOADED)})).catch(h)}),[f,n,r]),E=()=>{try{g()}catch(e){h(e)}};return(0,a.useEffect)((()=>{E()}),[g]),{state:s,data:l,reload:E,total:i}})({filters:p,max:g,offset:g*O});return(0,u.T)({state:T,reload:R}),r().createElement(b.Z,{id:c},r().createElement(j,{title:s,onToggleFullscreen:n,isUpdated:l,isFullscreen:o,onRefresh:R,onRemove:i}),r().createElement(q,{loadingState:T,onRefresh:R,data:w},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(He,{height:a,onChangePage:x,page:O,rowsPerPage:g,count:S,onChangeRowsPerPage:v,rowsPerPageOptions:h,width:n,data:t})})))}));var Ue=n(31276),Be=n(46923);let Ve;!function(e){e.HOUR="hour",e.DAY="day"}(Ve||(Ve={}));var Ge=n(95038),We=n.n(Ge);const Ye=e=>{const t=(e=>{let[t,n]=e;return We().duration(+t,n)})(e);return t.isValid()&&t.valueOf()>0},$e=(0,o.ifElse)(Ye,(e=>{let[t,n]=e;const a=We()().valueOf();return[We()(a).endOf(n).subtract(t,n).valueOf()+1,a]}),(e=>{let[t,n]=e;return[We()(t).valueOf(),We()(n).endOf("date").valueOf()]})),qe=(0,o.pipe)($e,(e=>{let[t,n]=e;return n-t>+We().duration(1,"day")?Ve.DAY:Ve.HOUR})),Ke="_",Xe=[{value:[24,"hours"].join(Ke),get label(){return c().text("Last 24 hours")}},{value:[7,"days"].join(Ke),get label(){return c().text("Last 7 days")}},{value:[30,"days"].join(Ke),get label(){return c().text("Last 30 days")}},{value:m.lL_.PICK_DATE,get label(){return c().text("Pick date")}}],Qe=(0,o.when)(Ye,(0,o.join)(Ke)),Je=(0,o.when)((0,o.is)(String),(0,o.pipe)((0,o.split)(Ke),(0,o.adjust)(0,parseInt))),et=e=>{let{value:t,onChange:n=Ue.ZT,className:a}=e;return r().createElement(Be.Z,{label:null,values:t&&Qe(t),options:Xe,getValuesDateRange:(0,o.pipe)(Je,$e,(0,o.map)((e=>new Date(e)))),onChange:(0,o.pipe)(Je,n),className:a,dataTypeDefinition:{type:m.oS0.TYPE_LOCAL_DATE}})};var tt=n(2899);const nt=[{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"}],at=e=>nt.find((0,o.propEq)("id",e)),rt=(0,o.pipe)(at,(0,o.propOr)("","label")),lt=(0,o.pipe)(at,(0,o.prop)("color")),ot=e=>{const[t,n]=$e(e),a=e=>{let{facet:a,types:r}=e;return(0,m.NIY)({facet:a,startTime:t,endTime:n,types:r}).then((e=>{let{facets:t={},total:n=0}=e;return{total:n,data:t[a]}}))};return(()=>{const e=(0,o.chain)((0,o.prop)("types"),nt),t=(0,o.pipe)((0,o.propOr)([],"data"),(0,o.pluck)("term"));return a({facet:"type",types:e}).then((e=>t(e)))})().then((e=>e.length>0?(e=>{const r=(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(nt.map((t=>{let{types:n,id:l}=t;return((t=>t.some((t=>e.includes(t))))(n)?a({facet:"hour",types:n}):Promise.resolve({total:0,data:[]})).then((e=>{let{total:t,data:n}=e;return{total:t,data:r(n),event:l}}))})))})(e):[]))},it=(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))),ct=(0,o.curry)(((e,t)=>{const[n,...a]=t;return a.reduce(((t,n)=>{const a=+We().duration(1,e);let r=(0,o.last)(t).term+a;const l=[];for(;r<n.term;)l.push({term:r,count:0}),r+=a;return t.concat(l,n)}),[n])})),st=(0,o.curry)(((e,t)=>t.map((0,o.evolve)({data:(0,o.pipe)(it(e),ct(e))})))),ut=(0,o.cond)([[(0,o.equals)(Ve.HOUR),(0,o.always)("LT")],[(0,o.equals)(Ve.DAY),(0,o.always)("MMM D")]]),pt=e=>{let{x:t,y:n,payload:a,step:l}=e;return r().createElement("g",{transform:`translate(${t},${n})`},r().createElement("text",{x:0,y:0,dy:16,textAnchor:"middle",fill:"#666"},c().date(null==a?void 0:a.value,ut(l))))},dt=(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"}}),mt=(0,o.cond)([[(0,o.equals)(Ve.HOUR),(0,o.always)("LT MMM D")],[(0,o.equals)(Ve.DAY),(0,o.always)("ll")]]),ft=e=>{let{active:t,payload:n,label:a,step:l,events:o}=e;const i=dt();return t&&r().createElement("div",{className:i.tooltipWrapper},r().createElement("p",{className:i.tooltipTitle},c().date(a,mt(l))),n.filter((e=>{let{name:t}=e;return o.includes(t)})).map((e=>{let{color:t,name:n,value:a}=e;return r().createElement("p",{key:n},r().createElement("span",{style:{background:t},className:i.tooltipItemColor}),`${rt(n)}: ${a}`)})))},ht=e=>{let{payload:t,selectedItems:n,onClick:a}=e;const l=dt();return r().createElement("div",{className:l.legend},t.map((e=>{let{id:t,color:o,value:i}=e;const s=n.includes(t);return r().createElement("div",{key:t,className:l.legendItem},r().createElement(x.Tooltip,{title:s?c().text("Hide"):c().text("Show")},r().createElement("div",{style:s?{background:o}:{border:`${o} 1px solid`},className:l.legendItemColor,onClick:()=>a(t)})),rt(t),r().createElement("span",{className:l.legendItemValue},i))})))};function gt(){return gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},gt.apply(this,arguments)}const Et=e=>{let{data:t,width:n,height:l,step:i}=e;const[c,s]=(0,a.useState)((0,o.pluck)("event",t)),[u,p]=(0,a.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,a.useMemo)((()=>st(i,t)),[i,t]),v=(0,a.useMemo)((()=>((e,t)=>{const n=(0,o.chain)((0,o.pipe)((0,o.prop)("data"),(0,o.pluck)("count")))(e),a=Math.min(...n),r=Math.max(...n);return Math.abs(r-a)<8?[0,7]:[0,"auto"]})(b)),[b]);return r().createElement(tt.wW,{width:n,height:l},r().createElement(tt.q3,d),r().createElement(tt.Kc,gt({},h,{tick:r().createElement(pt,{step:i})})),r().createElement(tt.B2,gt({},g,{tickCount:8,domain:v})),b.map((e=>{let{event:t,data:n}=e;const a=c.includes(t);return r().createElement(tt.x1,gt({key:t,stroke:lt(t),name:t,data:n,dot:a&&{r:5,strokeWidth:2},activeDot:a&&{r:5,strokeWidth:2,onMouseEnter:()=>p(t),onMouseLeave:()=>p(null)},strokeOpacity:a?1:0},E))})),r().createElement(tt.De,gt({content:r().createElement(ht,{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:lt(t),value:n}}))},y)),r().createElement(tt.u,gt({},f,{content:r().createElement(ft,{step:i,events:u?[u]:c})})))};var yt=n(67218);const bt=(0,T.Z)({periodSelector:{position:"relative",margin:"0 6px 0 0",flexBasis:"220px",flexShrink:1,'& input[type="text"]':{padding:"0 0 0 8px"}}}),vt=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRemove:c}=e;const s=bt(),{id:p,title:m}=t,[f,h]=(0,a.useState)([7,"days"]),{state:g,data:E,reload:y}=(e=>{const[t,n]=(0,a.useState)([]),[r,l]=(0,a.useState)(d.o.INIT),i=(0,yt._)(),c=e=>{console.error(e),l(d.o.ERROR),n([])},s=(0,a.useCallback)((()=>{l(d.o.LOADING);const t=(0,o.pipe)(ot,i,(0,o.andThen)((e=>{l(d.o.LOADED),n(e)})),(0,o.otherwise)(c));t(e)}),[...e]),u=()=>{try{s()}catch(e){c(e)}};return(0,a.useEffect)((()=>{u()}),[s]),{state:r,data:t,reload:u}})(f);return(0,u.T)({state:g,reload:y}),r().createElement(b.Z,{id:p},r().createElement(j,{title:m,onToggleFullscreen:n,isUpdated:l,isFullscreen:i,onRefresh:y,onRemove:c},r().createElement(et,{value:f,onChange:h,className:s.periodSelector})),r().createElement(q,{loadingState:g,onRefresh:y,data:E},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(Et,{data:t,width:n,height:a,step:qe(f)})})))}));var Ot=n(3292);function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){wt(e,t,n[t])}))}return e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tt=e=>`configuration/entityTypes/${e}`,Rt=(0,o.pipe)((0,o.prop)("group"),Tt),St=(0,o.curry)(((e,t)=>t.map((t=>{const n=Rt(t);return xt({},t,{label:(0,m.nt9)(e,n).label})})))),It=(0,o.curry)(((e,t)=>{const n=(0,o.pipe)(Rt,(0,m.io3)(e),(0,o.map)((0,m.nt9)(e)),(0,o.filter)(m.oDv),o.last),a=t.reduce(((e,t)=>{const a=n(t);if(a){const n=(0,m.nIW)(a.uri);return xt({},e,{[n]:(e[n]||0)+t.value})}return e}),{});return Object.entries(a).map((e=>{let[t,n]=e;return{group:t,label:t,value:n}}))})),Ct=(0,o.pipe)(Tt,ce,m.VGB),Pt=(0,o.pipe)((0,o.prop)("uri"),m.nIW),Mt=(0,o.curry)(((e,t)=>e.find((e=>e.group===t)))),Dt=e=>({label:e,group:e,value:0}),Nt=(0,o.curry)(((e,t)=>{let{entityTypes:n}=e;const a=(0,o.pipe)(Pt,(0,o.either)(Mt(t),Dt));return n.filter(m.oDv).map(a)})),_t=[],At=(0,a.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:r}=e;const[i,c]=(0,a.useState)([]),[s,u]=(0,a.useState)(d.o.INIT),m=(0,l.useSelector)(p.ZP.selectors.getMetadata),f=m.entityTypes.length,{globalFilter:h,activityFilter:g}=(0,l.useSelector)(p.ZP.selectors.getGlobalSearchRequestOptions),E=(0,l.useSelector)(p.ZP.selectors.getSearchOptions),y=E&&E.searchByOv,b=e=>{console.error(e),u(d.o.ERROR),c([])},v=(0,a.useCallback)((()=>{u(d.o.LOADING);const e=(0,o.pipe)(fe,(0,o.andThen)((0,o.unless)((0,o.always)(r),Nt(m))),(0,o.andThen)((0,o.when)((0,o.always)(n),It(m))),(0,o.andThen)(St(m)),(0,o.andThen)(ve),(0,o.andThen)((e=>{u(d.o.LOADED),c(e)})),(0,o.otherwise)(b));e({attribute:"type",pageSize:f,filters:_t,globalFilter:h,searchByOv:y,activityFilter:g,orderType:t})}),[r,m,n,f,h,y,g,t]),O=()=>{try{v()}catch(e){b(e)}};return(0,a.useEffect)((()=>{O()}),[v]),{state:s,data:i,reload:O}})({hideEmpty:h,orderType:g,inheritChildren:E});(0,u.T)({state:v,reload:O});const x=(0,l.useDispatch)(),w=(0,l.useSelector)(p.ZP.selectors.getMetadata),T=(0,o.pipe)(Ct,Re(w,"type"),p.ui.actions.openSearch,x);return r().createElement(b.Z,{id:m},r().createElement(j,{title:f,onToggleFullscreen:n,isUpdated:i,isFullscreen:c,onRefresh:O,onRemove:s}),r().createElement(q,{loadingState:v,onRefresh:O,data:y},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(Ot.Z,{width:n,height:a,data:t,onItemClick:T})})))})),jt=(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}}))),Ft=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:a,isFullscreen:l,onRemove:o}=e;const{id:i,title:c,url:s}=t,u=jt();return r().createElement(b.Z,{id:i},r().createElement(j,{title:c,onToggleFullscreen:n,isUpdated:a,isFullscreen:l,onRemove:o}),r().createElement(k.Z,{className:u.viewContent},r().createElement("iframe",{src:s,frameBorder:"0",className:u.iframe})))}));let kt;!function(e){e.MY="my",e.TEAM="team"}(kt||(kt={}));var zt=n(30739),Lt=n(31254),Ht=n(73272);function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){Ut(e,t,n[t])}))}return e}function Ut(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=(0,o.cond)([[(0,o.equals)(kt.MY),(0,o.always)(m.C82)],[(0,o.equals)(kt.TEAM),(0,o.always)(m.h6J)],[o.T,(0,o.always)((()=>Promise.resolve({data:[]})))]]),Vt=(0,o.pipe)((0,o.propOr)([],"objectURIs"),o.head),Gt=(0,o.startsWith)("changeRequests/"),Wt=(0,o.complement)(o.isEmpty),Yt=(0,o.pipe)((0,o.map)(Vt),(0,o.filter)(m.WgC),(0,o.when)(Wt,m.DnY)),$t=(0,o.pipe)((0,o.map)(Vt),(0,o.filter)(Gt),(0,o.map)((0,o.pipe)(m.E6I,(0,o.otherwise)((0,o.always)(null)))),(e=>Promise.all(e))),qt=(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)}),[Yt,$t]),Kt=e=>{let{objectsInfo:t={},changes:n={},uri:a}=e;const r=e=>(0,o.path)([e,0],n),l=e=>{const{type:t}=r(e);return"CREATE_ENTITY"==t||"CREATE_RELATIONSHIP"==t?a+"/changes/"+e:e};return(0,o.pipe)(o.keys,(0,o.filter)(r),(0,o.sort)((0,o.descend)((0,o.pipe)(r,(0,o.prop)("createdTime")))),(0,o.map)((e=>Zt({},t[e],{uri:l(e)}))))(t)},Xt=(e,t,n)=>(t=(0,o.reject)(o.isNil,t),n.map((0,o.pipe)((0,o.when)((0,o.pipe)(Vt,m.WgC),(e=>t=>{const n=e.find((0,o.propEq)("uri",Vt(t)));return n?Zt({},t,{objects:[n]}):t})(e)),(0,o.when)((0,o.pipe)(Vt,Gt),(e=>t=>{const n=e.find((0,o.propEq)("uri",Vt(t)));return n?Zt({},t,{objects:Kt(n)}):t})(t))))),Qt=(0,o.curry)((async(e,t)=>{let{workflowPath:n,environment:a,tenant:r,assignee:l,max:o,offset:i}=t;const c=Bt(e),{data:s,total:u}=await c({workflowPath:n,environment:a,tenant:r,assignee:l,max:o,offset:i}),[p,d]=await qt(s);return{data:Xt(p,d,s),total:u}})),Jt=e=>e.dueDate&&e.dueDate<Date.now(),en=(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"}}))),tn=e=>{let{uri:t,label:n}=e;const a=en();return r().createElement(ke.Z,{value:t,className:a.entityLabel},(0,m.idV)(n))},nn=e=>{let{object:t,metadata:n}=e;if("startObjectUri"in t&&"endObjectUri"in t){const e=(0,m.V3K)(n,t.type);return r().createElement(r().Fragment,null,e.label," ",c().text("from")," ",r().createElement(tn,{uri:t.startObjectUri,label:t.startObjectLabel})," ",c().text("to")," ",r().createElement(tn,{uri:t.endObjectUri,label:t.endObjectLabel}))}return r().createElement(tn,{uri:(0,m.wwR)(t),label:t.label})},an=e=>{let{task:t,showAssignee:n}=e;const a=en(),o=t.objects||[],[i]=o,s=(0,l.useSelector)(p.ZP.selectors.getMetadata),u=i&&(0,m.nt9)(s,i.type);return r().createElement("div",{className:_()(a.taskItem,t.priorityClass)},r().createElement(Lt.Z,{entityType:u}),r().createElement("div",{className:a.taskInfo},r().createElement(x.Typography,{className:a.taskTitle,variant:"subtitle1"},t.processDefinitionDisplayName),o.map((e=>r().createElement("p",{key:e.uri,className:a.taskDetail},r().createElement(nn,{object:e,metadata:s})))),r().createElement("p",{className:a.taskDetail},r().createElement("span",{className:a.taskDetailTitle},c().text("Created by:")),t.createdBy," ",c().text("on")," ",c().date(t.createTime,"L")),n&&t.assignee&&r().createElement("p",{className:a.taskDetail},r().createElement("span",{className:a.taskDetailTitle},c().text("Assigned to:")),t.assignee),r().createElement("p",{className:a.taskDetail},r().createElement("span",{className:a.taskDetailTitle},c().text("Step:")),t.displayName)),r().createElement("div",{className:_()(a.taskDueDate,{[a.overdue]:Jt(t),[a.hidden]:!t.dueDate})},r().createElement(Ht.Z,{className:a.flag}),c().date(t.dueDate,"L")))},rn=e=>{let{width:t,height:n,tasksCategory:l,tasks:o}=e;const i=(0,a.useCallback)((e=>{let{data:t,index:n}=e;return r().createElement("div",null,r().createElement(an,{task:t[n],showAssignee:l!==kt.MY}),r().createElement(x.Divider,{light:!0,variant:"inset"}))}),[l]);return r().createElement(zt.Z,{width:t,height:n,data:o,defaultItemSize:115},i)};function ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const on=(0,a.memo)((e=>{let{config:t,onToggleFullscreen:n,isUpdated:i,isFullscreen:s,onRemove:m}=e;const f=jt(),{id:h,title:g,pageSize:E}=t,[y,v]=(0,a.useState)(0),[O,w]=(0,a.useState)(E||10),[T,R]=(0,a.useState)(kt.MY),S=(0,a.useMemo)((()=>({tasksCategory:T,max:O,offset:O*y})),[O,y,T]),{state:I,data:C,total:P,reload:M}=(e=>{const{tasksCategory:t}=e,n=(0,a.useMemo)((()=>(0,o.pick)(["max","offset"],e)),[e]),[r,i]=(0,a.useState)([]),[c,s]=(0,a.useState)(d.o.INIT),[u,m]=(0,a.useState)(),f=(0,l.useSelector)(p.ZP.selectors.getWorkflowPath),h=(0,l.useSelector)(p.ZP.selectors.getWorkflowEnvironmentUrl),g=(0,l.useSelector)(p.ZP.selectors.getTenant),E=(0,l.useSelector)(p.ZP.selectors.getUserName),y=t===kt.MY?E:void 0,b=(0,yt._)(),v=e=>{console.error(e),s(d.o.ERROR),i([])},O=(0,a.useCallback)((()=>{s(d.o.LOADING);const e=(0,o.pipe)(Qt(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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){ln(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,a.useEffect)((()=>{x()}),[O]),{state:c,data:r,reload:x,total:u}})(S);return(0,u.T)({state:I,reload:M}),r().createElement(b.Z,{id:h},r().createElement(j,{title:g,onToggleFullscreen:n,isUpdated:i,isFullscreen:s,onRemove:m,onRefresh:M},r().createElement(x.Select,{className:f.tasksSelector,classes:{root:f.tasksSelectorInput},variant:"filled",value:T,onChange:(0,o.pipe)(Ue.NA,R)},r().createElement(x.MenuItem,{value:kt.MY},c().text("My tasks")),r().createElement(x.MenuItem,{value:kt.TEAM},c().text("Team tasks")))),r().createElement(q,{loadingState:I,onRefresh:M,data:C},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(rn,{width:n,height:a,tasksCategory:T,tasks:t})})),P>(E||10)&&r().createElement("div",{className:f.pagination},r().createElement(K.Z,{count:P,rowsPerPage:O,page:y,onChangePage:v,onChangeRowsPerPage:w})))}));var cn=n(93438),sn=n(88234),un=n(67486);const pn=(0,T.Z)((()=>({activityLogFilter:{padding:"0 9px"}}))),dn=(0,a.memo)((e=>{let{config:t,isUpdated:n,isFullscreen:l,onToggleFullscreen:i,onRemove:c}=e;const{id:s,title:p,exportTypes:m}=t,f=pn(),[h,g]=(0,a.useState)(0),[v,O]=(0,a.useState)(E),x=(0,a.useMemo)((()=>y(E)),[]),[w,T]=(0,a.useState)({users:[],activities:[],dateRange:{type:d.K.WITHIN,period:[4,"months"]}}),{state:R,data:S,total:I,reload:C}=(e=>{let{filter:t,max:n,offset:r}=e;const[l,i]=(0,a.useState)([]),[c,s]=(0,a.useState)(0),[u,p]=(0,a.useState)(d.o.INIT),m=(0,yt._)(),f=e=>{console.error(e),p(d.o.ERROR),i([]),s(0)},h=(0,un.d)({filter:t,max:n,offset:r}),g=(0,a.useCallback)((()=>{p(d.o.LOADING);const e=(0,o.pipe)(h,m,(0,o.andThen)((e=>{let{data:t,total:n}=e;p(d.o.LOADED),i(t),s(n)})),(0,o.otherwise)(f));e()}),[h]),E=()=>{try{g()}catch(e){f(e)}};return(0,a.useEffect)((()=>{E()}),[g]),{state:u,data:l,total:c,reload:E}})({filter:w,max:v,offset:h*v}),P=(0,a.useCallback)((e=>{T(e),g(0)}),[]);return(0,u.T)({state:R,reload:C}),r().createElement(b.Z,{id:s},r().createElement(j,{title:p,onToggleFullscreen:i,isUpdated:n,isFullscreen:l,onRemove:c,onRefresh:C}),r().createElement("div",{className:f.activityLogFilter},r().createElement(cn.Z,{value:w,onChange:P,exportTypes:m})),r().createElement(q,{loadingState:R,onRefresh:C,data:S},(e=>{let{data:t,width:n,height:a}=e;return r().createElement(sn.Z,{width:n,height:a,activities:t,count:I,page:h,onChangePage:g,rowsPerPage:v,onChangeRowsPerPage:O,rowsPerPageOptions:x})})))}));function mn(){return mn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},mn.apply(this,arguments)}class fn{}fn.ViewTypes=m.dZX,fn.getComponent=e=>{let{config:t,type:n,isUpdated:a,isFullscreen:l,onToggleFullscreen:o,onRemove:i}=e;const c={isUpdated:a,isFullscreen:l,onToggleFullscreen:o,onRemove:i};switch(n){case fn.ViewTypes.ActivitiesViewFacet:return r().createElement(dn,mn({config:t},c));case fn.ViewTypes.CustomActionViewFacet:return r().createElement(Ft,mn({config:t},c));case fn.ViewTypes.DashboardFacet:return r().createElement(Ie,mn({config:t},c));case fn.ViewTypes.EntitiesByTypeViewFacet:return r().createElement(At,mn({config:t},c));case fn.ViewTypes.FilteredSavedSearchesFacet:return r().createElement(ae,mn({config:t},c));case fn.ViewTypes.FilteredEntitiesViewFacet:return r().createElement(Ze,mn({config:t},c));case fn.ViewTypes.NotificationInboxFacet:return r().createElement(on,mn({config:t},c));case fn.ViewTypes.ProfileStatsFacet:return r().createElement(vt,mn({config:t},c));default:return r().createElement("div",null,"NOT IMPLEMENTED")}},fn.getChartType=e=>{const t={[fn.ViewTypes.EntitiesByTypeViewFacet]:m.$XE.TREE,[fn.ViewTypes.FilteredSavedSearchesFacet]:m.$XE.TABLE,[fn.ViewTypes.FilteredEntitiesViewFacet]:m.$XE.TABLE,[fn.ViewTypes.ProfileStatsFacet]:m.$XE.LINE,[fn.ViewTypes.NotificationInboxFacet]:m.$XE.TABLE,[fn.ViewTypes.ActivitiesViewFacet]:m.$XE.TABLE};return e.chartType||t[e.component]};const hn=fn}}]);
|