@reltio/remotes 1.4.1647 → 1.4.1649
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/1039.js +1 -1
- package/1088.js +1 -1
- package/1146.js +1 -1
- package/1148.js +1 -1
- package/1334.js +1 -1
- package/1425.js +1 -1
- package/1488.js +2 -0
- package/1488.js.map +1 -0
- package/1572.js +1 -1
- package/1664.js +1 -1
- package/1707.js +1 -1
- package/1790.js +5 -5
- package/1790.js.map +1 -1
- package/1840.js +2 -0
- package/1840.js.map +1 -0
- package/1984.js +1 -1
- package/2066.js +1 -1
- package/2400.js +1 -1
- package/281.js +2 -0
- package/281.js.map +1 -0
- package/2966.js +1 -1
- package/3096.js +1 -1
- package/3348.js +1 -1
- package/3358.js +1 -1
- package/3373.js +1 -1
- package/3381.js +1 -1
- package/3383.js +1 -1
- package/3463.js +1 -1
- package/3469.js +1 -1
- package/3538.js +1 -1
- package/356.js +1 -1
- package/3854.js +1 -1
- package/3902.js +1 -1
- package/3902.js.map +1 -1
- package/3912.js +1 -1
- package/3926.js +1 -1
- package/415.js +1 -1
- package/4212.js +1 -1
- package/{829.css → 4390.css} +1 -1
- package/4390.css.map +1 -0
- package/4390.js +2 -0
- package/4390.js.map +1 -0
- package/4481.js +1 -1
- package/4609.js +1 -1
- package/4610.js +1 -1
- package/4703.js +1 -1
- package/4780.js +2 -0
- package/4780.js.map +1 -0
- package/4806.js +1 -1
- package/4838.js +1 -1
- package/50.js +1 -1
- package/5039.js +1 -1
- package/5039.js.map +1 -1
- package/5053.js +1 -1
- package/5053.js.map +1 -1
- package/5108.js +1 -1
- package/5108.js.map +1 -1
- package/5163.js +1 -1
- package/5163.js.map +1 -1
- package/5292.js +1 -1
- package/5383.js +1 -1
- package/5617.js +1 -1
- package/6020.js +1 -1
- package/6287.js +1 -1
- package/636.js +1 -1
- package/6606.js +1 -1
- package/6606.js.map +1 -1
- package/6799.js +1 -1
- package/6844.js +1 -1
- package/6860.js +3 -0
- package/6860.js.map +1 -0
- package/6903.js +1 -1
- package/7128.js +1 -1
- package/7340.js +1 -1
- package/735.js +1 -1
- package/7422.js +1 -1
- package/{7303.css → 7605.css} +1 -1
- package/{7303.css.map → 7605.css.map} +1 -1
- package/7605.js +2 -0
- package/7605.js.map +1 -0
- package/7626.js +29 -0
- package/7626.js.map +1 -0
- package/{446.js → 764.js} +2 -2
- package/764.js.map +1 -0
- package/7744.js +1 -1
- package/7744.js.map +1 -1
- package/7896.js +1 -1
- package/820.js +1 -1
- package/8207.js +1 -1
- package/8565.js +1 -1
- package/870.css +635 -0
- package/870.css.map +1 -0
- package/870.js +2 -0
- package/870.js.map +1 -0
- package/8741.js +1 -1
- package/9016.js +1 -1
- package/9050.js +1 -1
- package/9283.js +1 -1
- package/9309.js +1 -1
- package/9328.js +1 -1
- package/9387.js +1 -1
- package/9464.js +1 -1
- package/9719.js +1 -1
- package/9736.js +1 -1
- package/9861.js +1 -1
- package/987.js +1 -1
- package/99.js +29 -0
- package/99.js.map +1 -0
- package/9952.js +1 -1
- package/9960.js +1 -1
- package/main.js +1 -1
- package/main.js.map +1 -1
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/remoteEntry.js.map +1 -1
- package/3785.js +0 -2
- package/3785.js.map +0 -1
- package/3880.js +0 -2
- package/3880.js.map +0 -1
- package/446.js.map +0 -1
- package/672.js +0 -2
- package/672.js.map +0 -1
- package/7303.js +0 -2
- package/7303.js.map +0 -1
- package/7963.js +0 -3
- package/7963.js.map +0 -1
- package/829.css.map +0 -1
- package/829.js +0 -2
- package/829.js.map +0 -1
- package/8344.js +0 -29
- package/8344.js.map +0 -1
- package/9109.js +0 -2
- package/9109.js.map +0 -1
- package/938.js +0 -29
- package/938.js.map +0 -1
- /package/{7963.js.LICENSE.txt → 6860.js.LICENSE.txt} +0 -0
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]="6d4a405e-b812-4e14-9ef6-b611cd641423",e._sentryDebugIdIdentifier="sentry-dbid-6d4a405e-b812-4e14-9ef6-b611cd641423")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1648"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3902],{55234:(e,t,n)=>{n.d(t,{Z:()=>I});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(31421),d=n(79312),p=n(15793),E=n(19602),f=n(59952),m=n(33117),h=n(14596),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){y(e,t,n[t])}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v={input:e=>g({},e,{fontSize:"14px"}),menuPortal:e=>g({},e,{zIndex:1300})},T=(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 I=e=>{let{entityType:t,selectedAttributes:n,className:o,onChange:a,title:b,disableUnderline:g,menuPlacement:y="bottom"}=e;const I=T(),O=(0,h.AH)(),x=(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,u.EUG)(O,r);return e.concat(o?x(o,t+1,l):[])}),[])}),[O]),S=(0,r.useMemo)((()=>x((null==t?void 0:t.attributes)||[])),[t,x]);return l().createElement("div",{className:s()(I.root,o),"data-reltio-id":"attribute-selector"},l().createElement(d.Z,{className:I.title,variant:"subtitle1"},b||i().text("Attribute")),l().createElement(p.Z,{value:n,options:S,TextFieldProps:{InputProps:{disableUnderline:g},classes:{root:I.dropDownInput}},components:{DropdownIndicator:f.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(E.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(m.Z,{checked:n,level:r.level,data:r,label:o,labelInText:o,isFocused:t}))}},onChange:(0,c.pipe)((0,c.defaultTo)([]),a),styles:v,classes:I,menuPlacement:y,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))}},77875:(e,t,n)=>{n.d(t,{Z:()=>E});var r=n(24328),l=n.n(r),o=n(50914),i=n(31421),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 b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function g(e){const{innerProps:t,innerRef:n,children:r,isFocused:o,isSelected:i,selectProps:{classes:a},label:s}=e;return l().createElement(p.Z,b({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 y={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,b=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({},y,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,b))}_.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,menuShouldBlockScroll:i().bool,captureMenuScroll:i().bool,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:()=>v});var r=n(24328),l=n.n(r),o=n(2507),i=n.n(o),a=n(50914),s=n(71153),c=n.n(s),u=n(79312),d=n(15793),p=n(59952),E=n(31421),f=n(14596),m=n(72342);function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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=>h({},e,{fontSize:"14px"}),loadingMessage:e=>h({},e,{fontSize:"14px"}),menuPortal:e=>h({},e,{zIndex:1300})},y=(0,m.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"}}),v=e=>{let{selectedUsers:t,onChange:n,className:o,disableUnderline:s}=e;const m=y(),h=(0,f.Uv)(),b=(0,f.au)(),v=e=>({value:e,label:e}),T=e=>e.map(v),I=(0,r.useRef)();return l().createElement("div",{className:c()(m.root,o),"data-reltio-id":"user-selector"},l().createElement(u.Z,{className:m.title,variant:"subtitle1"},i().text("User")),l().createElement(d.Z,{value:T(t),onChange:(0,a.pipe)((0,a.defaultTo)([]),(0,a.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(I.current||(I.current=(0,E.kz_)({tenant:h,servicesPath:b})),I.current.then((0,a.pipe)((0,a.pluck)("username"),(e=>t=>e?t.filter((t=>E.P6Y.strings.search(t,e))):t)(e),T))),TextFieldProps:{InputProps:{disableUnderline:s},className:m.dropDownInput},components:{DropdownIndicator:p.Z},styles:g,classes:m,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))}},20414:(e,t,n)=>{let r;n.d(t,{I:()=>r}),function(e){e.MODEL_UPDATED="MODEL_UPDATED",e.ENTITY_REMOVED="ENTITY_REMOVED",e.ENTITY_CREATED="ENTITY_CREATED",e.ENTITY_CHANGED="ENTITY_CHANGED",e.ENTITIES_MERGED="ENTITIES_MERGED",e.ENTITIES_SPLITTED="ENTITIES_SPLITTED",e.ENTITY_LOST_MERGE="ENTITY_LOST_MERGE",e.RELATIONSHIP_CREATED="RELATIONSHIP_CREATED",e.RELATIONSHIP_REMOVED="RELATIONSHIP_REMOVED",e.RELATIONSHIP_CHANGED="RELATIONSHIP_CHANGED",e.POTENTIAL_MATCHES_FOUND="POTENTIAL_MATCHES_FOUND",e.NOT_MATCHES_SET="NOT_MATCHES_SET",e.NOT_MATCHES_RESET="NOT_MATCHES_RESET",e.PERIODIC_TASK_SCHEDULED="PERIODIC_TASK_SCHEDULED",e.ENTITIES_MERGED_MANUALLY="ENTITIES_MERGED_MANUALLY",e.POTENTIAL_MATCHES_REMOVED="POTENTIAL_MATCHES_REMOVED",e.ENTITIES_MERGED_ON_THE_FLY="ENTITIES_MERGED_ON_THE_FLY",e.USER_LOGIN="USER_LOGIN",e.USER_LOGOUT="USER_LOGOUT",e.USER_SEARCH="USER_SEARCH",e.USER_PROFILE_VIEW="USER_PROFILE_VIEW",e.COMMENT_ADDED="COMMENT_ADDED",e.COMMENT_UPDATED="COMMENT_UPDATED",e.COMMENT_DELETED="COMMENT_DELETED",e.ANALYTICS_ATTRIBUTES_CHANGED="ANALYTICS_ATTRIBUTES_CHANGED",e.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE="SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE",e.GROUP_CREATED="GROUP_CREATED",e.GROUP_REMOVED="GROUP_REMOVED",e.GROUP_CHANGED="GROUP_CHANGED"}(r||(r={}))},57312:(e,t,n)=>{n.d(t,{te:()=>d,Io:()=>p,rx:()=>E,_V:()=>f,Xr:()=>m});var r=n(31421),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(31421),d=n(79573),p=n(53242),E=n(47019),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"}}),b=i().localeData().longDateFormat("L"),g=e=>{let{values:t,onChange:n,onFocus:o=d.ZT}=e;const i=b,a=(0,r.useRef)(null),[g,y]=(0,r.useState)(!1),v=h(),T=(0,r.useCallback)((()=>{y((e=>!e)),o()}),[o]);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.ZP,{open:g,anchorEl:a.current,onClose:()=>{y(!1)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2},l().createElement(m.Z,{values:t,onApply:e=>{n(e),y(!1)},type:u.oS0.TYPE_ACTIVENESS_DATE})))}},70675:(e,t,n)=>{n.d(t,{Z:()=>oe});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(79811),m=n(290),h=n(35936),b=n(31421),g=n(40435),y=n(15791),v=n(55234),T=n(71153),I=n.n(T),O=n(90590);const x=[b.KfU.WITHIN,b.KfU.AGO,b.KfU.BETWEEN],S=e=>({[b.KfU.WITHIN]:i().text("Within the last"),[b.KfU.AGO]:i().text("More than"),[b.KfU.BETWEEN]:i().text("Date range")}[e]||"");var N=n(77875),_=n(55962),C=n(27446),R=n(72342);const D=(0,R.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},intervalContainer:{display:"flex",justifyContent:"space-between"},typeInput:{width:160,marginRight:10}}),P=[null,null],M=[null,"hours"],w=e=>{let{value:t,onChange:n,className:o}=e;const a=D(),c=e=>e===b.KfU.WITHIN||e===b.KfU.AGO,u=e=>e===b.KfU.BETWEEN,d=u(null==t?void 0:t.type)?t.period:P,p=c(null==t?void 0:t.type)?t.period:M,[E,f]=(0,r.useState)(d),[m,h]=(0,r.useState)(p),g=(null==t?void 0:t.type)||b.KfU.WITHIN,y=e=>c(e)?m:u(e)?E:void 0,v=e=>{n({type:g,period:e})};return(0,_.D)((()=>{t?c(t.type)?h(t.period):u(t.type)&&f(t.period):(f(P),h(M))}),[t]),l().createElement("div",{className:I()(a.root,o),"data-reltio-id":"date-range-selector"},l().createElement(s.Z,{className:a.title,variant:"subtitle1"},i().text("Date")),l().createElement("div",{className:a.intervalContainer},l().createElement(O.Z,{label:"",className:a.typeInput,value:{value:g,label:S(g)},options:x.map((e=>({value:e,label:S(e)}))),onChange:e=>{let{value:r}=e;(null==t?void 0:t.type)!==r&&n({period:y(r),type:r})}}),c(g)?l().createElement(N.Z,{interval:m,onChange:v}):l().createElement(C.Z,{values:E,onChange:v})))};var A=n(15793),L=n(59952),k=n(38323);const U=[k.M.UPDATE,k.M.MERGE,k.M.UNMERGE];function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){G(e,t,n[t])}))}return e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j={input:e=>H({},e,{fontSize:"14px"}),menuPortal:e=>H({},e,{zIndex:1300})},Z=(0,R.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},valueContainer:{overflowY:"auto",height:44},option:{fontSize:"14px",height:"32px"}}),F=e=>{let{selectedHistoryActivityTypes:t,onChange:n,className:r,disableUnderline:o}=e;const a=Z(),u=e=>{return{value:e,label:(t=e,{[k.M.UPDATE]:i().text("Update"),[k.M.MERGE]:i().text("Merge"),[k.M.UNMERGE]:i().text("Unmerge")}[t]||"")};var t},d=e=>e.map(u),p=d(U);return l().createElement("div",{className:I()(a.root,r),"data-reltio-id":"history-activity-selector"},l().createElement(s.Z,{className:a.title,variant:"subtitle1"},i().text("Activity")),l().createElement(A.Z,{value:d(t),onChange:(0,c.pipe)((0,c.defaultTo)([]),(0,c.pluck)("value"),n),options:p,TextFieldProps:{InputProps:{disableUnderline:o},classes:{root:a.dropDownInput}},components:{DropdownIndicator:L.Z},styles:j,classes:a,menuPlacement:"bottom",menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))};var z=n(7108);const B=(0,R.makeStyles)({popup:{width:500,minHeight:500,overflowY:"hidden",display:"flex",flexDirection:"column"},filterContainer:{maxHeight:"400px",borderColor:"rgba(0,0,0,0.12)"},filterItem:{"&:not(:last-child)":{marginBottom:12}},clearButton:{marginRight:"auto"},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px"},divider:{marginBottom:12}});function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Y(e,t,n[t])}))}return e}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $=e=>{let{className:t,filter:n,onApplyFilter:o,entityType:s}=e;const u=B(),T=(0,r.useRef)(),[I,O]=(0,r.useState)(!1),[x,S]=(0,r.useState)(n),{activities:N=[],attributes:_=[],dateRange:C=null,users:R=[]}=x||{},D=(0,z.FE)(n)?"inherit":"primary";(0,r.useEffect)((()=>{I&&S(n)}),[n,I]);const P=(0,c.curry)(((e,t)=>{S((n=>V({},n,{[e]:t})))})),M=(0,r.useCallback)((()=>{O((e=>!e))}),[]),A=(0,r.useCallback)((()=>{C&&(0,b.RZp)(C)?o(x):o((0,c.dissoc)("dateRange",x)),M()}),[x,C,o,M]),L=(0,r.useCallback)((()=>{S(V({},z.tO))}),[]);return l().createElement(l().Fragment,null,l().createElement(g.Z,{ref:T,color:D,icon:d.Z,size:"L",onClick:M,className:t}),l().createElement(E.ZP,{classes:{paper:u.popup},open:I,anchorEl:T.current,onClose:M,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},l().createElement(h.Z,null,i().text("Filter")),l().createElement(m.Z,{dividers:!0,className:u.filterContainer},l().createElement(w,{value:C,onChange:P("dateRange"),className:u.filterItem}),l().createElement(a.Z,{light:!0,className:u.divider}),l().createElement(y.Z,{selectedUsers:R,onChange:P("users"),className:u.filterItem,disableUnderline:!0}),l().createElement(a.Z,{light:!0,className:u.divider}),l().createElement(F,{selectedHistoryActivityTypes:N,onChange:P("activities"),className:u.filterItem,disableUnderline:!0}),l().createElement(a.Z,{light:!0,className:u.divider}),l().createElement(v.Z,{selectedAttributes:_,entityType:s,onChange:P("attributes"),className:u.filterItem,title:i().text("Attribute updated"),disableUnderline:!0})),l().createElement(f.Z,null,l().createElement(p.Z,{onClick:L,className:u.clearButton},i().text("Clear all")),l().createElement(p.Z,{onClick:M},i().text("Cancel")),l().createElement(p.Z,{color:"primary",onClick:A},i().text("Apply")))))};var W=n(50985),K=n(98538),q=n(95341),X=n(42713),J=n(79573);const Q=(0,R.makeStyles)({menuItem:{minHeight:"32px"},menuText:{fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"30px"},checkIcon:{position:"absolute",color:"rgba(0, 0, 0, 0.54)"}}),ee=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=J.ZT}=e;const o=Q(),{text:i,selected:a,onClick:c}=n;return l().createElement(q.Z,{classes:{root:o.menuItem},onClick:e=>{r(),c(e)},ref:t},a&&l().createElement(X.Z,{className:o.checkIcon}),l().createElement(s.Z,{classes:{root:o.menuText}},i))}));ee.displayName="MenuItemRenderer";const te=ee;var ne=n(14596);const re=()=>{const e=(0,ne.ax)("setHistoryMode"),t=(0,ne.bn)(),n=[{text:i().text("Compare to Current view"),selected:t===b.Z9$.Current,onClick:()=>e(b.Z9$.Current)},{text:i().text("Compare to Previous view"),selected:t===b.Z9$.Previous,onClick:()=>e(b.Z9$.Previous)}];return l().createElement(K.Z,{MenuItemRenderer:te,buttonComponent:g.Z,buttonProps:{icon:W.Z,size:"L"},menuId:"history-menu",menuItems:n})},le=(0,R.makeStyles)({root:{display:"flex",flex:1,alignItems:"center"},icon:{margin:4},divider:{borderColor:"rgba(0,0,0,0.12)",margin:"3px 19px"},count:{fontSize:14},filterButton:{marginRight:"-4px"}}),oe=e=>{let{total:t,entityType:n,filter:r,onApplyFilter:o}=e;const d=le();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($,{className:d.filterButton,entityType:n,filter:r,onApplyFilter:o}),l().createElement(re,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:()=>H});var r=n(24328),l=n.n(r),o=n(44443),i=n(2507),a=n.n(i),s=n(50914),c=n(71153),u=n.n(c),d=n(31421),p=n(38677),E=n(79312),f=n(57312),m=n(72342);const h=(0,m.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:s,matchGroups:c,user:p,timestamp:m}=t,b=(0,d.GtP)(i),g=h({color:b});return l().createElement("div",{className:u()(g.historyRow,{[g.selected]:r}),onClick:o},l().createElement("div",{className:g.rowHeader},l().createElement("div",{className:g.badge}),l().createElement(E.Z,{className:u()(g.title,{bold:n})},n?a().text("Current view"):(0,f.Xr)(s)),!n&&l().createElement(E.Z,{className:g.date},a().date(m,"L LT"))),c&&l().createElement(E.Z,{className:g.title},a().text("Match rule:")," ",c.join(", ")),l().createElement(E.Z,{className:g.user},p))};var g=n(21256);const y=e=>e===g.b.FAKE_FILTERED_INCOMING||e===g.b.FAKE_FILTERED_OUTGOING,v=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 T(){return T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}const I=(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",T({},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 O=(0,n(78223).Z)(I),x=(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:p,fakeType:E,index:f,timestamp:m,label:h}=t;const b=16*r[s].index+24,T=i[a];i.push(T+c);const I=y(E),x=I?u[0]:s,S=!(null!=u&&u.some((e=>r[e])));e.circles.push(l().createElement(O,{tooltipTitle:h,tooltipPlacement:"top",onMouseOver:n?()=>n(s,m,f):void 0,key:`circle-${x}-${a}`,x:b,y:T,color:(0,d.GtP)(x),isDashed:I,isCollapsed:S,showCollapseIcon:!!u,showLine:E===g.b.FAKE_NAVIGATE_PROFILE})),e.rowLines.push(l().createElement("rect",{key:`${x}-${f}`,x:b,y:T-8,width:"100%",height:16,fill:(0,d.GtP)(x),opacity:.06}));const N=p===g.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?T-i:T+i;b!==s&&e.links.push(l().createElement(v,{key:`link-${t}-${f}`,x:b,y:T,toX:s,toY:c,isDashed:y(E),color:(0,d.GtP)(t)}))})),e}),{links:[],circles:[],rowLines:[]}),u=16*Object.keys(r).length+24,p=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:p,end:E}=e;if((null===(u=o[null==E?void 0:E.index])||void 0===u?void 0:u.type)===g.b.ENTITIES_SPLITTED)return;const f=(null==p?void 0:p.type)===g.b.ENTITIES_SPLITTED?(null==p?void 0:p.index)-1:null==p?void 0:p.index,m=(null==E?void 0:E.type)===g.b.ENTITIES_MERGED_MANUALLY||(null==E?void 0:E.type)===g.b.ENTITIES_MERGED?(null==E?void 0:E.index)+1:null==E?void 0:E.index,h=i[f]||i[i.length-2],b=i[m]||16;if(h<=b)return;const y=(0,d.GtP)(t);!E&&n.index>0&&c.push(l().createElement(I,{key:`initCircle-${t}-${s}`,x:r,y:b,color:y,showLine:!0})),a.unshift(l().createElement("path",{key:`line-${t}-${s}`,d:`M${r} ${h} L${r} ${b}`,stroke:y,strokeWidth:2}))}))})),l().createElement("svg",{className:"chart",width:u,height:p},l().createElement("g",{id:"rowLines"},s),l().createElement("g",{id:"links"},a),l().createElement("g",{id:"circles"},c))}));var S=n(87378),N=n(14596);const _=(0,m.makeStyles)({historyTree:{display:"grid",gridTemplateColumns:"auto 1fr",overflowY:"auto"},graph:{overflowX:"auto",overflowY:"hidden"},history:{minWidth:"260px"},buttonContainer:{gridColumnStart:1,gridColumnEnd:3,padding:"8px 16px"},shadow:{boxShadow:"inset -8px 0px 5px -5px rgba(0,0,0,0.1)"}});function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){R(e,t,n[t])}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const D=e=>{let{historyData:t,isLoading:n,canLoadMore:i,onLoadMore:c,entityUri:E,historyEvent:f,findPreviousChange:m}=e;const h=_(),[g,y]=(0,r.useState)({historyLanes:{},rows:[]}),[v,T]=(0,r.useState)(!1),[I,O]=(0,r.useState)(-1),R=(0,N.ax)("setHistoryEvent"),D=(0,N.ax)("clearHistoryEvent"),P=(0,N.ax)("modeUpdated"),M=(0,N.AH)(),w=(0,N.o_)();(0,r.useEffect)((()=>{if((0,s.isNil)(f))return void O(0);const e=e=>(null==e?void 0:e.uri)===((null==f?void 0:f.overrideUri)||E)&&(null==e?void 0:e.timestamp)===(null==f?void 0:f.aStamp),n=-1!==I?t.rows[I]:null,r=t.rows.findIndex((t=>e(t)));O(e(n)?I:r)}),[t.rows,f]);const A=(0,r.useRef)(null),L=(0,r.useCallback)((e=>{if(!(0,s.isNil)(e)){var n;const r=null===(n=t.rows)||void 0===n?void 0:n.map(((t,n)=>{var r;return C({},t,{height:null===(r=e.childNodes[n])||void 0===r?void 0:r.clientHeight})}));y({historyLanes:t.historyLanes,rows:r})}}),[t]),k=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:n}=(null==A?void 0:A.current)||{};T(n<e-t)};return l().createElement("div",{className:h.historyTree},n&&l().createElement(S.Z,null),l().createElement("div",{className:u()(h.graph,{[h.shadow]:v}),onScroll:k,ref:A},l().createElement(x,{onHistoryCircleMouseOver:(e,t,n)=>{if((0,s.isNil)(g.rows[n].label)){const r={time:t,select:"crosswalks"};(0,d.HvW)(e,r).then((e=>{let{crosswalks:t}=e;const r=t?(0,s.uniqBy)((0,s.prop)("type"),t).map((e=>{const t=(0,d.s5)(M,e.type);return t?t.label:null})).filter(s.identity).join(", "):a().text("No data");y((e=>C({},e,{rows:e.rows.map((e=>e.index===n?C({},e,{label:r}):e))})))}))}},graphData:g}),l().createElement(o.Z,{handleWidth:!0,onResize:k})),l().createElement("div",{ref:L,className:h.history},t.rows.map(((e,t)=>{const n=t===I,r=0===t;return l().createElement(b,{key:`row-${t}`,change:e,isCurrent:r,isSelected:n,onClick:()=>((e,t,n,r)=>{if(w){if(!window.confirm(a().text("Are you sure you want to go in history mode? All your changes will be lost.")))return;P(d.ARY.Viewing)}if(r&&!n||!r&&n)D(),O(0);else if(!r&&!n){const n=m(e-1,t.uri||E),r=m(e,t.uri||E),l=null==n?void 0:n.timestamp,o=null==r?void 0:r.timestamp,i=(null==t?void 0:t.uri)===E?null:null==t?void 0:t.uri;R({aStamp:l,bStamp:o,overrideUri:i}),O(e)}})(t,e,n,r)})}))),i&&l().createElement("div",{className:h.buttonContainer},l().createElement(p.Z,{color:"primary",onClick:()=>c()},a().text("Show more"))))},P=(0,m.makeStyles)({root:{display:"flex",flexWrap:"wrap",padding:"10px 15px"}}),M=(0,m.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"}}),w=e=>{let{value:t,isSelected:n=!0,onClick:r}=e;const o=(0,d.GtP)(t),i=M({color:o});return l().createElement("div",{className:u()(i.icon,{[i.inactive]:!n,[i.active]:n,[i.clickable]:!!r}),onClick:r})},A=e=>{let{values:t,selectedValues:n,entityUri:r,onSelectValues:o,className:i}=e;const a=P();return l().createElement("div",{className:u()(a.root,i)},l().createElement(w,{value:r}),(null==t?void 0:t.length)>0&&t.map((e=>l().createElement(w,{key:e,value:e,isSelected:null==n?void 0:n.includes(e),onClick:()=>(e=>{null!=n&&n.includes(e)?o((0,s.without)([e],n)):o([...n||[],e])})(e)}))))};function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const k=(e,t)=>e.reduce(((e,n,r)=>{let{start:l,end:o}=n;if(l){const n=t-l.timestamp;((0,s.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,s.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}),U=(0,m.makeStyles)({root:{display:"flex",flexDirection:"column",overflow:"hidden",position:"relative",height:"100%"},borderBottom:{borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}}),H=(0,r.memo)((e=>{let{isLoading:t,historyWithTotal:n,contributorsUris:o,entityUri:i,canLoadMore:a,onLoadMore:c,historyEvent:u}=e;const d=U(),[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,s.curry)(((e,n,r)=>{const l=r.uri||t;if(e)if(Array.isArray(e)){if(r.type!==g.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,s.pipe)((0,s.drop)(e+1),(0,s.find)(o(t,r)))(n),a=t=>(e[t]||l&&!l.includes(t)||(e[t]={index:Object.keys(e).length,lifeTime:[]}),e[t]),c=(e,t)=>{const n=e[e.length-1];!n||n.start&&(n.start.type!==g.b.ENTITY_CREATED||t.type!==g.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 g.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 g.b.ENTITY_LOST_MERGE:case g.b.RELATIONSHIP_CREATED:case g.b.RELATIONSHIP_REMOVED:case g.b.RELATIONSHIP_CHANGED:return}let s=!1;null===(o=n.uris)||void 0===o||o.forEach((e=>{a(e)||(s=!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){L(e,t,n[t])}))}return e}({},n);((t,n)=>{var l,o;switch(n.type){case g.b.ENTITY_CREATED:c(t,n);break;case g.b.ENTITIES_MERGED_ON_THE_FLY:case g.b.ENTITY_CHANGED:u(t,n);break;case g.b.ENTITY_LOST_MERGE:case g.b.ENTITY_REMOVED:d(t,n);break;case g.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?c(l.lifeTime,n):d(l.lifeTime,n),r.push({uri:t,user:n.user,type:n.type,fakeType:o?g.b.FAKE_UPDATE:g.b.FAKE_NAVIGATE_PROFILE,timestamp:n.timestamp})}));break;case g.b.ENTITIES_MERGED:case g.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),s&&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:c,type:u}=n;o===l&&(null==i||i.forEach((n=>{const l=e[n];if(!l)return;let o=null;switch(u){case g.b.ENTITIES_MERGED:case g.b.ENTITIES_MERGED_MANUALLY:o=g.b.FAKE_FILTERED_INCOMING;break;case g.b.ENTITIES_SPLITTED:o=g.b.FAKE_FILTERED_OUTGOING;break;default:return}const i={fakeType:o,uri:t.uri,uris:[n],type:u,user:c,timestamp:a},d=k(l.lifeTime,t.timestamp);o===g.b.FAKE_FILTERED_INCOMING?(0,s.isNil)(d.endIndex)||(l.lifeTime[d.endIndex].end=i):(0,s.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,s.pipe)((0,s.slice)(e+1,1/0),(0,s.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(A,{values:o,selectedValues:p,onSelectValues:E,entityUri:i,className:d.borderBottom}),l().createElement(D,{historyData:f,isLoading:t,onLoadMore:c,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(31421),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,b]=(0,r.useState)(null),[g,y]=(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&&(y(!0),v((0,l.kgP)(p({entityUri:T,historicUris:E,filter:c,showAll:O},I))).then(b).catch((e=>{console.warn("Failed to load history data",e),b(null)})).finally((()=>{y(!1)})))}),[c,O,E]),(0,r.useEffect)((()=>{T&&n&&(y(!0),v((0,l.wdF)({entityUri:T})).then((e=>{m(e)})).catch((e=>{console.warn("Failed to load history data",e),m(null)})).finally((()=>{y(!1)})),s(0))}),[T,null==t?void 0:t.updatedTime,n]);const x=(0,r.useCallback)((e=>{T&&E&&n&&(y(!0),v((0,l.kgP)(p({entityUri:T,historicUris:E,filter:c,showAll:O,offset:e},I))).then((e=>{b((t=>p({},t,{changes:[...null==t?void 0:t.changes,...e.changes]})))})).catch((e=>{console.warn("Failed to load history data",e)})).finally((()=>{y(!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(31421),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:()=>a});var r=n(24328),l=n(31421),o=n(19701),i=n(14596);const a=e=>{let{entity:t,historyEvent:n}=e;const[a,s]=(0,r.useState)(!1),c=(0,i.ax)("setHistorySlice"),u=(0,i.cV)(),d=(0,o._)(),{aStamp:p,bStamp:E,overrideUri:f}=n||{},m=f||(null==t?void 0:t.uri);return(0,r.useEffect)((()=>{n&&m&&(s(!0),d(Promise.all([(0,l.lrH)(m,p),E&&1!==E?(0,l.lrH)(m,E):Promise.resolve(null)])).then((e=>{let[t,n]=e;c({aEntity:t,bEntity:n})})).catch((e=>{console.warn("Failed to load entity slice",e)})).finally((()=>{s(!1)})))}),[p,E,m]),{isLoading:a,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,b]=(0,r.useState)(""),g=(0,r.useCallback)((()=>{m(!1),b("")}),[]),y=(0,r.useCallback)(((e,t)=>{"clickaway"!==t&&g()}),[g]),v=(0,r.useCallback)((e=>{m(!0),b(e)}),[]),T=(0,r.useCallback)((()=>l().createElement(s.Z,{container:document.body},l().createElement(u.Z,{open:f,anchorOrigin:e,autoHideDuration:o,onClose:y,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]="4ba0fab6-7ecb-4ed6-8fad-5acaef8541bb",e._sentryDebugIdIdentifier="sentry-dbid-4ba0fab6-7ecb-4ed6-8fad-5acaef8541bb")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1650"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3902],{55234:(e,t,n)=>{n.d(t,{Z:()=>I});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(31421),d=n(79312),p=n(15793),E=n(19602),f=n(59952),m=n(33117),h=n(14596),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){y(e,t,n[t])}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v={input:e=>g({},e,{fontSize:"14px"}),menuPortal:e=>g({},e,{zIndex:1300})},T=(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 I=e=>{let{entityType:t,selectedAttributes:n,className:o,onChange:a,title:b,disableUnderline:g,menuPlacement:y="bottom"}=e;const I=T(),O=(0,h.AH)(),x=(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,u.EUG)(O,r);return e.concat(o?x(o,t+1,l):[])}),[])}),[O]),S=(0,r.useMemo)((()=>x((null==t?void 0:t.attributes)||[])),[t,x]);return l().createElement("div",{className:s()(I.root,o),"data-reltio-id":"attribute-selector"},l().createElement(d.Z,{className:I.title,variant:"subtitle1"},b||i().text("Attribute")),l().createElement(p.Z,{value:n,options:S,TextFieldProps:{InputProps:{disableUnderline:g},classes:{root:I.dropDownInput}},components:{DropdownIndicator:f.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(E.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(m.Z,{checked:n,level:r.level,data:r,label:o,labelInText:o,isFocused:t}))}},onChange:(0,c.pipe)((0,c.defaultTo)([]),a),styles:v,classes:I,menuPlacement:y,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))}},77875:(e,t,n)=>{n.d(t,{Z:()=>E});var r=n(24328),l=n.n(r),o=n(50914),i=n(31421),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 b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function g(e){const{innerProps:t,innerRef:n,children:r,isFocused:o,isSelected:i,selectProps:{classes:a},label:s}=e;return l().createElement(p.Z,b({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 y={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,b=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({},y,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,b))}_.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,menuShouldBlockScroll:i().bool,captureMenuScroll:i().bool,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(2507),i=n.n(o),a=n(50914),s=n(71153),c=n.n(s),u=n(79312),d=n(15793),p=n(59952),E=n(31421),f=n(14596),m=n(51556),h=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){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 y={input:e=>b({},e,{fontSize:"14px"}),loadingMessage:e=>b({},e,{fontSize:"14px"}),menuPortal:e=>b({},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:o,disableUnderline:s}=e;const h=v(),b=(0,r.useRef)(null),g=(0,f.Uv)(),T=(0,f.au)(),I=e=>({value:e,label:e}),O=e=>e.map(I),x=(0,r.useRef)();return l().createElement("div",{className:c()(h.root,o),"data-reltio-id":"user-selector"},l().createElement(u.Z,{className:h.title,variant:"subtitle1"},i().text("User")),l().createElement(d.Z,{value:O(t),onChange:(0,a.pipe)((0,a.defaultTo)([]),(0,a.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(x.current||(x.current=(0,E.kz_)({tenant:g,servicesPath:T})),x.current.then((0,a.pipe)((0,a.pluck)("username"),(e=>t=>e?t.filter((t=>E.P6Y.strings.search(t,e))):t)(e),O))),TextFieldProps:{InputProps:{disableUnderline:s},className:h.dropDownInput,ref:b},components:{DropdownIndicator:p.Z,Menu:m.Z},styles:y,classes:h,menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1,inputRef:b}))}},20414:(e,t,n)=>{let r;n.d(t,{I:()=>r}),function(e){e.MODEL_UPDATED="MODEL_UPDATED",e.ENTITY_REMOVED="ENTITY_REMOVED",e.ENTITY_CREATED="ENTITY_CREATED",e.ENTITY_CHANGED="ENTITY_CHANGED",e.ENTITIES_MERGED="ENTITIES_MERGED",e.ENTITIES_SPLITTED="ENTITIES_SPLITTED",e.ENTITY_LOST_MERGE="ENTITY_LOST_MERGE",e.RELATIONSHIP_CREATED="RELATIONSHIP_CREATED",e.RELATIONSHIP_REMOVED="RELATIONSHIP_REMOVED",e.RELATIONSHIP_CHANGED="RELATIONSHIP_CHANGED",e.POTENTIAL_MATCHES_FOUND="POTENTIAL_MATCHES_FOUND",e.NOT_MATCHES_SET="NOT_MATCHES_SET",e.NOT_MATCHES_RESET="NOT_MATCHES_RESET",e.PERIODIC_TASK_SCHEDULED="PERIODIC_TASK_SCHEDULED",e.ENTITIES_MERGED_MANUALLY="ENTITIES_MERGED_MANUALLY",e.POTENTIAL_MATCHES_REMOVED="POTENTIAL_MATCHES_REMOVED",e.ENTITIES_MERGED_ON_THE_FLY="ENTITIES_MERGED_ON_THE_FLY",e.USER_LOGIN="USER_LOGIN",e.USER_LOGOUT="USER_LOGOUT",e.USER_SEARCH="USER_SEARCH",e.USER_PROFILE_VIEW="USER_PROFILE_VIEW",e.COMMENT_ADDED="COMMENT_ADDED",e.COMMENT_UPDATED="COMMENT_UPDATED",e.COMMENT_DELETED="COMMENT_DELETED",e.ANALYTICS_ATTRIBUTES_CHANGED="ANALYTICS_ATTRIBUTES_CHANGED",e.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE="SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE",e.GROUP_CREATED="GROUP_CREATED",e.GROUP_REMOVED="GROUP_REMOVED",e.GROUP_CHANGED="GROUP_CHANGED"}(r||(r={}))},57312:(e,t,n)=>{n.d(t,{te:()=>d,Io:()=>p,rx:()=>E,_V:()=>f,Xr:()=>m});var r=n(31421),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(31421),d=n(79573),p=n(53242),E=n(47019),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"}}),b=i().localeData().longDateFormat("L"),g=e=>{let{values:t,onChange:n,onFocus:o=d.ZT}=e;const i=b,a=(0,r.useRef)(null),[g,y]=(0,r.useState)(!1),v=h(),T=(0,r.useCallback)((()=>{y((e=>!e)),o()}),[o]);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.ZP,{open:g,anchorEl:a.current,onClose:()=>{y(!1)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2},l().createElement(m.Z,{values:t,onApply:e=>{n(e),y(!1)},type:u.oS0.TYPE_ACTIVENESS_DATE})))}},70675:(e,t,n)=>{n.d(t,{Z:()=>oe});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(79811),m=n(290),h=n(35936),b=n(31421),g=n(40435),y=n(15791),v=n(55234),T=n(71153),I=n.n(T),O=n(90590);const x=[b.KfU.WITHIN,b.KfU.AGO,b.KfU.BETWEEN],S=e=>({[b.KfU.WITHIN]:i().text("Within the last"),[b.KfU.AGO]:i().text("More than"),[b.KfU.BETWEEN]:i().text("Date range")}[e]||"");var N=n(77875),_=n(55962),C=n(27446),R=n(72342);const D=(0,R.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},intervalContainer:{display:"flex",justifyContent:"space-between"},typeInput:{width:160,marginRight:10}}),P=[null,null],M=[null,"hours"],w=e=>{let{value:t,onChange:n,className:o}=e;const a=D(),c=e=>e===b.KfU.WITHIN||e===b.KfU.AGO,u=e=>e===b.KfU.BETWEEN,d=u(null==t?void 0:t.type)?t.period:P,p=c(null==t?void 0:t.type)?t.period:M,[E,f]=(0,r.useState)(d),[m,h]=(0,r.useState)(p),g=(null==t?void 0:t.type)||b.KfU.WITHIN,y=e=>c(e)?m:u(e)?E:void 0,v=e=>{n({type:g,period:e})};return(0,_.D)((()=>{t?c(t.type)?h(t.period):u(t.type)&&f(t.period):(f(P),h(M))}),[t]),l().createElement("div",{className:I()(a.root,o),"data-reltio-id":"date-range-selector"},l().createElement(s.Z,{className:a.title,variant:"subtitle1"},i().text("Date")),l().createElement("div",{className:a.intervalContainer},l().createElement(O.Z,{label:"",className:a.typeInput,value:{value:g,label:S(g)},options:x.map((e=>({value:e,label:S(e)}))),onChange:e=>{let{value:r}=e;(null==t?void 0:t.type)!==r&&n({period:y(r),type:r})}}),c(g)?l().createElement(N.Z,{interval:m,onChange:v}):l().createElement(C.Z,{values:E,onChange:v})))};var A=n(15793),L=n(59952),k=n(38323);const U=[k.M.UPDATE,k.M.MERGE,k.M.UNMERGE];function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){G(e,t,n[t])}))}return e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j={input:e=>H({},e,{fontSize:"14px"}),menuPortal:e=>H({},e,{zIndex:1300})},Z=(0,R.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},valueContainer:{overflowY:"auto",height:44},option:{fontSize:"14px",height:"32px"}}),F=e=>{let{selectedHistoryActivityTypes:t,onChange:n,className:r,disableUnderline:o}=e;const a=Z(),u=e=>{return{value:e,label:(t=e,{[k.M.UPDATE]:i().text("Update"),[k.M.MERGE]:i().text("Merge"),[k.M.UNMERGE]:i().text("Unmerge")}[t]||"")};var t},d=e=>e.map(u),p=d(U);return l().createElement("div",{className:I()(a.root,r),"data-reltio-id":"history-activity-selector"},l().createElement(s.Z,{className:a.title,variant:"subtitle1"},i().text("Activity")),l().createElement(A.Z,{value:d(t),onChange:(0,c.pipe)((0,c.defaultTo)([]),(0,c.pluck)("value"),n),options:p,TextFieldProps:{InputProps:{disableUnderline:o},classes:{root:a.dropDownInput}},components:{DropdownIndicator:L.Z},styles:j,classes:a,menuPlacement:"bottom",menuPortalTarget:document.body,menuShouldBlockScroll:!0,captureMenuScroll:!1}))};var z=n(7108);const B=(0,R.makeStyles)({popup:{width:500,minHeight:500,overflowY:"hidden",display:"flex",flexDirection:"column"},filterContainer:{maxHeight:"400px",borderColor:"rgba(0,0,0,0.12)"},filterItem:{"&:not(:last-child)":{marginBottom:12}},clearButton:{marginRight:"auto"},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px"},divider:{marginBottom:12}});function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Y(e,t,n[t])}))}return e}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $=e=>{let{className:t,filter:n,onApplyFilter:o,entityType:s}=e;const u=B(),T=(0,r.useRef)(),[I,O]=(0,r.useState)(!1),[x,S]=(0,r.useState)(n),{activities:N=[],attributes:_=[],dateRange:C=null,users:R=[]}=x||{},D=(0,z.FE)(n)?"inherit":"primary";(0,r.useEffect)((()=>{I&&S(n)}),[n,I]);const P=(0,c.curry)(((e,t)=>{S((n=>V({},n,{[e]:t})))})),M=(0,r.useCallback)((()=>{O((e=>!e))}),[]),A=(0,r.useCallback)((()=>{C&&(0,b.RZp)(C)?o(x):o((0,c.dissoc)("dateRange",x)),M()}),[x,C,o,M]),L=(0,r.useCallback)((()=>{S(V({},z.tO))}),[]);return l().createElement(l().Fragment,null,l().createElement(g.Z,{ref:T,color:D,icon:d.Z,size:"L",onClick:M,className:t}),l().createElement(E.ZP,{classes:{paper:u.popup},open:I,anchorEl:T.current,onClose:M,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},l().createElement(h.Z,null,i().text("Filter")),l().createElement(m.Z,{dividers:!0,className:u.filterContainer},l().createElement(w,{value:C,onChange:P("dateRange"),className:u.filterItem}),l().createElement(a.Z,{light:!0,className:u.divider}),l().createElement(y.Z,{selectedUsers:R,onChange:P("users"),className:u.filterItem,disableUnderline:!0}),l().createElement(a.Z,{light:!0,className:u.divider}),l().createElement(F,{selectedHistoryActivityTypes:N,onChange:P("activities"),className:u.filterItem,disableUnderline:!0}),l().createElement(a.Z,{light:!0,className:u.divider}),l().createElement(v.Z,{selectedAttributes:_,entityType:s,onChange:P("attributes"),className:u.filterItem,title:i().text("Attribute updated"),disableUnderline:!0})),l().createElement(f.Z,null,l().createElement(p.Z,{onClick:L,className:u.clearButton},i().text("Clear all")),l().createElement(p.Z,{onClick:M},i().text("Cancel")),l().createElement(p.Z,{color:"primary",onClick:A},i().text("Apply")))))};var W=n(50985),K=n(98538),q=n(95341),X=n(42713),J=n(79573);const Q=(0,R.makeStyles)({menuItem:{minHeight:"32px"},menuText:{fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"30px"},checkIcon:{position:"absolute",color:"rgba(0, 0, 0, 0.54)"}}),ee=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=J.ZT}=e;const o=Q(),{text:i,selected:a,onClick:c}=n;return l().createElement(q.Z,{classes:{root:o.menuItem},onClick:e=>{r(),c(e)},ref:t},a&&l().createElement(X.Z,{className:o.checkIcon}),l().createElement(s.Z,{classes:{root:o.menuText}},i))}));ee.displayName="MenuItemRenderer";const te=ee;var ne=n(14596);const re=()=>{const e=(0,ne.ax)("setHistoryMode"),t=(0,ne.bn)(),n=[{text:i().text("Compare to Current view"),selected:t===b.Z9$.Current,onClick:()=>e(b.Z9$.Current)},{text:i().text("Compare to Previous view"),selected:t===b.Z9$.Previous,onClick:()=>e(b.Z9$.Previous)}];return l().createElement(K.Z,{MenuItemRenderer:te,buttonComponent:g.Z,buttonProps:{icon:W.Z,size:"L"},menuId:"history-menu",menuItems:n})},le=(0,R.makeStyles)({root:{display:"flex",flex:1,alignItems:"center"},icon:{margin:4},divider:{borderColor:"rgba(0,0,0,0.12)",margin:"3px 19px"},count:{fontSize:14},filterButton:{marginRight:"-4px"}}),oe=e=>{let{total:t,entityType:n,filter:r,onApplyFilter:o}=e;const d=le();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($,{className:d.filterButton,entityType:n,filter:r,onApplyFilter:o}),l().createElement(re,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:()=>H});var r=n(24328),l=n.n(r),o=n(44443),i=n(2507),a=n.n(i),s=n(50914),c=n(71153),u=n.n(c),d=n(31421),p=n(38677),E=n(79312),f=n(57312),m=n(72342);const h=(0,m.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:s,matchGroups:c,user:p,timestamp:m}=t,b=(0,d.GtP)(i),g=h({color:b});return l().createElement("div",{className:u()(g.historyRow,{[g.selected]:r}),onClick:o},l().createElement("div",{className:g.rowHeader},l().createElement("div",{className:g.badge}),l().createElement(E.Z,{className:u()(g.title,{bold:n})},n?a().text("Current view"):(0,f.Xr)(s)),!n&&l().createElement(E.Z,{className:g.date},a().date(m,"L LT"))),c&&l().createElement(E.Z,{className:g.title},a().text("Match rule:")," ",c.join(", ")),l().createElement(E.Z,{className:g.user},p))};var g=n(21256);const y=e=>e===g.b.FAKE_FILTERED_INCOMING||e===g.b.FAKE_FILTERED_OUTGOING,v=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 T(){return T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}const I=(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",T({},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 O=(0,n(78223).Z)(I),x=(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:p,fakeType:E,index:f,timestamp:m,label:h}=t;const b=16*r[s].index+24,T=i[a];i.push(T+c);const I=y(E),x=I?u[0]:s,S=!(null!=u&&u.some((e=>r[e])));e.circles.push(l().createElement(O,{tooltipTitle:h,tooltipPlacement:"top",onMouseOver:n?()=>n(s,m,f):void 0,key:`circle-${x}-${a}`,x:b,y:T,color:(0,d.GtP)(x),isDashed:I,isCollapsed:S,showCollapseIcon:!!u,showLine:E===g.b.FAKE_NAVIGATE_PROFILE})),e.rowLines.push(l().createElement("rect",{key:`${x}-${f}`,x:b,y:T-8,width:"100%",height:16,fill:(0,d.GtP)(x),opacity:.06}));const N=p===g.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?T-i:T+i;b!==s&&e.links.push(l().createElement(v,{key:`link-${t}-${f}`,x:b,y:T,toX:s,toY:c,isDashed:y(E),color:(0,d.GtP)(t)}))})),e}),{links:[],circles:[],rowLines:[]}),u=16*Object.keys(r).length+24,p=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:p,end:E}=e;if((null===(u=o[null==E?void 0:E.index])||void 0===u?void 0:u.type)===g.b.ENTITIES_SPLITTED)return;const f=(null==p?void 0:p.type)===g.b.ENTITIES_SPLITTED?(null==p?void 0:p.index)-1:null==p?void 0:p.index,m=(null==E?void 0:E.type)===g.b.ENTITIES_MERGED_MANUALLY||(null==E?void 0:E.type)===g.b.ENTITIES_MERGED?(null==E?void 0:E.index)+1:null==E?void 0:E.index,h=i[f]||i[i.length-2],b=i[m]||16;if(h<=b)return;const y=(0,d.GtP)(t);!E&&n.index>0&&c.push(l().createElement(I,{key:`initCircle-${t}-${s}`,x:r,y:b,color:y,showLine:!0})),a.unshift(l().createElement("path",{key:`line-${t}-${s}`,d:`M${r} ${h} L${r} ${b}`,stroke:y,strokeWidth:2}))}))})),l().createElement("svg",{className:"chart",width:u,height:p},l().createElement("g",{id:"rowLines"},s),l().createElement("g",{id:"links"},a),l().createElement("g",{id:"circles"},c))}));var S=n(87378),N=n(14596);const _=(0,m.makeStyles)({historyTree:{display:"grid",gridTemplateColumns:"auto 1fr",overflowY:"auto"},graph:{overflowX:"auto",overflowY:"hidden"},history:{minWidth:"260px"},buttonContainer:{gridColumnStart:1,gridColumnEnd:3,padding:"8px 16px"},shadow:{boxShadow:"inset -8px 0px 5px -5px rgba(0,0,0,0.1)"}});function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){R(e,t,n[t])}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const D=e=>{let{historyData:t,isLoading:n,canLoadMore:i,onLoadMore:c,entityUri:E,historyEvent:f,findPreviousChange:m}=e;const h=_(),[g,y]=(0,r.useState)({historyLanes:{},rows:[]}),[v,T]=(0,r.useState)(!1),[I,O]=(0,r.useState)(-1),R=(0,N.ax)("setHistoryEvent"),D=(0,N.ax)("clearHistoryEvent"),P=(0,N.ax)("modeUpdated"),M=(0,N.AH)(),w=(0,N.o_)();(0,r.useEffect)((()=>{if((0,s.isNil)(f))return void O(0);const e=e=>(null==e?void 0:e.uri)===((null==f?void 0:f.overrideUri)||E)&&(null==e?void 0:e.timestamp)===(null==f?void 0:f.aStamp),n=-1!==I?t.rows[I]:null,r=t.rows.findIndex((t=>e(t)));O(e(n)?I:r)}),[t.rows,f]);const A=(0,r.useRef)(null),L=(0,r.useCallback)((e=>{if(!(0,s.isNil)(e)){var n;const r=null===(n=t.rows)||void 0===n?void 0:n.map(((t,n)=>{var r;return C({},t,{height:null===(r=e.childNodes[n])||void 0===r?void 0:r.clientHeight})}));y({historyLanes:t.historyLanes,rows:r})}}),[t]),k=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:n}=(null==A?void 0:A.current)||{};T(n<e-t)};return l().createElement("div",{className:h.historyTree},n&&l().createElement(S.Z,null),l().createElement("div",{className:u()(h.graph,{[h.shadow]:v}),onScroll:k,ref:A},l().createElement(x,{onHistoryCircleMouseOver:(e,t,n)=>{if((0,s.isNil)(g.rows[n].label)){const r={time:t,select:"crosswalks"};(0,d.HvW)(e,r).then((e=>{let{crosswalks:t}=e;const r=t?(0,s.uniqBy)((0,s.prop)("type"),t).map((e=>{const t=(0,d.s5)(M,e.type);return t?t.label:null})).filter(s.identity).join(", "):a().text("No data");y((e=>C({},e,{rows:e.rows.map((e=>e.index===n?C({},e,{label:r}):e))})))}))}},graphData:g}),l().createElement(o.Z,{handleWidth:!0,onResize:k})),l().createElement("div",{ref:L,className:h.history},t.rows.map(((e,t)=>{const n=t===I,r=0===t;return l().createElement(b,{key:`row-${t}`,change:e,isCurrent:r,isSelected:n,onClick:()=>((e,t,n,r)=>{if(w){if(!window.confirm(a().text("Are you sure you want to go in history mode? All your changes will be lost.")))return;P(d.ARY.Viewing)}if(r&&!n||!r&&n)D(),O(0);else if(!r&&!n){const n=m(e-1,t.uri||E),r=m(e,t.uri||E),l=null==n?void 0:n.timestamp,o=null==r?void 0:r.timestamp,i=(null==t?void 0:t.uri)===E?null:null==t?void 0:t.uri;R({aStamp:l,bStamp:o,overrideUri:i}),O(e)}})(t,e,n,r)})}))),i&&l().createElement("div",{className:h.buttonContainer},l().createElement(p.Z,{color:"primary",onClick:()=>c()},a().text("Show more"))))},P=(0,m.makeStyles)({root:{display:"flex",flexWrap:"wrap",padding:"10px 15px"}}),M=(0,m.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"}}),w=e=>{let{value:t,isSelected:n=!0,onClick:r}=e;const o=(0,d.GtP)(t),i=M({color:o});return l().createElement("div",{className:u()(i.icon,{[i.inactive]:!n,[i.active]:n,[i.clickable]:!!r}),onClick:r})},A=e=>{let{values:t,selectedValues:n,entityUri:r,onSelectValues:o,className:i}=e;const a=P();return l().createElement("div",{className:u()(a.root,i)},l().createElement(w,{value:r}),(null==t?void 0:t.length)>0&&t.map((e=>l().createElement(w,{key:e,value:e,isSelected:null==n?void 0:n.includes(e),onClick:()=>(e=>{null!=n&&n.includes(e)?o((0,s.without)([e],n)):o([...n||[],e])})(e)}))))};function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const k=(e,t)=>e.reduce(((e,n,r)=>{let{start:l,end:o}=n;if(l){const n=t-l.timestamp;((0,s.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,s.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}),U=(0,m.makeStyles)({root:{display:"flex",flexDirection:"column",overflow:"hidden",position:"relative",height:"100%"},borderBottom:{borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}}),H=(0,r.memo)((e=>{let{isLoading:t,historyWithTotal:n,contributorsUris:o,entityUri:i,canLoadMore:a,onLoadMore:c,historyEvent:u}=e;const d=U(),[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,s.curry)(((e,n,r)=>{const l=r.uri||t;if(e)if(Array.isArray(e)){if(r.type!==g.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,s.pipe)((0,s.drop)(e+1),(0,s.find)(o(t,r)))(n),a=t=>(e[t]||l&&!l.includes(t)||(e[t]={index:Object.keys(e).length,lifeTime:[]}),e[t]),c=(e,t)=>{const n=e[e.length-1];!n||n.start&&(n.start.type!==g.b.ENTITY_CREATED||t.type!==g.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 g.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 g.b.ENTITY_LOST_MERGE:case g.b.RELATIONSHIP_CREATED:case g.b.RELATIONSHIP_REMOVED:case g.b.RELATIONSHIP_CHANGED:return}let s=!1;null===(o=n.uris)||void 0===o||o.forEach((e=>{a(e)||(s=!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){L(e,t,n[t])}))}return e}({},n);((t,n)=>{var l,o;switch(n.type){case g.b.ENTITY_CREATED:c(t,n);break;case g.b.ENTITIES_MERGED_ON_THE_FLY:case g.b.ENTITY_CHANGED:u(t,n);break;case g.b.ENTITY_LOST_MERGE:case g.b.ENTITY_REMOVED:d(t,n);break;case g.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?c(l.lifeTime,n):d(l.lifeTime,n),r.push({uri:t,user:n.user,type:n.type,fakeType:o?g.b.FAKE_UPDATE:g.b.FAKE_NAVIGATE_PROFILE,timestamp:n.timestamp})}));break;case g.b.ENTITIES_MERGED:case g.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),s&&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:c,type:u}=n;o===l&&(null==i||i.forEach((n=>{const l=e[n];if(!l)return;let o=null;switch(u){case g.b.ENTITIES_MERGED:case g.b.ENTITIES_MERGED_MANUALLY:o=g.b.FAKE_FILTERED_INCOMING;break;case g.b.ENTITIES_SPLITTED:o=g.b.FAKE_FILTERED_OUTGOING;break;default:return}const i={fakeType:o,uri:t.uri,uris:[n],type:u,user:c,timestamp:a},d=k(l.lifeTime,t.timestamp);o===g.b.FAKE_FILTERED_INCOMING?(0,s.isNil)(d.endIndex)||(l.lifeTime[d.endIndex].end=i):(0,s.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,s.pipe)((0,s.slice)(e+1,1/0),(0,s.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(A,{values:o,selectedValues:p,onSelectValues:E,entityUri:i,className:d.borderBottom}),l().createElement(D,{historyData:f,isLoading:t,onLoadMore:c,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(31421),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,b]=(0,r.useState)(null),[g,y]=(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&&(y(!0),v((0,l.kgP)(p({entityUri:T,historicUris:E,filter:c,showAll:O},I))).then(b).catch((e=>{console.warn("Failed to load history data",e),b(null)})).finally((()=>{y(!1)})))}),[c,O,E]),(0,r.useEffect)((()=>{T&&n&&(y(!0),v((0,l.wdF)({entityUri:T})).then((e=>{m(e)})).catch((e=>{console.warn("Failed to load history data",e),m(null)})).finally((()=>{y(!1)})),s(0))}),[T,null==t?void 0:t.updatedTime,n]);const x=(0,r.useCallback)((e=>{T&&E&&n&&(y(!0),v((0,l.kgP)(p({entityUri:T,historicUris:E,filter:c,showAll:O,offset:e},I))).then((e=>{b((t=>p({},t,{changes:[...null==t?void 0:t.changes,...e.changes]})))})).catch((e=>{console.warn("Failed to load history data",e)})).finally((()=>{y(!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(31421),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:()=>a});var r=n(24328),l=n(31421),o=n(19701),i=n(14596);const a=e=>{let{entity:t,historyEvent:n}=e;const[a,s]=(0,r.useState)(!1),c=(0,i.ax)("setHistorySlice"),u=(0,i.cV)(),d=(0,o._)(),{aStamp:p,bStamp:E,overrideUri:f}=n||{},m=f||(null==t?void 0:t.uri);return(0,r.useEffect)((()=>{n&&m&&(s(!0),d(Promise.all([(0,l.lrH)(m,p),E&&1!==E?(0,l.lrH)(m,E):Promise.resolve(null)])).then((e=>{let[t,n]=e;c({aEntity:t,bEntity:n})})).catch((e=>{console.warn("Failed to load entity slice",e)})).finally((()=>{s(!1)})))}),[p,E,m]),{isLoading:a,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,b]=(0,r.useState)(""),g=(0,r.useCallback)((()=>{m(!1),b("")}),[]),y=(0,r.useCallback)(((e,t)=>{"clickaway"!==t&&g()}),[g]),v=(0,r.useCallback)((e=>{m(!0),b(e)}),[]),T=(0,r.useCallback)((()=>l().createElement(s.Z,{container:document.body},l().createElement(u.Z,{open:f,anchorOrigin:e,autoHideDuration:o,onClose:y,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}}}}]);
|
|
2
2
|
//# sourceMappingURL=3902.js.map
|