@reltio/remotes 1.4.1600 → 1.4.1602

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/1039.js +1 -1
  2. package/1146.js +1 -1
  3. package/1148.js +1 -1
  4. package/1148.js.map +1 -1
  5. package/1334.js +1 -1
  6. package/1425.js +1 -1
  7. package/1425.js.map +1 -1
  8. package/1572.js +2 -0
  9. package/1572.js.map +1 -0
  10. package/1584.js +1 -1
  11. package/1584.js.map +1 -1
  12. package/1664.js +1 -1
  13. package/1707.js +1 -1
  14. package/1790.js +1 -1
  15. package/1840.js +1 -1
  16. package/1840.js.map +1 -1
  17. package/1946.js +1 -1
  18. package/1946.js.map +1 -1
  19. package/2066.js +1 -1
  20. package/2066.js.map +1 -1
  21. package/2201.js +1 -1
  22. package/2400.js +1 -1
  23. package/2463.js +1 -1
  24. package/2463.js.map +1 -1
  25. package/2579.js +1 -1
  26. package/2641.js +1 -1
  27. package/2641.js.map +1 -1
  28. package/2775.js +1 -1
  29. package/3096.js +1 -1
  30. package/3123.js +1 -1
  31. package/3348.js +1 -1
  32. package/3358.js +1 -1
  33. package/3358.js.map +1 -1
  34. package/3383.js +1 -1
  35. package/3383.js.map +1 -1
  36. package/3424.js +1 -1
  37. package/3424.js.map +1 -1
  38. package/3463.js +1 -1
  39. package/3469.js +1 -1
  40. package/3538.js +1 -1
  41. package/3538.js.map +1 -1
  42. package/356.js +1 -1
  43. package/3603.js +1 -1
  44. package/3603.js.map +1 -1
  45. package/3875.js +1 -1
  46. package/3875.js.map +1 -1
  47. package/3879.js +1 -1
  48. package/3902.js +1 -1
  49. package/3902.js.map +1 -1
  50. package/3926.js +1 -1
  51. package/3926.js.map +1 -1
  52. package/4212.js +1 -1
  53. package/4390.js +1 -1
  54. package/4390.js.map +1 -1
  55. package/4426.js +1 -1
  56. package/4426.js.map +1 -1
  57. package/4703.js +1 -1
  58. package/4703.js.map +1 -1
  59. package/4806.js +1 -1
  60. package/4826.js +1 -1
  61. package/50.js +1 -1
  62. package/5108.js +1 -1
  63. package/5108.js.map +1 -1
  64. package/5171.js +1 -1
  65. package/5225.js +2 -0
  66. package/5225.js.map +1 -0
  67. package/527.js +1 -1
  68. package/5617.js +1 -1
  69. package/584.js +1 -1
  70. package/6020.js +1 -1
  71. package/6287.js +1 -1
  72. package/6287.js.map +1 -1
  73. package/6606.js +1 -1
  74. package/6606.js.map +1 -1
  75. package/673.js +1 -1
  76. package/673.js.map +1 -1
  77. package/6799.js +1 -1
  78. package/68.js +1 -1
  79. package/6844.js +1 -1
  80. package/6853.js +1 -1
  81. package/6860.js +1 -1
  82. package/6903.js +1 -1
  83. package/7293.js +1 -1
  84. package/735.js +1 -1
  85. package/7422.js +1 -1
  86. package/7422.js.map +1 -1
  87. package/7436.js +1 -1
  88. package/764.js +1 -1
  89. package/764.js.map +1 -1
  90. package/7829.js +1 -1
  91. package/7896.js +1 -1
  92. package/8075.js +1 -1
  93. package/820.js +1 -1
  94. package/8207.js +1 -1
  95. package/8322.js +1 -1
  96. package/8360.js +1 -1
  97. package/8360.js.map +1 -1
  98. package/8565.js +1 -1
  99. package/8741.js +1 -1
  100. package/8741.js.map +1 -1
  101. package/9016.js +1 -1
  102. package/9251.js +1 -1
  103. package/9251.js.map +1 -1
  104. package/9283.js +1 -1
  105. package/9283.js.map +1 -1
  106. package/9309.js +1 -1
  107. package/9328.js +1 -1
  108. package/9397.js +1 -1
  109. package/9397.js.map +1 -1
  110. package/9470.js +1 -1
  111. package/9622.js +1 -1
  112. package/9622.js.map +1 -1
  113. package/9719.js +1 -1
  114. package/9736.js +1 -1
  115. package/9736.js.map +1 -1
  116. package/9854.js +1 -1
  117. package/9854.js.map +1 -1
  118. package/9861.js +1 -1
  119. package/987.js +1 -1
  120. package/9960.js +1 -1
  121. package/9960.js.map +1 -1
  122. package/main.js +1 -1
  123. package/package.json +1 -1
  124. package/remoteEntry.js +1 -1
  125. package/remoteEntry.js.map +1 -1
  126. package/7056.js +0 -2
  127. package/7056.js.map +0 -1
  128. package/9383.js +0 -2
  129. package/9383.js.map +0 -1
