@reltio/remotes 1.4.1669 → 1.4.1670-hf

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/658.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="50ce8e22-da8c-472c-aeb4-4269a904c034",e._sentryDebugIdIdentifier="sentry-dbid-50ce8e22-da8c-472c-aeb4-4269a904c034")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1670"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[658],{153:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),o=n.n(r),i=n(71153),a=n.n(i),l=n(89323);const s=(0,n(72342).makeStyles)({dragHandleContainer:{position:"relative",width:"100%",height:"inherit"},dragHandleVisibilityArea:{position:"absolute",top:0,left:0,width:"100%",height:"12px",zIndex:11,visibility:"hidden","&:hover $dragHandle":{visibility:"visible"},".react-draggable &":{visibility:"visible"}},dragHandle:{position:"absolute",width:"100%",display:"flex",justifyContent:"center",top:"-3px",zIndex:11,cursor:"move",visibility:"hidden"},dragIcon:{transform:"translateX(-50%) rotate(90deg)",color:"rgba(0, 0, 0, 0.3)",fontSize:"20px"}}),c=e=>{const t=t=>{const n=s();return o().createElement("div",{className:n.dragHandleContainer},o().createElement("div",{className:n.dragHandleVisibilityArea},o().createElement("div",{className:a()("viewDraggableHandle",n.dragHandle)},o().createElement(l.Z,{className:n.dragIcon}))),o().createElement(e,t))};return t.displayName="WithDragHandle",t}},55234:(e,t,n)=>{n.d(t,{Z:()=>T});var r=n(24328),o=n.n(r),i=n(2507),a=n.n(i),l=n(71153),s=n.n(l),c=n(50914),u=n(42069),p=n(79312),d=n(36817),g=n(19602),f=n(59952),m=n(33117),E=n(14596),b=n(72342);function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){O(e,t,n[t])}))}return e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y={input:e=>h({},e,{fontSize:"14px"}),menuPortal:e=>h({},e,{zIndex:1300})},I=(0,b.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"},noOptionsMessage:{fontSize:"14px"}});const T=e=>{let{entityType:t,selectedAttributes:n,className:i,onChange:l,title:b,disableUnderline:h,menuPlacement:O="bottom"}=e;const T=I(),S=(0,E.AH)(),v=(0,r.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.reduce(((e,r)=>{if(r.hidden)return e;const o=`${n&&n+" / "}${r.label}`;e.push({label:r.label,value:r.uri,attrType:r,chipLabel:o,level:t});const i=(0,u.EUG)(S,r);return e.concat(i?v(i,t+1,o):[])}),[])}),[S]),_=(0,r.useMemo)((()=>v((null==t?void 0:t.attributes)||[])),[t,v]);return o().createElement("div",{className:s()(T.root,i),"data-reltio-id":"attribute-selector"},o().createElement(p.Z,{className:T.title,variant:"subtitle1"},b||a().text("Attribute")),o().createElement(d.Z,{value:n,options:_,TextFieldProps:{InputProps:{disableUnderline:h},classes:{root:T.dropDownInput}},components:{DropdownIndicator:f.Z,MultiValue:e=>{let{data:t}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["data"]);return o().createElement(g.Z,n,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:n,data:r,label:i,innerProps:a}=e;return o().createElement("div",a,o().createElement(m.Z,{checked:n,level:r.level,data:r,label:i,labelInText:i,isFocused:t}))}},onChange:(0,c.pipe)((0,c.defaultTo)([]),l),styles:y,classes:T,menuPlacement:O,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))}},82565:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),o=n.n(r),i=n(12115);function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=(0,n(72342).makeStyles)((e=>({basicViewPaper:a({display:"flex",flexDirection:"column"},e.basicView)})));function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const u=(0,r.forwardRef)(((e,t)=>{let{children:n,className:r}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","className"]);const l=s();return o().createElement(i.Z,c({ref:t,className:r,classes:{root:l.basicViewPaper}},a),n)}));u.displayName="BasicView";const p=u},77875:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),o=n.n(r),i=n(50914),a=n(42069),l=n(53242),s=n(90590),c=n(79573);const u=(0,n(72342).makeStyles)({root:{display:"flex",flex:1},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px",fontSize:"14px"},inputNumber:{minWidth:"60px",marginRight:10,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.03)"},inputUnit:{width:"100%"}});var p=n(7342);const d=["minutes","hours","days","weeks","months","years"],g=e=>{let{interval:[t,n],onChange:r,onFocus:g}=e;const f=u(),m=(0,i.pipe)(c.NA,parseInt,(e=>[e,n]),r),E=(0,i.pipe)((e=>{let{value:n}=e;return[t,n]}),r);return o().createElement("div",{className:f.root},o().createElement(l.Z,{variant:"standard",type:"number",value:t||"",onChange:m,inputProps:{min:1,onFocus:g},InputProps:{classes:{root:f.input}},className:f.inputNumber}),o().createElement(s.Z,{label:"",placeholder:(0,p.Z)(n),className:f.inputUnit,value:{value:n,label:(0,p.Z)((0,a.wsP)(n))},options:d.map((e=>({value:e,label:(0,p.Z)((0,a.wsP)(e))}))),onChange:E,TextFieldProps:{inputProps:{onFocus:g},InputProps:{classes:{root:f.input}}}}))}},7882:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),o=n.n(r);class i extends o().Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),console.error(e)}render(){const{children:e,error:t}=this.props;return this.state.error?t:e}}},52194:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),o=n.n(r),i=n(71153),a=n.n(i),l=n(17998);const s=(0,n(72342).makeStyles)({container:{padding:"0 16px",minHeight:"48px",".react-draggable &":{paddingTop:"4px"}},title:{fontSize:"16px",lineHeight:"19px",justifyContent:"flex-start"}}),c=e=>{let{className:t,title:n,children:r}=e;const i=s();return o().createElement(l.Z,{title:n,classes:{root:a()(i.container,t),title:i.title}},r)}},36817:(e,t,n)=>{n.d(t,{Z:()=>D});var r=n(24328),o=n.n(r),i=n(13980),a=n.n(i),l=n(50914),s=n(70347);const c=(0,n(4515).Z)(s.ZP);var u=n(49861),p=n(12350),d=n(95341),g=n(80852),f=n(71153),m=n.n(f),E=n(40007);function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function h(e){const{innerProps:t,innerRef:n,children:r,isFocused:i,isSelected:a,selectProps:{classes:l},label:s}=e;return o().createElement(d.Z,b({className:m()(l.option,{[l["option--selected"]]:a}),ref:n,selected:i,component:"div"},t),o().createElement(g.Z,{color:"primary",checked:a}),o().createElement(E.Z,{value:s},o().createElement("div",{className:l["option--item"]},r)))}h.propTypes={children:a().node,innerProps:a().shape({id:a().string.isRequired,key:a().string,onClick:a().func.isRequired,onMouseMove:a().func.isRequired,onMouseOver:a().func.isRequired,tabIndex:a().number.isRequired}).isRequired,innerRef:a().oneOfType([a().oneOf([null]),a().func,a().shape({current:a().any.isRequired})]),isFocused:a().bool.isRequired,isSelected:a().bool.isRequired,label:a().string,selectProps:a().shape({classes:a().shape({option:a().string})})};const O={Option:h};var y=n(72342),I=n(79573),T=n(62127);const S=e=>{let t=null==e?void 0:e.parentElement;for(;t;){if(t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null},v=(e,t,n,r)=>e&&t<e&&r.getBoundingClientRect().bottom>n.getBoundingClientRect().bottom;function _(){return _=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(this,arguments)}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){R(e,t,n[t])}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const N=(0,y.makeStyles)((e=>({label:{top:6,left:16},placeholder:e=>({display:!e.placeholder||e.label?"none":void 0}),"option--selected":{fontWeight:400},clearIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)},dropdownIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)}})));let x=0;function C(e){const{label:t,creatable:n,getOptions:i,loadingIndicator:a,components:s,classes:d,styles:g,onChange:f,onInputChange:m,menuPlacement:E="auto"}=e,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["label","creatable","getOptions","loadingIndicator","components","classes","styles","onChange","onInputChange","menuPlacement"]),h=n?c:i?p.Z:u.Z,[y,R]=(0,r.useState)(""),C=N((0,l.omit)(["classes"],e)),D="custom-select-"+x++,w=(0,r.useRef)();!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;const n=(0,T.D)(null==e?void 0:e.length);(0,r.useEffect)((()=>{const r=setTimeout((()=>{const r=S(null==t?void 0:t.current);var o;r&&v(null==e?void 0:e.length,n,r,t.current)&&(null===(o=t.current)||void 0===o||o.scrollIntoView(!1))}),0);return()=>{clearTimeout(r)}}),[null==e?void 0:e.length])}(e.value,(e=>{const t={};return e.current&&(t.current=(0,l.either)((0,l.path)(["select","controlRef"]),(0,l.path)(["select","select","controlRef"]))(e.current)),t})(w));const A=P({},O,s),M=(0,I.ze)(C,d),H=P({indicatorSeparator:e=>P({},e,{margin:"10px 0"}),loadingIndicator:e=>P({},e,{display:a?e.display:"none"}),loadingMessage:e=>P({},e,{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'})},g),L=t?{inputId:D,TextFieldProps:P({label:t,InputLabelProps:{htmlFor:D,shrink:!(!e.value||!e.value.length)||void 0,className:M.label}},e.TextFieldProps)}:{};return o().createElement(h,_({isMulti:!0,inputId:D,inputValue:y,onChange:function(e,t){f(e,t),"create-option"===t.action&&(R(""),m("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;m(e,{action:n}),"set-value"!==n&&R(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:M,components:A,styles:H,menuPlacement:E,loadOptions:i,innerRef:w},L,b))}C.defaultProps={creatable:!1,cacheOptions:!0,components:{},classes:{},placeholder:"",loadingIndicator:!1,onInputChange:()=>{},onChange:()=>{}},C.propTypes={creatable:a().bool,cacheOptions:a().bool,defaultOptions:a().bool,value:a().arrayOf(a().shape({label:a().string.isRequired,value:a().any})),options:a().arrayOf(a().shape({label:a().string.isRequired,value:a().any})),onChange:a().func,onInputChange:a().func,placeholder:a().string,label:a().string,loadingIndicator:a().bool,components:a().shape({ClearIndicator:a().func,Control:a().func,DropdownIndicator:a().func,DownChevron:a().func,CrossIcon:a().func,Group:a().func,GroupHeading:a().func,IndicatorsContainer:a().func,IndicatorSeparator:a().func,Input:a().func,LoadingIndicator:a().func,Menu:a().func,MenuList:a().func,MenuPortal:a().func,LoadingMessage:a().func,NoOptionsMessage:a().func,MultiValue:a().func,MultiValueContainer:a().func,MultiValueLabel:a().func,MultiValueRemove:a().func,Option:a().func,Placeholder:a().func,SelectContainer:a().func,SingleValue:a().func,ValueContainer:a().func}),classes:a().shape({control:a().string,valueContainer:a().string,multiValue:a().string,noOptionsMessage:a().string,singleValue:a().string,placeholder:a().string,menu:a().string,clearIndicator:a().string,dropdownIndicator:a().string,option:a().string,"option--selected":a().string,label:a().string}),styles:a().shape({clearIndicator:a().func,container:a().func,control:a().func,dropdownIndicator:a().func,group:a().func,groupHeading:a().func,indicatorsContainer:a().func,indicatorSeparator:a().func,input:a().func,loadingIndicator:a().func,loadingMessage:a().func,menu:a().func,menuList:a().func,menuPortal:a().func,multiValue:a().func,multiValueLabel:a().func,multiValueRemove:a().func,noOptionsMessage:a().func,option:a().func,placeholder:a().func,singleValue:a().func,valueContainer:a().func}),TextFieldProps:a().object,getOptions:a().func,menuPlacement:a().string,menuPortalTarget:a().object,menuShouldBlockScroll:a().bool,captureMenuScroll:a().bool,getOptionValue:a().func,isSearchable:a().bool,inputRef:a().shape({current:a().object})};const D=C},14593:(e,t,n)=>{n.d(t,{Z:()=>x});var r=n(24328),o=n.n(r),i=n(66244),a=n.n(i),l=n(44443),s=n(50914),c=n(71153),u=n.n(c);function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){d(e,t,n[t])}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const f=e=>{let{x:t,y:n,width:r,height:o,id:i,minWidth:a,minHeight:l,maxWidth:s,maxHeight:c,isStatic:u}=e;return{x:t,y:n,w:r,h:o,minW:a,minH:l,maxW:s,maxH:c,i,static:u}},m=e=>{let{x:t,y:n,w:r,h:o,maxW:i,minW:a,minH:l,maxH:s,i:c}=e;return{x:t,y:n,width:r,height:o,minWidth:a,minHeight:l,maxWidth:i,maxHeight:s,id:c,isStatic:g(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},E=e=>(e||[]).map(m),b=(0,s.curry)(((e,t)=>(e||[]).find((0,s.propEq)("id",t)))),h=(0,s.curry)(((e,t,n)=>(0,s.mergeAll)([n,(0,s.pick)(e,t)]))),O=(0,s.curry)(((e,t,n)=>(n||[]).map((n=>(0,s.pipe)((0,s.prop)("id"),b(t),(0,s.defaultTo)({}),h(e,s.__,n))(n))))),y=(0,s.curry)(((e,t)=>t.map((n=>{const r=t.filter((e=>e.y===n.y)).map((t=>e[t.id]||!t.autosizing&&t.minHeight||0)),o=Math.max(...r);if(n.height!==o&&o){const e=n.autosizing?{minHeight:o,maxHeight:o}:{};return p({},n,e,{height:o})}return n})))),I=(0,s.curry)(((e,t)=>t.map((t=>{const n=e[t.id];return n&&t.autosizing?p({},t,{minHeight:n,maxHeight:n,height:n}):t}))));var T=n(79573),S=n(72342),v=n(42069);const _=(0,S.makeStyles)((e=>({gridLayout:{position:"relative",width:"100%","& .react-grid-item":{"&.react-grid-placeholder":{background:"rgba(0, 0, 0, 0.03)",border:"2px dashed rgba(0, 0, 0, 0.3)",borderRadius:"3px",transitionDuration:"100ms",zIndex:7,userSelect:"none","& .react-resizable-handle":{display:"none"}},"&.static .react-resizable-handle":{display:"none"},"&.customView .react-resizable-handle":{width:"10px",height:"10px"},"&.cssTransforms":{transitionProperty:"transform"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"14px",height:"14px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,v.m5F)('<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path stroke="#505050" stroke-opacity=".54" d="M9.5 0v10M0 9.5h9M7.5 4v4M4 7.5h3"/>\n</svg>')}')`,backgroundRepeat:"no-repeat",backgroundOrigin:"content-box",boxSizing:"border-box",cursor:"se-resize"},"&.fullscreen":{visibility:"visible",position:"unset",width:"100% !important",height:"100% !important",transform:"translate(0) !important"}}},gridFullscreen:{height:"100% !important",overflowY:"hidden","& .react-resizable-handle, & .react-grid-item":{visibility:"hidden"}},isResizing:{zIndex:9,willChange:"width, height",pointerEvents:"none"}})));function P(){return P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P.apply(this,arguments)}const R={cols:4,rowHeight:30,margin:[15,15]},N=e=>{let{views:t,layout:n,layoutOptions:i=R,onLayoutChanged:c=T.ZT,draggableHandle:p,LayoutItem:d,onRemove:g,onDrop:h,droppingItem:S,isDroppable:v,isStatic:N,classes:x}=e;const C=(0,r.useRef)(),D=(0,r.useRef)({}),w=_(),[A,M]=(0,r.useState)(null),[H,L]=(0,r.useState)(null),[j,U]=(0,r.useState)(0),{cols:k,rowHeight:z,margin:G}=i,Z=(0,r.useMemo)((()=>(e=>(e||[]).map(f))(n)),[n]),V=(0,s.pipe)(E,O(["autosizing"],n),(0,s.ifElse)((0,s.always)(N),y(D.current),I(D.current)),c),F=(0,r.useCallback)((e=>L((t=>t?null:e))),[]),Y=null!==H;return o().createElement(o().Fragment,null,o().createElement(l.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>U(e)}),!!j&&o().createElement(a(),{innerRef:C,layout:Z,cols:k,draggableHandle:p,autoSize:!0,rowHeight:z,width:j,margin:G,onLayoutChange:N?void 0:V,isResizable:!N&&!Y,isDraggable:!N&&!Y,className:u()(null==x?void 0:x.root,w.gridLayout,{[w.gridFullscreen]:Y}),onDrop:(e,t,n)=>{h&&h(E(e),m(t),n)},droppingItem:S,isDroppable:!N&&v,onResizeStart:(e,t)=>M(t.i),onResizeStop:()=>M(null),"data-reltio-id":"reltio-grid-layout"},Z.map((e=>{const r=H===e.i,a=A===e.i,s=(b(n,e.i)||{}).autosizing?{AutosizeComponent:(c=e.i,o().createElement(l.Z,{handleHeight:!0,onResize:(e,t)=>{if(t){const e=((e,t)=>{const{margin:n,rowHeight:r}=t;return Math.ceil((e+n[1])/(r+n[1]))})(t,i);e!==D.current[c]&&(D.current[c]=e,V(Z))}}}))}:{};var c;return o().createElement(d,P({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:F,onRemove:g,className:u()(null==x?void 0:x.item,{static:N,fullscreen:r,[w.isResizing]:a}),isFullscreen:r},s))}))))};N.displayName="ReltioGridLayout";const x=(0,r.memo)(N)},15791:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(24328),o=n.n(r),i=n(2507),a=n.n(i),l=n(50914),s=n(71153),c=n.n(s),u=n(79312),p=n(36817),d=n(59952),g=n(42069),f=n(14596),m=n(51556),E=n(72342);function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){h(e,t,n[t])}))}return e}function h(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"}),loadingMessage:e=>b({},e,{fontSize:"14px"}),menuPortal:e=>b({},e,{zIndex:1300})},y=(0,E.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"}}),I=e=>{let{selectedUsers:t,onChange:n,className:i,disableUnderline:s}=e;const E=y(),b=(0,r.useRef)(null),h=(0,f.Uv)(),I=(0,f.au)(),T=e=>({value:e,label:e}),S=e=>e.map(T),v=(0,r.useRef)();return o().createElement("div",{className:c()(E.root,i),"data-reltio-id":"user-selector"},o().createElement(u.Z,{className:E.title,variant:"subtitle1"},a().text("User")),o().createElement(p.Z,{value:S(t),onChange:(0,l.pipe)((0,l.defaultTo)([]),(0,l.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(v.current||(v.current=(0,g.kz_)({tenant:h,servicesPath:I})),v.current.then((0,l.pipe)((0,l.pluck)("username"),(e=>t=>e?t.filter((t=>g.P6Y.strings.search(t,e))):t)(e),S))),TextFieldProps:{InputProps:{disableUnderline:s},className:E.dropDownInput,ref:b},components:{DropdownIndicator:d.Z,Menu:m.Z},styles:O,classes:E,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1,inputRef:b}))}},20414:(e,t,n)=>{let r;n.d(t,{I:()=>r}),function(e){e.MODEL_UPDATED="MODEL_UPDATED",e.ENTITY_REMOVED="ENTITY_REMOVED",e.ENTITY_CREATED="ENTITY_CREATED",e.ENTITY_CHANGED="ENTITY_CHANGED",e.ENTITIES_MERGED="ENTITIES_MERGED",e.ENTITIES_SPLITTED="ENTITIES_SPLITTED",e.ENTITY_LOST_MERGE="ENTITY_LOST_MERGE",e.RELATIONSHIP_CREATED="RELATIONSHIP_CREATED",e.RELATIONSHIP_REMOVED="RELATIONSHIP_REMOVED",e.RELATIONSHIP_CHANGED="RELATIONSHIP_CHANGED",e.POTENTIAL_MATCHES_FOUND="POTENTIAL_MATCHES_FOUND",e.NOT_MATCHES_SET="NOT_MATCHES_SET",e.NOT_MATCHES_RESET="NOT_MATCHES_RESET",e.PERIODIC_TASK_SCHEDULED="PERIODIC_TASK_SCHEDULED",e.ENTITIES_MERGED_MANUALLY="ENTITIES_MERGED_MANUALLY",e.POTENTIAL_MATCHES_REMOVED="POTENTIAL_MATCHES_REMOVED",e.ENTITIES_MERGED_ON_THE_FLY="ENTITIES_MERGED_ON_THE_FLY",e.USER_LOGIN="USER_LOGIN",e.USER_LOGOUT="USER_LOGOUT",e.USER_SEARCH="USER_SEARCH",e.USER_PROFILE_VIEW="USER_PROFILE_VIEW",e.COMMENT_ADDED="COMMENT_ADDED",e.COMMENT_UPDATED="COMMENT_UPDATED",e.COMMENT_DELETED="COMMENT_DELETED",e.ANALYTICS_ATTRIBUTES_CHANGED="ANALYTICS_ATTRIBUTES_CHANGED",e.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE="SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE",e.GROUP_CREATED="GROUP_CREATED",e.GROUP_REMOVED="GROUP_REMOVED",e.GROUP_CHANGED="GROUP_CHANGED"}(r||(r={}))},57312:(e,t,n)=>{n.d(t,{te:()=>p,Io:()=>d,rx:()=>g,_V:()=>f,Xr:()=>m});var r=n(42069),o=n(50914),i=n(2507),a=n.n(i),l=n(20414);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=(0,o.path)(["data","type"]),p=e=>{const{items:t,label:n}=e,[r]=t||[];return u(r)||n},d=e=>{const{items:t=[],label:n}=e,r=e=>{return t=u(e)||n,(0,o.pipe)(o.values,(0,o.includes)(t))(l.I);var t},i=(0,o.filter)(r)(t);return t.length!==i.length&&console.error("Activities not implemented:",(0,o.reject)(r)(t)),s({},e,{items:i,itemsTotal:i.length})},g=e=>(0,o.pipe)((0,o.propOr)([],"items"),(0,o.groupBy)(u),o.values,(0,o.ifElse)((e=>{let{length:t}=e;return t>1}),(0,o.map)((t=>s({},e,{items:t,itemsTotal:t.length}))),(()=>[e])))(e),f=(e,t,n,i)=>{const a=(0,r.zeJ)(n,t),l=(0,r.PFL)(a),s=(0,r.mB6)({attributePresentations:i,dataTypeDefinition:l});return(0,o.isNil)(e)?"":"string"==typeof e?a?s(e):e:Object.entries(e).flatMap((e=>{let[o,a]=e;return a.map((e=>f(e.value,(0,r.tCm)(t,o),n,i)))})).join(", ")},m=e=>({[l.I.COMMENT_ADDED]:a().text("Comment added"),[l.I.COMMENT_DELETED]:a().text("Comment deleted"),[l.I.COMMENT_UPDATED]:a().text("Comment updated"),[l.I.ENTITIES_MERGED]:a().text("Profile merged"),[l.I.ENTITIES_MERGED_MANUALLY]:a().text("Profile merged manually"),[l.I.ENTITIES_MERGED_ON_THE_FLY]:a().text("Profile merged on the fly"),[l.I.ENTITIES_SPLITTED]:a().text("Profile un-merged"),[l.I.ENTITY_CHANGED]:a().text("Profile updated"),[l.I.ENTITY_CREATED]:a().text("Profile created"),[l.I.ENTITY_LOST_MERGE]:a().text("Profile lost merge"),[l.I.ENTITY_REMOVED]:a().text("Profile removed"),[l.I.GROUP_CHANGED]:a().text("Group updated"),[l.I.GROUP_CREATED]:a().text("Group created"),[l.I.GROUP_REMOVED]:a().text("Group removed"),[l.I.MODEL_UPDATED]:a().text("Model was updated"),[l.I.NOT_MATCHES_RESET]:a().text("Not matches reset"),[l.I.NOT_MATCHES_SET]:a().text("Not matches set"),[l.I.PERIODIC_TASK_SCHEDULED]:a().text("Periodic task was scheduled"),[l.I.POTENTIAL_MATCHES_FOUND]:a().text("Potential matches found"),[l.I.POTENTIAL_MATCHES_REMOVED]:a().text("Potential matches removed"),[l.I.RELATIONSHIP_CHANGED]:a().text("Relationship updated"),[l.I.RELATIONSHIP_CREATED]:a().text("Relationship created"),[l.I.RELATIONSHIP_REMOVED]:a().text("Relationship removed"),[l.I.USER_LOGIN]:a().text("Logged in"),[l.I.USER_LOGOUT]:a().text("Logged out"),[l.I.USER_PROFILE_VIEW]:a().text("Profile viewed"),[l.I.USER_SEARCH]:a().text("Searched"),[l.I.ANALYTICS_ATTRIBUTES_CHANGED]:a().text("Analytics attribute changed"),[l.I.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE]:a().text("SFDC connector synchronization issue")}[e]||"")},27446:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),o=n.n(r),i=n(95038),a=n.n(i),l=n(2507),s=n.n(l),c=n(50914),u=n(42069),p=n(79573),d=n(53242),g=n(47019),f=n(59952),m=n(98192);const E=(0,n(72342).makeStyles)({root:{flex:1},dropdownIndicator:{transition:"transform .15s ease"},inputRoot:{fontSize:"14px",height:46},input:{padding:"0 12px 0"},dateOptionLabel:{minWidth:"100px"},paper:{minWidth:"112px"}}),b=a().localeData().longDateFormat("L"),h=e=>{let{values:t,onChange:n,onFocus:i=p.ZT}=e;const a=b,l=(0,r.useRef)(null),[h,O]=(0,r.useState)(!1),y=E(),I=(0,r.useCallback)((()=>{O((e=>!e)),i()}),[i]);return o().createElement("div",{className:y.root},o().createElement(d.Z,{fullWidth:!0,value:t.map((e=>((e,t)=>(0,c.isNil)(e)?`${t}`:`${(0,u.mB6)({dataTypeDefinition:{type:u.oS0.TYPE_ACTIVENESS_DATE}},e)}`)(e,a))).join(" — "),onClick:I,variant:"filled",ref:l,InputProps:{endAdornment:o().createElement(f.Z,{selectProps:{classes:y,menuIsOpen:h},innerProps:{}}),disableUnderline:(0,c.isNil)(t),readOnly:!0,classes:{root:y.inputRoot,input:y.input}},InputLabelProps:{shrink:!1},placeholder:s().text(`${a} — ${a}`)}),o().createElement(g.ZP,{open:h,anchorEl:l.current,onClose:()=>{O(!1)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2},o().createElement(m.Z,{values:t,onApply:e=>{n(e),O(!1)},type:u.oS0.TYPE_ACTIVENESS_DATE})))}}}]);
1
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bb8c1266-95d0-49ab-939e-c35d62afe2fb",e._sentryDebugIdIdentifier="sentry-dbid-bb8c1266-95d0-49ab-939e-c35d62afe2fb")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1670"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[658],{153:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),o=n.n(r),i=n(71153),a=n.n(i),l=n(89323);const s=(0,n(72342).makeStyles)({dragHandleContainer:{position:"relative",width:"100%",height:"inherit"},dragHandleVisibilityArea:{position:"absolute",top:0,left:0,width:"100%",height:"12px",zIndex:11,visibility:"hidden","&:hover $dragHandle":{visibility:"visible"},".react-draggable &":{visibility:"visible"}},dragHandle:{position:"absolute",width:"100%",display:"flex",justifyContent:"center",top:"-3px",zIndex:11,cursor:"move",visibility:"hidden"},dragIcon:{transform:"translateX(-50%) rotate(90deg)",color:"rgba(0, 0, 0, 0.3)",fontSize:"20px"}}),c=e=>{const t=t=>{const n=s();return o().createElement("div",{className:n.dragHandleContainer},o().createElement("div",{className:n.dragHandleVisibilityArea},o().createElement("div",{className:a()("viewDraggableHandle",n.dragHandle)},o().createElement(l.Z,{className:n.dragIcon}))),o().createElement(e,t))};return t.displayName="WithDragHandle",t}},55234:(e,t,n)=>{n.d(t,{Z:()=>T});var r=n(24328),o=n.n(r),i=n(2507),a=n.n(i),l=n(71153),s=n.n(l),c=n(50914),u=n(98679),p=n(79312),d=n(36817),g=n(19602),f=n(59952),m=n(33117),E=n(14596),b=n(72342);function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){O(e,t,n[t])}))}return e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y={input:e=>h({},e,{fontSize:"14px"}),menuPortal:e=>h({},e,{zIndex:1300})},I=(0,b.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"},noOptionsMessage:{fontSize:"14px"}});const T=e=>{let{entityType:t,selectedAttributes:n,className:i,onChange:l,title:b,disableUnderline:h,menuPlacement:O="bottom"}=e;const T=I(),S=(0,E.AH)(),v=(0,r.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.reduce(((e,r)=>{if(r.hidden)return e;const o=`${n&&n+" / "}${r.label}`;e.push({label:r.label,value:r.uri,attrType:r,chipLabel:o,level:t});const i=(0,u.EUG)(S,r);return e.concat(i?v(i,t+1,o):[])}),[])}),[S]),_=(0,r.useMemo)((()=>v((null==t?void 0:t.attributes)||[])),[t,v]);return o().createElement("div",{className:s()(T.root,i),"data-reltio-id":"attribute-selector"},o().createElement(p.Z,{className:T.title,variant:"subtitle1"},b||a().text("Attribute")),o().createElement(d.Z,{value:n,options:_,TextFieldProps:{InputProps:{disableUnderline:h},classes:{root:T.dropDownInput}},components:{DropdownIndicator:f.Z,MultiValue:e=>{let{data:t}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["data"]);return o().createElement(g.Z,n,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:n,data:r,label:i,innerProps:a}=e;return o().createElement("div",a,o().createElement(m.Z,{checked:n,level:r.level,data:r,label:i,labelInText:i,isFocused:t}))}},onChange:(0,c.pipe)((0,c.defaultTo)([]),l),styles:y,classes:T,menuPlacement:O,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))}},82565:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),o=n.n(r),i=n(12115);function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=(0,n(72342).makeStyles)((e=>({basicViewPaper:a({display:"flex",flexDirection:"column"},e.basicView)})));function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const u=(0,r.forwardRef)(((e,t)=>{let{children:n,className:r}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","className"]);const l=s();return o().createElement(i.Z,c({ref:t,className:r,classes:{root:l.basicViewPaper}},a),n)}));u.displayName="BasicView";const p=u},77875:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),o=n.n(r),i=n(50914),a=n(98679),l=n(53242),s=n(90590),c=n(79573);const u=(0,n(72342).makeStyles)({root:{display:"flex",flex:1},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px",fontSize:"14px"},inputNumber:{minWidth:"60px",marginRight:10,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.03)"},inputUnit:{width:"100%"}});var p=n(7342);const d=["minutes","hours","days","weeks","months","years"],g=e=>{let{interval:[t,n],onChange:r,onFocus:g}=e;const f=u(),m=(0,i.pipe)(c.NA,parseInt,(e=>[e,n]),r),E=(0,i.pipe)((e=>{let{value:n}=e;return[t,n]}),r);return o().createElement("div",{className:f.root},o().createElement(l.Z,{variant:"standard",type:"number",value:t||"",onChange:m,inputProps:{min:1,onFocus:g},InputProps:{classes:{root:f.input}},className:f.inputNumber}),o().createElement(s.Z,{label:"",placeholder:(0,p.Z)(n),className:f.inputUnit,value:{value:n,label:(0,p.Z)((0,a.wsP)(n))},options:d.map((e=>({value:e,label:(0,p.Z)((0,a.wsP)(e))}))),onChange:E,TextFieldProps:{inputProps:{onFocus:g},InputProps:{classes:{root:f.input}}}}))}},7882:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),o=n.n(r);class i extends o().Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),console.error(e)}render(){const{children:e,error:t}=this.props;return this.state.error?t:e}}},52194:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),o=n.n(r),i=n(71153),a=n.n(i),l=n(17998);const s=(0,n(72342).makeStyles)({container:{padding:"0 16px",minHeight:"48px",".react-draggable &":{paddingTop:"4px"}},title:{fontSize:"16px",lineHeight:"19px",justifyContent:"flex-start"}}),c=e=>{let{className:t,title:n,children:r}=e;const i=s();return o().createElement(l.Z,{title:n,classes:{root:a()(i.container,t),title:i.title}},r)}},36817:(e,t,n)=>{n.d(t,{Z:()=>D});var r=n(24328),o=n.n(r),i=n(13980),a=n.n(i),l=n(50914),s=n(70347);const c=(0,n(4515).Z)(s.ZP);var u=n(49861),p=n(12350),d=n(95341),g=n(80852),f=n(71153),m=n.n(f),E=n(40007);function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function h(e){const{innerProps:t,innerRef:n,children:r,isFocused:i,isSelected:a,selectProps:{classes:l},label:s}=e;return o().createElement(d.Z,b({className:m()(l.option,{[l["option--selected"]]:a}),ref:n,selected:i,component:"div"},t),o().createElement(g.Z,{color:"primary",checked:a}),o().createElement(E.Z,{value:s},o().createElement("div",{className:l["option--item"]},r)))}h.propTypes={children:a().node,innerProps:a().shape({id:a().string.isRequired,key:a().string,onClick:a().func.isRequired,onMouseMove:a().func.isRequired,onMouseOver:a().func.isRequired,tabIndex:a().number.isRequired}).isRequired,innerRef:a().oneOfType([a().oneOf([null]),a().func,a().shape({current:a().any.isRequired})]),isFocused:a().bool.isRequired,isSelected:a().bool.isRequired,label:a().string,selectProps:a().shape({classes:a().shape({option:a().string})})};const O={Option:h};var y=n(72342),I=n(79573),T=n(62127);const S=e=>{let t=null==e?void 0:e.parentElement;for(;t;){if(t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null},v=(e,t,n,r)=>e&&t<e&&r.getBoundingClientRect().bottom>n.getBoundingClientRect().bottom;function _(){return _=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(this,arguments)}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){R(e,t,n[t])}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const N=(0,y.makeStyles)((e=>({label:{top:6,left:16},placeholder:e=>({display:!e.placeholder||e.label?"none":void 0}),"option--selected":{fontWeight:400},clearIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)},dropdownIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)}})));let x=0;function C(e){const{label:t,creatable:n,getOptions:i,loadingIndicator:a,components:s,classes:d,styles:g,onChange:f,onInputChange:m,menuPlacement:E="auto"}=e,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["label","creatable","getOptions","loadingIndicator","components","classes","styles","onChange","onInputChange","menuPlacement"]),h=n?c:i?p.Z:u.Z,[y,R]=(0,r.useState)(""),C=N((0,l.omit)(["classes"],e)),D="custom-select-"+x++,w=(0,r.useRef)();!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;const n=(0,T.D)(null==e?void 0:e.length);(0,r.useEffect)((()=>{const r=setTimeout((()=>{const r=S(null==t?void 0:t.current);var o;r&&v(null==e?void 0:e.length,n,r,t.current)&&(null===(o=t.current)||void 0===o||o.scrollIntoView(!1))}),0);return()=>{clearTimeout(r)}}),[null==e?void 0:e.length])}(e.value,(e=>{const t={};return e.current&&(t.current=(0,l.either)((0,l.path)(["select","controlRef"]),(0,l.path)(["select","select","controlRef"]))(e.current)),t})(w));const A=P({},O,s),M=(0,I.ze)(C,d),H=P({indicatorSeparator:e=>P({},e,{margin:"10px 0"}),loadingIndicator:e=>P({},e,{display:a?e.display:"none"}),loadingMessage:e=>P({},e,{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'})},g),L=t?{inputId:D,TextFieldProps:P({label:t,InputLabelProps:{htmlFor:D,shrink:!(!e.value||!e.value.length)||void 0,className:M.label}},e.TextFieldProps)}:{};return o().createElement(h,_({isMulti:!0,inputId:D,inputValue:y,onChange:function(e,t){f(e,t),"create-option"===t.action&&(R(""),m("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;m(e,{action:n}),"set-value"!==n&&R(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:M,components:A,styles:H,menuPlacement:E,loadOptions:i,innerRef:w},L,b))}C.defaultProps={creatable:!1,cacheOptions:!0,components:{},classes:{},placeholder:"",loadingIndicator:!1,onInputChange:()=>{},onChange:()=>{}},C.propTypes={creatable:a().bool,cacheOptions:a().bool,defaultOptions:a().bool,value:a().arrayOf(a().shape({label:a().string.isRequired,value:a().any})),options:a().arrayOf(a().shape({label:a().string.isRequired,value:a().any})),onChange:a().func,onInputChange:a().func,placeholder:a().string,label:a().string,loadingIndicator:a().bool,components:a().shape({ClearIndicator:a().func,Control:a().func,DropdownIndicator:a().func,DownChevron:a().func,CrossIcon:a().func,Group:a().func,GroupHeading:a().func,IndicatorsContainer:a().func,IndicatorSeparator:a().func,Input:a().func,LoadingIndicator:a().func,Menu:a().func,MenuList:a().func,MenuPortal:a().func,LoadingMessage:a().func,NoOptionsMessage:a().func,MultiValue:a().func,MultiValueContainer:a().func,MultiValueLabel:a().func,MultiValueRemove:a().func,Option:a().func,Placeholder:a().func,SelectContainer:a().func,SingleValue:a().func,ValueContainer:a().func}),classes:a().shape({control:a().string,valueContainer:a().string,multiValue:a().string,noOptionsMessage:a().string,singleValue:a().string,placeholder:a().string,menu:a().string,clearIndicator:a().string,dropdownIndicator:a().string,option:a().string,"option--selected":a().string,label:a().string}),styles:a().shape({clearIndicator:a().func,container:a().func,control:a().func,dropdownIndicator:a().func,group:a().func,groupHeading:a().func,indicatorsContainer:a().func,indicatorSeparator:a().func,input:a().func,loadingIndicator:a().func,loadingMessage:a().func,menu:a().func,menuList:a().func,menuPortal:a().func,multiValue:a().func,multiValueLabel:a().func,multiValueRemove:a().func,noOptionsMessage:a().func,option:a().func,placeholder:a().func,singleValue:a().func,valueContainer:a().func}),TextFieldProps:a().object,getOptions:a().func,menuPlacement:a().string,menuPortalTarget:a().object,menuShouldBlockScroll:a().bool,captureMenuScroll:a().bool,getOptionValue:a().func,isSearchable:a().bool,inputRef:a().shape({current:a().object})};const D=C},14593:(e,t,n)=>{n.d(t,{Z:()=>x});var r=n(24328),o=n.n(r),i=n(66244),a=n.n(i),l=n(44443),s=n(50914),c=n(71153),u=n.n(c);function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){d(e,t,n[t])}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const f=e=>{let{x:t,y:n,width:r,height:o,id:i,minWidth:a,minHeight:l,maxWidth:s,maxHeight:c,isStatic:u}=e;return{x:t,y:n,w:r,h:o,minW:a,minH:l,maxW:s,maxH:c,i,static:u}},m=e=>{let{x:t,y:n,w:r,h:o,maxW:i,minW:a,minH:l,maxH:s,i:c}=e;return{x:t,y:n,width:r,height:o,minWidth:a,minHeight:l,maxWidth:i,maxHeight:s,id:c,isStatic:g(e,["x","y","w","h","maxW","minW","minH","maxH","i"]).static}},E=e=>(e||[]).map(m),b=(0,s.curry)(((e,t)=>(e||[]).find((0,s.propEq)("id",t)))),h=(0,s.curry)(((e,t,n)=>(0,s.mergeAll)([n,(0,s.pick)(e,t)]))),O=(0,s.curry)(((e,t,n)=>(n||[]).map((n=>(0,s.pipe)((0,s.prop)("id"),b(t),(0,s.defaultTo)({}),h(e,s.__,n))(n))))),y=(0,s.curry)(((e,t)=>t.map((n=>{const r=t.filter((e=>e.y===n.y)).map((t=>e[t.id]||!t.autosizing&&t.minHeight||0)),o=Math.max(...r);if(n.height!==o&&o){const e=n.autosizing?{minHeight:o,maxHeight:o}:{};return p({},n,e,{height:o})}return n})))),I=(0,s.curry)(((e,t)=>t.map((t=>{const n=e[t.id];return n&&t.autosizing?p({},t,{minHeight:n,maxHeight:n,height:n}):t}))));var T=n(79573),S=n(72342),v=n(98679);const _=(0,S.makeStyles)((e=>({gridLayout:{position:"relative",width:"100%","& .react-grid-item":{"&.react-grid-placeholder":{background:"rgba(0, 0, 0, 0.03)",border:"2px dashed rgba(0, 0, 0, 0.3)",borderRadius:"3px",transitionDuration:"100ms",zIndex:7,userSelect:"none","& .react-resizable-handle":{display:"none"}},"&.static .react-resizable-handle":{display:"none"},"&.customView .react-resizable-handle":{width:"10px",height:"10px"},"&.cssTransforms":{transitionProperty:"transform"},"&.react-draggable-dragging":{transition:"none",zIndex:8,willChange:"transform","& .react-resizable-handle":{backgroundImage:"none"}},"& .react-resizable-handle":{position:"absolute",width:"14px",height:"14px",bottom:0,right:0,zIndex:20,backgroundImage:`url('${(0,v.m5F)('<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path stroke="#505050" stroke-opacity=".54" d="M9.5 0v10M0 9.5h9M7.5 4v4M4 7.5h3"/>\n</svg>')}')`,backgroundRepeat:"no-repeat",backgroundOrigin:"content-box",boxSizing:"border-box",cursor:"se-resize"},"&.fullscreen":{visibility:"visible",position:"unset",width:"100% !important",height:"100% !important",transform:"translate(0) !important"}}},gridFullscreen:{height:"100% !important",overflowY:"hidden","& .react-resizable-handle, & .react-grid-item":{visibility:"hidden"}},isResizing:{zIndex:9,willChange:"width, height",pointerEvents:"none"}})));function P(){return P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P.apply(this,arguments)}const R={cols:4,rowHeight:30,margin:[15,15]},N=e=>{let{views:t,layout:n,layoutOptions:i=R,onLayoutChanged:c=T.ZT,draggableHandle:p,LayoutItem:d,onRemove:g,onDrop:h,droppingItem:S,isDroppable:v,isStatic:N,classes:x}=e;const C=(0,r.useRef)(),D=(0,r.useRef)({}),w=_(),[A,M]=(0,r.useState)(null),[H,L]=(0,r.useState)(null),[j,U]=(0,r.useState)(0),{cols:k,rowHeight:z,margin:G}=i,Z=(0,r.useMemo)((()=>(e=>(e||[]).map(f))(n)),[n]),V=(0,s.pipe)(E,O(["autosizing"],n),(0,s.ifElse)((0,s.always)(N),y(D.current),I(D.current)),c),F=(0,r.useCallback)((e=>L((t=>t?null:e))),[]),Y=null!==H;return o().createElement(o().Fragment,null,o().createElement(l.Z,{refreshMode:"debounce",refreshRate:50,handleWidth:!0,onResize:e=>U(e)}),!!j&&o().createElement(a(),{innerRef:C,layout:Z,cols:k,draggableHandle:p,autoSize:!0,rowHeight:z,width:j,margin:G,onLayoutChange:N?void 0:V,isResizable:!N&&!Y,isDraggable:!N&&!Y,className:u()(null==x?void 0:x.root,w.gridLayout,{[w.gridFullscreen]:Y}),onDrop:(e,t,n)=>{h&&h(E(e),m(t),n)},droppingItem:S,isDroppable:!N&&v,onResizeStart:(e,t)=>M(t.i),onResizeStop:()=>M(null),"data-reltio-id":"reltio-grid-layout"},Z.map((e=>{const r=H===e.i,a=A===e.i,s=(b(n,e.i)||{}).autosizing?{AutosizeComponent:(c=e.i,o().createElement(l.Z,{handleHeight:!0,onResize:(e,t)=>{if(t){const e=((e,t)=>{const{margin:n,rowHeight:r}=t;return Math.ceil((e+n[1])/(r+n[1]))})(t,i);e!==D.current[c]&&(D.current[c]=e,V(Z))}}}))}:{};var c;return o().createElement(d,P({key:e.i,layoutItemConfig:e,views:t,onToggleFullscreen:F,onRemove:g,className:u()(null==x?void 0:x.item,{static:N,fullscreen:r,[w.isResizing]:a}),isFullscreen:r},s))}))))};N.displayName="ReltioGridLayout";const x=(0,r.memo)(N)},15791:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(24328),o=n.n(r),i=n(2507),a=n.n(i),l=n(50914),s=n(71153),c=n.n(s),u=n(79312),p=n(36817),d=n(59952),g=n(98679),f=n(14596),m=n(51556),E=n(72342);function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){h(e,t,n[t])}))}return e}function h(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"}),loadingMessage:e=>b({},e,{fontSize:"14px"}),menuPortal:e=>b({},e,{zIndex:1300})},y=(0,E.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"}}),I=e=>{let{selectedUsers:t,onChange:n,className:i,disableUnderline:s}=e;const E=y(),b=(0,r.useRef)(null),h=(0,f.Uv)(),I=(0,f.au)(),T=e=>({value:e,label:e}),S=e=>e.map(T),v=(0,r.useRef)();return o().createElement("div",{className:c()(E.root,i),"data-reltio-id":"user-selector"},o().createElement(u.Z,{className:E.title,variant:"subtitle1"},a().text("User")),o().createElement(p.Z,{value:S(t),onChange:(0,l.pipe)((0,l.defaultTo)([]),(0,l.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(v.current||(v.current=(0,g.kz_)({tenant:h,servicesPath:I})),v.current.then((0,l.pipe)((0,l.pluck)("username"),(e=>t=>e?t.filter((t=>g.P6Y.strings.search(t,e))):t)(e),S))),TextFieldProps:{InputProps:{disableUnderline:s},className:E.dropDownInput,ref:b},components:{DropdownIndicator:d.Z,Menu:m.Z},styles:O,classes:E,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1,inputRef:b}))}},20414:(e,t,n)=>{let r;n.d(t,{I:()=>r}),function(e){e.MODEL_UPDATED="MODEL_UPDATED",e.ENTITY_REMOVED="ENTITY_REMOVED",e.ENTITY_CREATED="ENTITY_CREATED",e.ENTITY_CHANGED="ENTITY_CHANGED",e.ENTITIES_MERGED="ENTITIES_MERGED",e.ENTITIES_SPLITTED="ENTITIES_SPLITTED",e.ENTITY_LOST_MERGE="ENTITY_LOST_MERGE",e.RELATIONSHIP_CREATED="RELATIONSHIP_CREATED",e.RELATIONSHIP_REMOVED="RELATIONSHIP_REMOVED",e.RELATIONSHIP_CHANGED="RELATIONSHIP_CHANGED",e.POTENTIAL_MATCHES_FOUND="POTENTIAL_MATCHES_FOUND",e.NOT_MATCHES_SET="NOT_MATCHES_SET",e.NOT_MATCHES_RESET="NOT_MATCHES_RESET",e.PERIODIC_TASK_SCHEDULED="PERIODIC_TASK_SCHEDULED",e.ENTITIES_MERGED_MANUALLY="ENTITIES_MERGED_MANUALLY",e.POTENTIAL_MATCHES_REMOVED="POTENTIAL_MATCHES_REMOVED",e.ENTITIES_MERGED_ON_THE_FLY="ENTITIES_MERGED_ON_THE_FLY",e.USER_LOGIN="USER_LOGIN",e.USER_LOGOUT="USER_LOGOUT",e.USER_SEARCH="USER_SEARCH",e.USER_PROFILE_VIEW="USER_PROFILE_VIEW",e.COMMENT_ADDED="COMMENT_ADDED",e.COMMENT_UPDATED="COMMENT_UPDATED",e.COMMENT_DELETED="COMMENT_DELETED",e.ANALYTICS_ATTRIBUTES_CHANGED="ANALYTICS_ATTRIBUTES_CHANGED",e.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE="SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE",e.GROUP_CREATED="GROUP_CREATED",e.GROUP_REMOVED="GROUP_REMOVED",e.GROUP_CHANGED="GROUP_CHANGED"}(r||(r={}))},57312:(e,t,n)=>{n.d(t,{te:()=>p,Io:()=>d,rx:()=>g,_V:()=>f,Xr:()=>m});var r=n(98679),o=n(50914),i=n(2507),a=n.n(i),l=n(20414);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=(0,o.path)(["data","type"]),p=e=>{const{items:t,label:n}=e,[r]=t||[];return u(r)||n},d=e=>{const{items:t=[],label:n}=e,r=e=>{return t=u(e)||n,(0,o.pipe)(o.values,(0,o.includes)(t))(l.I);var t},i=(0,o.filter)(r)(t);return t.length!==i.length&&console.error("Activities not implemented:",(0,o.reject)(r)(t)),s({},e,{items:i,itemsTotal:i.length})},g=e=>(0,o.pipe)((0,o.propOr)([],"items"),(0,o.groupBy)(u),o.values,(0,o.ifElse)((e=>{let{length:t}=e;return t>1}),(0,o.map)((t=>s({},e,{items:t,itemsTotal:t.length}))),(()=>[e])))(e),f=(e,t,n,i)=>{const a=(0,r.zeJ)(n,t),l=(0,r.PFL)(a),s=(0,r.mB6)({attributePresentations:i,dataTypeDefinition:l});return(0,o.isNil)(e)?"":"string"==typeof e?a?s(e):e:Object.entries(e).flatMap((e=>{let[o,a]=e;return a.map((e=>f(e.value,(0,r.tCm)(t,o),n,i)))})).join(", ")},m=e=>({[l.I.COMMENT_ADDED]:a().text("Comment added"),[l.I.COMMENT_DELETED]:a().text("Comment deleted"),[l.I.COMMENT_UPDATED]:a().text("Comment updated"),[l.I.ENTITIES_MERGED]:a().text("Profile merged"),[l.I.ENTITIES_MERGED_MANUALLY]:a().text("Profile merged manually"),[l.I.ENTITIES_MERGED_ON_THE_FLY]:a().text("Profile merged on the fly"),[l.I.ENTITIES_SPLITTED]:a().text("Profile un-merged"),[l.I.ENTITY_CHANGED]:a().text("Profile updated"),[l.I.ENTITY_CREATED]:a().text("Profile created"),[l.I.ENTITY_LOST_MERGE]:a().text("Profile lost merge"),[l.I.ENTITY_REMOVED]:a().text("Profile removed"),[l.I.GROUP_CHANGED]:a().text("Group updated"),[l.I.GROUP_CREATED]:a().text("Group created"),[l.I.GROUP_REMOVED]:a().text("Group removed"),[l.I.MODEL_UPDATED]:a().text("Model was updated"),[l.I.NOT_MATCHES_RESET]:a().text("Not matches reset"),[l.I.NOT_MATCHES_SET]:a().text("Not matches set"),[l.I.PERIODIC_TASK_SCHEDULED]:a().text("Periodic task was scheduled"),[l.I.POTENTIAL_MATCHES_FOUND]:a().text("Potential matches found"),[l.I.POTENTIAL_MATCHES_REMOVED]:a().text("Potential matches removed"),[l.I.RELATIONSHIP_CHANGED]:a().text("Relationship updated"),[l.I.RELATIONSHIP_CREATED]:a().text("Relationship created"),[l.I.RELATIONSHIP_REMOVED]:a().text("Relationship removed"),[l.I.USER_LOGIN]:a().text("Logged in"),[l.I.USER_LOGOUT]:a().text("Logged out"),[l.I.USER_PROFILE_VIEW]:a().text("Profile viewed"),[l.I.USER_SEARCH]:a().text("Searched"),[l.I.ANALYTICS_ATTRIBUTES_CHANGED]:a().text("Analytics attribute changed"),[l.I.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE]:a().text("SFDC connector synchronization issue")}[e]||"")},27446:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),o=n.n(r),i=n(95038),a=n.n(i),l=n(2507),s=n.n(l),c=n(50914),u=n(98679),p=n(79573),d=n(53242),g=n(47019),f=n(59952),m=n(98192);const E=(0,n(72342).makeStyles)({root:{flex:1},dropdownIndicator:{transition:"transform .15s ease"},inputRoot:{fontSize:"14px",height:46},input:{padding:"0 12px 0"},dateOptionLabel:{minWidth:"100px"},paper:{minWidth:"112px"}}),b=a().localeData().longDateFormat("L"),h=e=>{let{values:t,onChange:n,onFocus:i=p.ZT}=e;const a=b,l=(0,r.useRef)(null),[h,O]=(0,r.useState)(!1),y=E(),I=(0,r.useCallback)((()=>{O((e=>!e)),i()}),[i]);return o().createElement("div",{className:y.root},o().createElement(d.Z,{fullWidth:!0,value:t.map((e=>((e,t)=>(0,c.isNil)(e)?`${t}`:`${(0,u.mB6)({dataTypeDefinition:{type:u.oS0.TYPE_ACTIVENESS_DATE}},e)}`)(e,a))).join(" — "),onClick:I,variant:"filled",ref:l,InputProps:{endAdornment:o().createElement(f.Z,{selectProps:{classes:y,menuIsOpen:h},innerProps:{}}),disableUnderline:(0,c.isNil)(t),readOnly:!0,classes:{root:y.inputRoot,input:y.input}},InputLabelProps:{shrink:!1},placeholder:s().text(`${a} — ${a}`)}),o().createElement(g.ZP,{open:h,anchorEl:l.current,onClose:()=>{O(!1)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2},o().createElement(m.Z,{values:t,onApply:e=>{n(e),O(!1)},type:u.oS0.TYPE_ACTIVENESS_DATE})))}}}]);
2
2
  //# sourceMappingURL=658.js.map
package/7119.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d84981f3-603a-4296-bd2a-ddb78b40a9e6",e._sentryDebugIdIdentifier="sentry-dbid-d84981f3-603a-4296-bd2a-ddb78b40a9e6")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1670"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[7119],{15422:(e,t,n)=>{n.d(t,{Z:()=>c});var l=n(24328),r=n.n(l),i=n(79312);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},a.apply(this,arguments)}const o=e=>r().createElement("svg",a({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),r().createElement("mask",{id:"AttributesList_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},r().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),r().createElement("g",{mask:"url(#AttributesList_svg__a)"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#AttributesList_svg__b)"}),r().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#AttributesList_svg__c)"}),r().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#fff"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),r().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2v40.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),r().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),r().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#fff"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zm90 0a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),r().createElement("defs",null,r().createElement("linearGradient",{id:"AttributesList_svg__b",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),r().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"AttributesList_svg__c",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:.01}),r().createElement("stop",{offset:1})))),s=(0,n(72342).makeStyles)((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box",padding:"40px"},logo:{width:"190px",height:"190px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:400,marginTop:"24px"},text:{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"23px",textAlign:"center"},secondaryText:{color:e.palette.text.primary,fontSize:"14px",fontWeight:"normal",lineHeight:"16px",letterSpacing:"0.24px",textAlign:"center",paddingTop:"8px"}}))),c=e=>{let{IconRenderer:t=o,text:n,secondaryText:l}=e;const a=s();return r().createElement("div",{className:a.root},r().createElement(t,{className:a.logo}),r().createElement("div",{className:a.textBox},r().createElement(i.Z,{className:a.text},n),l&&r().createElement(i.Z,{className:a.secondaryText},l)))}},70675:(e,t,n)=>{n.d(t,{Z:()=>ie});var l=n(24328),r=n.n(l),i=n(2507),a=n.n(i),o=n(56961),s=n(79312),c=n(50914),u=n(79935),d=n(80653),p=n(38677),f=n(47019),m=n(79811),E=n(290),h=n(35936),y=n(42069),v=n(40435),b=n(15791),g=n(55234),x=n(71153),T=n.n(x),I=n(90590);const w=[y.KfU.WITHIN,y.KfU.AGO,y.KfU.BETWEEN],N=e=>({[y.KfU.WITHIN]:a().text("Within the last"),[y.KfU.AGO]:a().text("More than"),[y.KfU.BETWEEN]:a().text("Date range")}[e]||"");var O=n(77875),S=n(55962),C=n(27446),R=n(72342);const _=(0,R.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},intervalContainer:{display:"flex",justifyContent:"space-between"},typeInput:{width:160,marginRight:10}}),k=[null,null],M=[null,"hours"],D=e=>{let{value:t,onChange:n,className:i}=e;const o=_(),c=e=>e===y.KfU.WITHIN||e===y.KfU.AGO,u=e=>e===y.KfU.BETWEEN,d=u(null==t?void 0:t.type)?t.period:k,p=c(null==t?void 0:t.type)?t.period:M,[f,m]=(0,l.useState)(d),[E,h]=(0,l.useState)(p),v=(null==t?void 0:t.type)||y.KfU.WITHIN,b=e=>c(e)?E:u(e)?f:void 0,g=e=>{n({type:v,period:e})};return(0,S.D)((()=>{t?c(t.type)?h(t.period):u(t.type)&&m(t.period):(m(k),h(M))}),[t]),r().createElement("div",{className:T()(o.root,i),"data-reltio-id":"date-range-selector"},r().createElement(s.Z,{className:o.title,variant:"subtitle1"},a().text("Date")),r().createElement("div",{className:o.intervalContainer},r().createElement(I.Z,{label:"",className:o.typeInput,value:{value:v,label:N(v)},options:w.map((e=>({value:e,label:N(e)}))),onChange:e=>{let{value:l}=e;(null==t?void 0:t.type)!==l&&n({period:b(l),type:l})}}),c(v)?r().createElement(O.Z,{interval:E,onChange:g}):r().createElement(C.Z,{values:f,onChange:g})))};var L=n(36817),A=n(59952),P=n(38323);const U=[P.M.UPDATE,P.M.MERGE,P.M.UNMERGE];function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.forEach((function(t){H(e,t,n[t])}))}return e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j={input:e=>G({},e,{fontSize:"14px"}),menuPortal:e=>G({},e,{zIndex:1300})},F=(0,R.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},valueContainer:{overflowY:"auto",height:44},option:{fontSize:"14px",height:"32px"}}),Z=e=>{let{selectedHistoryActivityTypes:t,onChange:n,className:l,disableUnderline:i}=e;const o=F(),u=e=>{return{value:e,label:(t=e,{[P.M.UPDATE]:a().text("Update"),[P.M.MERGE]:a().text("Merge"),[P.M.UNMERGE]:a().text("Unmerge")}[t]||"")};var t},d=e=>e.map(u),p=d(U);return r().createElement("div",{className:T()(o.root,l),"data-reltio-id":"history-activity-selector"},r().createElement(s.Z,{className:o.title,variant:"subtitle1"},a().text("Activity")),r().createElement(L.Z,{value:d(t),onChange:(0,c.pipe)((0,c.defaultTo)([]),(0,c.pluck)("value"),n),options:p,TextFieldProps:{InputProps:{disableUnderline:i},classes:{root:o.dropDownInput}},components:{DropdownIndicator:A.Z},styles:j,classes:o,menuPlacement:"bottom",menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))};var B=n(7108);const z=(0,R.makeStyles)({popup:{width:500,minHeight:500,overflowY:"hidden",display:"flex",flexDirection:"column"},filterContainer:{maxHeight:"400px",borderColor:"rgba(0,0,0,0.12)"},filterItem:{"&:not(:last-child)":{marginBottom:12}},clearButton:{marginRight:"auto"},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px"},divider:{marginBottom:12}});function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.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 K=e=>{let{className:t,filter:n,onApplyFilter:i,entityType:s}=e;const u=z(),x=(0,l.useRef)(),[T,I]=(0,l.useState)(!1),[w,N]=(0,l.useState)(n),{activities:O=[],attributes:S=[],dateRange:C=null,users:R=[]}=w||{},_=(0,B.FE)(n)?"inherit":"primary";(0,l.useEffect)((()=>{T&&N(n)}),[n,T]);const k=(0,c.curry)(((e,t)=>{N((n=>$({},n,{[e]:t})))})),M=(0,l.useCallback)((()=>{I((e=>!e))}),[]),L=(0,l.useCallback)((()=>{C&&(0,y.RZp)(C)?i(w):i((0,c.dissoc)("dateRange",w)),M()}),[w,C,i,M]),A=(0,l.useCallback)((()=>{N($({},B.tO))}),[]);return r().createElement(r().Fragment,null,r().createElement(v.Z,{ref:x,color:_,icon:d.Z,size:"L",onClick:M,className:t}),r().createElement(f.ZP,{classes:{paper:u.popup},open:T,anchorEl:x.current,onClose:M,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},r().createElement(h.Z,null,a().text("Filter")),r().createElement(E.Z,{dividers:!0,className:u.filterContainer,"data-reltio-id":"history-filter-container"},r().createElement(D,{value:C,onChange:k("dateRange"),className:u.filterItem}),r().createElement(o.Z,{light:!0,className:u.divider}),r().createElement(b.Z,{selectedUsers:R,onChange:k("users"),className:u.filterItem,disableUnderline:!0}),r().createElement(o.Z,{light:!0,className:u.divider}),r().createElement(Z,{selectedHistoryActivityTypes:O,onChange:k("activities"),className:u.filterItem,disableUnderline:!0}),r().createElement(o.Z,{light:!0,className:u.divider}),r().createElement(g.Z,{selectedAttributes:S,entityType:s,onChange:k("attributes"),className:u.filterItem,title:a().text("Attribute updated"),disableUnderline:!0})),r().createElement(m.Z,null,r().createElement(p.Z,{onClick:A,className:u.clearButton},a().text("Clear all")),r().createElement(p.Z,{onClick:M},a().text("Cancel")),r().createElement(p.Z,{color:"primary",onClick:L},a().text("Apply")))))};var Y=n(50985),V=n(98538),q=n(95341),X=n(42713),J=n(79573);const Q=(0,R.makeStyles)({menuItem:{minHeight:"32px"},menuText:{fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"30px"},checkIcon:{position:"absolute",color:"rgba(0, 0, 0, 0.54)"}}),ee=(0,l.forwardRef)(((e,t)=>{let{item:n,onMenuClose:l=J.ZT}=e;const i=Q(),{text:a,selected:o,onClick:c}=n;return r().createElement(q.Z,{classes:{root:i.menuItem},onClick:e=>{l(),c(e)},ref:t},o&&r().createElement(X.Z,{className:i.checkIcon}),r().createElement(s.Z,{classes:{root:i.menuText}},a))}));ee.displayName="MenuItemRenderer";const te=ee;var ne=n(14596);const le=()=>{const e=(0,ne.ax)("setHistoryMode"),t=(0,ne.bn)(),n=[{text:a().text("Compare to Current view"),selected:t===y.Z9$.Current,onClick:()=>e(y.Z9$.Current)},{text:a().text("Compare to Previous view"),selected:t===y.Z9$.Previous,onClick:()=>e(y.Z9$.Previous)}];return r().createElement(V.Z,{MenuItemRenderer:te,buttonComponent:v.Z,buttonProps:{icon:Y.Z,size:"L"},menuId:"history-menu",menuItems:n})},re=(0,R.makeStyles)({root:{display:"flex",flex:1,alignItems:"center"},icon:{margin:4},divider:{borderColor:"rgba(0,0,0,0.12)",margin:"3px 19px"},count:{fontSize:14},filterButton:{marginRight:"-4px"}}),ie=e=>{let{total:t,entityType:n,filter:l,onApplyFilter:i}=e;const d=re();return r().createElement("div",{className:d.root},r().createElement(s.Z,{variant:"h6"},a().text("History")),!(0,c.isNil)(t)&&r().createElement(r().Fragment,null,r().createElement(o.Z,{orientation:"vertical",flexItem:!0,className:d.divider}),r().createElement(s.Z,{variant:"body1",color:"textSecondary",className:d.count},1===t?a().text("${count} contributing profile",{count:t}):a().text("${count} contributing profiles",{count:t}))),r().createElement(u.Z,null),r().createElement(K,{className:d.filterButton,entityType:n,filter:l,onApplyFilter:i}),r().createElement(le,null))}},95085:(e,t,n)=>{n.d(t,{Z:()=>s});var l=n(24328),r=n.n(l),i=n(2507),a=n.n(i),o=n(15422);const s=()=>r().createElement(o.Z,{text:a().text("History in the making"),secondaryText:a().text("When you create an event or perform an activity, it will show up here.")})},32158:(e,t,n)=>{n.d(t,{Z:()=>G});var l=n(24328),r=n.n(l),i=n(44443),a=n(2507),o=n.n(a),s=n(50914),c=n(71153),u=n.n(c),d=n(42069),p=n(38677),f=n(79312),m=n(57312),E=n(72342);const h=(0,E.makeStyles)((()=>({historyRow:{position:"relative",padding:"8px 12px 16px",cursor:"pointer"},selected:{background:"rgba(0,0,0,0.05)","&:before":{content:'""',background:"rgba(0,0,0,0.05)",width:"100%",height:"100%",position:"absolute",left:"-100%",top:0}},rowHeader:{display:"flex",position:"relative"},badge:e=>{let{color:t}=e;return{position:"absolute",width:"2px",height:"100%",left:"-9px",pointerEvents:"none",background:t,"&:before":{height:"100%",width:"3px",content:'""',left:"-3px",background:t,position:"absolute",opacity:.06}}},title:{color:"rgba(0,0,0,0.87)",fontSize:"13px",letterSpacing:0,lineHeight:"16px",fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","&.bold":{fontWeight:500}},date:{marginLeft:"auto",color:"rgba(0,0,0,0.54)",fontSize:"11px",letterSpacing:0,lineHeight:"16px",flexShrink:0},user:{color:"rgba(0,0,0,0.38)",fontSize:"12px",letterSpacing:0,lineHeight:"14px"}}))),y=e=>{let{change:t,isCurrent:n,isSelected:l,onClick:i}=e;const{uri:a,type:s,matchGroups:c,user:p,timestamp:E}=t,y=(0,d.GtP)(a),v=h({color:y});return r().createElement("div",{className:u()(v.historyRow,{[v.selected]:l}),onClick:i},r().createElement("div",{className:v.rowHeader},r().createElement("div",{className:v.badge}),r().createElement(f.Z,{className:u()(v.title,{bold:n})},n?o().text("Current view"):(0,m.Xr)(s)),!n&&r().createElement(f.Z,{className:v.date},o().date(E,"L LT"))),c&&r().createElement(f.Z,{className:v.title},o().text("Match rule:")," ",c.join(", ")),r().createElement(f.Z,{className:v.user},p))};var v=n(21256);const b=e=>e===v.b.FAKE_FILTERED_INCOMING||e===v.b.FAKE_FILTERED_OUTGOING,g=e=>{let{x:t,y:n,toX:l,toY:i,color:a,isDashed:o}=e;const s=((e,t,n,l)=>{const r=t>l,i=e<n,a=r?-6:6;return`M${e} ${t} L${i?n-12:n+12} ${t} ${i?`c 6 0 12 ${a} 12`:`c -6 0 -12 ${a} -12`} ${r?-12:12} L${n} ${l}`})(t,n,l,i);return r().createElement("path",{d:s,stroke:a,strokeWidth:2,fill:"none",strokeDasharray:o?"3,3":void 0})};function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},x.apply(this,arguments)}const T=(0,l.forwardRef)(((e,t)=>{let{x:n,y:l,color:i,isDashed:a,isCollapsed:o,showCollapseIcon:s,showLine:c}=e,u=function(e,t){if(null==e)return{};var n,l,r=function(e,t){if(null==e)return{};var n,l,r={},i=Object.keys(e);for(l=0;l<i.length;l++)n=i[l],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)n=i[l],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["x","y","color","isDashed","isCollapsed","showCollapseIcon","showLine"]);const d=s?6:3;return r().createElement("g",x({},u,{ref:t}),c&&r().createElement("rect",{id:"line",x:n-d-4,y:l-d-4,width:2*d+8,height:2,fill:i}),r().createElement("circle",{cx:n,cy:l,r:d,fill:a?"#fff":i,stroke:i,strokeDasharray:a?"1,1":void 0,strokeWidth:2}),s&&r().createElement("g",{id:"icon"},r().createElement("rect",{x:n-4,y:l-1,width:8,height:2,fill:"#fff"}),o&&r().createElement("rect",{x:n-1,y:l-4,width:2,height:8,fill:"#fff"})))}));const I=(0,n(78223).Z)(T),w=(0,l.memo)((e=>{let{graphData:t,onHistoryCircleMouseOver:n}=e;const{historyLanes:l,rows:i}=t,a=[16],{links:o,rowLines:s,circles:c}=i.reduce(((e,t,o)=>{let{uri:s,height:c,uris:u,type:p,fakeType:f,index:m,timestamp:E,label:h}=t;const y=16*l[s].index+24,x=a[o];a.push(x+c);const T=b(f),w=T?u[0]:s,N=!(null!=u&&u.some((e=>l[e])));e.circles.push(r().createElement(I,{tooltipTitle:h,tooltipPlacement:"top",onMouseOver:n?()=>n(s,E,m):void 0,key:`circle-${w}-${o}`,x:y,y:x,color:(0,d.GtP)(w),isDashed:T,isCollapsed:N,showCollapseIcon:!!u,showLine:f===v.b.FAKE_NAVIGATE_PROFILE})),e.rowLines.push(r().createElement("rect",{key:`${w}-${m}`,x:y,y:x-8,width:"100%",height:16,fill:(0,d.GtP)(w),opacity:.06}));const O=p===v.b.ENTITIES_SPLITTED;return null==u||u.forEach((t=>{const n=l[t];if(!n)return;const a=i[o].height,s=16*n.index+24,c=O?x-a:x+a;y!==s&&e.links.push(r().createElement(g,{key:`link-${t}-${m}`,x:y,y:x,toX:s,toY:c,isDashed:b(f),color:(0,d.GtP)(t)}))})),e}),{links:[],circles:[],rowLines:[]}),u=16*Object.keys(l).length+24,p=a[a.length-1]-16;return Object.entries(l).forEach((e=>{let[t,n]=e;const l=16*n.index+24;n.lifeTime.forEach(((e,s)=>{var u;let{start:p,end:f}=e;if((null===(u=i[null==f?void 0:f.index])||void 0===u?void 0:u.type)===v.b.ENTITIES_SPLITTED)return;const m=(null==p?void 0:p.type)===v.b.ENTITIES_SPLITTED?(null==p?void 0:p.index)-1:null==p?void 0:p.index,E=(null==f?void 0:f.type)===v.b.ENTITIES_MERGED_MANUALLY||(null==f?void 0:f.type)===v.b.ENTITIES_MERGED?(null==f?void 0:f.index)+1:null==f?void 0:f.index,h=a[m]||a[a.length-2],y=a[E]||16;if(h<=y)return;const b=(0,d.GtP)(t);!f&&n.index>0&&c.push(r().createElement(T,{key:`initCircle-${t}-${s}`,x:l,y,color:b,showLine:!0})),o.unshift(r().createElement("path",{key:`line-${t}-${s}`,d:`M${l} ${h} L${l} ${y}`,stroke:b,strokeWidth:2}))}))})),r().createElement("svg",{className:"chart",width:u,height:p},r().createElement("g",{id:"rowLines"},s),r().createElement("g",{id:"links"},o),r().createElement("g",{id:"circles"},c))}));var N=n(87378),O=n(14596);const S=(0,E.makeStyles)({historyTree:{display:"grid",gridTemplateColumns:"auto 1fr",overflowY:"auto"},graph:{overflowX:"auto",overflowY:"hidden"},history:{minWidth:"260px"},buttonContainer:{gridColumnStart:1,gridColumnEnd:3,padding:"8px 16px"},shadow:{boxShadow:"inset -8px 0px 5px -5px rgba(0,0,0,0.1)"}});function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.forEach((function(t){R(e,t,n[t])}))}return e}function R(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=>{let{historyData:t,isLoading:n,canLoadMore:a,onLoadMore:c,entityUri:f,historyEvent:m,findPreviousChange:E}=e;const h=S(),[v,b]=(0,l.useState)({historyLanes:{},rows:[]}),[g,x]=(0,l.useState)(!1),[T,I]=(0,l.useState)(-1),R=(0,O.ax)("setHistoryEvent"),_=(0,O.ax)("clearHistoryEvent"),k=(0,O.ax)("modeUpdated"),M=(0,O.AH)(),D=(0,O.o_)();(0,l.useEffect)((()=>{if((0,s.isNil)(m))return void I(0);const e=e=>(null==e?void 0:e.uri)===((null==m?void 0:m.overrideUri)||f)&&(null==e?void 0:e.timestamp)===(null==m?void 0:m.aStamp),n=-1!==T?t.rows[T]:null,l=t.rows.findIndex((t=>e(t)));I(e(n)?T:l)}),[t.rows,m]);const L=(0,l.useRef)(null),A=(0,l.useCallback)((e=>{if(!(0,s.isNil)(e)){var n;const l=null===(n=t.rows)||void 0===n?void 0:n.map(((t,n)=>{var l;return C({},t,{height:null===(l=e.childNodes[n])||void 0===l?void 0:l.clientHeight})}));b({historyLanes:t.historyLanes,rows:l})}}),[t]),P=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:n}=(null==L?void 0:L.current)||{};x(n<e-t)};return r().createElement("div",{className:h.historyTree},n&&r().createElement(N.Z,null),r().createElement("div",{className:u()(h.graph,{[h.shadow]:g}),onScroll:P,ref:L},r().createElement(w,{onHistoryCircleMouseOver:(e,t,n)=>{if((0,s.isNil)(v.rows[n].label)){const l={time:t,select:"crosswalks"};(0,d.HvW)(e,l).then((e=>{let{crosswalks:t}=e;const l=t?(0,s.uniqBy)((0,s.prop)("type"),t).map((e=>{const t=(0,d.s5)(M,e.type);return t?t.label:null})).filter(s.identity).join(", "):o().text("No data");b((e=>C({},e,{rows:e.rows.map((e=>e.index===n?C({},e,{label:l}):e))})))}))}},graphData:v}),r().createElement(i.Z,{handleWidth:!0,onResize:P})),r().createElement("div",{ref:A,className:h.history},t.rows.map(((e,t)=>{const n=t===T,l=0===t;return r().createElement(y,{key:`row-${t}`,change:e,isCurrent:l,isSelected:n,onClick:()=>((e,t,n,l)=>{if(D){if(!window.confirm(o().text("Are you sure you want to go in history mode? All your changes will be lost.")))return;k(d.ARY.Viewing)}if(l&&!n||!l&&n)_(),I(0);else if(!l&&!n){const n=E(e-1,t.uri||f),l=E(e,t.uri||f),r=null==n?void 0:n.timestamp,i=null==l?void 0:l.timestamp,a=(null==t?void 0:t.uri)===f?null:null==t?void 0:t.uri;R({aStamp:r,bStamp:i,overrideUri:a}),I(e)}})(t,e,n,l)})}))),a&&r().createElement("div",{className:h.buttonContainer},r().createElement(p.Z,{color:"primary",onClick:()=>c()},o().text("Show more"))))},k=(0,E.makeStyles)({root:{display:"flex",flexWrap:"wrap",padding:"10px 15px"}}),M=(0,E.makeStyles)({icon:e=>{let{color:t}=e;return{boxSizing:"border-box",borderWidth:2,borderStyle:"solid",borderColor:t,height:12,width:12,borderRadius:30,transition:"opacity 0.3s",margin:4}},active:e=>{let{color:t}=e;return{backgroundColor:t}},inactive:{backgroundColor:"white"},clickable:{cursor:"pointer"}}),D=e=>{let{value:t,isSelected:n=!0,onClick:l}=e;const i=(0,d.GtP)(t),a=M({color:i});return r().createElement("div",{className:u()(a.icon,{[a.inactive]:!n,[a.active]:n,[a.clickable]:!!l}),onClick:l})},L=e=>{let{values:t,selectedValues:n,entityUri:l,onSelectValues:i,className:a}=e;const o=k();return r().createElement("div",{className:u()(o.root,a)},r().createElement(D,{value:l}),(null==t?void 0:t.length)>0&&t.map((e=>r().createElement(D,{key:e,value:e,isSelected:null==n?void 0:n.includes(e),onClick:()=>(e=>{null!=n&&n.includes(e)?i((0,s.without)([e],n)):i([...n||[],e])})(e)}))))};function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const P=(e,t)=>e.reduce(((e,n,l)=>{let{start:r,end:i}=n;if(r){const n=t-r.timestamp;((0,s.isNil)(e.startDistance)||Math.abs(e.startDistance)>Math.abs(n)&&n>0)&&(e.startIndex=l,e.startDistance=n)}if(i){const n=t-i.timestamp;((0,s.isNil)(e.endDistance)||Math.abs(e.endDistance)>Math.abs(n)&&n<0)&&(e.endIndex=l,e.endDistance=n)}return e}),{startIndex:null,endIndex:null,startDistance:null,endDistance:null}),U=(0,E.makeStyles)({root:{display:"flex",flexDirection:"column",overflow:"hidden",position:"relative",height:"100%"},borderBottom:{borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}}),G=(0,l.memo)((e=>{let{isLoading:t,historyWithTotal:n,contributorsUris:i,entityUri:a,canLoadMore:o,onLoadMore:c,historyEvent:u}=e;const d=U(),[p,f]=(0,l.useState)(null);(0,l.useEffect)((()=>{f(i)}),[i]);const{historyData:m,findPreviousChange:E}=(e=>{let{entityUri:t,historyChanges:n,selectedUris:r}=e;return(0,l.useMemo)((()=>{const e={[t]:{index:0,lifeTime:[]}},l=[{user:"",timestamp:0,uri:t}],i=(0,s.curry)(((e,n,l)=>{const r=l.uri||t;if(e)if(Array.isArray(e)){if(l.type!==v.b.ENTITY_LOST_MERGE)return null;if(e.includes(r))return l;if(n&&l.uris)return e.some((e=>l.uris.includes(e)))?l:null}else{var i;if(r===e||n&&null!==(i=l.uris)&&void 0!==i&&i.includes(e))return l}return null})),a=(e,t,l)=>(0,s.pipe)((0,s.drop)(e+1),(0,s.find)(i(t,l)))(n),o=t=>(e[t]||r&&!r.includes(t)||(e[t]={index:Object.keys(e).length,lifeTime:[]}),e[t]),c=(e,t)=>{const n=e[e.length-1];!n||n.start&&(n.start.type!==v.b.ENTITY_CREATED||t.type!==v.b.ENTITIES_SPLITTED)?e.push({start:t,end:null}):n.start=t},u=(e,t)=>{let n=!0;if(e.length){const l=e[e.length-1];n=!((!l.start||l.start.timestamp<t.timestamp)&&(!l.end||l.end.timestamp>t.timestamp))}n&&e.push({start:null,end:null})},d=(e,t)=>{if(e.length){const n=e[e.length-1];n.start||(n.start=t)}e.push({start:null,end:t})},p=[];return null==n||n.forEach(((n,r)=>{var i;switch(n.type){case v.b.ENTITIES_SPLITTED:if(!a(r,n.uri||t,!1))return;{const e=n.uri,t=n.uris?[n.uris,e]:[e],l=a(r,t,!0);if(l&&(!e||e===l.uri))return}break;case v.b.ENTITY_LOST_MERGE:case v.b.RELATIONSHIP_CREATED:case v.b.RELATIONSHIP_REMOVED:case v.b.RELATIONSHIP_CHANGED:return}let s=!1;null===(i=n.uris)||void 0===i||i.forEach((e=>{o(e)||(s=!0)}));const f=o(n.uri||t);if(!f)return;const m=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.forEach((function(t){A(e,t,n[t])}))}return e}({},n);((t,n)=>{var r,i;switch(n.type){case v.b.ENTITY_CREATED:c(t,n);break;case v.b.ENTITIES_MERGED_ON_THE_FLY:case v.b.ENTITY_CHANGED:u(t,n);break;case v.b.ENTITY_LOST_MERGE:case v.b.ENTITY_REMOVED:d(t,n);break;case v.b.ENTITIES_SPLITTED:u(t,n),null===(r=n.uris)||void 0===r||r.forEach((t=>{const r=e[t];if(!r)return;const i=r.lifeTime.length;i?c(r.lifeTime,n):d(r.lifeTime,n),l.push({uri:t,user:n.user,type:n.type,fakeType:i?v.b.FAKE_UPDATE:v.b.FAKE_NAVIGATE_PROFILE,timestamp:n.timestamp})}));break;case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:u(t,n),null===(i=n.uris)||void 0===i||i.forEach((t=>{const l=e[t];l&&d(l.lifeTime,n)}))}})(f.lifeTime,m),s&&p.push(m),l.push(m)})),p.forEach((t=>{t.uris.forEach((r=>{e[r]||n.forEach((n=>{let{uri:i,uris:a,timestamp:o,user:c,type:u}=n;i===r&&(null==a||a.forEach((n=>{const r=e[n];if(!r)return;let i=null;switch(u){case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:i=v.b.FAKE_FILTERED_INCOMING;break;case v.b.ENTITIES_SPLITTED:i=v.b.FAKE_FILTERED_OUTGOING;break;default:return}const a={fakeType:i,uri:t.uri,uris:[n],type:u,user:c,timestamp:o},d=P(r.lifeTime,t.timestamp);i===v.b.FAKE_FILTERED_INCOMING?(0,s.isNil)(d.endIndex)||(r.lifeTime[d.endIndex].end=a):(0,s.isNil)(d.startIndex)||(r.lifeTime[d.startIndex].start=a),l.splice(l.indexOf(t),0,a)})))}))}))})),l.forEach(((e,n)=>{e.index=n,e.uri=e.uri||t})),{historyData:{historyLanes:e,rows:l},findPreviousChange:(e,t)=>(0,s.pipe)((0,s.slice)(e+1,1/0),(0,s.find)(i(t,!1)))(l)}}),[t,n,r])})({entityUri:a,historyChanges:null==n?void 0:n.changes,selectedUris:p});return r().createElement("div",{className:d.root},r().createElement(L,{values:i,selectedValues:p,onSelectValues:f,entityUri:a,className:d.borderBottom}),r().createElement(_,{historyData:m,isLoading:t,onLoadMore:c,canLoadMore:o,entityUri:a,historyEvent:u,findPreviousChange:E}))}))},7108:(e,t,n)=>{n.d(t,{tO:()=>m,FE:()=>E,k6:()=>h});var l=n(24328),r=n(42069),i=n(50914),a=n(38323),o=n(20414);const s=(0,i.chain)((0,i.cond)([[(0,i.equals)(a.M.MERGE),()=>[o.I.ENTITIES_MERGED,o.I.ENTITIES_MERGED_MANUALLY,o.I.ENTITIES_MERGED_ON_THE_FLY]],[(0,i.equals)(a.M.UNMERGE),()=>[o.I.ENTITIES_SPLITTED]],[(0,i.equals)(a.M.UPDATE),()=>[o.I.ENTITY_CHANGED]]])),c=(0,i.pipe)((0,i.defaultTo)([]),s,(0,i.concat)([o.I.ENTITY_CREATED,o.I.ENTITY_REMOVED,o.I.ENTITY_LOST_MERGE]),(0,r.NPd)((e=>`equals(type, '${e}')`))),u=(0,i.pipe)((0,i.defaultTo)({}),(0,i.reject)(r.O27),(0,i.evolve)({users:(0,r.NPd)(r.F$g),attributes:(0,r.NPd)((e=>`changes(${(0,r.HRH)(e.value)})`)),dateRange:r.lPZ}),(0,i.over)((0,i.lensProp)("activities"),c),i.values,(0,i.reject)(r.O27),(0,i.append)("not equals(user, 'collaboration-service')"),(0,i.map)(r.tM8),(0,i.join)(" and "));var d=n(19701);function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.forEach((function(t){f(e,t,n[t])}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m={activities:[a.M.MERGE,a.M.UNMERGE,a.M.UPDATE]},E=e=>(0,i.pipe)((0,i.evolve)({activities:(0,i.difference)(m.activities)}),(0,i.reject)((0,i.either)(i.isNil,i.isEmpty)),i.isEmpty)(e||{}),h=e=>{let{entity:t,enabled:n}=e;const[i,a]=(0,l.useState)(m),[o,s]=(0,l.useState)(0),c=(0,l.useMemo)((()=>u(i)),[i]),[f,E]=(0,l.useState)(null),[h,y]=(0,l.useState)(null),[v,b]=(0,l.useState)(!1),g=(0,d._)(),x=null==t?void 0:t.uri,T={max:32,order:"desc"},I=(0,r.O27)(null==i?void 0:i.attributes)||void 0;(0,l.useEffect)((()=>{x&&n&&(b(!0),g((0,r.kgP)(p({entityUri:x,historicUris:f,filter:c,showAll:I},T))).then(y).catch((e=>{console.warn("Failed to load history data",e),y(null)})).finally((()=>{b(!1)})))}),[c,I,f]),(0,l.useEffect)((()=>{x&&n&&(b(!0),g((0,r.wdF)({entityUri:x})).then((e=>{E(e)})).catch((e=>{console.warn("Failed to load history data",e),E(null)})).finally((()=>{b(!1)})),s(0))}),[x,null==t?void 0:t.updatedTime,n]);const w=(0,l.useCallback)((e=>{x&&f&&n&&(b(!0),g((0,r.kgP)(p({entityUri:x,historicUris:f,filter:c,showAll:I,offset:e},T))).then((e=>{y((t=>p({},t,{changes:[...null==t?void 0:t.changes,...e.changes]})))})).catch((e=>{console.warn("Failed to load history data",e)})).finally((()=>{b(!1)})))}),[f,c,n]),N=(0,l.useMemo)((()=>32*(o+1)<(null==h?void 0:h.total)),[h,o]),O=(0,l.useCallback)((e=>{s(0),a(e)}),[]),S=(0,l.useCallback)((()=>{O(p({},m))}),[]),C=(0,l.useCallback)((()=>{N&&(w(32*(o+1)),s(o+1))}),[w,o,N]);return{isLoading:v,canLoadMore:N,onLoadMore:C,onApplyFilter:O,onClearFilter:S,historicUris:f,historyWithTotal:h,historyFilter:i}}},69409:(e,t,n)=>{n.d(t,{C:()=>a});var l=n(24328),r=n(42069),i=n(14201);const a=e=>{let{perspectiveId:t,entity:n,historyButtonId:a}=e;const{perspectiveSettings:o}=(0,i._)(t),{active:s}=o||{},c=s===a,[u,d]=(0,l.useState)(!1),p=null==n?void 0:n.uri;(0,l.useEffect)((()=>{c||d(!1)}),[p]),(0,l.useEffect)((()=>{c&&d(!0)}),[c]);const f=p&&!(0,r.ZiX)(p)&&!(0,r.biM)(n);return{isHistoryEnabled:u&&f,isProfilePersisted:f}}},35722:(e,t,n)=>{n.d(t,{a:()=>o});var l=n(24328),r=n(42069),i=n(19701),a=n(14596);const o=e=>{let{entity:t,historyEvent:n}=e;const[o,s]=(0,l.useState)(!1),c=(0,a.ax)("setHistorySlice"),u=(0,a.cV)(),d=(0,i._)(),{aStamp:p,bStamp:f,overrideUri:m}=n||{},E=m||(null==t?void 0:t.uri);return(0,l.useEffect)((()=>{n&&E&&(s(!0),d(Promise.all([(0,r.lrH)(E,p),f&&1!==f?(0,r.lrH)(E,f):Promise.resolve(null)])).then((e=>{let[t,n]=e;c({aEntity:t,bEntity:n})})).catch((e=>{console.warn("Failed to load entity slice",e)})).finally((()=>{s(!1)})))}),[p,f,E]),{isLoading:o,historySlice:u}}},21256:(e,t,n)=>{n.d(t,{b:()=>a});var l,r=n(20414);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}!function(e){e.FAKE_NAVIGATE_PROFILE="FAKE_NAVIGATE_PROFILE",e.FAKE_FILTERED_INCOMING="FAKE_FILTERED_INCOMING",e.FAKE_FILTERED_OUTGOING="FAKE_FILTERED_OUTGOING",e.FAKE_UPDATE="FAKE_UPDATE"}(l||(l={}));const a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.forEach((function(t){i(e,t,n[t])}))}return e}({},r.I,l)},38323:(e,t,n)=>{let l;n.d(t,{M:()=>l}),function(e){e.UPDATE="UPDATE",e.MERGE="MERGE",e.UNMERGE="UNMERGE"}(l||(l={}))}}]);
1
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="33e5b96a-710b-4423-b9cf-7f1d991ec266",e._sentryDebugIdIdentifier="sentry-dbid-33e5b96a-710b-4423-b9cf-7f1d991ec266")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1670"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[7119],{15422:(e,t,n)=>{n.d(t,{Z:()=>c});var l=n(24328),r=n.n(l),i=n(79312);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},a.apply(this,arguments)}const o=e=>r().createElement("svg",a({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),r().createElement("mask",{id:"AttributesList_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},r().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),r().createElement("g",{mask:"url(#AttributesList_svg__a)"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#AttributesList_svg__b)"}),r().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#AttributesList_svg__c)"}),r().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#fff"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),r().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2v40.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),r().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),r().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#fff"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zm90 0a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),r().createElement("defs",null,r().createElement("linearGradient",{id:"AttributesList_svg__b",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),r().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"AttributesList_svg__c",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:.01}),r().createElement("stop",{offset:1})))),s=(0,n(72342).makeStyles)((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box",padding:"40px"},logo:{width:"190px",height:"190px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:400,marginTop:"24px"},text:{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"23px",textAlign:"center"},secondaryText:{color:e.palette.text.primary,fontSize:"14px",fontWeight:"normal",lineHeight:"16px",letterSpacing:"0.24px",textAlign:"center",paddingTop:"8px"}}))),c=e=>{let{IconRenderer:t=o,text:n,secondaryText:l}=e;const a=s();return r().createElement("div",{className:a.root},r().createElement(t,{className:a.logo}),r().createElement("div",{className:a.textBox},r().createElement(i.Z,{className:a.text},n),l&&r().createElement(i.Z,{className:a.secondaryText},l)))}},70675:(e,t,n)=>{n.d(t,{Z:()=>ie});var l=n(24328),r=n.n(l),i=n(2507),a=n.n(i),o=n(56961),s=n(79312),c=n(50914),u=n(79935),d=n(80653),p=n(38677),f=n(47019),m=n(79811),E=n(290),h=n(35936),y=n(98679),v=n(40435),b=n(15791),g=n(55234),x=n(71153),T=n.n(x),I=n(90590);const w=[y.KfU.WITHIN,y.KfU.AGO,y.KfU.BETWEEN],N=e=>({[y.KfU.WITHIN]:a().text("Within the last"),[y.KfU.AGO]:a().text("More than"),[y.KfU.BETWEEN]:a().text("Date range")}[e]||"");var O=n(77875),S=n(55962),C=n(27446),R=n(72342);const _=(0,R.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},intervalContainer:{display:"flex",justifyContent:"space-between"},typeInput:{width:160,marginRight:10}}),k=[null,null],M=[null,"hours"],D=e=>{let{value:t,onChange:n,className:i}=e;const o=_(),c=e=>e===y.KfU.WITHIN||e===y.KfU.AGO,u=e=>e===y.KfU.BETWEEN,d=u(null==t?void 0:t.type)?t.period:k,p=c(null==t?void 0:t.type)?t.period:M,[f,m]=(0,l.useState)(d),[E,h]=(0,l.useState)(p),v=(null==t?void 0:t.type)||y.KfU.WITHIN,b=e=>c(e)?E:u(e)?f:void 0,g=e=>{n({type:v,period:e})};return(0,S.D)((()=>{t?c(t.type)?h(t.period):u(t.type)&&m(t.period):(m(k),h(M))}),[t]),r().createElement("div",{className:T()(o.root,i),"data-reltio-id":"date-range-selector"},r().createElement(s.Z,{className:o.title,variant:"subtitle1"},a().text("Date")),r().createElement("div",{className:o.intervalContainer},r().createElement(I.Z,{label:"",className:o.typeInput,value:{value:v,label:N(v)},options:w.map((e=>({value:e,label:N(e)}))),onChange:e=>{let{value:l}=e;(null==t?void 0:t.type)!==l&&n({period:b(l),type:l})}}),c(v)?r().createElement(O.Z,{interval:E,onChange:g}):r().createElement(C.Z,{values:f,onChange:g})))};var L=n(36817),A=n(59952),P=n(38323);const U=[P.M.UPDATE,P.M.MERGE,P.M.UNMERGE];function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.forEach((function(t){H(e,t,n[t])}))}return e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j={input:e=>G({},e,{fontSize:"14px"}),menuPortal:e=>G({},e,{zIndex:1300})},F=(0,R.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},valueContainer:{overflowY:"auto",height:44},option:{fontSize:"14px",height:"32px"}}),Z=e=>{let{selectedHistoryActivityTypes:t,onChange:n,className:l,disableUnderline:i}=e;const o=F(),u=e=>{return{value:e,label:(t=e,{[P.M.UPDATE]:a().text("Update"),[P.M.MERGE]:a().text("Merge"),[P.M.UNMERGE]:a().text("Unmerge")}[t]||"")};var t},d=e=>e.map(u),p=d(U);return r().createElement("div",{className:T()(o.root,l),"data-reltio-id":"history-activity-selector"},r().createElement(s.Z,{className:o.title,variant:"subtitle1"},a().text("Activity")),r().createElement(L.Z,{value:d(t),onChange:(0,c.pipe)((0,c.defaultTo)([]),(0,c.pluck)("value"),n),options:p,TextFieldProps:{InputProps:{disableUnderline:i},classes:{root:o.dropDownInput}},components:{DropdownIndicator:A.Z},styles:j,classes:o,menuPlacement:"bottom",menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))};var B=n(7108);const z=(0,R.makeStyles)({popup:{width:500,minHeight:500,overflowY:"hidden",display:"flex",flexDirection:"column"},filterContainer:{maxHeight:"400px",borderColor:"rgba(0,0,0,0.12)"},filterItem:{"&:not(:last-child)":{marginBottom:12}},clearButton:{marginRight:"auto"},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px"},divider:{marginBottom:12}});function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.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 K=e=>{let{className:t,filter:n,onApplyFilter:i,entityType:s}=e;const u=z(),x=(0,l.useRef)(),[T,I]=(0,l.useState)(!1),[w,N]=(0,l.useState)(n),{activities:O=[],attributes:S=[],dateRange:C=null,users:R=[]}=w||{},_=(0,B.FE)(n)?"inherit":"primary";(0,l.useEffect)((()=>{T&&N(n)}),[n,T]);const k=(0,c.curry)(((e,t)=>{N((n=>$({},n,{[e]:t})))})),M=(0,l.useCallback)((()=>{I((e=>!e))}),[]),L=(0,l.useCallback)((()=>{C&&(0,y.RZp)(C)?i(w):i((0,c.dissoc)("dateRange",w)),M()}),[w,C,i,M]),A=(0,l.useCallback)((()=>{N($({},B.tO))}),[]);return r().createElement(r().Fragment,null,r().createElement(v.Z,{ref:x,color:_,icon:d.Z,size:"L",onClick:M,className:t}),r().createElement(f.ZP,{classes:{paper:u.popup},open:T,anchorEl:x.current,onClose:M,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},r().createElement(h.Z,null,a().text("Filter")),r().createElement(E.Z,{dividers:!0,className:u.filterContainer,"data-reltio-id":"history-filter-container"},r().createElement(D,{value:C,onChange:k("dateRange"),className:u.filterItem}),r().createElement(o.Z,{light:!0,className:u.divider}),r().createElement(b.Z,{selectedUsers:R,onChange:k("users"),className:u.filterItem,disableUnderline:!0}),r().createElement(o.Z,{light:!0,className:u.divider}),r().createElement(Z,{selectedHistoryActivityTypes:O,onChange:k("activities"),className:u.filterItem,disableUnderline:!0}),r().createElement(o.Z,{light:!0,className:u.divider}),r().createElement(g.Z,{selectedAttributes:S,entityType:s,onChange:k("attributes"),className:u.filterItem,title:a().text("Attribute updated"),disableUnderline:!0})),r().createElement(m.Z,null,r().createElement(p.Z,{onClick:A,className:u.clearButton},a().text("Clear all")),r().createElement(p.Z,{onClick:M},a().text("Cancel")),r().createElement(p.Z,{color:"primary",onClick:L},a().text("Apply")))))};var Y=n(50985),V=n(98538),q=n(95341),X=n(42713),J=n(79573);const Q=(0,R.makeStyles)({menuItem:{minHeight:"32px"},menuText:{fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"30px"},checkIcon:{position:"absolute",color:"rgba(0, 0, 0, 0.54)"}}),ee=(0,l.forwardRef)(((e,t)=>{let{item:n,onMenuClose:l=J.ZT}=e;const i=Q(),{text:a,selected:o,onClick:c}=n;return r().createElement(q.Z,{classes:{root:i.menuItem},onClick:e=>{l(),c(e)},ref:t},o&&r().createElement(X.Z,{className:i.checkIcon}),r().createElement(s.Z,{classes:{root:i.menuText}},a))}));ee.displayName="MenuItemRenderer";const te=ee;var ne=n(14596);const le=()=>{const e=(0,ne.ax)("setHistoryMode"),t=(0,ne.bn)(),n=[{text:a().text("Compare to Current view"),selected:t===y.Z9$.Current,onClick:()=>e(y.Z9$.Current)},{text:a().text("Compare to Previous view"),selected:t===y.Z9$.Previous,onClick:()=>e(y.Z9$.Previous)}];return r().createElement(V.Z,{MenuItemRenderer:te,buttonComponent:v.Z,buttonProps:{icon:Y.Z,size:"L"},menuId:"history-menu",menuItems:n})},re=(0,R.makeStyles)({root:{display:"flex",flex:1,alignItems:"center"},icon:{margin:4},divider:{borderColor:"rgba(0,0,0,0.12)",margin:"3px 19px"},count:{fontSize:14},filterButton:{marginRight:"-4px"}}),ie=e=>{let{total:t,entityType:n,filter:l,onApplyFilter:i}=e;const d=re();return r().createElement("div",{className:d.root},r().createElement(s.Z,{variant:"h6"},a().text("History")),!(0,c.isNil)(t)&&r().createElement(r().Fragment,null,r().createElement(o.Z,{orientation:"vertical",flexItem:!0,className:d.divider}),r().createElement(s.Z,{variant:"body1",color:"textSecondary",className:d.count},1===t?a().text("${count} contributing profile",{count:t}):a().text("${count} contributing profiles",{count:t}))),r().createElement(u.Z,null),r().createElement(K,{className:d.filterButton,entityType:n,filter:l,onApplyFilter:i}),r().createElement(le,null))}},95085:(e,t,n)=>{n.d(t,{Z:()=>s});var l=n(24328),r=n.n(l),i=n(2507),a=n.n(i),o=n(15422);const s=()=>r().createElement(o.Z,{text:a().text("History in the making"),secondaryText:a().text("When you create an event or perform an activity, it will show up here.")})},32158:(e,t,n)=>{n.d(t,{Z:()=>G});var l=n(24328),r=n.n(l),i=n(44443),a=n(2507),o=n.n(a),s=n(50914),c=n(71153),u=n.n(c),d=n(98679),p=n(38677),f=n(79312),m=n(57312),E=n(72342);const h=(0,E.makeStyles)((()=>({historyRow:{position:"relative",padding:"8px 12px 16px",cursor:"pointer"},selected:{background:"rgba(0,0,0,0.05)","&:before":{content:'""',background:"rgba(0,0,0,0.05)",width:"100%",height:"100%",position:"absolute",left:"-100%",top:0}},rowHeader:{display:"flex",position:"relative"},badge:e=>{let{color:t}=e;return{position:"absolute",width:"2px",height:"100%",left:"-9px",pointerEvents:"none",background:t,"&:before":{height:"100%",width:"3px",content:'""',left:"-3px",background:t,position:"absolute",opacity:.06}}},title:{color:"rgba(0,0,0,0.87)",fontSize:"13px",letterSpacing:0,lineHeight:"16px",fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","&.bold":{fontWeight:500}},date:{marginLeft:"auto",color:"rgba(0,0,0,0.54)",fontSize:"11px",letterSpacing:0,lineHeight:"16px",flexShrink:0},user:{color:"rgba(0,0,0,0.38)",fontSize:"12px",letterSpacing:0,lineHeight:"14px"}}))),y=e=>{let{change:t,isCurrent:n,isSelected:l,onClick:i}=e;const{uri:a,type:s,matchGroups:c,user:p,timestamp:E}=t,y=(0,d.GtP)(a),v=h({color:y});return r().createElement("div",{className:u()(v.historyRow,{[v.selected]:l}),onClick:i},r().createElement("div",{className:v.rowHeader},r().createElement("div",{className:v.badge}),r().createElement(f.Z,{className:u()(v.title,{bold:n})},n?o().text("Current view"):(0,m.Xr)(s)),!n&&r().createElement(f.Z,{className:v.date},o().date(E,"L LT"))),c&&r().createElement(f.Z,{className:v.title},o().text("Match rule:")," ",c.join(", ")),r().createElement(f.Z,{className:v.user},p))};var v=n(21256);const b=e=>e===v.b.FAKE_FILTERED_INCOMING||e===v.b.FAKE_FILTERED_OUTGOING,g=e=>{let{x:t,y:n,toX:l,toY:i,color:a,isDashed:o}=e;const s=((e,t,n,l)=>{const r=t>l,i=e<n,a=r?-6:6;return`M${e} ${t} L${i?n-12:n+12} ${t} ${i?`c 6 0 12 ${a} 12`:`c -6 0 -12 ${a} -12`} ${r?-12:12} L${n} ${l}`})(t,n,l,i);return r().createElement("path",{d:s,stroke:a,strokeWidth:2,fill:"none",strokeDasharray:o?"3,3":void 0})};function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},x.apply(this,arguments)}const T=(0,l.forwardRef)(((e,t)=>{let{x:n,y:l,color:i,isDashed:a,isCollapsed:o,showCollapseIcon:s,showLine:c}=e,u=function(e,t){if(null==e)return{};var n,l,r=function(e,t){if(null==e)return{};var n,l,r={},i=Object.keys(e);for(l=0;l<i.length;l++)n=i[l],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)n=i[l],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["x","y","color","isDashed","isCollapsed","showCollapseIcon","showLine"]);const d=s?6:3;return r().createElement("g",x({},u,{ref:t}),c&&r().createElement("rect",{id:"line",x:n-d-4,y:l-d-4,width:2*d+8,height:2,fill:i}),r().createElement("circle",{cx:n,cy:l,r:d,fill:a?"#fff":i,stroke:i,strokeDasharray:a?"1,1":void 0,strokeWidth:2}),s&&r().createElement("g",{id:"icon"},r().createElement("rect",{x:n-4,y:l-1,width:8,height:2,fill:"#fff"}),o&&r().createElement("rect",{x:n-1,y:l-4,width:2,height:8,fill:"#fff"})))}));const I=(0,n(78223).Z)(T),w=(0,l.memo)((e=>{let{graphData:t,onHistoryCircleMouseOver:n}=e;const{historyLanes:l,rows:i}=t,a=[16],{links:o,rowLines:s,circles:c}=i.reduce(((e,t,o)=>{let{uri:s,height:c,uris:u,type:p,fakeType:f,index:m,timestamp:E,label:h}=t;const y=16*l[s].index+24,x=a[o];a.push(x+c);const T=b(f),w=T?u[0]:s,N=!(null!=u&&u.some((e=>l[e])));e.circles.push(r().createElement(I,{tooltipTitle:h,tooltipPlacement:"top",onMouseOver:n?()=>n(s,E,m):void 0,key:`circle-${w}-${o}`,x:y,y:x,color:(0,d.GtP)(w),isDashed:T,isCollapsed:N,showCollapseIcon:!!u,showLine:f===v.b.FAKE_NAVIGATE_PROFILE})),e.rowLines.push(r().createElement("rect",{key:`${w}-${m}`,x:y,y:x-8,width:"100%",height:16,fill:(0,d.GtP)(w),opacity:.06}));const O=p===v.b.ENTITIES_SPLITTED;return null==u||u.forEach((t=>{const n=l[t];if(!n)return;const a=i[o].height,s=16*n.index+24,c=O?x-a:x+a;y!==s&&e.links.push(r().createElement(g,{key:`link-${t}-${m}`,x:y,y:x,toX:s,toY:c,isDashed:b(f),color:(0,d.GtP)(t)}))})),e}),{links:[],circles:[],rowLines:[]}),u=16*Object.keys(l).length+24,p=a[a.length-1]-16;return Object.entries(l).forEach((e=>{let[t,n]=e;const l=16*n.index+24;n.lifeTime.forEach(((e,s)=>{var u;let{start:p,end:f}=e;if((null===(u=i[null==f?void 0:f.index])||void 0===u?void 0:u.type)===v.b.ENTITIES_SPLITTED)return;const m=(null==p?void 0:p.type)===v.b.ENTITIES_SPLITTED?(null==p?void 0:p.index)-1:null==p?void 0:p.index,E=(null==f?void 0:f.type)===v.b.ENTITIES_MERGED_MANUALLY||(null==f?void 0:f.type)===v.b.ENTITIES_MERGED?(null==f?void 0:f.index)+1:null==f?void 0:f.index,h=a[m]||a[a.length-2],y=a[E]||16;if(h<=y)return;const b=(0,d.GtP)(t);!f&&n.index>0&&c.push(r().createElement(T,{key:`initCircle-${t}-${s}`,x:l,y,color:b,showLine:!0})),o.unshift(r().createElement("path",{key:`line-${t}-${s}`,d:`M${l} ${h} L${l} ${y}`,stroke:b,strokeWidth:2}))}))})),r().createElement("svg",{className:"chart",width:u,height:p},r().createElement("g",{id:"rowLines"},s),r().createElement("g",{id:"links"},o),r().createElement("g",{id:"circles"},c))}));var N=n(87378),O=n(14596);const S=(0,E.makeStyles)({historyTree:{display:"grid",gridTemplateColumns:"auto 1fr",overflowY:"auto"},graph:{overflowX:"auto",overflowY:"hidden"},history:{minWidth:"260px"},buttonContainer:{gridColumnStart:1,gridColumnEnd:3,padding:"8px 16px"},shadow:{boxShadow:"inset -8px 0px 5px -5px rgba(0,0,0,0.1)"}});function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.forEach((function(t){R(e,t,n[t])}))}return e}function R(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=>{let{historyData:t,isLoading:n,canLoadMore:a,onLoadMore:c,entityUri:f,historyEvent:m,findPreviousChange:E}=e;const h=S(),[v,b]=(0,l.useState)({historyLanes:{},rows:[]}),[g,x]=(0,l.useState)(!1),[T,I]=(0,l.useState)(-1),R=(0,O.ax)("setHistoryEvent"),_=(0,O.ax)("clearHistoryEvent"),k=(0,O.ax)("modeUpdated"),M=(0,O.AH)(),D=(0,O.o_)();(0,l.useEffect)((()=>{if((0,s.isNil)(m))return void I(0);const e=e=>(null==e?void 0:e.uri)===((null==m?void 0:m.overrideUri)||f)&&(null==e?void 0:e.timestamp)===(null==m?void 0:m.aStamp),n=-1!==T?t.rows[T]:null,l=t.rows.findIndex((t=>e(t)));I(e(n)?T:l)}),[t.rows,m]);const L=(0,l.useRef)(null),A=(0,l.useCallback)((e=>{if(!(0,s.isNil)(e)){var n;const l=null===(n=t.rows)||void 0===n?void 0:n.map(((t,n)=>{var l;return C({},t,{height:null===(l=e.childNodes[n])||void 0===l?void 0:l.clientHeight})}));b({historyLanes:t.historyLanes,rows:l})}}),[t]),P=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:n}=(null==L?void 0:L.current)||{};x(n<e-t)};return r().createElement("div",{className:h.historyTree},n&&r().createElement(N.Z,null),r().createElement("div",{className:u()(h.graph,{[h.shadow]:g}),onScroll:P,ref:L},r().createElement(w,{onHistoryCircleMouseOver:(e,t,n)=>{if((0,s.isNil)(v.rows[n].label)){const l={time:t,select:"crosswalks"};(0,d.HvW)(e,l).then((e=>{let{crosswalks:t}=e;const l=t?(0,s.uniqBy)((0,s.prop)("type"),t).map((e=>{const t=(0,d.s5)(M,e.type);return t?t.label:null})).filter(s.identity).join(", "):o().text("No data");b((e=>C({},e,{rows:e.rows.map((e=>e.index===n?C({},e,{label:l}):e))})))}))}},graphData:v}),r().createElement(i.Z,{handleWidth:!0,onResize:P})),r().createElement("div",{ref:A,className:h.history},t.rows.map(((e,t)=>{const n=t===T,l=0===t;return r().createElement(y,{key:`row-${t}`,change:e,isCurrent:l,isSelected:n,onClick:()=>((e,t,n,l)=>{if(D){if(!window.confirm(o().text("Are you sure you want to go in history mode? All your changes will be lost.")))return;k(d.ARY.Viewing)}if(l&&!n||!l&&n)_(),I(0);else if(!l&&!n){const n=E(e-1,t.uri||f),l=E(e,t.uri||f),r=null==n?void 0:n.timestamp,i=null==l?void 0:l.timestamp,a=(null==t?void 0:t.uri)===f?null:null==t?void 0:t.uri;R({aStamp:r,bStamp:i,overrideUri:a}),I(e)}})(t,e,n,l)})}))),a&&r().createElement("div",{className:h.buttonContainer},r().createElement(p.Z,{color:"primary",onClick:()=>c()},o().text("Show more"))))},k=(0,E.makeStyles)({root:{display:"flex",flexWrap:"wrap",padding:"10px 15px"}}),M=(0,E.makeStyles)({icon:e=>{let{color:t}=e;return{boxSizing:"border-box",borderWidth:2,borderStyle:"solid",borderColor:t,height:12,width:12,borderRadius:30,transition:"opacity 0.3s",margin:4}},active:e=>{let{color:t}=e;return{backgroundColor:t}},inactive:{backgroundColor:"white"},clickable:{cursor:"pointer"}}),D=e=>{let{value:t,isSelected:n=!0,onClick:l}=e;const i=(0,d.GtP)(t),a=M({color:i});return r().createElement("div",{className:u()(a.icon,{[a.inactive]:!n,[a.active]:n,[a.clickable]:!!l}),onClick:l})},L=e=>{let{values:t,selectedValues:n,entityUri:l,onSelectValues:i,className:a}=e;const o=k();return r().createElement("div",{className:u()(o.root,a)},r().createElement(D,{value:l}),(null==t?void 0:t.length)>0&&t.map((e=>r().createElement(D,{key:e,value:e,isSelected:null==n?void 0:n.includes(e),onClick:()=>(e=>{null!=n&&n.includes(e)?i((0,s.without)([e],n)):i([...n||[],e])})(e)}))))};function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const P=(e,t)=>e.reduce(((e,n,l)=>{let{start:r,end:i}=n;if(r){const n=t-r.timestamp;((0,s.isNil)(e.startDistance)||Math.abs(e.startDistance)>Math.abs(n)&&n>0)&&(e.startIndex=l,e.startDistance=n)}if(i){const n=t-i.timestamp;((0,s.isNil)(e.endDistance)||Math.abs(e.endDistance)>Math.abs(n)&&n<0)&&(e.endIndex=l,e.endDistance=n)}return e}),{startIndex:null,endIndex:null,startDistance:null,endDistance:null}),U=(0,E.makeStyles)({root:{display:"flex",flexDirection:"column",overflow:"hidden",position:"relative",height:"100%"},borderBottom:{borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}}),G=(0,l.memo)((e=>{let{isLoading:t,historyWithTotal:n,contributorsUris:i,entityUri:a,canLoadMore:o,onLoadMore:c,historyEvent:u}=e;const d=U(),[p,f]=(0,l.useState)(null);(0,l.useEffect)((()=>{f(i)}),[i]);const{historyData:m,findPreviousChange:E}=(e=>{let{entityUri:t,historyChanges:n,selectedUris:r}=e;return(0,l.useMemo)((()=>{const e={[t]:{index:0,lifeTime:[]}},l=[{user:"",timestamp:0,uri:t}],i=(0,s.curry)(((e,n,l)=>{const r=l.uri||t;if(e)if(Array.isArray(e)){if(l.type!==v.b.ENTITY_LOST_MERGE)return null;if(e.includes(r))return l;if(n&&l.uris)return e.some((e=>l.uris.includes(e)))?l:null}else{var i;if(r===e||n&&null!==(i=l.uris)&&void 0!==i&&i.includes(e))return l}return null})),a=(e,t,l)=>(0,s.pipe)((0,s.drop)(e+1),(0,s.find)(i(t,l)))(n),o=t=>(e[t]||r&&!r.includes(t)||(e[t]={index:Object.keys(e).length,lifeTime:[]}),e[t]),c=(e,t)=>{const n=e[e.length-1];!n||n.start&&(n.start.type!==v.b.ENTITY_CREATED||t.type!==v.b.ENTITIES_SPLITTED)?e.push({start:t,end:null}):n.start=t},u=(e,t)=>{let n=!0;if(e.length){const l=e[e.length-1];n=!((!l.start||l.start.timestamp<t.timestamp)&&(!l.end||l.end.timestamp>t.timestamp))}n&&e.push({start:null,end:null})},d=(e,t)=>{if(e.length){const n=e[e.length-1];n.start||(n.start=t)}e.push({start:null,end:t})},p=[];return null==n||n.forEach(((n,r)=>{var i;switch(n.type){case v.b.ENTITIES_SPLITTED:if(!a(r,n.uri||t,!1))return;{const e=n.uri,t=n.uris?[n.uris,e]:[e],l=a(r,t,!0);if(l&&(!e||e===l.uri))return}break;case v.b.ENTITY_LOST_MERGE:case v.b.RELATIONSHIP_CREATED:case v.b.RELATIONSHIP_REMOVED:case v.b.RELATIONSHIP_CHANGED:return}let s=!1;null===(i=n.uris)||void 0===i||i.forEach((e=>{o(e)||(s=!0)}));const f=o(n.uri||t);if(!f)return;const m=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.forEach((function(t){A(e,t,n[t])}))}return e}({},n);((t,n)=>{var r,i;switch(n.type){case v.b.ENTITY_CREATED:c(t,n);break;case v.b.ENTITIES_MERGED_ON_THE_FLY:case v.b.ENTITY_CHANGED:u(t,n);break;case v.b.ENTITY_LOST_MERGE:case v.b.ENTITY_REMOVED:d(t,n);break;case v.b.ENTITIES_SPLITTED:u(t,n),null===(r=n.uris)||void 0===r||r.forEach((t=>{const r=e[t];if(!r)return;const i=r.lifeTime.length;i?c(r.lifeTime,n):d(r.lifeTime,n),l.push({uri:t,user:n.user,type:n.type,fakeType:i?v.b.FAKE_UPDATE:v.b.FAKE_NAVIGATE_PROFILE,timestamp:n.timestamp})}));break;case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:u(t,n),null===(i=n.uris)||void 0===i||i.forEach((t=>{const l=e[t];l&&d(l.lifeTime,n)}))}})(f.lifeTime,m),s&&p.push(m),l.push(m)})),p.forEach((t=>{t.uris.forEach((r=>{e[r]||n.forEach((n=>{let{uri:i,uris:a,timestamp:o,user:c,type:u}=n;i===r&&(null==a||a.forEach((n=>{const r=e[n];if(!r)return;let i=null;switch(u){case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:i=v.b.FAKE_FILTERED_INCOMING;break;case v.b.ENTITIES_SPLITTED:i=v.b.FAKE_FILTERED_OUTGOING;break;default:return}const a={fakeType:i,uri:t.uri,uris:[n],type:u,user:c,timestamp:o},d=P(r.lifeTime,t.timestamp);i===v.b.FAKE_FILTERED_INCOMING?(0,s.isNil)(d.endIndex)||(r.lifeTime[d.endIndex].end=a):(0,s.isNil)(d.startIndex)||(r.lifeTime[d.startIndex].start=a),l.splice(l.indexOf(t),0,a)})))}))}))})),l.forEach(((e,n)=>{e.index=n,e.uri=e.uri||t})),{historyData:{historyLanes:e,rows:l},findPreviousChange:(e,t)=>(0,s.pipe)((0,s.slice)(e+1,1/0),(0,s.find)(i(t,!1)))(l)}}),[t,n,r])})({entityUri:a,historyChanges:null==n?void 0:n.changes,selectedUris:p});return r().createElement("div",{className:d.root},r().createElement(L,{values:i,selectedValues:p,onSelectValues:f,entityUri:a,className:d.borderBottom}),r().createElement(_,{historyData:m,isLoading:t,onLoadMore:c,canLoadMore:o,entityUri:a,historyEvent:u,findPreviousChange:E}))}))},7108:(e,t,n)=>{n.d(t,{tO:()=>m,FE:()=>E,k6:()=>h});var l=n(24328),r=n(98679),i=n(50914),a=n(38323),o=n(20414);const s=(0,i.chain)((0,i.cond)([[(0,i.equals)(a.M.MERGE),()=>[o.I.ENTITIES_MERGED,o.I.ENTITIES_MERGED_MANUALLY,o.I.ENTITIES_MERGED_ON_THE_FLY]],[(0,i.equals)(a.M.UNMERGE),()=>[o.I.ENTITIES_SPLITTED]],[(0,i.equals)(a.M.UPDATE),()=>[o.I.ENTITY_CHANGED]]])),c=(0,i.pipe)((0,i.defaultTo)([]),s,(0,i.concat)([o.I.ENTITY_CREATED,o.I.ENTITY_REMOVED,o.I.ENTITY_LOST_MERGE]),(0,r.NPd)((e=>`equals(type, '${e}')`))),u=(0,i.pipe)((0,i.defaultTo)({}),(0,i.reject)(r.O27),(0,i.evolve)({users:(0,r.NPd)(r.F$g),attributes:(0,r.NPd)((e=>`changes(${(0,r.HRH)(e.value)})`)),dateRange:r.lPZ}),(0,i.over)((0,i.lensProp)("activities"),c),i.values,(0,i.reject)(r.O27),(0,i.append)("not equals(user, 'collaboration-service')"),(0,i.map)(r.tM8),(0,i.join)(" and "));var d=n(19701);function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.forEach((function(t){f(e,t,n[t])}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m={activities:[a.M.MERGE,a.M.UNMERGE,a.M.UPDATE]},E=e=>(0,i.pipe)((0,i.evolve)({activities:(0,i.difference)(m.activities)}),(0,i.reject)((0,i.either)(i.isNil,i.isEmpty)),i.isEmpty)(e||{}),h=e=>{let{entity:t,enabled:n}=e;const[i,a]=(0,l.useState)(m),[o,s]=(0,l.useState)(0),c=(0,l.useMemo)((()=>u(i)),[i]),[f,E]=(0,l.useState)(null),[h,y]=(0,l.useState)(null),[v,b]=(0,l.useState)(!1),g=(0,d._)(),x=null==t?void 0:t.uri,T={max:32,order:"desc"},I=(0,r.O27)(null==i?void 0:i.attributes)||void 0;(0,l.useEffect)((()=>{x&&n&&(b(!0),g((0,r.kgP)(p({entityUri:x,historicUris:f,filter:c,showAll:I},T))).then(y).catch((e=>{console.warn("Failed to load history data",e),y(null)})).finally((()=>{b(!1)})))}),[c,I,f]),(0,l.useEffect)((()=>{x&&n&&(b(!0),g((0,r.wdF)({entityUri:x})).then((e=>{E(e)})).catch((e=>{console.warn("Failed to load history data",e),E(null)})).finally((()=>{b(!1)})),s(0))}),[x,null==t?void 0:t.updatedTime,n]);const w=(0,l.useCallback)((e=>{x&&f&&n&&(b(!0),g((0,r.kgP)(p({entityUri:x,historicUris:f,filter:c,showAll:I,offset:e},T))).then((e=>{y((t=>p({},t,{changes:[...null==t?void 0:t.changes,...e.changes]})))})).catch((e=>{console.warn("Failed to load history data",e)})).finally((()=>{b(!1)})))}),[f,c,n]),N=(0,l.useMemo)((()=>32*(o+1)<(null==h?void 0:h.total)),[h,o]),O=(0,l.useCallback)((e=>{s(0),a(e)}),[]),S=(0,l.useCallback)((()=>{O(p({},m))}),[]),C=(0,l.useCallback)((()=>{N&&(w(32*(o+1)),s(o+1))}),[w,o,N]);return{isLoading:v,canLoadMore:N,onLoadMore:C,onApplyFilter:O,onClearFilter:S,historicUris:f,historyWithTotal:h,historyFilter:i}}},69409:(e,t,n)=>{n.d(t,{C:()=>a});var l=n(24328),r=n(98679),i=n(14201);const a=e=>{let{perspectiveId:t,entity:n,historyButtonId:a}=e;const{perspectiveSettings:o}=(0,i._)(t),{active:s}=o||{},c=s===a,[u,d]=(0,l.useState)(!1),p=null==n?void 0:n.uri;(0,l.useEffect)((()=>{c||d(!1)}),[p]),(0,l.useEffect)((()=>{c&&d(!0)}),[c]);const f=p&&!(0,r.ZiX)(p)&&!(0,r.biM)(n);return{isHistoryEnabled:u&&f,isProfilePersisted:f}}},35722:(e,t,n)=>{n.d(t,{a:()=>o});var l=n(24328),r=n(98679),i=n(19701),a=n(14596);const o=e=>{let{entity:t,historyEvent:n}=e;const[o,s]=(0,l.useState)(!1),c=(0,a.ax)("setHistorySlice"),u=(0,a.cV)(),d=(0,i._)(),{aStamp:p,bStamp:f,overrideUri:m}=n||{},E=m||(null==t?void 0:t.uri);return(0,l.useEffect)((()=>{n&&E&&(s(!0),d(Promise.all([(0,r.lrH)(E,p),f&&1!==f?(0,r.lrH)(E,f):Promise.resolve(null)])).then((e=>{let[t,n]=e;c({aEntity:t,bEntity:n})})).catch((e=>{console.warn("Failed to load entity slice",e)})).finally((()=>{s(!1)})))}),[p,f,E]),{isLoading:o,historySlice:u}}},21256:(e,t,n)=>{n.d(t,{b:()=>a});var l,r=n(20414);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}!function(e){e.FAKE_NAVIGATE_PROFILE="FAKE_NAVIGATE_PROFILE",e.FAKE_FILTERED_INCOMING="FAKE_FILTERED_INCOMING",e.FAKE_FILTERED_OUTGOING="FAKE_FILTERED_OUTGOING",e.FAKE_UPDATE="FAKE_UPDATE"}(l||(l={}));const a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},l=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),l.forEach((function(t){i(e,t,n[t])}))}return e}({},r.I,l)},38323:(e,t,n)=>{let l;n.d(t,{M:()=>l}),function(e){e.UPDATE="UPDATE",e.MERGE="MERGE",e.UNMERGE="UNMERGE"}(l||(l={}))}}]);
2
2
  //# sourceMappingURL=7119.js.map