package/3902.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]="1b58e105-c84b-45a5-85dd-79a279600a39",e._sentryDebugIdIdentifier="sentry-dbid-1b58e105-c84b-45a5-85dd-79a279600a39")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1601"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3902],{55234:(e,t,n)=>{n.d(t,{Z:()=>O});var r=n(24328),l=n.n(r),o=n(2507),i=n.n(o),a=n(71153),s=n.n(a),c=n(50914),u=n(52730),d=n(50673),p=n(6391),E=n(79312),f=n(15793),m=n(19602),h=n(59952),y=n(33117),g=n(72342);function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const T={input:e=>b({},e,{fontSize:"14px"}),menuPortal:e=>b({},e,{zIndex:1300})},I=(0,g.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"},noOptionsMessage:{fontSize:"14px"}});const O=e=>{let{entityType:t,selectedAttributes:n,className:o,onChange:a,title:g,disableUnderline:b,menuPlacement:v="bottom"}=e;const O=(0,u.useSelector)(d.ZP.selectors.getMetadata),x=I(),S=(0,r.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.reduce(((e,r)=>{if(r.hidden)return e;const l=`${n&&n+" / "}${r.label}`;e.push({label:r.label,value:r.uri,attrType:r,chipLabel:l,level:t});const o=(0,p.EUG)(O,r);return e.concat(o?S(o,t+1,l):[])}),[])}),[O]),N=(0,r.useMemo)((()=>S((null==t?void 0:t.attributes)||[])),[t,S]);return l().createElement("div",{className:s()(x.root,o)},l().createElement(E.Z,{className:x.title,variant:"subtitle1"},g||i().text("Attribute")),l().createElement(f.Z,{value:n,options:N,TextFieldProps:{InputProps:{disableUnderline:b},classes:{root:x.dropDownInput}},components:{DropdownIndicator:h.Z,MultiValue:e=>{let{data:t}=e,n=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,["data"]);return l().createElement(m.Z,n,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:n,data:r,label:o,innerProps:i}=e;return l().createElement("div",i,l().createElement(y.Z,{checked:n,level:r.level,data:r,label:o,labelInText:o,isFocused:t}))}},onChange:(0,c.pipe)((0,c.defaultTo)([]),a),styles:T,classes:x,menuPlacement:v,menuPortalTarget:document.body}))}},77875:(e,t,n)=>{n.d(t,{Z:()=>E});var r=n(24328),l=n.n(r),o=n(50914),i=n(6391),a=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 d=n(7342);const p=["minutes","hours","days","weeks","months","years"],E=e=>{let{interval:[t,n],onChange:r,onFocus:E}=e;const f=u(),m=(0,o.pipe)(c.NA,parseInt,(e=>[e,n]),r),h=(0,o.pipe)((e=>{let{value:n}=e;return[t,n]}),r);return l().createElement("div",{className:f.root},l().createElement(a.Z,{variant:"standard",type:"number",value:t||"",onChange:m,inputProps:{min:1,onFocus:E},InputProps:{classes:{root:f.input}},className:f.inputNumber}),l().createElement(s.Z,{label:"",placeholder:(0,d.Z)(n),className:f.inputUnit,value:{value:n,label:(0,d.Z)((0,i.wsP)(n))},options:p.map((e=>({value:e,label:(0,d.Z)((0,i.wsP)(e))}))),onChange:h,TextFieldProps:{inputProps:{onFocus:E},InputProps:{classes:{root:f.input}}}}))}},15793:(e,t,n)=>{n.d(t,{Z:()=>C});var r=n(24328),l=n.n(r),o=n(13980),i=n.n(o),a=n(50914),s=n(70347);const c=(0,n(4515).Z)(s.ZP);var u=n(49861),d=n(12350),p=n(95341),E=n(80852),f=n(71153),m=n.n(f),h=n(40007);function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function g(e){const{innerProps:t,innerRef:n,children:r,isFocused:o,isSelected:i,selectProps:{classes:a},label:s}=e;return l().createElement(p.Z,y({className:m()(a.option,{[a["option--selected"]]:i}),ref:n,selected:o,component:"div"},t),l().createElement(E.Z,{color:"primary",checked:i}),l().createElement(h.Z,{value:s},l().createElement("div",{className:a["option--item"]},r)))}g.propTypes={children:i().node,innerProps:i().shape({id:i().string.isRequired,key:i().string,onClick:i().func.isRequired,onMouseMove:i().func.isRequired,onMouseOver:i().func.isRequired,tabIndex:i().number.isRequired}).isRequired,innerRef:i().oneOfType([i().oneOf([null]),i().func,i().shape({current:i().any.isRequired})]),isFocused:i().bool.isRequired,isSelected:i().bool.isRequired,label:i().string,selectProps:i().shape({classes:i().shape({option:i().string})})};const b={Option:g};var v=n(72342),T=n(79573);function I(){return I=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},I.apply(this,arguments)}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){x(e,t,n[t])}))}return e}function x(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,v.makeStyles)((e=>({label:{top:6,left:16},placeholder:e=>({display:!e.placeholder||e.label?"none":void 0}),"option--selected":{fontWeight:400},clearIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)},dropdownIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)}})));let N=0;function _(e){const{label:t,creatable:n,getOptions:o,loadingIndicator:i,components:s,classes:p,styles:E,onChange:f,onInputChange:m,menuPlacement:h="auto"}=e,y=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,["label","creatable","getOptions","loadingIndicator","components","classes","styles","onChange","onInputChange","menuPlacement"]),g=n?c:o?d.Z:u.Z,[v,x]=(0,r.useState)(""),_=S((0,a.omit)(["classes"],e)),C="custom-select-"+N++,R=O({},b,s),D=(0,T.ze)(_,p),P=O({indicatorSeparator:e=>O({},e,{margin:"10px 0"}),loadingIndicator:e=>O({},e,{display:i?e.display:"none"}),loadingMessage:e=>O({},e,{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'})},E),M=t?{inputId:C,TextFieldProps:O({label:t,InputLabelProps:{htmlFor:C,shrink:!(!e.value||!e.value.length)||void 0,className:D.label}},e.TextFieldProps)}:{};return l().createElement(g,I({isMulti:!0,inputId:C,inputValue:v,onChange:function(e,t){f(e,t),"create-option"===t.action&&(x(""),m("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;m(e,{action:n}),"set-value"!==n&&x(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:D,components:R,styles:P,menuPlacement:h,loadOptions:o},M,y))}_.defaultProps={creatable:!1,cacheOptions:!0,components:{},classes:{},placeholder:"",loadingIndicator:!1,onInputChange:()=>{},onChange:()=>{}},_.propTypes={creatable:i().bool,cacheOptions:i().bool,defaultOptions:i().bool,value:i().arrayOf(i().shape({label:i().string.isRequired,value:i().any})),options:i().arrayOf(i().shape({label:i().string.isRequired,value:i().any})),onChange:i().func,onInputChange:i().func,placeholder:i().string,label:i().string,loadingIndicator:i().bool,components:i().shape({ClearIndicator:i().func,Control:i().func,DropdownIndicator:i().func,DownChevron:i().func,CrossIcon:i().func,Group:i().func,GroupHeading:i().func,IndicatorsContainer:i().func,IndicatorSeparator:i().func,Input:i().func,LoadingIndicator:i().func,Menu:i().func,MenuList:i().func,MenuPortal:i().func,LoadingMessage:i().func,NoOptionsMessage:i().func,MultiValue:i().func,MultiValueContainer:i().func,MultiValueLabel:i().func,MultiValueRemove:i().func,Option:i().func,Placeholder:i().func,SelectContainer:i().func,SingleValue:i().func,ValueContainer:i().func}),classes:i().shape({control:i().string,valueContainer:i().string,multiValue:i().string,noOptionsMessage:i().string,singleValue:i().string,placeholder:i().string,menu:i().string,clearIndicator:i().string,dropdownIndicator:i().string,option:i().string,"option--selected":i().string,label:i().string}),styles:i().shape({clearIndicator:i().func,container:i().func,control:i().func,dropdownIndicator:i().func,group:i().func,groupHeading:i().func,indicatorsContainer:i().func,indicatorSeparator:i().func,input:i().func,loadingIndicator:i().func,loadingMessage:i().func,menu:i().func,menuList:i().func,menuPortal:i().func,multiValue:i().func,multiValueLabel:i().func,multiValueRemove:i().func,noOptionsMessage:i().func,option:i().func,placeholder:i().func,singleValue:i().func,valueContainer:i().func}),TextFieldProps:i().object,getOptions:i().func,menuPlacement:i().string,menuPortalTarget:i().object,getOptionValue:i().func,isSearchable:i().bool,inputRef:i().shape({current:i().object})};const C=_},15422:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),l=n.n(r),o=n(79312);function i(){return i=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},i.apply(this,arguments)}const a=e=>l().createElement("svg",i({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),l().createElement("mask",{id:"AttributesList_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},l().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),l().createElement("g",{mask:"url(#AttributesList_svg__a)"},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#AttributesList_svg__b)"}),l().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)"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),l().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),l().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),l().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),l().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),l().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),l().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"}),l().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"}),l().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"}),l().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),l().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"}),l().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"})),l().createElement("defs",null,l().createElement("linearGradient",{id:"AttributesList_svg__b",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),l().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"AttributesList_svg__c",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:.01}),l().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=a,text:n,secondaryText:r}=e;const i=s();return l().createElement("div",{className:i.root},l().createElement(t,{className:i.logo}),l().createElement("div",{className:i.textBox},l().createElement(o.Z,{className:i.text},n),r&&l().createElement(o.Z,{className:i.secondaryText},r)))}},15791:(e,t,n)=>{n.d(t,{Z:()=>T});var r=n(24328),l=n.n(r),o=n(52730),i=n(2507),a=n.n(i),s=n(50914),c=n(71153),u=n.n(c),d=n(79312),p=n(15793),E=n(59952),f=n(6391),m=n(50673),h=n(72342);function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){g(e,t,n[t])}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b={input:e=>y({},e,{fontSize:"14px"}),loadingMessage:e=>y({},e,{fontSize:"14px"}),menuPortal:e=>y({},e,{zIndex:1300})},v=(0,h.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"}}),T=e=>{let{selectedUsers:t,onChange:n,className:i,disableUnderline:c}=e;const h=v(),y=e=>({value:e,label:e}),g=e=>e.map(y),T=(0,o.useSelector)(m.ZP.selectors.getTenant),I=(0,o.useSelector)(m.ZP.selectors.getServicesPath),O=(0,r.useRef)();return l().createElement("div",{className:u()(h.root,i)},l().createElement(d.Z,{className:h.title,variant:"subtitle1"},a().text("User")),l().createElement(p.Z,{value:g(t),onChange:(0,s.pipe)((0,s.defaultTo)([]),(0,s.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(O.current||(O.current=(0,f.kz_)({tenant:T,servicesPath:I})),O.current.then((0,s.pipe)((0,s.pluck)("username"),(e=>t=>e?t.filter((t=>f.P6Y.strings.search(t,e))):t)(e),g))),TextFieldProps:{InputProps:{disableUnderline:c},className:h.dropDownInput},components:{DropdownIndicator:E.Z},styles:b,classes:h,menuPortalTarget:document.body}))}},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:()=>d,Io:()=>p,rx:()=>E,_V:()=>f,Xr:()=>m});var r=n(6391),l=n(50914),o=n(2507),i=n.n(o),a=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,l.path)(["data","type"]),d=e=>{const{items:t,label:n}=e,[r]=t||[];return u(r)||n},p=e=>{const{items:t=[],label:n}=e,r=e=>{return t=u(e)||n,(0,l.pipe)(l.values,(0,l.includes)(t))(a.I);var t},o=(0,l.filter)(r)(t);return t.length!==o.length&&console.error("Activities not implemented:",(0,l.reject)(r)(t)),s({},e,{items:o,itemsTotal:o.length})},E=e=>(0,l.pipe)((0,l.propOr)([],"items"),(0,l.groupBy)(u),l.values,(0,l.ifElse)((e=>{let{length:t}=e;return t>1}),(0,l.map)((t=>s({},e,{items:t,itemsTotal:t.length}))),(()=>[e])))(e),f=(e,t,n,o)=>{const i=(0,r.zeJ)(n,t),a=(0,r.PFL)(i),s=(0,r.mB6)({attributePresentations:o,dataTypeDefinition:a});return(0,l.isNil)(e)?"":"string"==typeof e?i?s(e):e:Object.entries(e).flatMap((e=>{let[l,i]=e;return i.map((e=>f(e.value,(0,r.tCm)(t,l),n,o)))})).join(", ")},m=e=>({[a.I.COMMENT_ADDED]:i().text("Comment added"),[a.I.COMMENT_DELETED]:i().text("Comment deleted"),[a.I.COMMENT_UPDATED]:i().text("Comment updated"),[a.I.ENTITIES_MERGED]:i().text("Profile merged"),[a.I.ENTITIES_MERGED_MANUALLY]:i().text("Profile merged manually"),[a.I.ENTITIES_MERGED_ON_THE_FLY]:i().text("Profile merged on the fly"),[a.I.ENTITIES_SPLITTED]:i().text("Profile un-merged"),[a.I.ENTITY_CHANGED]:i().text("Profile updated"),[a.I.ENTITY_CREATED]:i().text("Profile created"),[a.I.ENTITY_LOST_MERGE]:i().text("Profile lost merge"),[a.I.ENTITY_REMOVED]:i().text("Profile removed"),[a.I.GROUP_CHANGED]:i().text("Group updated"),[a.I.GROUP_CREATED]:i().text("Group created"),[a.I.GROUP_REMOVED]:i().text("Group removed"),[a.I.MODEL_UPDATED]:i().text("Model was updated"),[a.I.NOT_MATCHES_RESET]:i().text("Not matches reset"),[a.I.NOT_MATCHES_SET]:i().text("Not matches set"),[a.I.PERIODIC_TASK_SCHEDULED]:i().text("Periodic task was scheduled"),[a.I.POTENTIAL_MATCHES_FOUND]:i().text("Potential matches found"),[a.I.POTENTIAL_MATCHES_REMOVED]:i().text("Potential matches removed"),[a.I.RELATIONSHIP_CHANGED]:i().text("Relationship updated"),[a.I.RELATIONSHIP_CREATED]:i().text("Relationship created"),[a.I.RELATIONSHIP_REMOVED]:i().text("Relationship removed"),[a.I.USER_LOGIN]:i().text("Logged in"),[a.I.USER_LOGOUT]:i().text("Logged out"),[a.I.USER_PROFILE_VIEW]:i().text("Profile viewed"),[a.I.USER_SEARCH]:i().text("Searched"),[a.I.ANALYTICS_ATTRIBUTES_CHANGED]:i().text("Analytics attribute changed"),[a.I.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE]:i().text("SFDC connector synchronization issue")}[e]||"")},27446:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),l=n.n(r),o=n(95038),i=n.n(o),a=n(2507),s=n.n(a),c=n(50914),u=n(6391),d=n(79573),p=n(53242),E=n(18960),f=n(59952),m=n(98192);const h=(0,n(72342).makeStyles)({root:{flex:1},dropdownIndicator:{transition:"transform .15s ease"},inputRoot:{fontSize:"14px",height:46},input:{padding:"0 12px 0"},dateOptionLabel:{minWidth:"100px"},paper:{minWidth:"112px"}}),y=i().localeData().longDateFormat("L"),g=e=>{let{values:t,onChange:n,onFocus:o=d.ZT}=e;const i=y,a=(0,r.useRef)(null),[g,b]=(0,r.useState)(!1),v=h(),T=(0,r.useCallback)((()=>{b((e=>!e)),o()}),[o]),I=()=>{b(!1)};return l().createElement("div",{className:v.root},l().createElement(p.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,i))).join(" — "),onClick:T,variant:"filled",ref:a,InputProps:{endAdornment:l().createElement(f.Z,{selectProps:{classes:v,menuIsOpen:g},innerProps:{}}),disableUnderline:(0,c.isNil)(t),readOnly:!0,classes:{root:v.inputRoot,input:v.input}},InputLabelProps:{shrink:!1},placeholder:s().text(`${i} — ${i}`)}),l().createElement(E.Z,{variant:"menu",open:g,autoFocus:!1,classes:{paper:v.paper},anchorEl:a.current,onClose:I,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},elevation:2,MenuListProps:{autoFocusItem:g,style:{width:"100%"}}},l().createElement(m.Z,{values:t,onCancel:I,onApply:e=>{n(e),b(!1)},type:u.oS0.TYPE_ACTIVENESS_DATE})))}},70675:(e,t,n)=>{n.d(t,{Z:()=>re});var r=n(24328),l=n.n(r),o=n(2507),i=n.n(o),a=n(56961),s=n(79312),c=n(50914),u=n(79935),d=n(80653),p=n(38677),E=n(47019),f=n(6391),m=n(40435),h=n(15791),y=n(55234),g=n(71153),b=n.n(g),v=n(90590);const T=[f.KfU.WITHIN,f.KfU.AGO,f.KfU.BETWEEN],I=e=>({[f.KfU.WITHIN]:i().text("Within the last"),[f.KfU.AGO]:i().text("More than"),[f.KfU.BETWEEN]:i().text("Date range")}[e]||"");var O=n(77875),x=n(55962),S=n(27446),N=n(72342);const _=(0,N.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},intervalContainer:{display:"flex",justifyContent:"space-between"},typeInput:{width:160,marginRight:10}}),C=[null,null],R=[null,"hours"],D=e=>{let{value:t,onChange:n,className:o}=e;const a=_(),c=e=>e===f.KfU.WITHIN||e===f.KfU.AGO,u=e=>e===f.KfU.BETWEEN,d=u(null==t?void 0:t.type)?t.period:C,p=c(null==t?void 0:t.type)?t.period:R,[E,m]=(0,r.useState)(d),[h,y]=(0,r.useState)(p),g=(null==t?void 0:t.type)||f.KfU.WITHIN,N=e=>c(e)?h:u(e)?E:void 0,D=e=>{n({type:g,period:e})};return(0,x.D)((()=>{t?c(t.type)?y(t.period):u(t.type)&&m(t.period):(m(C),y(R))}),[t]),l().createElement("div",{className:b()(a.root,o)},l().createElement(s.Z,{className:a.title,variant:"subtitle1"},i().text("Date")),l().createElement("div",{className:a.intervalContainer},l().createElement(v.Z,{label:"",className:a.typeInput,value:{value:g,label:I(g)},options:T.map((e=>({value:e,label:I(e)}))),onChange:e=>{let{value:r}=e;(null==t?void 0:t.type)!==r&&n({period:N(r),type:r})}}),c(g)?l().createElement(O.Z,{interval:h,onChange:D}):l().createElement(S.Z,{values:E,onChange:D})))};var P=n(15793),M=n(59952),w=n(38323);const A=[w.M.UPDATE,w.M.MERGE,w.M.UNMERGE];function L(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){k(e,t,n[t])}))}return e}function k(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={input:e=>L({},e,{fontSize:"14px"}),menuPortal:e=>L({},e,{zIndex:1300})},H=(0,N.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"}}),G=e=>{let{selectedHistoryActivityTypes:t,onChange:n,className:r}=e;const o=H(),a=e=>{return{value:e,label:(t=e,{[w.M.UPDATE]:i().text("Update"),[w.M.MERGE]:i().text("Merge"),[w.M.UNMERGE]:i().text("Unmerge")}[t]||"")};var t},u=e=>e.map(a),d=u(A);return l().createElement("div",{className:b()(o.root,r)},l().createElement(s.Z,{className:o.title,variant:"subtitle1"},i().text("Activity")),l().createElement(P.Z,{value:u(t),onChange:(0,c.pipe)((0,c.defaultTo)([]),(0,c.pluck)("value"),n),options:d,TextFieldProps:{classes:{root:o.dropDownInput}},components:{DropdownIndicator:M.Z},styles:U,classes:o,menuPlacement:"bottom",menuPortalTarget:document.body}))};var j=n(7108);const Z=(0,N.makeStyles)({popup:{width:500,minHeight:500,overflowY:"hidden",display:"flex",flexDirection:"column"},filterContainer:{padding:20,height:410,display:"flex",flexDirection:"column"},filterContainerScrollable:{overflowY:"auto"},filterItem:{marginTop:15},filterControls:{display:"flex",padding:"10px 12px",borderTop:"solid 1px rgba(0, 0, 0, 0.12)"},clearButton:{marginRight:"auto"},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px"}});function F(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){z(e,t,n[t])}))}return e}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Y=e=>{let{className:t,filter:n,onApplyFilter:o,entityType:a}=e;const u=Z(),g=(0,r.useRef)(),[b,v]=(0,r.useState)(!1),[T,I]=(0,r.useState)(n),{activities:O=[],attributes:x=[],dateRange:S=null,users:N=[]}=T||{},_=(0,j.FE)(n)?"inherit":"primary";(0,r.useEffect)((()=>{b&&I(n)}),[n,b]);const C=(0,c.curry)(((e,t)=>{I((n=>F({},n,{[e]:t})))})),R=(0,r.useCallback)((()=>{v((e=>!e))}),[]),P=(0,r.useCallback)((()=>{S&&(0,f.RZp)(S)?o(T):o((0,c.dissoc)("dateRange",T)),R()}),[T,S,o,R]),M=(0,r.useCallback)((()=>{I(F({},j.tO))}),[]);return l().createElement(l().Fragment,null,l().createElement(m.Z,{ref:g,color:_,icon:d.Z,size:"L",onClick:R,className:t}),l().createElement(E.ZP,{classes:{paper:u.popup},open:b,anchorEl:g.current,onClose:R,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},l().createElement("div",{className:u.filterContainer},l().createElement(s.Z,{variant:"h6"},i().text("Filter")),l().createElement("div",{className:u.filterContainerScrollable},l().createElement(D,{value:S,onChange:C("dateRange"),className:u.filterItem}),l().createElement(h.Z,{selectedUsers:N,onChange:C("users"),className:u.filterItem}),l().createElement(G,{selectedHistoryActivityTypes:O,onChange:C("activities"),className:u.filterItem}),l().createElement(y.Z,{selectedAttributes:x,entityType:a,onChange:C("attributes"),className:u.filterItem,title:i().text("Attribute updated")}))),l().createElement("div",{className:u.filterControls},l().createElement(p.Z,{onClick:M,className:u.clearButton},i().text("Clear all")),l().createElement(p.Z,{onClick:R},i().text("Cancel")),l().createElement(p.Z,{color:"primary",onClick:P},i().text("Apply")))))};var V=n(52730),B=n(50985),W=n(50673),$=n(98538),K=n(95341),q=n(42713),X=n(79573);const J=(0,N.makeStyles)({menuItem:{minHeight:"32px"},menuText:{fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"30px"},checkIcon:{position:"absolute",color:"rgba(0, 0, 0, 0.54)"}}),Q=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=X.ZT}=e;const o=J(),{text:i,selected:a,onClick:c}=n;return l().createElement(K.Z,{classes:{root:o.menuItem},onClick:e=>{r(),c(e)},ref:t},a&&l().createElement(q.Z,{className:o.checkIcon}),l().createElement(s.Z,{classes:{root:o.menuText}},i))}));Q.displayName="MenuItemRenderer";const ee=Q,te=()=>{const e=(0,V.useSelector)(W.ZP.selectors.getHistoryMode),t=(0,V.useDispatch)(),n=e=>{t(W.N5.history.actions.setHistoryMode(e))},r=[{text:i().text("Compare to Current view"),selected:e===W.Z9.Current,onClick:()=>n(W.Z9.Current)},{text:i().text("Compare to Previous view"),selected:e===W.Z9.Previous,onClick:()=>n(W.Z9.Previous)}];return l().createElement($.Z,{MenuItemRenderer:ee,buttonComponent:m.Z,buttonProps:{icon:B.Z,size:"L"},menuId:"history-menu",menuItems:r})},ne=(0,N.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"}}),re=e=>{let{total:t,entityType:n,filter:r,onApplyFilter:o}=e;const d=ne();return l().createElement("div",{className:d.root},l().createElement(s.Z,{variant:"h6"},i().text("History")),!(0,c.isNil)(t)&&l().createElement(l().Fragment,null,l().createElement(a.Z,{orientation:"vertical",flexItem:!0,className:d.divider}),l().createElement(s.Z,{variant:"body1",color:"textSecondary",className:d.count},1===t?i().text("${count} contributing profile",{count:t}):i().text("${count} contributing profiles",{count:t}))),l().createElement(u.Z,null),l().createElement(Y,{className:d.filterButton,entityType:n,filter:r,onApplyFilter:o}),l().createElement(te,null))}},95085:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),l=n.n(r),o=n(2507),i=n.n(o),a=n(15422);const s=()=>l().createElement(a.Z,{text:i().text("History in the making"),secondaryText:i().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 r=n(24328),l=n.n(r),o=n(52730),i=n(44443),a=n(2507),s=n.n(a),c=n(50914),u=n(71153),d=n.n(u),p=n(6391),E=n(50673),f=n(38677),m=n(79312),h=n(57312),y=n(72342);const g=(0,y.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"}}))),b=e=>{let{change:t,isCurrent:n,isSelected:r,onClick:o}=e;const{uri:i,type:a,matchGroups:c,user:u,timestamp:E}=t,f=(0,p.GtP)(i),y=g({color:f});return l().createElement("div",{className:d()(y.historyRow,{[y.selected]:r}),onClick:o},l().createElement("div",{className:y.rowHeader},l().createElement("div",{className:y.badge}),l().createElement(m.Z,{className:d()(y.title,{bold:n})},n?s().text("Current view"):(0,h.Xr)(a)),!n&&l().createElement(m.Z,{className:y.date},s().date(E,"L LT"))),c&&l().createElement(m.Z,{className:y.title},s().text("Match rule:")," ",c.join(", ")),l().createElement(m.Z,{className:y.user},u))};var v=n(21256);const T=e=>e===v.b.FAKE_FILTERED_INCOMING||e===v.b.FAKE_FILTERED_OUTGOING,I=e=>{let{x:t,y:n,toX:r,toY:o,color:i,isDashed:a}=e;const s=((e,t,n,r)=>{const l=t>r,o=e<n,i=l?-6:6;return`M${e} ${t} L${o?n-12:n+12} ${t} ${o?`c 6 0 12 ${i} 12`:`c -6 0 -12 ${i} -12`} ${l?-12:12} L${n} ${r}`})(t,n,r,o);return l().createElement("path",{d:s,stroke:i,strokeWidth:2,fill:"none",strokeDasharray:a?"3,3":void 0})};function O(){return O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(this,arguments)}const x=(0,r.forwardRef)(((e,t)=>{let{x:n,y:r,color:o,isDashed:i,isCollapsed:a,showCollapseIcon:s,showLine:c}=e,u=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,["x","y","color","isDashed","isCollapsed","showCollapseIcon","showLine"]);const d=s?6:3;return l().createElement("g",O({},u,{ref:t}),c&&l().createElement("rect",{id:"line",x:n-d-4,y:r-d-4,width:2*d+8,height:2,fill:o}),l().createElement("circle",{cx:n,cy:r,r:d,fill:i?"#fff":o,stroke:o,strokeDasharray:i?"1,1":void 0,strokeWidth:2}),s&&l().createElement("g",{id:"icon"},l().createElement("rect",{x:n-4,y:r-1,width:8,height:2,fill:"#fff"}),a&&l().createElement("rect",{x:n-1,y:r-4,width:2,height:8,fill:"#fff"})))}));const S=(0,n(78223).Z)(x),N=(0,r.memo)((e=>{let{graphData:t,onHistoryCircleMouseOver:n}=e;const{historyLanes:r,rows:o}=t,i=[16],{links:a,rowLines:s,circles:c}=o.reduce(((e,t,a)=>{let{uri:s,height:c,uris:u,type:d,fakeType:E,index:f,timestamp:m,label:h}=t;const y=16*r[s].index+24,g=i[a];i.push(g+c);const b=T(E),O=b?u[0]:s,x=!(null!=u&&u.some((e=>r[e])));e.circles.push(l().createElement(S,{tooltipTitle:h,tooltipPlacement:"top",onMouseOver:n?()=>n(s,m,f):void 0,key:`circle-${O}-${a}`,x:y,y:g,color:(0,p.GtP)(O),isDashed:b,isCollapsed:x,showCollapseIcon:!!u,showLine:E===v.b.FAKE_NAVIGATE_PROFILE})),e.rowLines.push(l().createElement("rect",{key:`${O}-${f}`,x:y,y:g-8,width:"100%",height:16,fill:(0,p.GtP)(O),opacity:.06}));const N=d===v.b.ENTITIES_SPLITTED;return null==u||u.forEach((t=>{const n=r[t];if(!n)return;const i=o[a].height,s=16*n.index+24,c=N?g-i:g+i;y!==s&&e.links.push(l().createElement(I,{key:`link-${t}-${f}`,x:y,y:g,toX:s,toY:c,isDashed:T(E),color:(0,p.GtP)(t)}))})),e}),{links:[],circles:[],rowLines:[]}),u=16*Object.keys(r).length+24,d=i[i.length-1]-16;return Object.entries(r).forEach((e=>{let[t,n]=e;const r=16*n.index+24;n.lifeTime.forEach(((e,s)=>{var u;let{start:d,end:E}=e;if((null===(u=o[null==E?void 0:E.index])||void 0===u?void 0:u.type)===v.b.ENTITIES_SPLITTED)return;const f=(null==d?void 0:d.type)===v.b.ENTITIES_SPLITTED?(null==d?void 0:d.index)-1:null==d?void 0:d.index,m=(null==E?void 0:E.type)===v.b.ENTITIES_MERGED_MANUALLY||(null==E?void 0:E.type)===v.b.ENTITIES_MERGED?(null==E?void 0:E.index)+1:null==E?void 0:E.index,h=i[f]||i[i.length-2],y=i[m]||16;if(h<=y)return;const g=(0,p.GtP)(t);!E&&n.index>0&&c.push(l().createElement(x,{key:`initCircle-${t}-${s}`,x:r,y,color:g,showLine:!0})),a.unshift(l().createElement("path",{key:`line-${t}-${s}`,d:`M${r} ${h} L${r} ${y}`,stroke:g,strokeWidth:2}))}))})),l().createElement("svg",{className:"chart",width:u,height:d},l().createElement("g",{id:"rowLines"},s),l().createElement("g",{id:"links"},a),l().createElement("g",{id:"circles"},c))}));var _=n(87378);const C=(0,y.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 R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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}const P=e=>{let{historyData:t,isLoading:n,canLoadMore:a,onLoadMore:u,entityUri:m,historyEvent:h,findPreviousChange:y}=e;const g=C(),v=(0,o.useDispatch)(),T=(0,o.useSelector)(E.ZP.selectors.getIsEditableMode),I=(0,o.useSelector)(E.ZP.selectors.getMetadata),[O,x]=(0,r.useState)({historyLanes:{},rows:[]}),[S,D]=(0,r.useState)(!1),[P,M]=(0,r.useState)(-1);(0,r.useEffect)((()=>{if((0,c.isNil)(h))return void M(0);const e=e=>(null==e?void 0:e.uri)===((null==h?void 0:h.overrideUri)||m)&&(null==e?void 0:e.timestamp)===(null==h?void 0:h.aStamp),n=-1!==P?t.rows[P]:null,r=t.rows.findIndex((t=>e(t)));M(e(n)?P:r)}),[t.rows,h]);const w=(0,r.useRef)(null),A=(0,r.useCallback)((e=>{if(!(0,c.isNil)(e)){var n;const r=null===(n=t.rows)||void 0===n?void 0:n.map(((t,n)=>{var r;return R({},t,{height:null===(r=e.childNodes[n])||void 0===r?void 0:r.clientHeight})}));x({historyLanes:t.historyLanes,rows:r})}}),[t]),L=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:n}=(null==w?void 0:w.current)||{};D(n<e-t)};return l().createElement("div",{className:g.historyTree},n&&l().createElement(_.Z,null),l().createElement("div",{className:d()(g.graph,{[g.shadow]:S}),onScroll:L,ref:w},l().createElement(N,{onHistoryCircleMouseOver:(e,t,n)=>{if((0,c.isNil)(O.rows[n].label)){const r={time:t,select:"crosswalks"};(0,p.HvW)(e,r).then((e=>{let{crosswalks:t}=e;const r=t?(0,c.uniqBy)((0,c.prop)("type"),t).map((e=>{const t=(0,p.s5)(I,e.type);return t?t.label:null})).filter(c.identity).join(", "):s().text("No data");x((e=>R({},e,{rows:e.rows.map((e=>e.index===n?R({},e,{label:r}):e))})))}))}},graphData:O}),l().createElement(i.Z,{handleWidth:!0,onResize:L})),l().createElement("div",{ref:A,className:g.history},t.rows.map(((e,t)=>{const n=t===P,r=0===t;return l().createElement(b,{key:`row-${t}`,change:e,isCurrent:r,isSelected:n,onClick:()=>((e,t,n,r)=>{if(T){if(!window.confirm(s().text("Are you sure you want to go in history mode? All your changes will be lost.")))return;v(E.N5.mode.actions.modeUpdated(p.ARY.Viewing))}if(r&&!n||!r&&n)v(E.N5.history.actions.clearHistoryEvent()),M(0);else if(!r&&!n){const n=y(e-1,t.uri||m),r=y(e,t.uri||m),l=null==n?void 0:n.timestamp,o=null==r?void 0:r.timestamp,i=(null==t?void 0:t.uri)===m?null:null==t?void 0:t.uri;v(E.N5.history.actions.setHistoryEvent({aStamp:l,bStamp:o,overrideUri:i})),M(e)}})(t,e,n,r)})}))),a&&l().createElement("div",{className:g.buttonContainer},l().createElement(f.Z,{color:"primary",onClick:()=>u()},s().text("Show more"))))},M=(0,y.makeStyles)({root:{display:"flex",flexWrap:"wrap",padding:"10px 15px"}}),w=(0,y.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"}}),A=e=>{let{value:t,isSelected:n=!0,onClick:r}=e;const o=(0,p.GtP)(t),i=w({color:o});return l().createElement("div",{className:d()(i.icon,{[i.inactive]:!n,[i.active]:n,[i.clickable]:!!r}),onClick:r})},L=e=>{let{values:t,selectedValues:n,entityUri:r,onSelectValues:o,className:i}=e;const a=M();return l().createElement("div",{className:d()(a.root,i)},l().createElement(A,{value:r}),(null==t?void 0:t.length)>0&&t.map((e=>l().createElement(A,{key:e,value:e,isSelected:null==n?void 0:n.includes(e),onClick:()=>(e=>{null!=n&&n.includes(e)?o((0,c.without)([e],n)):o([...n||[],e])})(e)}))))};function k(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=(e,t)=>e.reduce(((e,n,r)=>{let{start:l,end:o}=n;if(l){const n=t-l.timestamp;((0,c.isNil)(e.startDistance)||Math.abs(e.startDistance)>Math.abs(n)&&n>0)&&(e.startIndex=r,e.startDistance=n)}if(o){const n=t-o.timestamp;((0,c.isNil)(e.endDistance)||Math.abs(e.endDistance)>Math.abs(n)&&n<0)&&(e.endIndex=r,e.endDistance=n)}return e}),{startIndex:null,endIndex:null,startDistance:null,endDistance:null}),H=(0,y.makeStyles)({root:{display:"flex",flexDirection:"column",overflow:"hidden",position:"relative",height:"100%"},borderBottom:{borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}}),G=(0,r.memo)((e=>{let{isLoading:t,historyWithTotal:n,contributorsUris:o,entityUri:i,canLoadMore:a,onLoadMore:s,historyEvent:u}=e;const d=H(),[p,E]=(0,r.useState)(null);(0,r.useEffect)((()=>{E(o)}),[o]);const{historyData:f,findPreviousChange:m}=(e=>{let{entityUri:t,historyChanges:n,selectedUris:l}=e;return(0,r.useMemo)((()=>{const e={[t]:{index:0,lifeTime:[]}},r=[{user:"",timestamp:0,uri:t}],o=(0,c.curry)(((e,n,r)=>{const l=r.uri||t;if(e)if(Array.isArray(e)){if(r.type!==v.b.ENTITY_LOST_MERGE)return null;if(e.includes(l))return r;if(n&&r.uris)return e.some((e=>r.uris.includes(e)))?r:null}else{var o;if(l===e||n&&null!==(o=r.uris)&&void 0!==o&&o.includes(e))return r}return null})),i=(e,t,r)=>(0,c.pipe)((0,c.drop)(e+1),(0,c.find)(o(t,r)))(n),a=t=>(e[t]||l&&!l.includes(t)||(e[t]={index:Object.keys(e).length,lifeTime:[]}),e[t]),s=(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 r=e[e.length-1];n=!((!r.start||r.start.timestamp<t.timestamp)&&(!r.end||r.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,l)=>{var o;switch(n.type){case v.b.ENTITIES_SPLITTED:if(!i(l,n.uri||t,!1))return;{const e=n.uri,t=n.uris?[n.uris,e]:[e],r=i(l,t,!0);if(r&&(!e||e===r.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 c=!1;null===(o=n.uris)||void 0===o||o.forEach((e=>{a(e)||(c=!0)}));const E=a(n.uri||t);if(!E)return;const f=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){k(e,t,n[t])}))}return e}({},n);((t,n)=>{var l,o;switch(n.type){case v.b.ENTITY_CREATED:s(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===(l=n.uris)||void 0===l||l.forEach((t=>{const l=e[t];if(!l)return;const o=l.lifeTime.length;o?s(l.lifeTime,n):d(l.lifeTime,n),r.push({uri:t,user:n.user,type:n.type,fakeType:o?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===(o=n.uris)||void 0===o||o.forEach((t=>{const r=e[t];r&&d(r.lifeTime,n)}))}})(E.lifeTime,f),c&&p.push(f),r.push(f)})),p.forEach((t=>{t.uris.forEach((l=>{e[l]||n.forEach((n=>{let{uri:o,uris:i,timestamp:a,user:s,type:u}=n;o===l&&(null==i||i.forEach((n=>{const l=e[n];if(!l)return;let o=null;switch(u){case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:o=v.b.FAKE_FILTERED_INCOMING;break;case v.b.ENTITIES_SPLITTED:o=v.b.FAKE_FILTERED_OUTGOING;break;default:return}const i={fakeType:o,uri:t.uri,uris:[n],type:u,user:s,timestamp:a},d=U(l.lifeTime,t.timestamp);o===v.b.FAKE_FILTERED_INCOMING?(0,c.isNil)(d.endIndex)||(l.lifeTime[d.endIndex].end=i):(0,c.isNil)(d.startIndex)||(l.lifeTime[d.startIndex].start=i),r.splice(r.indexOf(t),0,i)})))}))}))})),r.forEach(((e,n)=>{e.index=n,e.uri=e.uri||t})),{historyData:{historyLanes:e,rows:r},findPreviousChange:(e,t)=>(0,c.pipe)((0,c.slice)(e+1,1/0),(0,c.find)(o(t,!1)))(r)}}),[t,n,l])})({entityUri:i,historyChanges:null==n?void 0:n.changes,selectedUris:p});return l().createElement("div",{className:d.root},l().createElement(L,{values:o,selectedValues:p,onSelectValues:E,entityUri:i,className:d.borderBottom}),l().createElement(P,{historyData:f,isLoading:t,onLoadMore:s,canLoadMore:a,entityUri:i,historyEvent:u,findPreviousChange:m}))}))},7108:(e,t,n)=>{n.d(t,{tO:()=>f,FE:()=>m,k6:()=>h});var r=n(24328),l=n(6391),o=n(50914),i=n(38323),a=n(20414);const s=(0,o.chain)((0,o.cond)([[(0,o.equals)(i.M.MERGE),()=>[a.I.ENTITIES_MERGED,a.I.ENTITIES_MERGED_MANUALLY,a.I.ENTITIES_MERGED_ON_THE_FLY]],[(0,o.equals)(i.M.UNMERGE),()=>[a.I.ENTITIES_SPLITTED]],[(0,o.equals)(i.M.UPDATE),()=>[a.I.ENTITY_CHANGED]]])),c=(0,o.pipe)((0,o.defaultTo)([]),s,(0,o.concat)([a.I.ENTITY_CREATED,a.I.ENTITY_REMOVED,a.I.ENTITY_LOST_MERGE]),(0,l.NPd)((e=>`equals(type, '${e}')`))),u=(0,o.pipe)((0,o.defaultTo)({}),(0,o.reject)(l.O27),(0,o.evolve)({users:(0,l.NPd)(l.F$g),attributes:(0,l.NPd)((e=>`changes(${(0,l.HRH)(e.value)})`)),dateRange:l.lPZ}),(0,o.over)((0,o.lensProp)("activities"),c),o.values,(0,o.reject)(l.O27),(0,o.append)("not equals(user, 'collaboration-service')"),(0,o.map)(l.tM8),(0,o.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]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){E(e,t,n[t])}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f={activities:[i.M.MERGE,i.M.UNMERGE,i.M.UPDATE]},m=e=>(0,o.pipe)((0,o.evolve)({activities:(0,o.difference)(f.activities)}),(0,o.reject)((0,o.either)(o.isNil,o.isEmpty)),o.isEmpty)(e||{}),h=e=>{let{entity:t,enabled:n}=e;const[o,i]=(0,r.useState)(f),[a,s]=(0,r.useState)(0),c=(0,r.useMemo)((()=>u(o)),[o]),[E,m]=(0,r.useState)(null),[h,y]=(0,r.useState)(null),[g,b]=(0,r.useState)(!1),v=(0,d._)(),T=null==t?void 0:t.uri,I={max:32,order:"desc"},O=(0,l.O27)(null==o?void 0:o.attributes)||void 0;(0,r.useEffect)((()=>{T&&n&&(b(!0),v((0,l.kgP)(p({entityUri:T,historicUris:E,filter:c,showAll:O},I))).then(y).catch((e=>{console.warn("Failed to load history data",e),y(null)})).finally((()=>{b(!1)})))}),[c,O,E]),(0,r.useEffect)((()=>{T&&n&&(b(!0),v((0,l.wdF)({entityUri:T})).then((e=>{m(e)})).catch((e=>{console.warn("Failed to load history data",e),m(null)})).finally((()=>{b(!1)})),s(0))}),[T,null==t?void 0:t.updatedTime,n]);const x=(0,r.useCallback)((e=>{T&&E&&n&&(b(!0),v((0,l.kgP)(p({entityUri:T,historicUris:E,filter:c,showAll:O,offset:e},I))).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)})))}),[E,c,n]),S=(0,r.useMemo)((()=>32*(a+1)<(null==h?void 0:h.total)),[h,a]),N=(0,r.useCallback)((e=>{s(0),i(e)}),[]),_=(0,r.useCallback)((()=>{N(p({},f))}),[]),C=(0,r.useCallback)((()=>{S&&(x(32*(a+1)),s(a+1))}),[x,a,S]);return{isLoading:g,canLoadMore:S,onLoadMore:C,onApplyFilter:N,onClearFilter:_,historicUris:E,historyWithTotal:h,historyFilter:o}}},69409:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(24328),l=n(6391),o=n(14201);const i=e=>{let{perspectiveId:t,entity:n,historyButtonId:i}=e;const{perspectiveSettings:a}=(0,o._)(t),{active:s}=a||{},c=s===i,[u,d]=(0,r.useState)(!1),p=null==n?void 0:n.uri;(0,r.useEffect)((()=>{c||d(!1)}),[p]),(0,r.useEffect)((()=>{c&&d(!0)}),[c]);const E=p&&!(0,l.ZiX)(p)&&!(0,l.biM)(n);return{isHistoryEnabled:u&&E,isProfilePersisted:E}}},35722:(e,t,n)=>{n.d(t,{a:()=>s});var r=n(24328),l=n(52730),o=n(50673),i=n(6391),a=n(19701);const s=e=>{let{entity:t,historyEvent:n}=e;const[s,c]=(0,r.useState)(!1),u=(0,l.useSelector)(o.ZP.selectors.getHistorySlice),d=(0,l.useDispatch)(),p=(0,a._)(),{aStamp:E,bStamp:f,overrideUri:m}=n||{},h=m||(null==t?void 0:t.uri);return(0,r.useEffect)((()=>{n&&h&&(c(!0),p(Promise.all([(0,i.lrH)(h,E),f&&1!==f?(0,i.lrH)(h,f):Promise.resolve(null)])).then((e=>{let[t,n]=e;d(o.N5.history.actions.setHistorySlice({aEntity:t,bEntity:n}))})).catch((e=>{console.warn("Failed to load entity slice",e)})).finally((()=>{c(!1)})))}),[E,f,h]),{isLoading:s,historySlice:u}}},21256:(e,t,n)=>{n.d(t,{b:()=>i});var r,l=n(20414);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}!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"}(r||(r={}));const i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}({},l.I,r)},38323:(e,t,n)=>{let r;n.d(t,{M:()=>r}),function(e){e.UPDATE="UPDATE",e.MERGE="MERGE",e.UNMERGE="UNMERGE"}(r||(r={}))},18408:(e,t,n)=>{n.d(t,{D:()=>E});var r=n(24328),l=n.n(r),o=n(2507),i=n.n(o),a=n(50914),s=n(83820),c=n(38677),u=n(10050),d=n(79573);const p=3e5,E=function(){let{anchorOrigin:e={vertical:"bottom",horizontal:"center"},showDismiss:t,dismissTitle:n=i().text("Dismiss"),autoHideDuration:o=p,onDismissClick:E=d.ZT}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[f,m]=(0,r.useState)(!1),[h,y]=(0,r.useState)(""),g=(0,r.useCallback)((()=>{m(!1),y("")}),[]),b=(0,r.useCallback)(((e,t)=>{"clickaway"!==t&&g()}),[g]),v=(0,r.useCallback)((e=>{m(!0),y(e)}),[]),T=(0,r.useCallback)((()=>l().createElement(s.Z,{container:document.body},l().createElement(u.Z,{open:f,anchorOrigin:e,autoHideDuration:o,onClose:b,message:h,style:{maxWidth:500},action:t?l().createElement(c.Z,{color:"primary",onClick:(0,a.pipe)(g,E)},n):void 0}))),[f,g,h]);return{SnackbarRenderer:T,showSnackbarMessage:v}}}}]);
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]="b8680ca1-e317-4b4b-9b98-c1aa5038e832",e._sentryDebugIdIdentifier="sentry-dbid-b8680ca1-e317-4b4b-9b98-c1aa5038e832")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1603"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3902],{55234:(e,t,n)=>{n.d(t,{Z:()=>O});var r=n(24328),l=n.n(r),o=n(2507),i=n.n(o),a=n(71153),s=n.n(a),c=n(50914),u=n(52730),d=n(50673),p=n(28045),E=n(79312),f=n(15793),m=n(19602),h=n(59952),y=n(33117),b=n(72342);function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const T={input:e=>g({},e,{fontSize:"14px"}),menuPortal:e=>g({},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 O=e=>{let{entityType:t,selectedAttributes:n,className:o,onChange:a,title:b,disableUnderline:g,menuPlacement:v="bottom"}=e;const O=(0,u.useSelector)(d.ZP.selectors.getMetadata),x=I(),S=(0,r.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.reduce(((e,r)=>{if(r.hidden)return e;const l=`${n&&n+" / "}${r.label}`;e.push({label:r.label,value:r.uri,attrType:r,chipLabel:l,level:t});const o=(0,p.EUG)(O,r);return e.concat(o?S(o,t+1,l):[])}),[])}),[O]),N=(0,r.useMemo)((()=>S((null==t?void 0:t.attributes)||[])),[t,S]);return l().createElement("div",{className:s()(x.root,o)},l().createElement(E.Z,{className:x.title,variant:"subtitle1"},b||i().text("Attribute")),l().createElement(f.Z,{value:n,options:N,TextFieldProps:{InputProps:{disableUnderline:g},classes:{root:x.dropDownInput}},components:{DropdownIndicator:h.Z,MultiValue:e=>{let{data:t}=e,n=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,["data"]);return l().createElement(m.Z,n,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:n,data:r,label:o,innerProps:i}=e;return l().createElement("div",i,l().createElement(y.Z,{checked:n,level:r.level,data:r,label:o,labelInText:o,isFocused:t}))}},onChange:(0,c.pipe)((0,c.defaultTo)([]),a),styles:T,classes:x,menuPlacement:v,menuPortalTarget:document.body}))}},77875:(e,t,n)=>{n.d(t,{Z:()=>E});var r=n(24328),l=n.n(r),o=n(50914),i=n(28045),a=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 d=n(7342);const p=["minutes","hours","days","weeks","months","years"],E=e=>{let{interval:[t,n],onChange:r,onFocus:E}=e;const f=u(),m=(0,o.pipe)(c.NA,parseInt,(e=>[e,n]),r),h=(0,o.pipe)((e=>{let{value:n}=e;return[t,n]}),r);return l().createElement("div",{className:f.root},l().createElement(a.Z,{variant:"standard",type:"number",value:t||"",onChange:m,inputProps:{min:1,onFocus:E},InputProps:{classes:{root:f.input}},className:f.inputNumber}),l().createElement(s.Z,{label:"",placeholder:(0,d.Z)(n),className:f.inputUnit,value:{value:n,label:(0,d.Z)((0,i.wsP)(n))},options:p.map((e=>({value:e,label:(0,d.Z)((0,i.wsP)(e))}))),onChange:h,TextFieldProps:{inputProps:{onFocus:E},InputProps:{classes:{root:f.input}}}}))}},15793:(e,t,n)=>{n.d(t,{Z:()=>C});var r=n(24328),l=n.n(r),o=n(13980),i=n.n(o),a=n(50914),s=n(70347);const c=(0,n(4515).Z)(s.ZP);var u=n(49861),d=n(12350),p=n(95341),E=n(80852),f=n(71153),m=n.n(f),h=n(40007);function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function b(e){const{innerProps:t,innerRef:n,children:r,isFocused:o,isSelected:i,selectProps:{classes:a},label:s}=e;return l().createElement(p.Z,y({className:m()(a.option,{[a["option--selected"]]:i}),ref:n,selected:o,component:"div"},t),l().createElement(E.Z,{color:"primary",checked:i}),l().createElement(h.Z,{value:s},l().createElement("div",{className:a["option--item"]},r)))}b.propTypes={children:i().node,innerProps:i().shape({id:i().string.isRequired,key:i().string,onClick:i().func.isRequired,onMouseMove:i().func.isRequired,onMouseOver:i().func.isRequired,tabIndex:i().number.isRequired}).isRequired,innerRef:i().oneOfType([i().oneOf([null]),i().func,i().shape({current:i().any.isRequired})]),isFocused:i().bool.isRequired,isSelected:i().bool.isRequired,label:i().string,selectProps:i().shape({classes:i().shape({option:i().string})})};const g={Option:b};var v=n(72342),T=n(79573);function I(){return I=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},I.apply(this,arguments)}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){x(e,t,n[t])}))}return e}function x(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,v.makeStyles)((e=>({label:{top:6,left:16},placeholder:e=>({display:!e.placeholder||e.label?"none":void 0}),"option--selected":{fontWeight:400},clearIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)},dropdownIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)}})));let N=0;function _(e){const{label:t,creatable:n,getOptions:o,loadingIndicator:i,components:s,classes:p,styles:E,onChange:f,onInputChange:m,menuPlacement:h="auto"}=e,y=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,["label","creatable","getOptions","loadingIndicator","components","classes","styles","onChange","onInputChange","menuPlacement"]),b=n?c:o?d.Z:u.Z,[v,x]=(0,r.useState)(""),_=S((0,a.omit)(["classes"],e)),C="custom-select-"+N++,R=O({},g,s),D=(0,T.ze)(_,p),P=O({indicatorSeparator:e=>O({},e,{margin:"10px 0"}),loadingIndicator:e=>O({},e,{display:i?e.display:"none"}),loadingMessage:e=>O({},e,{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'})},E),M=t?{inputId:C,TextFieldProps:O({label:t,InputLabelProps:{htmlFor:C,shrink:!(!e.value||!e.value.length)||void 0,className:D.label}},e.TextFieldProps)}:{};return l().createElement(b,I({isMulti:!0,inputId:C,inputValue:v,onChange:function(e,t){f(e,t),"create-option"===t.action&&(x(""),m("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;m(e,{action:n}),"set-value"!==n&&x(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:D,components:R,styles:P,menuPlacement:h,loadOptions:o},M,y))}_.defaultProps={creatable:!1,cacheOptions:!0,components:{},classes:{},placeholder:"",loadingIndicator:!1,onInputChange:()=>{},onChange:()=>{}},_.propTypes={creatable:i().bool,cacheOptions:i().bool,defaultOptions:i().bool,value:i().arrayOf(i().shape({label:i().string.isRequired,value:i().any})),options:i().arrayOf(i().shape({label:i().string.isRequired,value:i().any})),onChange:i().func,onInputChange:i().func,placeholder:i().string,label:i().string,loadingIndicator:i().bool,components:i().shape({ClearIndicator:i().func,Control:i().func,DropdownIndicator:i().func,DownChevron:i().func,CrossIcon:i().func,Group:i().func,GroupHeading:i().func,IndicatorsContainer:i().func,IndicatorSeparator:i().func,Input:i().func,LoadingIndicator:i().func,Menu:i().func,MenuList:i().func,MenuPortal:i().func,LoadingMessage:i().func,NoOptionsMessage:i().func,MultiValue:i().func,MultiValueContainer:i().func,MultiValueLabel:i().func,MultiValueRemove:i().func,Option:i().func,Placeholder:i().func,SelectContainer:i().func,SingleValue:i().func,ValueContainer:i().func}),classes:i().shape({control:i().string,valueContainer:i().string,multiValue:i().string,noOptionsMessage:i().string,singleValue:i().string,placeholder:i().string,menu:i().string,clearIndicator:i().string,dropdownIndicator:i().string,option:i().string,"option--selected":i().string,label:i().string}),styles:i().shape({clearIndicator:i().func,container:i().func,control:i().func,dropdownIndicator:i().func,group:i().func,groupHeading:i().func,indicatorsContainer:i().func,indicatorSeparator:i().func,input:i().func,loadingIndicator:i().func,loadingMessage:i().func,menu:i().func,menuList:i().func,menuPortal:i().func,multiValue:i().func,multiValueLabel:i().func,multiValueRemove:i().func,noOptionsMessage:i().func,option:i().func,placeholder:i().func,singleValue:i().func,valueContainer:i().func}),TextFieldProps:i().object,getOptions:i().func,menuPlacement:i().string,menuPortalTarget:i().object,getOptionValue:i().func,isSearchable:i().bool,inputRef:i().shape({current:i().object})};const C=_},15422:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),l=n.n(r),o=n(79312);function i(){return i=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},i.apply(this,arguments)}const a=e=>l().createElement("svg",i({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),l().createElement("mask",{id:"AttributesList_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},l().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),l().createElement("g",{mask:"url(#AttributesList_svg__a)"},l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#AttributesList_svg__b)"}),l().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)"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),l().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),l().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),l().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),l().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),l().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),l().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"}),l().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"}),l().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"}),l().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),l().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"}),l().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"})),l().createElement("defs",null,l().createElement("linearGradient",{id:"AttributesList_svg__b",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),l().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),l().createElement("linearGradient",{id:"AttributesList_svg__c",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},l().createElement("stop",{stopOpacity:.01}),l().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=a,text:n,secondaryText:r}=e;const i=s();return l().createElement("div",{className:i.root},l().createElement(t,{className:i.logo}),l().createElement("div",{className:i.textBox},l().createElement(o.Z,{className:i.text},n),r&&l().createElement(o.Z,{className:i.secondaryText},r)))}},15791:(e,t,n)=>{n.d(t,{Z:()=>T});var r=n(24328),l=n.n(r),o=n(52730),i=n(2507),a=n.n(i),s=n(50914),c=n(71153),u=n.n(c),d=n(79312),p=n(15793),E=n(59952),f=n(28045),m=n(50673),h=n(72342);function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){b(e,t,n[t])}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g={input:e=>y({},e,{fontSize:"14px"}),loadingMessage:e=>y({},e,{fontSize:"14px"}),menuPortal:e=>y({},e,{zIndex:1300})},v=(0,h.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"}}),T=e=>{let{selectedUsers:t,onChange:n,className:i,disableUnderline:c}=e;const h=v(),y=e=>({value:e,label:e}),b=e=>e.map(y),T=(0,o.useSelector)(m.ZP.selectors.getTenant),I=(0,o.useSelector)(m.ZP.selectors.getServicesPath),O=(0,r.useRef)();return l().createElement("div",{className:u()(h.root,i)},l().createElement(d.Z,{className:h.title,variant:"subtitle1"},a().text("User")),l().createElement(p.Z,{value:b(t),onChange:(0,s.pipe)((0,s.defaultTo)([]),(0,s.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(O.current||(O.current=(0,f.kz_)({tenant:T,servicesPath:I})),O.current.then((0,s.pipe)((0,s.pluck)("username"),(e=>t=>e?t.filter((t=>f.P6Y.strings.search(t,e))):t)(e),b))),TextFieldProps:{InputProps:{disableUnderline:c},className:h.dropDownInput},components:{DropdownIndicator:E.Z},styles:g,classes:h,menuPortalTarget:document.body}))}},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:()=>d,Io:()=>p,rx:()=>E,_V:()=>f,Xr:()=>m});var r=n(28045),l=n(50914),o=n(2507),i=n.n(o),a=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,l.path)(["data","type"]),d=e=>{const{items:t,label:n}=e,[r]=t||[];return u(r)||n},p=e=>{const{items:t=[],label:n}=e,r=e=>{return t=u(e)||n,(0,l.pipe)(l.values,(0,l.includes)(t))(a.I);var t},o=(0,l.filter)(r)(t);return t.length!==o.length&&console.error("Activities not implemented:",(0,l.reject)(r)(t)),s({},e,{items:o,itemsTotal:o.length})},E=e=>(0,l.pipe)((0,l.propOr)([],"items"),(0,l.groupBy)(u),l.values,(0,l.ifElse)((e=>{let{length:t}=e;return t>1}),(0,l.map)((t=>s({},e,{items:t,itemsTotal:t.length}))),(()=>[e])))(e),f=(e,t,n,o)=>{const i=(0,r.zeJ)(n,t),a=(0,r.PFL)(i),s=(0,r.mB6)({attributePresentations:o,dataTypeDefinition:a});return(0,l.isNil)(e)?"":"string"==typeof e?i?s(e):e:Object.entries(e).flatMap((e=>{let[l,i]=e;return i.map((e=>f(e.value,(0,r.tCm)(t,l),n,o)))})).join(", ")},m=e=>({[a.I.COMMENT_ADDED]:i().text("Comment added"),[a.I.COMMENT_DELETED]:i().text("Comment deleted"),[a.I.COMMENT_UPDATED]:i().text("Comment updated"),[a.I.ENTITIES_MERGED]:i().text("Profile merged"),[a.I.ENTITIES_MERGED_MANUALLY]:i().text("Profile merged manually"),[a.I.ENTITIES_MERGED_ON_THE_FLY]:i().text("Profile merged on the fly"),[a.I.ENTITIES_SPLITTED]:i().text("Profile un-merged"),[a.I.ENTITY_CHANGED]:i().text("Profile updated"),[a.I.ENTITY_CREATED]:i().text("Profile created"),[a.I.ENTITY_LOST_MERGE]:i().text("Profile lost merge"),[a.I.ENTITY_REMOVED]:i().text("Profile removed"),[a.I.GROUP_CHANGED]:i().text("Group updated"),[a.I.GROUP_CREATED]:i().text("Group created"),[a.I.GROUP_REMOVED]:i().text("Group removed"),[a.I.MODEL_UPDATED]:i().text("Model was updated"),[a.I.NOT_MATCHES_RESET]:i().text("Not matches reset"),[a.I.NOT_MATCHES_SET]:i().text("Not matches set"),[a.I.PERIODIC_TASK_SCHEDULED]:i().text("Periodic task was scheduled"),[a.I.POTENTIAL_MATCHES_FOUND]:i().text("Potential matches found"),[a.I.POTENTIAL_MATCHES_REMOVED]:i().text("Potential matches removed"),[a.I.RELATIONSHIP_CHANGED]:i().text("Relationship updated"),[a.I.RELATIONSHIP_CREATED]:i().text("Relationship created"),[a.I.RELATIONSHIP_REMOVED]:i().text("Relationship removed"),[a.I.USER_LOGIN]:i().text("Logged in"),[a.I.USER_LOGOUT]:i().text("Logged out"),[a.I.USER_PROFILE_VIEW]:i().text("Profile viewed"),[a.I.USER_SEARCH]:i().text("Searched"),[a.I.ANALYTICS_ATTRIBUTES_CHANGED]:i().text("Analytics attribute changed"),[a.I.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE]:i().text("SFDC connector synchronization issue")}[e]||"")},27446:(e,t,n)=>{n.d(t,{Z:()=>b});var r=n(24328),l=n.n(r),o=n(95038),i=n.n(o),a=n(2507),s=n.n(a),c=n(50914),u=n(28045),d=n(79573),p=n(53242),E=n(18960),f=n(59952),m=n(98192);const h=(0,n(72342).makeStyles)({root:{flex:1},dropdownIndicator:{transition:"transform .15s ease"},inputRoot:{fontSize:"14px",height:46},input:{padding:"0 12px 0"},dateOptionLabel:{minWidth:"100px"},paper:{minWidth:"112px"}}),y=i().localeData().longDateFormat("L"),b=e=>{let{values:t,onChange:n,onFocus:o=d.ZT}=e;const i=y,a=(0,r.useRef)(null),[b,g]=(0,r.useState)(!1),v=h(),T=(0,r.useCallback)((()=>{g((e=>!e)),o()}),[o]),I=()=>{g(!1)};return l().createElement("div",{className:v.root},l().createElement(p.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,i))).join(" — "),onClick:T,variant:"filled",ref:a,InputProps:{endAdornment:l().createElement(f.Z,{selectProps:{classes:v,menuIsOpen:b},innerProps:{}}),disableUnderline:(0,c.isNil)(t),readOnly:!0,classes:{root:v.inputRoot,input:v.input}},InputLabelProps:{shrink:!1},placeholder:s().text(`${i} — ${i}`)}),l().createElement(E.Z,{variant:"menu",open:b,autoFocus:!1,classes:{paper:v.paper},anchorEl:a.current,onClose:I,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},elevation:2,MenuListProps:{autoFocusItem:b,style:{width:"100%"}}},l().createElement(m.Z,{values:t,onCancel:I,onApply:e=>{n(e),g(!1)},type:u.oS0.TYPE_ACTIVENESS_DATE})))}},70675:(e,t,n)=>{n.d(t,{Z:()=>re});var r=n(24328),l=n.n(r),o=n(2507),i=n.n(o),a=n(56961),s=n(79312),c=n(50914),u=n(79935),d=n(80653),p=n(38677),E=n(47019),f=n(28045),m=n(40435),h=n(15791),y=n(55234),b=n(71153),g=n.n(b),v=n(90590);const T=[f.KfU.WITHIN,f.KfU.AGO,f.KfU.BETWEEN],I=e=>({[f.KfU.WITHIN]:i().text("Within the last"),[f.KfU.AGO]:i().text("More than"),[f.KfU.BETWEEN]:i().text("Date range")}[e]||"");var O=n(77875),x=n(55962),S=n(27446),N=n(72342);const _=(0,N.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},intervalContainer:{display:"flex",justifyContent:"space-between"},typeInput:{width:160,marginRight:10}}),C=[null,null],R=[null,"hours"],D=e=>{let{value:t,onChange:n,className:o}=e;const a=_(),c=e=>e===f.KfU.WITHIN||e===f.KfU.AGO,u=e=>e===f.KfU.BETWEEN,d=u(null==t?void 0:t.type)?t.period:C,p=c(null==t?void 0:t.type)?t.period:R,[E,m]=(0,r.useState)(d),[h,y]=(0,r.useState)(p),b=(null==t?void 0:t.type)||f.KfU.WITHIN,N=e=>c(e)?h:u(e)?E:void 0,D=e=>{n({type:b,period:e})};return(0,x.D)((()=>{t?c(t.type)?y(t.period):u(t.type)&&m(t.period):(m(C),y(R))}),[t]),l().createElement("div",{className:g()(a.root,o)},l().createElement(s.Z,{className:a.title,variant:"subtitle1"},i().text("Date")),l().createElement("div",{className:a.intervalContainer},l().createElement(v.Z,{label:"",className:a.typeInput,value:{value:b,label:I(b)},options:T.map((e=>({value:e,label:I(e)}))),onChange:e=>{let{value:r}=e;(null==t?void 0:t.type)!==r&&n({period:N(r),type:r})}}),c(b)?l().createElement(O.Z,{interval:h,onChange:D}):l().createElement(S.Z,{values:E,onChange:D})))};var P=n(15793),M=n(59952),w=n(38323);const A=[w.M.UPDATE,w.M.MERGE,w.M.UNMERGE];function L(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){k(e,t,n[t])}))}return e}function k(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={input:e=>L({},e,{fontSize:"14px"}),menuPortal:e=>L({},e,{zIndex:1300})},H=(0,N.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"}}),G=e=>{let{selectedHistoryActivityTypes:t,onChange:n,className:r}=e;const o=H(),a=e=>{return{value:e,label:(t=e,{[w.M.UPDATE]:i().text("Update"),[w.M.MERGE]:i().text("Merge"),[w.M.UNMERGE]:i().text("Unmerge")}[t]||"")};var t},u=e=>e.map(a),d=u(A);return l().createElement("div",{className:g()(o.root,r)},l().createElement(s.Z,{className:o.title,variant:"subtitle1"},i().text("Activity")),l().createElement(P.Z,{value:u(t),onChange:(0,c.pipe)((0,c.defaultTo)([]),(0,c.pluck)("value"),n),options:d,TextFieldProps:{classes:{root:o.dropDownInput}},components:{DropdownIndicator:M.Z},styles:U,classes:o,menuPlacement:"bottom",menuPortalTarget:document.body}))};var j=n(7108);const Z=(0,N.makeStyles)({popup:{width:500,minHeight:500,overflowY:"hidden",display:"flex",flexDirection:"column"},filterContainer:{padding:20,height:410,display:"flex",flexDirection:"column"},filterContainerScrollable:{overflowY:"auto"},filterItem:{marginTop:15},filterControls:{display:"flex",padding:"10px 12px",borderTop:"solid 1px rgba(0, 0, 0, 0.12)"},clearButton:{marginRight:"auto"},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px"}});function F(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){z(e,t,n[t])}))}return e}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Y=e=>{let{className:t,filter:n,onApplyFilter:o,entityType:a}=e;const u=Z(),b=(0,r.useRef)(),[g,v]=(0,r.useState)(!1),[T,I]=(0,r.useState)(n),{activities:O=[],attributes:x=[],dateRange:S=null,users:N=[]}=T||{},_=(0,j.FE)(n)?"inherit":"primary";(0,r.useEffect)((()=>{g&&I(n)}),[n,g]);const C=(0,c.curry)(((e,t)=>{I((n=>F({},n,{[e]:t})))})),R=(0,r.useCallback)((()=>{v((e=>!e))}),[]),P=(0,r.useCallback)((()=>{S&&(0,f.RZp)(S)?o(T):o((0,c.dissoc)("dateRange",T)),R()}),[T,S,o,R]),M=(0,r.useCallback)((()=>{I(F({},j.tO))}),[]);return l().createElement(l().Fragment,null,l().createElement(m.Z,{ref:b,color:_,icon:d.Z,size:"L",onClick:R,className:t}),l().createElement(E.ZP,{classes:{paper:u.popup},open:g,anchorEl:b.current,onClose:R,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},l().createElement("div",{className:u.filterContainer},l().createElement(s.Z,{variant:"h6"},i().text("Filter")),l().createElement("div",{className:u.filterContainerScrollable},l().createElement(D,{value:S,onChange:C("dateRange"),className:u.filterItem}),l().createElement(h.Z,{selectedUsers:N,onChange:C("users"),className:u.filterItem}),l().createElement(G,{selectedHistoryActivityTypes:O,onChange:C("activities"),className:u.filterItem}),l().createElement(y.Z,{selectedAttributes:x,entityType:a,onChange:C("attributes"),className:u.filterItem,title:i().text("Attribute updated")}))),l().createElement("div",{className:u.filterControls},l().createElement(p.Z,{onClick:M,className:u.clearButton},i().text("Clear all")),l().createElement(p.Z,{onClick:R},i().text("Cancel")),l().createElement(p.Z,{color:"primary",onClick:P},i().text("Apply")))))};var V=n(52730),B=n(50985),W=n(50673),$=n(98538),K=n(95341),q=n(42713),X=n(79573);const J=(0,N.makeStyles)({menuItem:{minHeight:"32px"},menuText:{fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"30px"},checkIcon:{position:"absolute",color:"rgba(0, 0, 0, 0.54)"}}),Q=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=X.ZT}=e;const o=J(),{text:i,selected:a,onClick:c}=n;return l().createElement(K.Z,{classes:{root:o.menuItem},onClick:e=>{r(),c(e)},ref:t},a&&l().createElement(q.Z,{className:o.checkIcon}),l().createElement(s.Z,{classes:{root:o.menuText}},i))}));Q.displayName="MenuItemRenderer";const ee=Q,te=()=>{const e=(0,V.useSelector)(W.ZP.selectors.getHistoryMode),t=(0,V.useDispatch)(),n=e=>{t(W.N5.history.actions.setHistoryMode(e))},r=[{text:i().text("Compare to Current view"),selected:e===W.Z9.Current,onClick:()=>n(W.Z9.Current)},{text:i().text("Compare to Previous view"),selected:e===W.Z9.Previous,onClick:()=>n(W.Z9.Previous)}];return l().createElement($.Z,{MenuItemRenderer:ee,buttonComponent:m.Z,buttonProps:{icon:B.Z,size:"L"},menuId:"history-menu",menuItems:r})},ne=(0,N.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"}}),re=e=>{let{total:t,entityType:n,filter:r,onApplyFilter:o}=e;const d=ne();return l().createElement("div",{className:d.root},l().createElement(s.Z,{variant:"h6"},i().text("History")),!(0,c.isNil)(t)&&l().createElement(l().Fragment,null,l().createElement(a.Z,{orientation:"vertical",flexItem:!0,className:d.divider}),l().createElement(s.Z,{variant:"body1",color:"textSecondary",className:d.count},1===t?i().text("${count} contributing profile",{count:t}):i().text("${count} contributing profiles",{count:t}))),l().createElement(u.Z,null),l().createElement(Y,{className:d.filterButton,entityType:n,filter:r,onApplyFilter:o}),l().createElement(te,null))}},95085:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),l=n.n(r),o=n(2507),i=n.n(o),a=n(15422);const s=()=>l().createElement(a.Z,{text:i().text("History in the making"),secondaryText:i().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 r=n(24328),l=n.n(r),o=n(52730),i=n(44443),a=n(2507),s=n.n(a),c=n(50914),u=n(71153),d=n.n(u),p=n(28045),E=n(50673),f=n(38677),m=n(79312),h=n(57312),y=n(72342);const b=(0,y.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"}}))),g=e=>{let{change:t,isCurrent:n,isSelected:r,onClick:o}=e;const{uri:i,type:a,matchGroups:c,user:u,timestamp:E}=t,f=(0,p.GtP)(i),y=b({color:f});return l().createElement("div",{className:d()(y.historyRow,{[y.selected]:r}),onClick:o},l().createElement("div",{className:y.rowHeader},l().createElement("div",{className:y.badge}),l().createElement(m.Z,{className:d()(y.title,{bold:n})},n?s().text("Current view"):(0,h.Xr)(a)),!n&&l().createElement(m.Z,{className:y.date},s().date(E,"L LT"))),c&&l().createElement(m.Z,{className:y.title},s().text("Match rule:")," ",c.join(", ")),l().createElement(m.Z,{className:y.user},u))};var v=n(21256);const T=e=>e===v.b.FAKE_FILTERED_INCOMING||e===v.b.FAKE_FILTERED_OUTGOING,I=e=>{let{x:t,y:n,toX:r,toY:o,color:i,isDashed:a}=e;const s=((e,t,n,r)=>{const l=t>r,o=e<n,i=l?-6:6;return`M${e} ${t} L${o?n-12:n+12} ${t} ${o?`c 6 0 12 ${i} 12`:`c -6 0 -12 ${i} -12`} ${l?-12:12} L${n} ${r}`})(t,n,r,o);return l().createElement("path",{d:s,stroke:i,strokeWidth:2,fill:"none",strokeDasharray:a?"3,3":void 0})};function O(){return O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(this,arguments)}const x=(0,r.forwardRef)(((e,t)=>{let{x:n,y:r,color:o,isDashed:i,isCollapsed:a,showCollapseIcon:s,showLine:c}=e,u=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,["x","y","color","isDashed","isCollapsed","showCollapseIcon","showLine"]);const d=s?6:3;return l().createElement("g",O({},u,{ref:t}),c&&l().createElement("rect",{id:"line",x:n-d-4,y:r-d-4,width:2*d+8,height:2,fill:o}),l().createElement("circle",{cx:n,cy:r,r:d,fill:i?"#fff":o,stroke:o,strokeDasharray:i?"1,1":void 0,strokeWidth:2}),s&&l().createElement("g",{id:"icon"},l().createElement("rect",{x:n-4,y:r-1,width:8,height:2,fill:"#fff"}),a&&l().createElement("rect",{x:n-1,y:r-4,width:2,height:8,fill:"#fff"})))}));const S=(0,n(78223).Z)(x),N=(0,r.memo)((e=>{let{graphData:t,onHistoryCircleMouseOver:n}=e;const{historyLanes:r,rows:o}=t,i=[16],{links:a,rowLines:s,circles:c}=o.reduce(((e,t,a)=>{let{uri:s,height:c,uris:u,type:d,fakeType:E,index:f,timestamp:m,label:h}=t;const y=16*r[s].index+24,b=i[a];i.push(b+c);const g=T(E),O=g?u[0]:s,x=!(null!=u&&u.some((e=>r[e])));e.circles.push(l().createElement(S,{tooltipTitle:h,tooltipPlacement:"top",onMouseOver:n?()=>n(s,m,f):void 0,key:`circle-${O}-${a}`,x:y,y:b,color:(0,p.GtP)(O),isDashed:g,isCollapsed:x,showCollapseIcon:!!u,showLine:E===v.b.FAKE_NAVIGATE_PROFILE})),e.rowLines.push(l().createElement("rect",{key:`${O}-${f}`,x:y,y:b-8,width:"100%",height:16,fill:(0,p.GtP)(O),opacity:.06}));const N=d===v.b.ENTITIES_SPLITTED;return null==u||u.forEach((t=>{const n=r[t];if(!n)return;const i=o[a].height,s=16*n.index+24,c=N?b-i:b+i;y!==s&&e.links.push(l().createElement(I,{key:`link-${t}-${f}`,x:y,y:b,toX:s,toY:c,isDashed:T(E),color:(0,p.GtP)(t)}))})),e}),{links:[],circles:[],rowLines:[]}),u=16*Object.keys(r).length+24,d=i[i.length-1]-16;return Object.entries(r).forEach((e=>{let[t,n]=e;const r=16*n.index+24;n.lifeTime.forEach(((e,s)=>{var u;let{start:d,end:E}=e;if((null===(u=o[null==E?void 0:E.index])||void 0===u?void 0:u.type)===v.b.ENTITIES_SPLITTED)return;const f=(null==d?void 0:d.type)===v.b.ENTITIES_SPLITTED?(null==d?void 0:d.index)-1:null==d?void 0:d.index,m=(null==E?void 0:E.type)===v.b.ENTITIES_MERGED_MANUALLY||(null==E?void 0:E.type)===v.b.ENTITIES_MERGED?(null==E?void 0:E.index)+1:null==E?void 0:E.index,h=i[f]||i[i.length-2],y=i[m]||16;if(h<=y)return;const b=(0,p.GtP)(t);!E&&n.index>0&&c.push(l().createElement(x,{key:`initCircle-${t}-${s}`,x:r,y,color:b,showLine:!0})),a.unshift(l().createElement("path",{key:`line-${t}-${s}`,d:`M${r} ${h} L${r} ${y}`,stroke:b,strokeWidth:2}))}))})),l().createElement("svg",{className:"chart",width:u,height:d},l().createElement("g",{id:"rowLines"},s),l().createElement("g",{id:"links"},a),l().createElement("g",{id:"circles"},c))}));var _=n(87378);const C=(0,y.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 R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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}const P=e=>{let{historyData:t,isLoading:n,canLoadMore:a,onLoadMore:u,entityUri:m,historyEvent:h,findPreviousChange:y}=e;const b=C(),v=(0,o.useDispatch)(),T=(0,o.useSelector)(E.ZP.selectors.getIsEditableMode),I=(0,o.useSelector)(E.ZP.selectors.getMetadata),[O,x]=(0,r.useState)({historyLanes:{},rows:[]}),[S,D]=(0,r.useState)(!1),[P,M]=(0,r.useState)(-1);(0,r.useEffect)((()=>{if((0,c.isNil)(h))return void M(0);const e=e=>(null==e?void 0:e.uri)===((null==h?void 0:h.overrideUri)||m)&&(null==e?void 0:e.timestamp)===(null==h?void 0:h.aStamp),n=-1!==P?t.rows[P]:null,r=t.rows.findIndex((t=>e(t)));M(e(n)?P:r)}),[t.rows,h]);const w=(0,r.useRef)(null),A=(0,r.useCallback)((e=>{if(!(0,c.isNil)(e)){var n;const r=null===(n=t.rows)||void 0===n?void 0:n.map(((t,n)=>{var r;return R({},t,{height:null===(r=e.childNodes[n])||void 0===r?void 0:r.clientHeight})}));x({historyLanes:t.historyLanes,rows:r})}}),[t]),L=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:n}=(null==w?void 0:w.current)||{};D(n<e-t)};return l().createElement("div",{className:b.historyTree},n&&l().createElement(_.Z,null),l().createElement("div",{className:d()(b.graph,{[b.shadow]:S}),onScroll:L,ref:w},l().createElement(N,{onHistoryCircleMouseOver:(e,t,n)=>{if((0,c.isNil)(O.rows[n].label)){const r={time:t,select:"crosswalks"};(0,p.HvW)(e,r).then((e=>{let{crosswalks:t}=e;const r=t?(0,c.uniqBy)((0,c.prop)("type"),t).map((e=>{const t=(0,p.s5)(I,e.type);return t?t.label:null})).filter(c.identity).join(", "):s().text("No data");x((e=>R({},e,{rows:e.rows.map((e=>e.index===n?R({},e,{label:r}):e))})))}))}},graphData:O}),l().createElement(i.Z,{handleWidth:!0,onResize:L})),l().createElement("div",{ref:A,className:b.history},t.rows.map(((e,t)=>{const n=t===P,r=0===t;return l().createElement(g,{key:`row-${t}`,change:e,isCurrent:r,isSelected:n,onClick:()=>((e,t,n,r)=>{if(T){if(!window.confirm(s().text("Are you sure you want to go in history mode? All your changes will be lost.")))return;v(E.N5.mode.actions.modeUpdated(p.ARY.Viewing))}if(r&&!n||!r&&n)v(E.N5.history.actions.clearHistoryEvent()),M(0);else if(!r&&!n){const n=y(e-1,t.uri||m),r=y(e,t.uri||m),l=null==n?void 0:n.timestamp,o=null==r?void 0:r.timestamp,i=(null==t?void 0:t.uri)===m?null:null==t?void 0:t.uri;v(E.N5.history.actions.setHistoryEvent({aStamp:l,bStamp:o,overrideUri:i})),M(e)}})(t,e,n,r)})}))),a&&l().createElement("div",{className:b.buttonContainer},l().createElement(f.Z,{color:"primary",onClick:()=>u()},s().text("Show more"))))},M=(0,y.makeStyles)({root:{display:"flex",flexWrap:"wrap",padding:"10px 15px"}}),w=(0,y.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"}}),A=e=>{let{value:t,isSelected:n=!0,onClick:r}=e;const o=(0,p.GtP)(t),i=w({color:o});return l().createElement("div",{className:d()(i.icon,{[i.inactive]:!n,[i.active]:n,[i.clickable]:!!r}),onClick:r})},L=e=>{let{values:t,selectedValues:n,entityUri:r,onSelectValues:o,className:i}=e;const a=M();return l().createElement("div",{className:d()(a.root,i)},l().createElement(A,{value:r}),(null==t?void 0:t.length)>0&&t.map((e=>l().createElement(A,{key:e,value:e,isSelected:null==n?void 0:n.includes(e),onClick:()=>(e=>{null!=n&&n.includes(e)?o((0,c.without)([e],n)):o([...n||[],e])})(e)}))))};function k(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=(e,t)=>e.reduce(((e,n,r)=>{let{start:l,end:o}=n;if(l){const n=t-l.timestamp;((0,c.isNil)(e.startDistance)||Math.abs(e.startDistance)>Math.abs(n)&&n>0)&&(e.startIndex=r,e.startDistance=n)}if(o){const n=t-o.timestamp;((0,c.isNil)(e.endDistance)||Math.abs(e.endDistance)>Math.abs(n)&&n<0)&&(e.endIndex=r,e.endDistance=n)}return e}),{startIndex:null,endIndex:null,startDistance:null,endDistance:null}),H=(0,y.makeStyles)({root:{display:"flex",flexDirection:"column",overflow:"hidden",position:"relative",height:"100%"},borderBottom:{borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}}),G=(0,r.memo)((e=>{let{isLoading:t,historyWithTotal:n,contributorsUris:o,entityUri:i,canLoadMore:a,onLoadMore:s,historyEvent:u}=e;const d=H(),[p,E]=(0,r.useState)(null);(0,r.useEffect)((()=>{E(o)}),[o]);const{historyData:f,findPreviousChange:m}=(e=>{let{entityUri:t,historyChanges:n,selectedUris:l}=e;return(0,r.useMemo)((()=>{const e={[t]:{index:0,lifeTime:[]}},r=[{user:"",timestamp:0,uri:t}],o=(0,c.curry)(((e,n,r)=>{const l=r.uri||t;if(e)if(Array.isArray(e)){if(r.type!==v.b.ENTITY_LOST_MERGE)return null;if(e.includes(l))return r;if(n&&r.uris)return e.some((e=>r.uris.includes(e)))?r:null}else{var o;if(l===e||n&&null!==(o=r.uris)&&void 0!==o&&o.includes(e))return r}return null})),i=(e,t,r)=>(0,c.pipe)((0,c.drop)(e+1),(0,c.find)(o(t,r)))(n),a=t=>(e[t]||l&&!l.includes(t)||(e[t]={index:Object.keys(e).length,lifeTime:[]}),e[t]),s=(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 r=e[e.length-1];n=!((!r.start||r.start.timestamp<t.timestamp)&&(!r.end||r.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,l)=>{var o;switch(n.type){case v.b.ENTITIES_SPLITTED:if(!i(l,n.uri||t,!1))return;{const e=n.uri,t=n.uris?[n.uris,e]:[e],r=i(l,t,!0);if(r&&(!e||e===r.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 c=!1;null===(o=n.uris)||void 0===o||o.forEach((e=>{a(e)||(c=!0)}));const E=a(n.uri||t);if(!E)return;const f=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){k(e,t,n[t])}))}return e}({},n);((t,n)=>{var l,o;switch(n.type){case v.b.ENTITY_CREATED:s(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===(l=n.uris)||void 0===l||l.forEach((t=>{const l=e[t];if(!l)return;const o=l.lifeTime.length;o?s(l.lifeTime,n):d(l.lifeTime,n),r.push({uri:t,user:n.user,type:n.type,fakeType:o?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===(o=n.uris)||void 0===o||o.forEach((t=>{const r=e[t];r&&d(r.lifeTime,n)}))}})(E.lifeTime,f),c&&p.push(f),r.push(f)})),p.forEach((t=>{t.uris.forEach((l=>{e[l]||n.forEach((n=>{let{uri:o,uris:i,timestamp:a,user:s,type:u}=n;o===l&&(null==i||i.forEach((n=>{const l=e[n];if(!l)return;let o=null;switch(u){case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:o=v.b.FAKE_FILTERED_INCOMING;break;case v.b.ENTITIES_SPLITTED:o=v.b.FAKE_FILTERED_OUTGOING;break;default:return}const i={fakeType:o,uri:t.uri,uris:[n],type:u,user:s,timestamp:a},d=U(l.lifeTime,t.timestamp);o===v.b.FAKE_FILTERED_INCOMING?(0,c.isNil)(d.endIndex)||(l.lifeTime[d.endIndex].end=i):(0,c.isNil)(d.startIndex)||(l.lifeTime[d.startIndex].start=i),r.splice(r.indexOf(t),0,i)})))}))}))})),r.forEach(((e,n)=>{e.index=n,e.uri=e.uri||t})),{historyData:{historyLanes:e,rows:r},findPreviousChange:(e,t)=>(0,c.pipe)((0,c.slice)(e+1,1/0),(0,c.find)(o(t,!1)))(r)}}),[t,n,l])})({entityUri:i,historyChanges:null==n?void 0:n.changes,selectedUris:p});return l().createElement("div",{className:d.root},l().createElement(L,{values:o,selectedValues:p,onSelectValues:E,entityUri:i,className:d.borderBottom}),l().createElement(P,{historyData:f,isLoading:t,onLoadMore:s,canLoadMore:a,entityUri:i,historyEvent:u,findPreviousChange:m}))}))},7108:(e,t,n)=>{n.d(t,{tO:()=>f,FE:()=>m,k6:()=>h});var r=n(24328),l=n(28045),o=n(50914),i=n(38323),a=n(20414);const s=(0,o.chain)((0,o.cond)([[(0,o.equals)(i.M.MERGE),()=>[a.I.ENTITIES_MERGED,a.I.ENTITIES_MERGED_MANUALLY,a.I.ENTITIES_MERGED_ON_THE_FLY]],[(0,o.equals)(i.M.UNMERGE),()=>[a.I.ENTITIES_SPLITTED]],[(0,o.equals)(i.M.UPDATE),()=>[a.I.ENTITY_CHANGED]]])),c=(0,o.pipe)((0,o.defaultTo)([]),s,(0,o.concat)([a.I.ENTITY_CREATED,a.I.ENTITY_REMOVED,a.I.ENTITY_LOST_MERGE]),(0,l.NPd)((e=>`equals(type, '${e}')`))),u=(0,o.pipe)((0,o.defaultTo)({}),(0,o.reject)(l.O27),(0,o.evolve)({users:(0,l.NPd)(l.F$g),attributes:(0,l.NPd)((e=>`changes(${(0,l.HRH)(e.value)})`)),dateRange:l.lPZ}),(0,o.over)((0,o.lensProp)("activities"),c),o.values,(0,o.reject)(l.O27),(0,o.append)("not equals(user, 'collaboration-service')"),(0,o.map)(l.tM8),(0,o.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]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){E(e,t,n[t])}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f={activities:[i.M.MERGE,i.M.UNMERGE,i.M.UPDATE]},m=e=>(0,o.pipe)((0,o.evolve)({activities:(0,o.difference)(f.activities)}),(0,o.reject)((0,o.either)(o.isNil,o.isEmpty)),o.isEmpty)(e||{}),h=e=>{let{entity:t,enabled:n}=e;const[o,i]=(0,r.useState)(f),[a,s]=(0,r.useState)(0),c=(0,r.useMemo)((()=>u(o)),[o]),[E,m]=(0,r.useState)(null),[h,y]=(0,r.useState)(null),[b,g]=(0,r.useState)(!1),v=(0,d._)(),T=null==t?void 0:t.uri,I={max:32,order:"desc"},O=(0,l.O27)(null==o?void 0:o.attributes)||void 0;(0,r.useEffect)((()=>{T&&n&&(g(!0),v((0,l.kgP)(p({entityUri:T,historicUris:E,filter:c,showAll:O},I))).then(y).catch((e=>{console.warn("Failed to load history data",e),y(null)})).finally((()=>{g(!1)})))}),[c,O,E]),(0,r.useEffect)((()=>{T&&n&&(g(!0),v((0,l.wdF)({entityUri:T})).then((e=>{m(e)})).catch((e=>{console.warn("Failed to load history data",e),m(null)})).finally((()=>{g(!1)})),s(0))}),[T,null==t?void 0:t.updatedTime,n]);const x=(0,r.useCallback)((e=>{T&&E&&n&&(g(!0),v((0,l.kgP)(p({entityUri:T,historicUris:E,filter:c,showAll:O,offset:e},I))).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((()=>{g(!1)})))}),[E,c,n]),S=(0,r.useMemo)((()=>32*(a+1)<(null==h?void 0:h.total)),[h,a]),N=(0,r.useCallback)((e=>{s(0),i(e)}),[]),_=(0,r.useCallback)((()=>{N(p({},f))}),[]),C=(0,r.useCallback)((()=>{S&&(x(32*(a+1)),s(a+1))}),[x,a,S]);return{isLoading:b,canLoadMore:S,onLoadMore:C,onApplyFilter:N,onClearFilter:_,historicUris:E,historyWithTotal:h,historyFilter:o}}},69409:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(24328),l=n(28045),o=n(14201);const i=e=>{let{perspectiveId:t,entity:n,historyButtonId:i}=e;const{perspectiveSettings:a}=(0,o._)(t),{active:s}=a||{},c=s===i,[u,d]=(0,r.useState)(!1),p=null==n?void 0:n.uri;(0,r.useEffect)((()=>{c||d(!1)}),[p]),(0,r.useEffect)((()=>{c&&d(!0)}),[c]);const E=p&&!(0,l.ZiX)(p)&&!(0,l.biM)(n);return{isHistoryEnabled:u&&E,isProfilePersisted:E}}},35722:(e,t,n)=>{n.d(t,{a:()=>s});var r=n(24328),l=n(52730),o=n(50673),i=n(28045),a=n(19701);const s=e=>{let{entity:t,historyEvent:n}=e;const[s,c]=(0,r.useState)(!1),u=(0,l.useSelector)(o.ZP.selectors.getHistorySlice),d=(0,l.useDispatch)(),p=(0,a._)(),{aStamp:E,bStamp:f,overrideUri:m}=n||{},h=m||(null==t?void 0:t.uri);return(0,r.useEffect)((()=>{n&&h&&(c(!0),p(Promise.all([(0,i.lrH)(h,E),f&&1!==f?(0,i.lrH)(h,f):Promise.resolve(null)])).then((e=>{let[t,n]=e;d(o.N5.history.actions.setHistorySlice({aEntity:t,bEntity:n}))})).catch((e=>{console.warn("Failed to load entity slice",e)})).finally((()=>{c(!1)})))}),[E,f,h]),{isLoading:s,historySlice:u}}},21256:(e,t,n)=>{n.d(t,{b:()=>i});var r,l=n(20414);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}!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"}(r||(r={}));const i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}({},l.I,r)},38323:(e,t,n)=>{let r;n.d(t,{M:()=>r}),function(e){e.UPDATE="UPDATE",e.MERGE="MERGE",e.UNMERGE="UNMERGE"}(r||(r={}))},18408:(e,t,n)=>{n.d(t,{D:()=>E});var r=n(24328),l=n.n(r),o=n(2507),i=n.n(o),a=n(50914),s=n(83820),c=n(38677),u=n(10050),d=n(79573);const p=3e5,E=function(){let{anchorOrigin:e={vertical:"bottom",horizontal:"center"},showDismiss:t,dismissTitle:n=i().text("Dismiss"),autoHideDuration:o=p,onDismissClick:E=d.ZT}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[f,m]=(0,r.useState)(!1),[h,y]=(0,r.useState)(""),b=(0,r.useCallback)((()=>{m(!1),y("")}),[]),g=(0,r.useCallback)(((e,t)=>{"clickaway"!==t&&b()}),[b]),v=(0,r.useCallback)((e=>{m(!0),y(e)}),[]),T=(0,r.useCallback)((()=>l().createElement(s.Z,{container:document.body},l().createElement(u.Z,{open:f,anchorOrigin:e,autoHideDuration:o,onClose:g,message:h,style:{maxWidth:500},action:t?l().createElement(c.Z,{color:"primary",onClick:(0,a.pipe)(b,E)},n):void 0}))),[f,b,h]);return{SnackbarRenderer:T,showSnackbarMessage:v}}}}]);
2
2
  //# sourceMappingURL=3902.js.map