@reltio/remotes 1.4.1621 → 1.4.1623
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/1146.js +1 -1
- package/1148.js +1 -1
- package/1334.js +1 -1
- package/1425.js +1 -1
- package/1572.js +1 -1
- package/1572.js.map +1 -1
- package/1664.js +1 -1
- package/1707.js +1 -1
- package/1790.js +1 -1
- package/1840.js +1 -1
- package/1925.js +1 -1
- package/1925.js.map +1 -1
- package/2049.js +1 -1
- package/2066.js +1 -1
- package/2066.js.map +1 -1
- package/2201.js +1 -1
- package/2400.js +1 -1
- package/2400.js.map +1 -1
- package/2404.js +1 -1
- package/2404.js.map +1 -1
- package/2463.js +1 -1
- package/2641.js +1 -1
- package/2641.js.map +1 -1
- package/3096.js +1 -1
- package/3348.js +1 -1
- package/3358.js +1 -1
- package/3358.js.map +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/3538.js.map +1 -1
- package/356.js +1 -1
- package/3875.js +1 -1
- package/3902.js +1 -1
- package/3902.js.map +1 -1
- package/3926.js +1 -1
- package/3926.js.map +1 -1
- package/415.js +1 -1
- package/4212.js +1 -1
- package/4390.js +1 -1
- package/4481.js +1 -1
- package/4703.js +1 -1
- package/4780.js +1 -1
- package/4806.js +1 -1
- package/4838.js +1 -1
- package/50.js +1 -1
- package/5034.js +1 -1
- package/5039.js +1 -1
- package/5053.js +1 -1
- package/5108.js +1 -1
- package/5163.js +1 -1
- package/5163.js.map +1 -1
- package/5617.js +1 -1
- package/6020.js +1 -1
- package/6173.js +1 -1
- package/6228.js +1 -1
- package/6280.js +1 -1
- package/6287.js +1 -1
- package/6531.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/6853.js +1 -1
- package/6860.js +1 -1
- package/6903.js +1 -1
- package/7340.js +1 -1
- package/735.js +1 -1
- package/7422.js +1 -1
- package/7626.js +1 -1
- package/764.js +1 -1
- package/7896.js +1 -1
- package/8168.js +1 -1
- package/820.js +1 -1
- package/8207.js +1 -1
- package/8322.js +1 -1
- package/8481.js +2 -0
- package/8481.js.map +1 -0
- package/8565.js +1 -1
- package/8741.js +1 -1
- package/9016.js +1 -1
- package/9028.js +1 -1
- package/9028.js.map +1 -1
- package/9283.js +1 -1
- package/9309.js +1 -1
- package/9328.js +1 -1
- package/9387.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 +1 -1
- package/9945.js +2 -0
- package/9945.js.map +1 -0
- package/9960.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/remoteEntry.js.map +1 -1
- package/3727.js +0 -2
- package/3727.js.map +0 -1
- package/673.js +0 -2
- package/673.js.map +0 -1
package/356.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]="4920c5f3-aede-49b4-8ff7-0124c3d87a93",e._sentryDebugIdIdentifier="sentry-dbid-4920c5f3-aede-49b4-8ff7-0124c3d87a93")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1622"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[356],{37453:(e,t,r)=>{r.d(t,{Z:()=>v});var o=r(31461),n=r(7896),a=r(24328),i=(r(11649),r(6277)),s=r(69075),l=r(65992),d=r(43853),c=r(64354),u=r(12115),p=r(67002),g=r(19570),m=r(63079),h=r(52322);const f=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],b=(0,l.ZP)(u.Z,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${m.Z.region}`]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${m.Z.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${m.Z.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>(0,n.Z)({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${m.Z.expanded}`]:{margin:"16px 0"}}))),v=a.forwardRef((function(e,t){const r=(0,d.Z)({props:e,name:"MuiAccordion"}),{children:l,className:u,defaultExpanded:v=!1,disabled:Z=!1,disableGutters:x=!1,expanded:y,onChange:w,square:R=!1,TransitionComponent:C=c.Z,TransitionProps:S}=r,O=(0,o.Z)(r,f),[$,I]=(0,g.Z)({controlled:y,default:v,name:"Accordion",state:"expanded"}),M=a.useCallback((e=>{I(!$),w&&w(e,!$)}),[$,w,I]),[N,...P]=a.Children.toArray(l),E=a.useMemo((()=>({expanded:$,disabled:Z,disableGutters:x,toggle:M})),[$,Z,x,M]),z=(0,n.Z)({},r,{square:R,disabled:Z,disableGutters:x,expanded:$}),B=(e=>{const{classes:t,square:r,expanded:o,disabled:n,disableGutters:a}=e,i={root:["root",!r&&"rounded",o&&"expanded",n&&"disabled",!a&&"gutters"],region:["region"]};return(0,s.Z)(i,m.k,t)})(z);return(0,h.jsxs)(b,(0,n.Z)({className:(0,i.default)(B.root,u),ref:t,ownerState:z,square:R},O,{children:[(0,h.jsx)(p.Z.Provider,{value:E,children:N}),(0,h.jsx)(C,(0,n.Z)({in:$,timeout:"auto"},S,{children:(0,h.jsx)("div",{"aria-labelledby":N.props.id,id:N.props["aria-controls"],role:"region",className:B.region,children:P})}))]}))}))},67002:(e,t,r)=>{r.d(t,{Z:()=>o});const o=r(24328).createContext({})},63079:(e,t,r)=>{r.d(t,{k:()=>a,Z:()=>i});var o=r(69222),n=r(15672);function a(e){return(0,n.Z)("MuiAccordion",e)}const i=(0,o.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"])},6341:(e,t,r)=>{r.d(t,{Z:()=>m});var o=r(7896),n=r(31461),a=r(24328),i=r(6277),s=r(69075),l=r(65992),d=r(43853),c=r(26485),u=r(52322);const p=["className"],g=(0,l.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)}))),m=a.forwardRef((function(e,t){const r=(0,d.Z)({props:e,name:"MuiAccordionDetails"}),{className:a}=r,l=(0,n.Z)(r,p),m=r,h=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},c.s,t)})(m);return(0,u.jsx)(g,(0,o.Z)({className:(0,i.default)(h.root,a),ref:t,ownerState:m},l))}))},26485:(e,t,r)=>{r.d(t,{s:()=>a,Z:()=>i});var o=r(69222),n=r(15672);function a(e){return(0,n.Z)("MuiAccordionDetails",e)}const i=(0,o.Z)("MuiAccordionDetails",["root"])},53711:(e,t,r)=>{r.d(t,{Z:()=>v});var o=r(31461),n=r(7896),a=r(24328),i=r(6277),s=r(69075),l=r(65992),d=r(43853),c=r(13705),u=r(67002),p=r(36952),g=r(52322);const m=["children","className","expandIcon","focusVisibleClassName","onClick"],h=(0,l.ZP)(c.Z,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return(0,n.Z)({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${p.Z.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${p.Z.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${p.Z.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${p.Z.expanded}`]:{minHeight:64}})})),f=(0,l.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>(0,n.Z)({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${p.Z.expanded}`]:{margin:"20px 0"}}))),b=(0,l.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${p.Z.expanded}`]:{transform:"rotate(180deg)"}}))),v=a.forwardRef((function(e,t){const r=(0,d.Z)({props:e,name:"MuiAccordionSummary"}),{children:l,className:c,expandIcon:v,focusVisibleClassName:Z,onClick:x}=r,y=(0,o.Z)(r,m),{disabled:w=!1,disableGutters:R,expanded:C,toggle:S}=a.useContext(u.Z),O=(0,n.Z)({},r,{expanded:C,disabled:w,disableGutters:R}),$=(e=>{const{classes:t,expanded:r,disabled:o,disableGutters:n}=e,a={root:["root",r&&"expanded",o&&"disabled",!n&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!n&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]};return(0,s.Z)(a,p.i,t)})(O);return(0,g.jsxs)(h,(0,n.Z)({focusRipple:!1,disableRipple:!0,disabled:w,component:"div","aria-expanded":C,className:(0,i.default)($.root,c),focusVisibleClassName:(0,i.default)($.focusVisible,Z),onClick:e=>{S&&S(e),x&&x(e)},ref:t,ownerState:O},y,{children:[(0,g.jsx)(f,{className:$.content,ownerState:O,children:l}),v&&(0,g.jsx)(b,{className:$.expandIconWrapper,ownerState:O,children:v})]}))}))},36952:(e,t,r)=>{r.d(t,{i:()=>a,Z:()=>i});var o=r(69222),n=r(15672);function a(e){return(0,n.Z)("MuiAccordionSummary",e)}const i=(0,o.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"])},71001:(e,t,r)=>{r.d(t,{Z:()=>v});var o=r(31461),n=r(7896),a=r(24328),i=r(6277),s=r(5666),l=r(69075),d=r(80876),c=r(65992),u=r(43853),p=r(7342),g=r(97851),m=r(52322);const h=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],f=(0,c.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),b=(0,c.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.badge,t[r.variant],t[`anchorOrigin${(0,p.Z)(r.anchorOrigin.vertical)}${(0,p.Z)(r.anchorOrigin.horizontal)}${(0,p.Z)(r.overlap)}`],"default"!==r.color&&t[`color${(0,p.Z)(r.color)}`],r.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>(0,n.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),v=a.forwardRef((function(e,t){var r,a,c,v,Z,x;const y=(0,u.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:w={vertical:"top",horizontal:"right"},className:R,component:C,components:S={},componentsProps:O={},children:$,overlap:I="rectangular",color:M="default",invisible:N=!1,max:P=99,badgeContent:E,slots:z,slotProps:B,showZero:T=!1,variant:k="standard"}=y,A=(0,o.Z)(y,h),{badgeContent:j,invisible:W,max:D,displayValue:G}=function(e){const{badgeContent:t,invisible:r=!1,max:o=99,showZero:n=!1}=e,a=(0,s.Z)({badgeContent:t,max:o});let i=r;!1!==r||0!==t||n||(i=!0);const{badgeContent:l,max:d=o}=i?a:e;return{badgeContent:l,invisible:i,max:d,displayValue:l&&Number(l)>d?`${d}+`:l}}({max:P,invisible:N,badgeContent:E,showZero:T}),L=(0,s.Z)({anchorOrigin:w,color:M,overlap:I,variant:k,badgeContent:E}),_=W||null==j&&"dot"!==k,{color:V=M,overlap:q=I,anchorOrigin:H=w,variant:F=k}=_?L:y,Y="dot"!==F?G:void 0,J=(0,n.Z)({},y,{badgeContent:j,invisible:_,max:D,displayValue:Y,showZero:T,anchorOrigin:H,color:V,overlap:q,variant:F}),K=(e=>{const{color:t,anchorOrigin:r,invisible:o,overlap:n,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,o&&"invisible",`anchorOrigin${(0,p.Z)(r.vertical)}${(0,p.Z)(r.horizontal)}`,`anchorOrigin${(0,p.Z)(r.vertical)}${(0,p.Z)(r.horizontal)}${(0,p.Z)(n)}`,`overlap${(0,p.Z)(n)}`,"default"!==t&&`color${(0,p.Z)(t)}`]};return(0,l.Z)(s,g.I,i)})(J),Q=null!=(r=null!=(a=null==z?void 0:z.root)?a:S.Root)?r:f,U=null!=(c=null!=(v=null==z?void 0:z.badge)?v:S.Badge)?c:b,X=null!=(Z=null==B?void 0:B.root)?Z:O.root,ee=null!=(x=null==B?void 0:B.badge)?x:O.badge,te=(0,d.Z)({elementType:Q,externalSlotProps:X,externalForwardedProps:A,additionalProps:{ref:t,as:C},ownerState:J,className:(0,i.default)(null==X?void 0:X.className,K.root,R)}),re=(0,d.Z)({elementType:U,externalSlotProps:ee,ownerState:J,className:(0,i.default)(K.badge,null==ee?void 0:ee.className)});return(0,m.jsxs)(Q,(0,n.Z)({},te,{children:[$,(0,m.jsx)(U,(0,n.Z)({},re,{children:Y}))]}))}))},97851:(e,t,r)=>{r.d(t,{I:()=>a,Z:()=>i});var o=r(69222),n=r(15672);function a(e){return(0,n.Z)("MuiBadge",e)}const i=(0,o.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"])},62553:(e,t,r)=>{r.d(t,{Z:()=>$});var o=r(7896),n=r(31461),a=r(24328),i=(r(11649),r(6277)),s=r(69075),l=r(80876),d=r(65992),c=r(43853),u=r(79312),p=r(47591),g=r(6620),m=r(52322);const h=(0,g.Z)((0,m.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");var f=r(13705);const b=["slots","slotProps"],v=(0,d.ZP)(f.Z)((({theme:e})=>(0,o.Z)({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},"light"===e.palette.mode?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,o.Z)({},"light"===e.palette.mode?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":(0,o.Z)({boxShadow:e.shadows[0]},"light"===e.palette.mode?{backgroundColor:(0,p._4)(e.palette.grey[200],.12)}:{backgroundColor:(0,p._4)(e.palette.grey[600],.12)})}))),Z=(0,d.ZP)(h)({width:24,height:16}),x=function(e){const{slots:t={},slotProps:r={}}=e,a=(0,n.Z)(e,b),i=e;return(0,m.jsx)("li",{children:(0,m.jsx)(v,(0,o.Z)({focusRipple:!0},a,{ownerState:i,children:(0,m.jsx)(Z,(0,o.Z)({as:t.CollapsedIcon,ownerState:i},r.collapsedIcon))}))})};var y=r(36194);const w=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],R=(0,d.ZP)(u.Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${y.Z.li}`]:t.li},t.root]})({}),C=(0,d.ZP)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),S=(0,d.ZP)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function O(e,t,r,o){return e.reduce(((n,a,i)=>(i<e.length-1?n=n.concat(a,(0,m.jsx)(S,{"aria-hidden":!0,className:t,ownerState:o,children:r},`separator-${i}`)):n.push(a),n)),[])}const $=a.forwardRef((function(e,t){const r=(0,c.Z)({props:e,name:"MuiBreadcrumbs"}),{children:d,className:u,component:p="nav",slots:g={},slotProps:h={},expandText:f="Show path",itemsAfterCollapse:b=1,itemsBeforeCollapse:v=1,maxItems:Z=8,separator:S="/"}=r,$=(0,n.Z)(r,w),[I,M]=a.useState(!1),N=(0,o.Z)({},r,{component:p,expanded:I,expandText:f,itemsAfterCollapse:b,itemsBeforeCollapse:v,maxItems:Z,separator:S}),P=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},y.O,t)})(N),E=(0,l.Z)({elementType:g.CollapsedIcon,externalSlotProps:h.collapsedIcon,ownerState:N}),z=a.useRef(null),B=a.Children.toArray(d).filter((e=>a.isValidElement(e))).map(((e,t)=>(0,m.jsx)("li",{className:P.li,children:e},`child-${t}`)));return(0,m.jsx)(R,(0,o.Z)({ref:t,component:p,color:"text.secondary",className:(0,i.default)(P.root,u),ownerState:N},$,{children:(0,m.jsx)(C,{className:P.ol,ref:z,ownerState:N,children:O(I||Z&&B.length<=Z?B:(e=>v+b>=e.length?e:[...e.slice(0,v),(0,m.jsx)(x,{"aria-label":f,slots:{CollapsedIcon:g.CollapsedIcon},slotProps:{collapsedIcon:E},onClick:()=>{M(!0);const e=z.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis"),...e.slice(e.length-b,e.length)])(B),P.separator,S,N)})}))}))},36194:(e,t,r)=>{r.d(t,{O:()=>a,Z:()=>i});var o=r(69222),n=r(15672);function a(e){return(0,n.Z)("MuiBreadcrumbs",e)}const i=(0,o.Z)("MuiBreadcrumbs",["root","ol","li","separator"])},64354:(e,t,r)=>{r.d(t,{Z:()=>w});var o=r(31461),n=r(7896),a=r(24328),i=r(6277),s=r(14657),l=r(69075),d=r(65992),c=r(43853),u=r(15633),p=r(13331),g=r(47746),m=r(98659),h=r(60992),f=r(52322);const b=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],v=(0,d.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],"entered"===r.state&&t.entered,"exited"===r.state&&!r.in&&"0px"===r.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>(0,n.Z)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&(0,n.Z)({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),Z=(0,d.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>(0,n.Z)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),x=(0,d.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>(0,n.Z)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),y=a.forwardRef((function(e,t){const r=(0,c.Z)({props:e,name:"MuiCollapse"}),{addEndListener:d,children:y,className:w,collapsedSize:R="0px",component:C,easing:S,in:O,onEnter:$,onEntered:I,onEntering:M,onExit:N,onExited:P,onExiting:E,orientation:z="vertical",style:B,timeout:T=u.x9.standard,TransitionComponent:k=s.ZP}=r,A=(0,o.Z)(r,b),j=(0,n.Z)({},r,{orientation:z,collapsedSize:R}),W=(e=>{const{orientation:t,classes:r}=e,o={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,l.Z)(o,h.d,r)})(j),D=(0,g.Z)(),G=a.useRef(),L=a.useRef(null),_=a.useRef(),V="number"==typeof R?`${R}px`:R,q="horizontal"===z,H=q?"width":"height";a.useEffect((()=>()=>{clearTimeout(G.current)}),[]);const F=a.useRef(null),Y=(0,m.Z)(t,F),J=e=>t=>{if(e){const r=F.current;void 0===t?e(r):e(r,t)}},K=()=>L.current?L.current[q?"clientWidth":"clientHeight"]:0,Q=J(((e,t)=>{L.current&&q&&(L.current.style.position="absolute"),e.style[H]=V,$&&$(e,t)})),U=J(((e,t)=>{const r=K();L.current&&q&&(L.current.style.position="");const{duration:o,easing:n}=(0,p.C)({style:B,timeout:T,easing:S},{mode:"enter"});if("auto"===T){const t=D.transitions.getAutoHeightDuration(r);e.style.transitionDuration=`${t}ms`,_.current=t}else e.style.transitionDuration="string"==typeof o?o:`${o}ms`;e.style[H]=`${r}px`,e.style.transitionTimingFunction=n,M&&M(e,t)})),X=J(((e,t)=>{e.style[H]="auto",I&&I(e,t)})),ee=J((e=>{e.style[H]=`${K()}px`,N&&N(e)})),te=J(P),re=J((e=>{const t=K(),{duration:r,easing:o}=(0,p.C)({style:B,timeout:T,easing:S},{mode:"exit"});if("auto"===T){const r=D.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${r}ms`,_.current=r}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[H]=V,e.style.transitionTimingFunction=o,E&&E(e)}));return(0,f.jsx)(k,(0,n.Z)({in:O,onEnter:Q,onEntered:X,onEntering:U,onExit:ee,onExited:te,onExiting:re,addEndListener:e=>{"auto"===T&&(G.current=setTimeout(e,_.current||0)),d&&d(F.current,e)},nodeRef:F,timeout:"auto"===T?null:T},A,{children:(e,t)=>(0,f.jsx)(v,(0,n.Z)({as:C,className:(0,i.default)(W.root,w,{entered:W.entered,exited:!O&&"0px"===V&&W.hidden}[e]),style:(0,n.Z)({[q?"minWidth":"minHeight"]:V},B),ownerState:(0,n.Z)({},j,{state:e}),ref:Y},t,{children:(0,f.jsx)(Z,{ownerState:(0,n.Z)({},j,{state:e}),className:W.wrapper,ref:L,children:(0,f.jsx)(x,{ownerState:(0,n.Z)({},j,{state:e}),className:W.wrapperInner,children:y})})}))}))}));y.muiSupportAuto=!0;const w=y},60992:(e,t,r)=>{r.d(t,{d:()=>a,Z:()=>i});var o=r(69222),n=r(15672);function a(e){return(0,n.Z)("MuiCollapse",e)}const i=(0,o.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"])},5666:(e,t,r)=>{r.d(t,{Z:()=>n});var o=r(24328);const n=e=>{const t=o.useRef({});return o.useEffect((()=>{t.current=e})),t.current}}}]);
|
|
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]="4920c5f3-aede-49b4-8ff7-0124c3d87a93",e._sentryDebugIdIdentifier="sentry-dbid-4920c5f3-aede-49b4-8ff7-0124c3d87a93")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1624"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[356],{37453:(e,t,r)=>{r.d(t,{Z:()=>v});var o=r(31461),n=r(7896),a=r(24328),i=(r(11649),r(6277)),s=r(69075),l=r(65992),d=r(43853),c=r(64354),u=r(12115),p=r(67002),g=r(19570),m=r(63079),h=r(52322);const f=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],b=(0,l.ZP)(u.Z,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${m.Z.region}`]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${m.Z.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${m.Z.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>(0,n.Z)({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${m.Z.expanded}`]:{margin:"16px 0"}}))),v=a.forwardRef((function(e,t){const r=(0,d.Z)({props:e,name:"MuiAccordion"}),{children:l,className:u,defaultExpanded:v=!1,disabled:Z=!1,disableGutters:x=!1,expanded:y,onChange:w,square:R=!1,TransitionComponent:C=c.Z,TransitionProps:S}=r,O=(0,o.Z)(r,f),[$,I]=(0,g.Z)({controlled:y,default:v,name:"Accordion",state:"expanded"}),M=a.useCallback((e=>{I(!$),w&&w(e,!$)}),[$,w,I]),[N,...P]=a.Children.toArray(l),E=a.useMemo((()=>({expanded:$,disabled:Z,disableGutters:x,toggle:M})),[$,Z,x,M]),z=(0,n.Z)({},r,{square:R,disabled:Z,disableGutters:x,expanded:$}),B=(e=>{const{classes:t,square:r,expanded:o,disabled:n,disableGutters:a}=e,i={root:["root",!r&&"rounded",o&&"expanded",n&&"disabled",!a&&"gutters"],region:["region"]};return(0,s.Z)(i,m.k,t)})(z);return(0,h.jsxs)(b,(0,n.Z)({className:(0,i.default)(B.root,u),ref:t,ownerState:z,square:R},O,{children:[(0,h.jsx)(p.Z.Provider,{value:E,children:N}),(0,h.jsx)(C,(0,n.Z)({in:$,timeout:"auto"},S,{children:(0,h.jsx)("div",{"aria-labelledby":N.props.id,id:N.props["aria-controls"],role:"region",className:B.region,children:P})}))]}))}))},67002:(e,t,r)=>{r.d(t,{Z:()=>o});const o=r(24328).createContext({})},63079:(e,t,r)=>{r.d(t,{k:()=>a,Z:()=>i});var o=r(69222),n=r(15672);function a(e){return(0,n.Z)("MuiAccordion",e)}const i=(0,o.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"])},6341:(e,t,r)=>{r.d(t,{Z:()=>m});var o=r(7896),n=r(31461),a=r(24328),i=r(6277),s=r(69075),l=r(65992),d=r(43853),c=r(26485),u=r(52322);const p=["className"],g=(0,l.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)}))),m=a.forwardRef((function(e,t){const r=(0,d.Z)({props:e,name:"MuiAccordionDetails"}),{className:a}=r,l=(0,n.Z)(r,p),m=r,h=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},c.s,t)})(m);return(0,u.jsx)(g,(0,o.Z)({className:(0,i.default)(h.root,a),ref:t,ownerState:m},l))}))},26485:(e,t,r)=>{r.d(t,{s:()=>a,Z:()=>i});var o=r(69222),n=r(15672);function a(e){return(0,n.Z)("MuiAccordionDetails",e)}const i=(0,o.Z)("MuiAccordionDetails",["root"])},53711:(e,t,r)=>{r.d(t,{Z:()=>v});var o=r(31461),n=r(7896),a=r(24328),i=r(6277),s=r(69075),l=r(65992),d=r(43853),c=r(13705),u=r(67002),p=r(36952),g=r(52322);const m=["children","className","expandIcon","focusVisibleClassName","onClick"],h=(0,l.ZP)(c.Z,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return(0,n.Z)({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${p.Z.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${p.Z.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${p.Z.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${p.Z.expanded}`]:{minHeight:64}})})),f=(0,l.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>(0,n.Z)({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${p.Z.expanded}`]:{margin:"20px 0"}}))),b=(0,l.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${p.Z.expanded}`]:{transform:"rotate(180deg)"}}))),v=a.forwardRef((function(e,t){const r=(0,d.Z)({props:e,name:"MuiAccordionSummary"}),{children:l,className:c,expandIcon:v,focusVisibleClassName:Z,onClick:x}=r,y=(0,o.Z)(r,m),{disabled:w=!1,disableGutters:R,expanded:C,toggle:S}=a.useContext(u.Z),O=(0,n.Z)({},r,{expanded:C,disabled:w,disableGutters:R}),$=(e=>{const{classes:t,expanded:r,disabled:o,disableGutters:n}=e,a={root:["root",r&&"expanded",o&&"disabled",!n&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!n&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]};return(0,s.Z)(a,p.i,t)})(O);return(0,g.jsxs)(h,(0,n.Z)({focusRipple:!1,disableRipple:!0,disabled:w,component:"div","aria-expanded":C,className:(0,i.default)($.root,c),focusVisibleClassName:(0,i.default)($.focusVisible,Z),onClick:e=>{S&&S(e),x&&x(e)},ref:t,ownerState:O},y,{children:[(0,g.jsx)(f,{className:$.content,ownerState:O,children:l}),v&&(0,g.jsx)(b,{className:$.expandIconWrapper,ownerState:O,children:v})]}))}))},36952:(e,t,r)=>{r.d(t,{i:()=>a,Z:()=>i});var o=r(69222),n=r(15672);function a(e){return(0,n.Z)("MuiAccordionSummary",e)}const i=(0,o.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"])},71001:(e,t,r)=>{r.d(t,{Z:()=>v});var o=r(31461),n=r(7896),a=r(24328),i=r(6277),s=r(5666),l=r(69075),d=r(80876),c=r(65992),u=r(43853),p=r(7342),g=r(97851),m=r(52322);const h=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],f=(0,c.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),b=(0,c.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.badge,t[r.variant],t[`anchorOrigin${(0,p.Z)(r.anchorOrigin.vertical)}${(0,p.Z)(r.anchorOrigin.horizontal)}${(0,p.Z)(r.overlap)}`],"default"!==r.color&&t[`color${(0,p.Z)(r.color)}`],r.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>(0,n.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${g.Z.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),v=a.forwardRef((function(e,t){var r,a,c,v,Z,x;const y=(0,u.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:w={vertical:"top",horizontal:"right"},className:R,component:C,components:S={},componentsProps:O={},children:$,overlap:I="rectangular",color:M="default",invisible:N=!1,max:P=99,badgeContent:E,slots:z,slotProps:B,showZero:T=!1,variant:k="standard"}=y,A=(0,o.Z)(y,h),{badgeContent:j,invisible:W,max:D,displayValue:G}=function(e){const{badgeContent:t,invisible:r=!1,max:o=99,showZero:n=!1}=e,a=(0,s.Z)({badgeContent:t,max:o});let i=r;!1!==r||0!==t||n||(i=!0);const{badgeContent:l,max:d=o}=i?a:e;return{badgeContent:l,invisible:i,max:d,displayValue:l&&Number(l)>d?`${d}+`:l}}({max:P,invisible:N,badgeContent:E,showZero:T}),L=(0,s.Z)({anchorOrigin:w,color:M,overlap:I,variant:k,badgeContent:E}),_=W||null==j&&"dot"!==k,{color:V=M,overlap:q=I,anchorOrigin:H=w,variant:F=k}=_?L:y,Y="dot"!==F?G:void 0,J=(0,n.Z)({},y,{badgeContent:j,invisible:_,max:D,displayValue:Y,showZero:T,anchorOrigin:H,color:V,overlap:q,variant:F}),K=(e=>{const{color:t,anchorOrigin:r,invisible:o,overlap:n,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,o&&"invisible",`anchorOrigin${(0,p.Z)(r.vertical)}${(0,p.Z)(r.horizontal)}`,`anchorOrigin${(0,p.Z)(r.vertical)}${(0,p.Z)(r.horizontal)}${(0,p.Z)(n)}`,`overlap${(0,p.Z)(n)}`,"default"!==t&&`color${(0,p.Z)(t)}`]};return(0,l.Z)(s,g.I,i)})(J),Q=null!=(r=null!=(a=null==z?void 0:z.root)?a:S.Root)?r:f,U=null!=(c=null!=(v=null==z?void 0:z.badge)?v:S.Badge)?c:b,X=null!=(Z=null==B?void 0:B.root)?Z:O.root,ee=null!=(x=null==B?void 0:B.badge)?x:O.badge,te=(0,d.Z)({elementType:Q,externalSlotProps:X,externalForwardedProps:A,additionalProps:{ref:t,as:C},ownerState:J,className:(0,i.default)(null==X?void 0:X.className,K.root,R)}),re=(0,d.Z)({elementType:U,externalSlotProps:ee,ownerState:J,className:(0,i.default)(K.badge,null==ee?void 0:ee.className)});return(0,m.jsxs)(Q,(0,n.Z)({},te,{children:[$,(0,m.jsx)(U,(0,n.Z)({},re,{children:Y}))]}))}))},97851:(e,t,r)=>{r.d(t,{I:()=>a,Z:()=>i});var o=r(69222),n=r(15672);function a(e){return(0,n.Z)("MuiBadge",e)}const i=(0,o.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"])},62553:(e,t,r)=>{r.d(t,{Z:()=>$});var o=r(7896),n=r(31461),a=r(24328),i=(r(11649),r(6277)),s=r(69075),l=r(80876),d=r(65992),c=r(43853),u=r(79312),p=r(47591),g=r(6620),m=r(52322);const h=(0,g.Z)((0,m.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");var f=r(13705);const b=["slots","slotProps"],v=(0,d.ZP)(f.Z)((({theme:e})=>(0,o.Z)({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},"light"===e.palette.mode?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,o.Z)({},"light"===e.palette.mode?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":(0,o.Z)({boxShadow:e.shadows[0]},"light"===e.palette.mode?{backgroundColor:(0,p._4)(e.palette.grey[200],.12)}:{backgroundColor:(0,p._4)(e.palette.grey[600],.12)})}))),Z=(0,d.ZP)(h)({width:24,height:16}),x=function(e){const{slots:t={},slotProps:r={}}=e,a=(0,n.Z)(e,b),i=e;return(0,m.jsx)("li",{children:(0,m.jsx)(v,(0,o.Z)({focusRipple:!0},a,{ownerState:i,children:(0,m.jsx)(Z,(0,o.Z)({as:t.CollapsedIcon,ownerState:i},r.collapsedIcon))}))})};var y=r(36194);const w=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],R=(0,d.ZP)(u.Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${y.Z.li}`]:t.li},t.root]})({}),C=(0,d.ZP)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),S=(0,d.ZP)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function O(e,t,r,o){return e.reduce(((n,a,i)=>(i<e.length-1?n=n.concat(a,(0,m.jsx)(S,{"aria-hidden":!0,className:t,ownerState:o,children:r},`separator-${i}`)):n.push(a),n)),[])}const $=a.forwardRef((function(e,t){const r=(0,c.Z)({props:e,name:"MuiBreadcrumbs"}),{children:d,className:u,component:p="nav",slots:g={},slotProps:h={},expandText:f="Show path",itemsAfterCollapse:b=1,itemsBeforeCollapse:v=1,maxItems:Z=8,separator:S="/"}=r,$=(0,n.Z)(r,w),[I,M]=a.useState(!1),N=(0,o.Z)({},r,{component:p,expanded:I,expandText:f,itemsAfterCollapse:b,itemsBeforeCollapse:v,maxItems:Z,separator:S}),P=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},y.O,t)})(N),E=(0,l.Z)({elementType:g.CollapsedIcon,externalSlotProps:h.collapsedIcon,ownerState:N}),z=a.useRef(null),B=a.Children.toArray(d).filter((e=>a.isValidElement(e))).map(((e,t)=>(0,m.jsx)("li",{className:P.li,children:e},`child-${t}`)));return(0,m.jsx)(R,(0,o.Z)({ref:t,component:p,color:"text.secondary",className:(0,i.default)(P.root,u),ownerState:N},$,{children:(0,m.jsx)(C,{className:P.ol,ref:z,ownerState:N,children:O(I||Z&&B.length<=Z?B:(e=>v+b>=e.length?e:[...e.slice(0,v),(0,m.jsx)(x,{"aria-label":f,slots:{CollapsedIcon:g.CollapsedIcon},slotProps:{collapsedIcon:E},onClick:()=>{M(!0);const e=z.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis"),...e.slice(e.length-b,e.length)])(B),P.separator,S,N)})}))}))},36194:(e,t,r)=>{r.d(t,{O:()=>a,Z:()=>i});var o=r(69222),n=r(15672);function a(e){return(0,n.Z)("MuiBreadcrumbs",e)}const i=(0,o.Z)("MuiBreadcrumbs",["root","ol","li","separator"])},64354:(e,t,r)=>{r.d(t,{Z:()=>w});var o=r(31461),n=r(7896),a=r(24328),i=r(6277),s=r(14657),l=r(69075),d=r(65992),c=r(43853),u=r(15633),p=r(13331),g=r(47746),m=r(98659),h=r(60992),f=r(52322);const b=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],v=(0,d.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],"entered"===r.state&&t.entered,"exited"===r.state&&!r.in&&"0px"===r.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>(0,n.Z)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&(0,n.Z)({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),Z=(0,d.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>(0,n.Z)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),x=(0,d.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>(0,n.Z)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),y=a.forwardRef((function(e,t){const r=(0,c.Z)({props:e,name:"MuiCollapse"}),{addEndListener:d,children:y,className:w,collapsedSize:R="0px",component:C,easing:S,in:O,onEnter:$,onEntered:I,onEntering:M,onExit:N,onExited:P,onExiting:E,orientation:z="vertical",style:B,timeout:T=u.x9.standard,TransitionComponent:k=s.ZP}=r,A=(0,o.Z)(r,b),j=(0,n.Z)({},r,{orientation:z,collapsedSize:R}),W=(e=>{const{orientation:t,classes:r}=e,o={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,l.Z)(o,h.d,r)})(j),D=(0,g.Z)(),G=a.useRef(),L=a.useRef(null),_=a.useRef(),V="number"==typeof R?`${R}px`:R,q="horizontal"===z,H=q?"width":"height";a.useEffect((()=>()=>{clearTimeout(G.current)}),[]);const F=a.useRef(null),Y=(0,m.Z)(t,F),J=e=>t=>{if(e){const r=F.current;void 0===t?e(r):e(r,t)}},K=()=>L.current?L.current[q?"clientWidth":"clientHeight"]:0,Q=J(((e,t)=>{L.current&&q&&(L.current.style.position="absolute"),e.style[H]=V,$&&$(e,t)})),U=J(((e,t)=>{const r=K();L.current&&q&&(L.current.style.position="");const{duration:o,easing:n}=(0,p.C)({style:B,timeout:T,easing:S},{mode:"enter"});if("auto"===T){const t=D.transitions.getAutoHeightDuration(r);e.style.transitionDuration=`${t}ms`,_.current=t}else e.style.transitionDuration="string"==typeof o?o:`${o}ms`;e.style[H]=`${r}px`,e.style.transitionTimingFunction=n,M&&M(e,t)})),X=J(((e,t)=>{e.style[H]="auto",I&&I(e,t)})),ee=J((e=>{e.style[H]=`${K()}px`,N&&N(e)})),te=J(P),re=J((e=>{const t=K(),{duration:r,easing:o}=(0,p.C)({style:B,timeout:T,easing:S},{mode:"exit"});if("auto"===T){const r=D.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${r}ms`,_.current=r}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[H]=V,e.style.transitionTimingFunction=o,E&&E(e)}));return(0,f.jsx)(k,(0,n.Z)({in:O,onEnter:Q,onEntered:X,onEntering:U,onExit:ee,onExited:te,onExiting:re,addEndListener:e=>{"auto"===T&&(G.current=setTimeout(e,_.current||0)),d&&d(F.current,e)},nodeRef:F,timeout:"auto"===T?null:T},A,{children:(e,t)=>(0,f.jsx)(v,(0,n.Z)({as:C,className:(0,i.default)(W.root,w,{entered:W.entered,exited:!O&&"0px"===V&&W.hidden}[e]),style:(0,n.Z)({[q?"minWidth":"minHeight"]:V},B),ownerState:(0,n.Z)({},j,{state:e}),ref:Y},t,{children:(0,f.jsx)(Z,{ownerState:(0,n.Z)({},j,{state:e}),className:W.wrapper,ref:L,children:(0,f.jsx)(x,{ownerState:(0,n.Z)({},j,{state:e}),className:W.wrapperInner,children:y})})}))}))}));y.muiSupportAuto=!0;const w=y},60992:(e,t,r)=>{r.d(t,{d:()=>a,Z:()=>i});var o=r(69222),n=r(15672);function a(e){return(0,n.Z)("MuiCollapse",e)}const i=(0,o.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"])},5666:(e,t,r)=>{r.d(t,{Z:()=>n});var o=r(24328);const n=e=>{const t=o.useRef({});return o.useEffect((()=>{t.current=e})),t.current}}}]);
|
|
2
2
|
//# sourceMappingURL=356.js.map
|
package/3875.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]="6dfb5a9b-3afb-488d-bd4a-42c0341012da",e._sentryDebugIdIdentifier="sentry-dbid-6dfb5a9b-3afb-488d-bd4a-42c0341012da")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1622"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3875],{42639:(e,t,n)=>{n.d(t,{Z:()=>u});var r,a=n(65439),i=n(71153),l=n.n(i),o=n(24328),s=n.n(o);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}!function(e){e[e.ICON_MODE=0]="ICON_MODE",e[e.TEXT_MODE=1]="TEXT_MODE",e[e.ERROR_MODE=2]="ERROR_MODE"}(r||(r={}));const u=e=>{let{className:t,icon:n,avatarText:i,rootClasses:u}=e,d=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","icon","avatarText","rootClasses"]);const[p,h]=(0,o.useState)(null);(0,o.useEffect)((()=>{h(n?r.ICON_MODE:r.TEXT_MODE)}),[n,i]);const m=()=>{h(r.ERROR_MODE)};switch(p){case r.ICON_MODE:return s().createElement(a.Z,c({className:l()(t,null==u?void 0:u.iconRoot),src:n,onError:m},d));case r.TEXT_MODE:case r.ERROR_MODE:return s().createElement(a.Z,c({className:l()(t,null==u?void 0:u.textRoot)},d),i);default:return null}}},30488:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(38748),a=n(50548);const i=e=>t=>(0,a.l)(r.X,e,t)},87825:(e,t,n)=>{n.d(t,{Z:()=>b});var r=n(24328),a=n.n(r),i=n(13980),l=n.n(i),o=n(53862);function s(){return s=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},s.apply(this,arguments)}const c=e=>a().createElement("svg",s({width:20,height:18,viewBox:"0 0 20 18",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{d:"M16 7.24V6h-4v1.24a8.417 8.417 0 00-2 .768V6H6v6h.29a8.497 8.497 0 00-.15.358l-.29.733.29.733.07.176H2c-1.1 0-2-.9-2-2V2C0 .9.9 0 2 0h14c1.1 0 2 .9 2 2v6.008a8.417 8.417 0 00-2-.768zM4 12V6H2v6h2zm0-8V2H2v2h2zm6 0V2H6v2h4zm6 0V2h-4v2h4zm-2 5a6.451 6.451 0 00-6 4.09 6.451 6.451 0 006 4.092 6.451 6.451 0 006-4.091A6.451 6.451 0 0014 9zm0 6.818a2.728 2.728 0 010-5.454 2.728 2.728 0 010 5.454zm0-4.363c-.905 0-1.636.73-1.636 1.636 0 .905.73 1.636 1.636 1.636.905 0 1.636-.73 1.636-1.636 0-.906-.73-1.636-1.636-1.636z",fill:"#000",fillRule:"nonzero",stroke:"none",strokeWidth:1,opacity:.54}));var u=n(39475),d=n(50914),p=n(45013),h=n(2507),m=n.n(h),f=n(15954);const g=e=>{let{columnsData:t,selectedColumns:n,onChangeColumns:i,title:l,tooltipTitle:o}=e;const[s,h]=(0,r.useState)(null),g=(0,r.useCallback)((e=>{const t=(0,d.pipe)(f.JJ,(0,d.pluck)("id"))(e),r=(0,f.u)(n,e);i(r?(0,d.difference)(n,t):(0,d.uniq)((0,d.concat)(n,t)))}),[n,i]);return a().createElement(a().Fragment,null,a().createElement(u.k,{tooltipTitle:o||m().text("Show/hide columns"),size:"L",icon:c,onClick:e=>h(e.currentTarget)}),a().createElement(p.G,{onColumnClick:g,anchorEl:s,columnsData:t,onClose:()=>h(null),title:l,selectedColumns:n}))};g.propTypes={columnsData:o.uz,selectedColumns:l().arrayOf(l().string),onChangeColumns:l().func,title:l().string,tooltipTitle:l().string};const b=g},45013:(e,t,n)=>{n.d(t,{G:()=>S});var r=n(24328),a=n.n(r),i=n(2507),l=n.n(i),o=n(50914),s=n(17512),c=n(63485),u=n(22311),d=n(15954),p=n(41008),h=n(26638),m=n(13980),f=n.n(m),g=n(33117),b=n(94792),y=n(71153),v=n.n(y);const x=(0,n(72342).makeStyles)({popup:{minWidth:"200px"},groupItem:{backgroundColor:"rgba(0,0,0,0.04)"}}),C=e=>{let{item:t,onClick:n,checked:r,level:i,style:l,isFocused:o,isGroupItem:s,hideCheckBox:c}=e;const u=x();return a().createElement(g.Z,{hideCheckBox:c,key:t.id,onClick:n,checked:r,level:i,data:t,label:a().createElement(b.Z,{text:t.label,highlight:t.filterText}),labelInText:t.label,style:l,isFocused:o,hideIcon:s,className:v()({[u.groupItem]:s})})};C.propTypes={item:f().shape({label:f().string,filterText:f().string}),level:f().number,onClick:f().func,checked:f().bool,style:f().object,isGroupItem:f().bool,isFocused:f().bool,hideCheckBox:f().bool};const E=C,S=e=>{let{anchorEl:t,onClose:n,title:i,columnsData:m,onColumnClick:f,selectedColumns:g,hideCheckBox:b}=e;const y=x(),[v,C]=(0,r.useState)(""),S=(0,r.useMemo)((()=>(0,d.eX)(m,v)),[m,v]),O=(0,r.useMemo)((()=>(0,p.LG)(S)),[S]),k=(0,s.fW1)("label")(S)||308,P=(0,r.useCallback)((e=>{let{item:t}=e;return f(t)}),[f]),{focusIndex:w,handleKeyDown:I}=(0,h.t)({items:O,open:!0,onSelectFocusedItem:P,selectedItems:g,onClose:n}),T=(0,r.useCallback)((0,o.pipe)(n,(()=>C(""))),[n]),j=Math.min(300,32*O.length),N=Math.max(140,j+108);return a().createElement(u.Z,{className:y.popup,open:!!t,anchorEl:t,onClose:T,onSearch:C,title:i||l().text("Show/hide columns"),containerWidth:k,containerHeight:N,searchInputOnKeyDown:I},a().createElement(c.Z,{fixedTitle:!1,height:j,renderItem:(e,t,n)=>{let{item:r,level:i=0}=t;return a().createElement(E,{hideCheckBox:b,style:e,item:r,level:i,isFocused:w===n,checked:(0,d.u)(g,r),isGroupItem:(0,d.yf)(r),onClick:b?(0,o.pipe)(f,T):f})},items:O,getItemSize:()=>32,focusIndex:w}))}},15954:(e,t,n)=>{n.d(t,{eX:()=>b,JJ:()=>y,yf:()=>o,u:()=>v});var r=n(50914),a=n(17512);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const o=e=>e.id===e.groupId,s=(0,r.curry)(((e,t)=>{let{id:n,groupId:r}=e;return t.groupId===r&&(n===t.id||n.startsWith(`${t.id}.`))})),c=(0,r.curry)(((e,t)=>{let{groupId:n}=e;return n===t.id})),u=(0,r.propOr)(!0,"hideable"),d=(e,t)=>{const n=((e,t)=>e.find((0,r.either)(c(t),s(t))))(e,t);return n?(n.children=d(n.children||[],t),e):e.concat(t)},p=(0,r.curry)(((e,t)=>a.P6Y.strings.search(t.label,e)||(t.children||[]).some(p(e)))),h=(0,r.reduce)(((e,t)=>d(e,{id:t.id,groupId:t.groupId,label:t.label,attrType:t.dataTypeDefinition})),[]),m=(0,r.curry)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,r.pipe)((0,r.filter)(p(e)),(0,r.chain)((t=>[{item:i({},t,{filterText:e}),level:n},...t.children?m(e,t.children,n+1):[]])))(t)})),f=(0,r.has)("columns"),g=e=>{let{id:t,label:n,columns:a}=e;return[{id:t,groupId:t,label:n},...a.map((0,r.assoc)("groupId",t))]},b=(e,t)=>(0,r.pipe)((0,r.chain)((0,r.when)(f,g)),(0,r.filter)((0,r.either)(o,u)),h,m(t))(e),y=e=>e.children?(0,r.chain)(y,e.children):[e],v=(e,t)=>{const n=y(t),r=t=>e.includes(t.id);return o(t)?n.every(r):n.some(r)}},20146:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),i=n(52730),l=n(71153),o=n.n(l),s=n(79312),c=n(17512),u=n(50673),d=n(40007);const p=(0,n(72342).makeStyles)({"entityType-overflow":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",marginRight:"12px",borderRadius:"2px",flexShrink:0},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",marginRight:"16px",flexShrink:0}}),h=e=>{let{entity:t,className:n,size:r="small"}=e;const l=p(),h=(0,i.useSelector)(u.ZP.selectors.getMetadata),m=t.type,f=(0,c.nt9)(h,m),g=(f?(0,c.VD3)(h,f,"typeColor"):null)||c.rSc.palette.primary.main,b=(0,c.jFi)(h,t);return a().createElement(d.Z,{value:b,placement:"top"},a().createElement(s.Z,{style:{backgroundColor:g,color:c.P6Y.Colors.getColor(g)?"#FFFFFF":"#212121"},className:o()(l[`entityType-${r}`],l["entityType-overflow"],n),component:"div"},b))}},79386:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(24328),a=n.n(r),i=n(71153),l=n.n(i),o=n(52730),s=n(50914),c=n(79312),u=n(23883),d=n(2507),p=n.n(d),h=n(17512),m=n(50673),f=n(37573),g=n(20146);const b=(0,n(72342).makeStyles)((e=>({profileBandWrapper:{flexShrink:0},profileBand:{display:"flex",padding:"16px 12px 16px 16px",alignItems:"flex-start",backgroundColor:"#fff",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.12)",marginBottom:"1px","&:after":{content:'""',minHeight:"inherit",fontSize:0}},inactive:{background:e.inactiveBackground},profileIcon:{marginRight:"12px"},imageProfileIcon:{width:"48px",height:"48px"},profileInfo:{display:"flex",flexDirection:"column",flex:"1 1 50%"},badge:{},label:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary,wordBreak:"break-word","&+ $specialInfo":{marginTop:"4px"}},secondaryLabel:{display:"inline-flex",color:e.palette.text.primary,marginTop:"2px",lineHeight:"16px",fontSize:"14px",fontWeight:400,"&+ $businessCard":{marginLeft:"12px"}},businessCard:{color:e.palette.text.secondary,display:"inline-flex",fontSize:"14px",marginTop:"4px",lineHeight:"1.2"},specialInfo:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",width:"100%",marginTop:"8px"},entityType:{display:"flex",flexWrap:"wrap"},entityId:{fontSize:"13px",color:e.palette.text.secondary,whiteSpace:"nowrap",cursor:"pointer","&:hover":{textDecoration:"underline"}}}))),y=e=>{let{className:t,entity:n,children:i,classes:d,renderLabel:y=s.identity}=e;const v=b({classes:d}),x=(0,o.useSelector)(m.ZP.selectors.getMetadata),C=(0,o.useSelector)(m.ZP.selectors.getShowEntityId),E=(0,r.useCallback)((()=>{navigator.clipboard.writeText((0,h.BTI)(n))}),[n]);if((0,s.isNil)(n))return null;const S=(0,h.idV)(n.label),O=n.secondaryLabel,k=(0,h.ptG)(x,n),P=(0,h.Fn9)(n),w=n.uri,I=(0,h.BTI)(n);return a().createElement("div",{className:l()(v.profileBandWrapper,t)},a().createElement("div",{className:l()(v.profileBand,{[v.inactive]:!P}),"data-entity-uri":w},a().createElement(f.Z,{key:n.uri,entity:n,avatarClassName:v.profileIcon,imageClassName:v.imageProfileIcon}),a().createElement("div",{className:v.profileInfo},a().createElement("div",null,a().createElement(c.Z,{variant:"h6",className:v.label},y(S)),O&&a().createElement(c.Z,{variant:"subtitle2",className:v.secondaryLabel},O),k&&a().createElement(c.Z,{variant:"subtitle1",className:v.businessCard},k)),a().createElement("div",{className:v.specialInfo},a().createElement("div",{className:v.entityType},a().createElement(g.Z,{entity:n,size:"medium",className:v.badge}),!(0,h.ZiX)(w)&&C&&a().createElement(u.Z,{title:p().text("Copy to clipboard")},a().createElement(c.Z,{display:"inline",variant:"body2",className:v.entityId,onClick:E},p().text("Entity ID"),": ",I))))),i&&a().createElement("div",null,i)))}},60883:(e,t,n)=>{n.d(t,{a:()=>_});var r=n(24328),a=n.n(r),i=n(55485),l=n(23468),o=n(31373),s=n(17512),c=n(71153),u=n.n(c),d=n(50914),p=n(2507),h=n.n(p),m=n(49753),f=n(78223),g=n(39475);const b=(0,n(72342).makeStyles)({container:{display:"flex",alignItems:"center"},link:{whiteSpace:"nowrap",marginRight:"9px"}}),y=(0,f.Z)(i.Z),v=e=>{var t;let{className:n,total:i=0,onPrev:c,onNext:p,onSearchResultsClick:f,isPrevDisabled:v,isNextDisabled:x}=e;const C=b(),E=(0,r.useContext)(m.T),{OPEN_RESULTS:S,SEARCH_RESULT:O,SEARCH_RESULTS:k,NEXT_PROFILE:P,PREVIOUS_PROFILE:w}=(0,d.mergeRight)({OPEN_RESULTS:h().text("Go to search results"),SEARCH_RESULT:h().text("Search result"),SEARCH_RESULTS:h().text("Search results"),PREVIOUS_PROFILE:h().text("Go to previous profile"),NEXT_PROFILE:h().text("Go to next profile")},null!==(t=null==E?void 0:E.profileBand)&&void 0!==t?t:{});return a().createElement("div",{className:u()(C.container,n)},a().createElement(y,{className:C.link,component:"button",variant:"caption",onClick:f,underline:"none",tooltipTitle:S},(0,s.k7L)(i,1e6)," ",1===i?O:k),a().createElement(g.k,{size:"L",icon:l.Z,"data-reltio-id":"reltio-previous-profile-button",tooltipTitle:w,onClick:c,disabled:v,showForDisabled:!0}),a().createElement(g.k,{size:"L",icon:o.Z,"data-reltio-id":"reltio-next-profile-button",tooltipTitle:P,onClick:p,disabled:x,showForDisabled:!0}))};var x=n(52730),C=n(50673),E=n(96697),S=n(63532),O=n(98001),k=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){w(e,t,n[t])}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class I{constructor(e){var t=this;let{data:{query:n,sortField:r,sortOrder:a},tenant:i,searchTenant:l,apiPath:o,dtssPath:c,globalSearchRequestOptions:u}=e;this.query=void 0,this.sortField=void 0,this.sortOrder=void 0,this.tenant=void 0,this.searchTenant=void 0,this.apiPath=void 0,this.dtssPath=void 0,this.globalSearchRequestOptions=void 0,this.isDT=()=>this.tenant!==this.searchTenant,this.getQueryFilter=()=>({rawFilter:this.query}),this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[t.getQueryFilter(),...e],a=P({},t.globalSearchRequestOptions,{sort:t.sortField,order:t.sortOrder,select:"uri,label,type",scoreEnabled:!1},n);return t.isDT()?(0,s.uqV)({filters:r,options:a,customerTenant:t.tenant,dataTenant:t.searchTenant,dtssPath:t.dtssPath}):(0,s.ZOr)(r,a)},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"uri",values:[e]}],{offset:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{offset:t,max:e}),this.requestTotal=()=>{const e=[this.getQueryFilter()],t=this.globalSearchRequestOptions;return(this.isDT()?(0,s.J$m)({filters:e,options:t,customerTenant:this.tenant,dataTenant:this.searchTenant,dtssPath:this.dtssPath}):(0,s.j_Q)(e,t)).then((e=>e.total))},this.query=n,this.sortField=r,this.sortOrder=a,this.tenant=i,this.searchTenant=l,this.apiPath=o,this.dtssPath=c,this.globalSearchRequestOptions=u}}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){j(e,t,n[t])}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class N{constructor(e){var t=this;let{data:n,tenant:r,apiPath:a}=e;this.searchBody=void 0,this.tenant=void 0,this.apiPath=void 0,this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[{rawFilter:t.searchBody.filter},...e];return(0,s.P2h)({apiPath:t.apiPath,tenant:t.tenant,searchBody:T({},t.searchBody,{filter:e.length?(0,s.Uqd)()(r):t.searchBody.filter}),options:n})},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"id",values:[(0,s.BTI)({uri:e})]}],{from:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{from:t,max:e}),this.requestTotal=()=>(0,s.dED)({apiPath:this.apiPath,tenant:this.tenant,searchBody:this.searchBody}).then((e=>e.count)),this.searchBody=n,this.tenant=r,this.apiPath=a}}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){D(e,t,n[t])}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Z=(e,t)=>(0,d.pipe)((0,d.map)((0,d.prop)("uri")),(0,d.reject)((e=>t.includes(e))))(e),z=()=>{const e=(0,k._)(),t=(0,k._)(),n=(0,k._)(),{uri:a,index:i,total:l,tenant:o,cache:c}=(0,x.useSelector)(C.ZP.selectors.getSearchNavigationData)||{},{type:u,data:d}=(0,x.useSelector)(C.ZP.selectors.getSearchProviderData)||{},p=(0,x.useSelector)(C.ZP.selectors.getTenant),h=(0,x.useSelector)(C.ZP.selectors.getApiPath),m=(0,x.useSelector)(C.ZP.selectors.getDtssPath),f=(0,x.useSelector)((e=>C.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),{updateEntitiesNavigationLoadingState:g}=(0,E.M)(),b=(0,r.useContext)(S.m),y=(0,x.useDispatch)(),[v,P]=(0,r.useState)(!1),w=(0,r.useMemo)((()=>((e,t)=>{switch(e){case"search":return new I(t);case"graphsearch":return new N(t)}})(u,{data:d,tenant:p,searchTenant:o,apiPath:h,dtssPath:m,globalSearchRequestOptions:f})),[u,d,p,o,h,m,f]),T=(0,r.useCallback)((e=>{y(C.yC.actions.updateSearchNavigationDataFields(e))}),[y]),j=(0,r.useCallback)((e=>{const t=p!==o?(0,s.wwR)({uri:e,dataTenant:o}):e;y(C.ui.actions.openEntity({uri:t,viewId:b,source:"navigation"}))}),[y,b,p,o]),D=(0,r.useCallback)((()=>{y(C.ui.actions.openPerspective({perspectiveId:u,viewId:b}))}),[y,u,b]);(0,r.useEffect)((()=>{i>=l?T({index:l-1}):i<0&&T({index:0})}),[l,i,T]);const z=(0,O.u)();(0,r.useEffect)((()=>{const e=z(((e,t)=>{switch(e.type){case C.yC.constants.UPDATE_SEARCH_NAVIGATION_DATA_ON_MERGE:{const n=C.ZP.selectors.getSearchNavigationData(t);n&&T(((e,t)=>{const{winnerUri:n,losersUris:r=[]}=t,a=((e,t)=>{let{uri:n,index:r,total:a,cache:i}=e;if(t&&t!==n){if(i&&i.includes(n)){i=[...i];const e=i.indexOf(t);let l=i.indexOf(n);e>=0&&(i.splice(e,1),a--,e<l&&r--),l=i.indexOf(n),i.splice(l,1,t)}return n=t,R({},e,{uri:n,index:r,cache:i,total:a})}return e})(e,n);return((e,t)=>{const{cache:n=[],index:r,total:a,uri:i}=e,l=t.filter((e=>n.includes(e)));if(0===l.length)return e;const o=a-l.length,s=n.indexOf(i);let c=r;for(const e of l)n.indexOf(e)<s&&c--;const u=n.filter((e=>!l.includes(e)));return R({},e,{cache:u,index:c,total:o})})(a,r)})(n,e.payload));break}}}));return()=>e()}),[z,T]);const _=(0,r.useCallback)(((e,r,a)=>{P(!0),t(w.requestTotal()).then((e=>T({total:e})));const i=a+1;return n(w.requestEntities(15,i)).then((t=>{if(t){if(t.length){const n=Z(t,e);if(n.length>0)return T({cache:e.concat(n),uri:n[0],index:i+t.length-n.length}),void j(n[0]);if(a+t.length<r-1)return _(e,r-t.length,a+t.length)}T({index:i})}})).finally((()=>{P(!1)}))}),[w,T,j]),F=(0,r.useCallback)(((e,r)=>{P(!0),t(w.requestTotal()).then((e=>T({total:e})));const a=r-1,i=Math.max(0,r-15),l=15+Math.min(0,r-15);return n(w.requestEntities(l,i)).then((t=>{if(t){if(t.length){const n=Z(t,e);if(n.length>0)return T({cache:n.concat(e),uri:n[n.length-1],index:a-(t.length-n.length)}),void j(n[n.length-1]);if(r-t.length>0)return F(e,r-t.length)}T({index:0})}})).finally((()=>{P(!1)}))}),[w,T,j]),L=(0,r.useCallback)(((t,n,r,a)=>{if(n<t.length){const i=t[n];return P(!0),e(w.checkEntity(i)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),L(e,n,r-1,a)}T({index:a+1,uri:i,cache:t,total:r}),j(i)})).finally((()=>{P(!1)}))}if(!(a>=r-1))return _(t,r,a);T({cache:t,total:r,index:r-1})}),[w,T,j,_]),B=(0,r.useCallback)(((t,n,r,a)=>{if(n>-1){const i=t[n];return P(!0),e(w.checkEntity(i)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),B(e,n-1,r-1,a-1)}T({index:a-1,uri:i,cache:t,total:r}),j(i)})).finally((()=>{P(!1)}))}if(!(a<=0))return F(t,a);T({index:0,cache:t,total:r})}),[w,T,j,F]),M=(0,r.useCallback)((()=>{if(c&&a){const e=c.indexOf(a)-1;B(c,e,l,i)}}),[B,c,a,l,i]),q=(0,r.useCallback)((()=>{if(c&&a){const e=c.indexOf(a)+1;L(c,e,l,i)}}),[L,c,a,l,i]);return(0,r.useEffect)((()=>{g(v)}),[g,v]),(0,r.useEffect)((()=>()=>g(!1)),[]),{total:l,onPrev:M,onNext:q,onSearchResultsClick:D,isPrevDisabled:v||i<=0,isNextDisabled:v||i>=l-1}},_=e=>{let{className:t}=e;const{total:n,onPrev:r,onNext:i,onSearchResultsClick:l,isPrevDisabled:o,isNextDisabled:c}=z();return(()=>{const{cache:e}=(0,x.useSelector)(C.ZP.selectors.getSearchNavigationData)||{},t=(0,x.useSelector)(C.ZP.selectors.getMode),n=(0,x.useSelector)(C.ZP.selectors.getEntity);return(0,s.uzs)(t)&&(null==e?void 0:e.includes(null==n?void 0:n.uri))})()?a().createElement(v,{className:t,total:n,onPrev:r,onNext:i,onSearchResultsClick:l,isPrevDisabled:o,isNextDisabled:c}):null}},11802:(e,t,n)=>{n.d(t,{u:()=>h});var r=n(24328),a=n.n(r),i=n(71153),l=n.n(i),o=n(31396),s=n(47746),c=n(17512);const u=(0,n(72342).makeStyles)((()=>({container:{position:"relative","& .Resizer":{zIndex:1,boxSizing:"border-box",backgroundClip:"padding-box","&.disabled":{cursor:"initial",height:0,margin:0},"&.horizontal":{height:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"100% 1px",backgroundPosition:"top",width:"100%",marginBottom:"-10px","&:not(.disabled):hover":{cursor:"row-resize",backgroundImage:"linear-gradient(rgba(0, 114, 206, 0), rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1))",backgroundSize:"100% 3px"}},"&.vertical":{width:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"1px 100%",backgroundPosition:"left",height:"100%",marginRight:"-10px","&:not(.disabled):hover":{cursor:"col-resize",backgroundImage:"linear-gradient(to left, rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1), rgba(0, 114, 206, 0.35))",backgroundSize:"3px 100%"}}}}}))),d=250,p=e=>"horizontal"===e,h=e=>{let{className:t,children:n,orientation:i,primary:h,defaultSize:m,size:f,minSize:g,maxSize:b,allowResize:y,debounceInterval:v=d,onChange:x}=e;const C=u(),E=(0,s.Z)(),[S,O]=(0,r.useState)(null),[k,P]=(0,r.useState)(!0),w=(0,r.useCallback)((()=>P(!0)),[]),I=(0,r.useCallback)((()=>P(!1)),[]),T=()=>p(i)?null==S?void 0:S.clientHeight:null==S?void 0:S.clientWidth,j=(0,r.useCallback)((0,c.DsO)((e=>{const t=T();x({percentageSize:e/t*100+"%",isMaxSize:+b>0?e===b:e===t+b,isMinSize:e===g,size:e})}),v),[x,i,b,S]),N=(0,r.useMemo)((()=>({transition:E.transitions.create(p(i)?"height":"width",{easing:E.transitions.easing.sharp,duration:E.transitions.duration.leavingScreen})})),[i,E]);return"number"==typeof f&&f<0&&(f=(T()||0)+f),a().createElement("div",{ref:O,className:l()(C.container,t)},a().createElement(o.Z,{split:i,size:f,primary:h,allowResize:y,onChange:j,defaultSize:m,minSize:g,maxSize:b,onDragStarted:I,onDragFinished:w,pane1Style:k?N:void 0},n))};h.displayName="ResizablePanes"},21210:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),a=n.n(r),i=n(52730),l=n(50673),o=n(17512),s=n(42639);const c=e=>{let{sourceType:t,className:n,classes:r}=e;const c=(0,i.useSelector)(l.ZP.selectors.getMetadata),{uri:u,icon:d}=(0,o.PWK)(c,t)||{},p=u?(0,o.tH7)(c,u)[0]:"",h=d?(0,o.vPL)("https://s3.amazonaws.com/reltio.images/api",d):null;return a().createElement(s.Z,{className:n,avatarText:p,icon:h,variant:"square",rootClasses:r})}},79935:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r);const i=()=>a().createElement("div",{style:{flex:1}})},75647:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),i=n(52730),l=n(50673),o=n(38677),s=n(79312),c=n(50914),u=n(2507),d=n.n(u);const p=(0,n(72342).makeStyles)({root:{display:"flex",alignItems:"flex-start"},slice:{fontWeight:500},cancelButton:{width:"88px",flexShrink:0,marginLeft:"15px"}}),h=()=>{const e=p(),t=(0,i.useSelector)(l.ZP.selectors.getHistoryEvent),n=(0,i.useDispatch)(),r=(0,c.pipe)(l.N5.history.actions.clearHistoryEvent,n);return t?a().createElement("div",{className:e.root},a().createElement(s.Z,{component:"div"},d().text("You are viewing a historic slice:")," ",a().createElement("span",{className:e.slice},d().date(t.aStamp,"llll"))),a().createElement(o.Z,{className:e.cancelButton,variant:"contained",color:"primary",onClick:r},d().text("Cancel"))):null}},98001:(e,t,n)=>{n.d(t,{G:()=>l,u:()=>o});var r=n(24328),a=n.n(r);const i=(0,r.createContext)(null);i.displayName="ActionsHookContext";const l=e=>{let{children:t,hook:n}=e;return a().createElement(i.Provider,{value:n},t)},o=()=>{const e=(0,r.useContext)(i);if(!e)throw new Error("ActionsHookContext must be provided");return e}},23759:(e,t,n)=>{n.d(t,{hR:()=>c,nX:()=>u,RT:()=>d,pu:()=>p,BF:()=>h});var r=n(24328),a=n.n(r),i=n(17512),l=n(50914),o=n(79573);const s=(0,r.createContext)(null),c=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children"]);return a().createElement(s.Provider,{value:n},t)},u=e=>{const{getCrosswalkColor:t=(0,l.pipe)(i.uKF,i.CJp)}=(0,r.useContext)(s)||{};return e?t(e):""},d=()=>{const{highlightedCrosswalks:e=[]}=(0,r.useContext)(s)||{};return e},p=e=>{const{highlightedCrosswalks:t=[],setCrosswalkHighlighted:n=o.ZT}=(0,r.useContext)(s)||{},a=!!e&&!!t.find((0,l.eqBy)(i.uKF,e));return{isHighlighted:a,isDimmed:t.length>0&&!a,highlightCrosswalk:(0,r.useCallback)((()=>n(e,!0)),[e,n]),removeHighlight:(0,r.useCallback)((()=>n(e,!1)),[e,n])}},h=e=>{const{toggleCrosswalkFocus:t=o.ZT,focusedCrosswalks:n=[]}=(0,r.useContext)(s)||{};return{isFocused:!!e&&n.some((0,l.eqBy)(i.uKF,e)),toggleCrosswalkFocus:(0,r.useCallback)((()=>t(e)),[e,t])}}},96697:(e,t,n)=>{n.d(t,{f:()=>u,M:()=>d});var r=n(24328),a=n.n(r),i=n(79573);function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=a().createContext({isLoading:!1,updateEntityLoadingState:i.ZT,updateEntitiesNavigationLoadingState:i.ZT,resetLoadingState:i.ZT}),c={entitiesNavigation:!1,entity:!1},u=e=>{let{children:t}=e;const n=(()=>{const[e,t]=(0,r.useState)(c),n=(0,r.useCallback)((e=>{t((t=>l({},t,{entity:e})))}),[]),a=(0,r.useCallback)((e=>{t((t=>l({},t,{entitiesNavigation:e})))}),[]),i=(0,r.useCallback)((()=>{t(c)}),[]);return{isLoading:Object.values(e).includes(!0),updateEntityLoadingState:n,updateEntitiesNavigationLoadingState:a,resetLoadingState:i}})();return a().createElement(s.Provider,{value:n},t)},d=()=>(0,r.useContext)(s)},49753:(e,t,n)=>{n.d(t,{T:()=>a});var r=n(24328);const a=n.n(r)().createContext({profileBand:{}});a.displayName="LabelsContext"},36852:(e,t,n)=>{n.d(t,{C:()=>m});var r=n(24328),a=n(52730),i=n(50914),l=n(17512),o=n(50673);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=(e,t)=>t.filter((t=>t.replyId!==e)),d=(e,t)=>{const n=e.replies.findIndex((e=>{let{replyId:n}=e;return n===t.replyId})),r=[...e.replies];return r[n]=t,r},p=[],h=e=>console.error("Collaboration error",e),m=e=>{let{objectIds:t=p,objectTypes:n,enabled:c=!0}=e;const m=(0,a.useSelector)(o.ZP.selectors.getEntity),f=(0,a.useSelector)(o.ZP.selectors.getTenant),g=(0,a.useSelector)(o.ZP.selectors.getCollaborationPath),b=(0,a.useSelector)(o.ZP.selectors.isCollaborationEnabled)&&c,[y,v]=(0,r.useState)(null),[x,C]=(0,r.useState)([]),[E,S]=(0,r.useState)(null),[O,k]=(0,r.useState)(null),[P,w]=(0,r.useState)(!1),[I,T]=(0,r.useState)(!1),[j,N]=(0,r.useState)({}),R=(0,r.useCallback)((e=>{S((t=>s({},t,e)))}),[]),D=null==m?void 0:m.uri,Z=(0,r.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(b&&D&&!(0,l.ZiX)(D)){const n=e=>{console.warn("Collaboration error",e),S(null)};(0,i.pipe)(l.$oF,(0,i.andThen)((0,i.map)((0,i.props)(["objectId","comments"]))),(0,i.andThen)(i.fromPairs),(0,i.andThen)(t?S:R),(0,i.otherwise)(n))({uris:e,tenant:f,collaborationPath:g})}else S(null)}),[R,g,D,b,f]);(0,r.useEffect)((()=>{Z(t,!0)}),[t,Z]);const z=(0,r.useCallback)(((e,t)=>{(0,l.liG)({collaborationPath:g,tenant:f,relatedObjectUri:e,pageToken:t}).then((e=>{let{items:n,nextPageToken:r}=e;C((e=>t?(0,i.uniqBy)((0,i.prop)("commentId"),[...e,...n]):n)),v(r)})).catch(h)}),[g,f]),_=(0,r.useCallback)((e=>{T(!0),(0,l.d7q)({collaborationPath:g,tenant:f,commentId:e}).then(k).catch(h).finally((()=>T(!1)))}),[g,f]),F=(0,r.useCallback)((e=>{let{content:t,namedUsers:n,objectType:r,uri:a,relatedObjectUris:i}=e;w(!0);const o={objectId:a,content:t,relatedObjectUris:i,objectType:r,visibility:"public",namedUsers:n,permanentLink:`${window.location.href}&commentId=${encodeURIComponent("{commentId}")}`};return(0,l.Yrx)({collaborationPath:g,tenant:f,data:o}).then((e=>{let[t]=e;return((e,t)=>{k(e),S((n=>s({},n,{[t]:[...n[t]||[],{commentId:e.commentId,replies:0,status:"open"}]}))),C((t=>[e,...t]))})(t,a)})).catch(h).finally((()=>w(!1)))}),[g,f]),L=(0,r.useCallback)((e=>{let{content:t,namedUsers:n,objectType:r,uri:a,relatedObjectUris:o,commentId:c,replies:u}=e;w(!0);const d={objectId:a,content:t,relatedObjectUris:o,objectType:r,visibility:"public",namedUsers:n,commentId:c,replies:u};return(0,l.uAg)({collaborationPath:g,tenant:f,data:d}).then((e=>(e=>{k(e),C((0,i.map)((0,i.when)((0,i.propEq)("commentId",e.commentId),(0,i.always)(e))))})(s({},e,{replies:u})))).catch(h).finally((()=>w(!1)))}),[g,f]),B=(0,r.useCallback)((e=>{let{uri:t,commentId:n}=e;w(!0),(0,l.YFy)({collaborationPath:g,tenant:f,commentId:n}).then((()=>((e,t)=>{k(null),S((n=>{const r=n[t]||[];return s({},n,{[t]:r.filter((t=>t.commentId!==e))})})),C((t=>t.filter((t=>t.commentId!==e))))})(n,t))).catch(h).finally((()=>w(!1)))}),[g,f]),M=(0,r.useCallback)(((e,t,n,r)=>{const a="resolve"===e.action?"resolved":"open",{replyId:i}=e;k("resolved"===a?e=>{if(e)return null}:t=>{if(t)return s({},t,{replies:r?u(i,t.replies):[...t.replies,e]})}),S((e=>s({},e,{[t]:(e[t]||[]).map((e=>e.commentId===n?s({},e,{status:a,replies:r?e.replies-1:e.replies+1}):e))}))),C((t=>t.map((t=>t.commentId===n?s({},t,{status:a,replies:r?u(e.replyId,t.replies):[...t.replies,e]}):t))))}),[]),q=(0,r.useCallback)((e=>{let{uri:t,commentId:n,reply:r}=e;w(!0),(0,l.Mfr)({collaborationPath:g,tenant:f,commentId:n,replyId:r.replyId}).then((()=>M(r,t,n,!0))).catch(h).finally((()=>w(!1)))}),[g,M,f]),U=(0,r.useCallback)(((e,t)=>{k((t=>{if(t)return s({},t,{replies:d(t,e)})})),C((n=>n.map((n=>n.commentId===t?s({},n,{replies:d(n,e)}):n))))}),[]),H=(0,r.useCallback)((e=>{let{content:t,namedUsers:n,commentId:r,replyId:a}=e;w(!0);const i={content:t,namedUsers:n};return(0,l.ufV)({collaborationPath:g,tenant:f,commentId:r,replyId:a,data:i}).then((e=>U(e,r))).catch(h).finally((()=>w(!1)))}),[g,f,U]),A=(0,r.useCallback)((e=>{let{content:t,namedUsers:n,commentId:r,action:a,uri:i}=e;w(!0);const o={content:t,action:a,namedUsers:n};return(0,l.PP2)({collaborationPath:g,tenant:f,commentId:r,data:o}).then((e=>{let[t]=e;return M(t,i,r)})).catch(h).finally((()=>w(!1)))}),[g,f,M]),G=(0,r.useCallback)((e=>{let{commentId:t,uri:n}=e;A({content:"",namedUsers:[],commentId:t,action:"resolve",uri:n})}),[A]),V=(0,r.useCallback)((e=>{let{commentId:t,uri:n}=e;A({content:"",namedUsers:[],commentId:t,action:"reopen",uri:n})}),[A]);return{clearCurrentComment:(0,r.useCallback)((()=>{k(null)}),[]),comments:x,commentsMap:E,getCommentState:(e,t)=>(0,i.pathOr)({},[e,t],j),updateCommentState:(e,t,n)=>{N((r=>{const a=[e,t],l=(0,i.path)(a,r);return(0,i.assocPath)(a,(0,i.mergeRight)(l,n),r)}))},clearCommentState:(e,t)=>N((0,i.dissocPath)([e,t])),createComment:F,createReply:A,currentComment:O,deleteComment:B,editComment:L,getComment:_,getComments:z,getCommentsCount:Z,loading:I,objectTypes:n,pageToken:y,reOpenThread:V,resolveThread:G,sending:P,deleteReply:q,editReply:H}}}}]);
|
|
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]="d246a112-9215-465a-be9b-9bf32f3f9407",e._sentryDebugIdIdentifier="sentry-dbid-d246a112-9215-465a-be9b-9bf32f3f9407")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1624"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3875],{42639:(e,t,n)=>{n.d(t,{Z:()=>u});var r,a=n(65439),i=n(71153),l=n.n(i),o=n(24328),s=n.n(o);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}!function(e){e[e.ICON_MODE=0]="ICON_MODE",e[e.TEXT_MODE=1]="TEXT_MODE",e[e.ERROR_MODE=2]="ERROR_MODE"}(r||(r={}));const u=e=>{let{className:t,icon:n,avatarText:i,rootClasses:u}=e,d=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","icon","avatarText","rootClasses"]);const[p,h]=(0,o.useState)(null);(0,o.useEffect)((()=>{h(n?r.ICON_MODE:r.TEXT_MODE)}),[n,i]);const m=()=>{h(r.ERROR_MODE)};switch(p){case r.ICON_MODE:return s().createElement(a.Z,c({className:l()(t,null==u?void 0:u.iconRoot),src:n,onError:m},d));case r.TEXT_MODE:case r.ERROR_MODE:return s().createElement(a.Z,c({className:l()(t,null==u?void 0:u.textRoot)},d),i);default:return null}}},30488:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(38748),a=n(50548);const i=e=>t=>(0,a.l)(r.X,e,t)},87825:(e,t,n)=>{n.d(t,{Z:()=>b});var r=n(24328),a=n.n(r),i=n(13980),l=n.n(i),o=n(53862);function s(){return s=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},s.apply(this,arguments)}const c=e=>a().createElement("svg",s({width:20,height:18,viewBox:"0 0 20 18",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{d:"M16 7.24V6h-4v1.24a8.417 8.417 0 00-2 .768V6H6v6h.29a8.497 8.497 0 00-.15.358l-.29.733.29.733.07.176H2c-1.1 0-2-.9-2-2V2C0 .9.9 0 2 0h14c1.1 0 2 .9 2 2v6.008a8.417 8.417 0 00-2-.768zM4 12V6H2v6h2zm0-8V2H2v2h2zm6 0V2H6v2h4zm6 0V2h-4v2h4zm-2 5a6.451 6.451 0 00-6 4.09 6.451 6.451 0 006 4.092 6.451 6.451 0 006-4.091A6.451 6.451 0 0014 9zm0 6.818a2.728 2.728 0 010-5.454 2.728 2.728 0 010 5.454zm0-4.363c-.905 0-1.636.73-1.636 1.636 0 .905.73 1.636 1.636 1.636.905 0 1.636-.73 1.636-1.636 0-.906-.73-1.636-1.636-1.636z",fill:"#000",fillRule:"nonzero",stroke:"none",strokeWidth:1,opacity:.54}));var u=n(39475),d=n(50914),p=n(45013),h=n(2507),m=n.n(h),f=n(15954);const g=e=>{let{columnsData:t,selectedColumns:n,onChangeColumns:i,title:l,tooltipTitle:o}=e;const[s,h]=(0,r.useState)(null),g=(0,r.useCallback)((e=>{const t=(0,d.pipe)(f.JJ,(0,d.pluck)("id"))(e),r=(0,f.u)(n,e);i(r?(0,d.difference)(n,t):(0,d.uniq)((0,d.concat)(n,t)))}),[n,i]);return a().createElement(a().Fragment,null,a().createElement(u.k,{tooltipTitle:o||m().text("Show/hide columns"),size:"L",icon:c,onClick:e=>h(e.currentTarget)}),a().createElement(p.G,{onColumnClick:g,anchorEl:s,columnsData:t,onClose:()=>h(null),title:l,selectedColumns:n}))};g.propTypes={columnsData:o.uz,selectedColumns:l().arrayOf(l().string),onChangeColumns:l().func,title:l().string,tooltipTitle:l().string};const b=g},45013:(e,t,n)=>{n.d(t,{G:()=>S});var r=n(24328),a=n.n(r),i=n(2507),l=n.n(i),o=n(50914),s=n(98858),c=n(63485),u=n(22311),d=n(15954),p=n(41008),h=n(26638),m=n(13980),f=n.n(m),g=n(33117),b=n(94792),y=n(71153),v=n.n(y);const x=(0,n(72342).makeStyles)({popup:{minWidth:"200px"},groupItem:{backgroundColor:"rgba(0,0,0,0.04)"}}),C=e=>{let{item:t,onClick:n,checked:r,level:i,style:l,isFocused:o,isGroupItem:s,hideCheckBox:c}=e;const u=x();return a().createElement(g.Z,{hideCheckBox:c,key:t.id,onClick:n,checked:r,level:i,data:t,label:a().createElement(b.Z,{text:t.label,highlight:t.filterText}),labelInText:t.label,style:l,isFocused:o,hideIcon:s,className:v()({[u.groupItem]:s})})};C.propTypes={item:f().shape({label:f().string,filterText:f().string}),level:f().number,onClick:f().func,checked:f().bool,style:f().object,isGroupItem:f().bool,isFocused:f().bool,hideCheckBox:f().bool};const E=C,S=e=>{let{anchorEl:t,onClose:n,title:i,columnsData:m,onColumnClick:f,selectedColumns:g,hideCheckBox:b}=e;const y=x(),[v,C]=(0,r.useState)(""),S=(0,r.useMemo)((()=>(0,d.eX)(m,v)),[m,v]),O=(0,r.useMemo)((()=>(0,p.LG)(S)),[S]),k=(0,s.fW1)("label")(S)||308,P=(0,r.useCallback)((e=>{let{item:t}=e;return f(t)}),[f]),{focusIndex:w,handleKeyDown:I}=(0,h.t)({items:O,open:!0,onSelectFocusedItem:P,selectedItems:g,onClose:n}),T=(0,r.useCallback)((0,o.pipe)(n,(()=>C(""))),[n]),j=Math.min(300,32*O.length),N=Math.max(140,j+108);return a().createElement(u.Z,{className:y.popup,open:!!t,anchorEl:t,onClose:T,onSearch:C,title:i||l().text("Show/hide columns"),containerWidth:k,containerHeight:N,searchInputOnKeyDown:I},a().createElement(c.Z,{fixedTitle:!1,height:j,renderItem:(e,t,n)=>{let{item:r,level:i=0}=t;return a().createElement(E,{hideCheckBox:b,style:e,item:r,level:i,isFocused:w===n,checked:(0,d.u)(g,r),isGroupItem:(0,d.yf)(r),onClick:b?(0,o.pipe)(f,T):f})},items:O,getItemSize:()=>32,focusIndex:w}))}},15954:(e,t,n)=>{n.d(t,{eX:()=>b,JJ:()=>y,yf:()=>o,u:()=>v});var r=n(50914),a=n(98858);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const o=e=>e.id===e.groupId,s=(0,r.curry)(((e,t)=>{let{id:n,groupId:r}=e;return t.groupId===r&&(n===t.id||n.startsWith(`${t.id}.`))})),c=(0,r.curry)(((e,t)=>{let{groupId:n}=e;return n===t.id})),u=(0,r.propOr)(!0,"hideable"),d=(e,t)=>{const n=((e,t)=>e.find((0,r.either)(c(t),s(t))))(e,t);return n?(n.children=d(n.children||[],t),e):e.concat(t)},p=(0,r.curry)(((e,t)=>a.P6Y.strings.search(t.label,e)||(t.children||[]).some(p(e)))),h=(0,r.reduce)(((e,t)=>d(e,{id:t.id,groupId:t.groupId,label:t.label,attrType:t.dataTypeDefinition})),[]),m=(0,r.curry)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,r.pipe)((0,r.filter)(p(e)),(0,r.chain)((t=>[{item:i({},t,{filterText:e}),level:n},...t.children?m(e,t.children,n+1):[]])))(t)})),f=(0,r.has)("columns"),g=e=>{let{id:t,label:n,columns:a}=e;return[{id:t,groupId:t,label:n},...a.map((0,r.assoc)("groupId",t))]},b=(e,t)=>(0,r.pipe)((0,r.chain)((0,r.when)(f,g)),(0,r.filter)((0,r.either)(o,u)),h,m(t))(e),y=e=>e.children?(0,r.chain)(y,e.children):[e],v=(e,t)=>{const n=y(t),r=t=>e.includes(t.id);return o(t)?n.every(r):n.some(r)}},20146:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),i=n(52730),l=n(71153),o=n.n(l),s=n(79312),c=n(98858),u=n(29945),d=n(40007);const p=(0,n(72342).makeStyles)({"entityType-overflow":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",marginRight:"12px",borderRadius:"2px",flexShrink:0},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",marginRight:"16px",flexShrink:0}}),h=e=>{let{entity:t,className:n,size:r="small"}=e;const l=p(),h=(0,i.useSelector)(u.ZP.selectors.getMetadata),m=t.type,f=(0,c.nt9)(h,m),g=(f?(0,c.VD3)(h,f,"typeColor"):null)||c.rSc.palette.primary.main,b=(0,c.jFi)(h,t);return a().createElement(d.Z,{value:b,placement:"top"},a().createElement(s.Z,{style:{backgroundColor:g,color:c.P6Y.Colors.getColor(g)?"#FFFFFF":"#212121"},className:o()(l[`entityType-${r}`],l["entityType-overflow"],n),component:"div"},b))}},79386:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(24328),a=n.n(r),i=n(71153),l=n.n(i),o=n(52730),s=n(50914),c=n(79312),u=n(23883),d=n(2507),p=n.n(d),h=n(98858),m=n(29945),f=n(37573),g=n(20146);const b=(0,n(72342).makeStyles)((e=>({profileBandWrapper:{flexShrink:0},profileBand:{display:"flex",padding:"16px 12px 16px 16px",alignItems:"flex-start",backgroundColor:"#fff",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.12)",marginBottom:"1px","&:after":{content:'""',minHeight:"inherit",fontSize:0}},inactive:{background:e.inactiveBackground},profileIcon:{marginRight:"12px"},imageProfileIcon:{width:"48px",height:"48px"},profileInfo:{display:"flex",flexDirection:"column",flex:"1 1 50%"},badge:{},label:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary,wordBreak:"break-word","&+ $specialInfo":{marginTop:"4px"}},secondaryLabel:{display:"inline-flex",color:e.palette.text.primary,marginTop:"2px",lineHeight:"16px",fontSize:"14px",fontWeight:400,"&+ $businessCard":{marginLeft:"12px"}},businessCard:{color:e.palette.text.secondary,display:"inline-flex",fontSize:"14px",marginTop:"4px",lineHeight:"1.2"},specialInfo:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",width:"100%",marginTop:"8px"},entityType:{display:"flex",flexWrap:"wrap"},entityId:{fontSize:"13px",color:e.palette.text.secondary,whiteSpace:"nowrap",cursor:"pointer","&:hover":{textDecoration:"underline"}}}))),y=e=>{let{className:t,entity:n,children:i,classes:d,renderLabel:y=s.identity}=e;const v=b({classes:d}),x=(0,o.useSelector)(m.ZP.selectors.getMetadata),C=(0,o.useSelector)(m.ZP.selectors.getShowEntityId),E=(0,r.useCallback)((()=>{navigator.clipboard.writeText((0,h.BTI)(n))}),[n]);if((0,s.isNil)(n))return null;const S=(0,h.idV)(n.label),O=n.secondaryLabel,k=(0,h.ptG)(x,n),P=(0,h.Fn9)(n),w=n.uri,I=(0,h.BTI)(n);return a().createElement("div",{className:l()(v.profileBandWrapper,t)},a().createElement("div",{className:l()(v.profileBand,{[v.inactive]:!P}),"data-entity-uri":w},a().createElement(f.Z,{key:n.uri,entity:n,avatarClassName:v.profileIcon,imageClassName:v.imageProfileIcon}),a().createElement("div",{className:v.profileInfo},a().createElement("div",null,a().createElement(c.Z,{variant:"h6",className:v.label},y(S)),O&&a().createElement(c.Z,{variant:"subtitle2",className:v.secondaryLabel},O),k&&a().createElement(c.Z,{variant:"subtitle1",className:v.businessCard},k)),a().createElement("div",{className:v.specialInfo},a().createElement("div",{className:v.entityType},a().createElement(g.Z,{entity:n,size:"medium",className:v.badge}),!(0,h.ZiX)(w)&&C&&a().createElement(u.Z,{title:p().text("Copy to clipboard")},a().createElement(c.Z,{display:"inline",variant:"body2",className:v.entityId,onClick:E},p().text("Entity ID"),": ",I))))),i&&a().createElement("div",null,i)))}},60883:(e,t,n)=>{n.d(t,{a:()=>_});var r=n(24328),a=n.n(r),i=n(55485),l=n(23468),o=n(31373),s=n(98858),c=n(71153),u=n.n(c),d=n(50914),p=n(2507),h=n.n(p),m=n(49753),f=n(78223),g=n(39475);const b=(0,n(72342).makeStyles)({container:{display:"flex",alignItems:"center"},link:{whiteSpace:"nowrap",marginRight:"9px"}}),y=(0,f.Z)(i.Z),v=e=>{var t;let{className:n,total:i=0,onPrev:c,onNext:p,onSearchResultsClick:f,isPrevDisabled:v,isNextDisabled:x}=e;const C=b(),E=(0,r.useContext)(m.T),{OPEN_RESULTS:S,SEARCH_RESULT:O,SEARCH_RESULTS:k,NEXT_PROFILE:P,PREVIOUS_PROFILE:w}=(0,d.mergeRight)({OPEN_RESULTS:h().text("Go to search results"),SEARCH_RESULT:h().text("Search result"),SEARCH_RESULTS:h().text("Search results"),PREVIOUS_PROFILE:h().text("Go to previous profile"),NEXT_PROFILE:h().text("Go to next profile")},null!==(t=null==E?void 0:E.profileBand)&&void 0!==t?t:{});return a().createElement("div",{className:u()(C.container,n)},a().createElement(y,{className:C.link,component:"button",variant:"caption",onClick:f,underline:"none",tooltipTitle:S},(0,s.k7L)(i,1e6)," ",1===i?O:k),a().createElement(g.k,{size:"L",icon:l.Z,"data-reltio-id":"reltio-previous-profile-button",tooltipTitle:w,onClick:c,disabled:v,showForDisabled:!0}),a().createElement(g.k,{size:"L",icon:o.Z,"data-reltio-id":"reltio-next-profile-button",tooltipTitle:P,onClick:p,disabled:x,showForDisabled:!0}))};var x=n(52730),C=n(29945),E=n(96697),S=n(63532),O=n(98001),k=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){w(e,t,n[t])}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class I{constructor(e){var t=this;let{data:{query:n,sortField:r,sortOrder:a},tenant:i,searchTenant:l,apiPath:o,dtssPath:c,globalSearchRequestOptions:u}=e;this.query=void 0,this.sortField=void 0,this.sortOrder=void 0,this.tenant=void 0,this.searchTenant=void 0,this.apiPath=void 0,this.dtssPath=void 0,this.globalSearchRequestOptions=void 0,this.isDT=()=>this.tenant!==this.searchTenant,this.getQueryFilter=()=>({rawFilter:this.query}),this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[t.getQueryFilter(),...e],a=P({},t.globalSearchRequestOptions,{sort:t.sortField,order:t.sortOrder,select:"uri,label,type",scoreEnabled:!1},n);return t.isDT()?(0,s.uqV)({filters:r,options:a,customerTenant:t.tenant,dataTenant:t.searchTenant,dtssPath:t.dtssPath}):(0,s.ZOr)(r,a)},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"uri",values:[e]}],{offset:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{offset:t,max:e}),this.requestTotal=()=>{const e=[this.getQueryFilter()],t=this.globalSearchRequestOptions;return(this.isDT()?(0,s.J$m)({filters:e,options:t,customerTenant:this.tenant,dataTenant:this.searchTenant,dtssPath:this.dtssPath}):(0,s.j_Q)(e,t)).then((e=>e.total))},this.query=n,this.sortField=r,this.sortOrder=a,this.tenant=i,this.searchTenant=l,this.apiPath=o,this.dtssPath=c,this.globalSearchRequestOptions=u}}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){j(e,t,n[t])}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class N{constructor(e){var t=this;let{data:n,tenant:r,apiPath:a}=e;this.searchBody=void 0,this.tenant=void 0,this.apiPath=void 0,this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[{rawFilter:t.searchBody.filter},...e];return(0,s.P2h)({apiPath:t.apiPath,tenant:t.tenant,searchBody:T({},t.searchBody,{filter:e.length?(0,s.Uqd)()(r):t.searchBody.filter}),options:n})},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"id",values:[(0,s.BTI)({uri:e})]}],{from:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{from:t,max:e}),this.requestTotal=()=>(0,s.dED)({apiPath:this.apiPath,tenant:this.tenant,searchBody:this.searchBody}).then((e=>e.count)),this.searchBody=n,this.tenant=r,this.apiPath=a}}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){D(e,t,n[t])}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Z=(e,t)=>(0,d.pipe)((0,d.map)((0,d.prop)("uri")),(0,d.reject)((e=>t.includes(e))))(e),z=()=>{const e=(0,k._)(),t=(0,k._)(),n=(0,k._)(),{uri:a,index:i,total:l,tenant:o,cache:c}=(0,x.useSelector)(C.ZP.selectors.getSearchNavigationData)||{},{type:u,data:d}=(0,x.useSelector)(C.ZP.selectors.getSearchProviderData)||{},p=(0,x.useSelector)(C.ZP.selectors.getTenant),h=(0,x.useSelector)(C.ZP.selectors.getApiPath),m=(0,x.useSelector)(C.ZP.selectors.getDtssPath),f=(0,x.useSelector)((e=>C.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),{updateEntitiesNavigationLoadingState:g}=(0,E.M)(),b=(0,r.useContext)(S.m),y=(0,x.useDispatch)(),[v,P]=(0,r.useState)(!1),w=(0,r.useMemo)((()=>((e,t)=>{switch(e){case"search":return new I(t);case"graphsearch":return new N(t)}})(u,{data:d,tenant:p,searchTenant:o,apiPath:h,dtssPath:m,globalSearchRequestOptions:f})),[u,d,p,o,h,m,f]),T=(0,r.useCallback)((e=>{y(C.yC.actions.updateSearchNavigationDataFields(e))}),[y]),j=(0,r.useCallback)((e=>{const t=p!==o?(0,s.wwR)({uri:e,dataTenant:o}):e;y(C.ui.actions.openEntity({uri:t,viewId:b,source:"navigation"}))}),[y,b,p,o]),D=(0,r.useCallback)((()=>{y(C.ui.actions.openPerspective({perspectiveId:u,viewId:b}))}),[y,u,b]);(0,r.useEffect)((()=>{i>=l?T({index:l-1}):i<0&&T({index:0})}),[l,i,T]);const z=(0,O.u)();(0,r.useEffect)((()=>{const e=z(((e,t)=>{switch(e.type){case C.yC.constants.UPDATE_SEARCH_NAVIGATION_DATA_ON_MERGE:{const n=C.ZP.selectors.getSearchNavigationData(t);n&&T(((e,t)=>{const{winnerUri:n,losersUris:r=[]}=t,a=((e,t)=>{let{uri:n,index:r,total:a,cache:i}=e;if(t&&t!==n){if(i&&i.includes(n)){i=[...i];const e=i.indexOf(t);let l=i.indexOf(n);e>=0&&(i.splice(e,1),a--,e<l&&r--),l=i.indexOf(n),i.splice(l,1,t)}return n=t,R({},e,{uri:n,index:r,cache:i,total:a})}return e})(e,n);return((e,t)=>{const{cache:n=[],index:r,total:a,uri:i}=e,l=t.filter((e=>n.includes(e)));if(0===l.length)return e;const o=a-l.length,s=n.indexOf(i);let c=r;for(const e of l)n.indexOf(e)<s&&c--;const u=n.filter((e=>!l.includes(e)));return R({},e,{cache:u,index:c,total:o})})(a,r)})(n,e.payload));break}}}));return()=>e()}),[z,T]);const _=(0,r.useCallback)(((e,r,a)=>{P(!0),t(w.requestTotal()).then((e=>T({total:e})));const i=a+1;return n(w.requestEntities(15,i)).then((t=>{if(t){if(t.length){const n=Z(t,e);if(n.length>0)return T({cache:e.concat(n),uri:n[0],index:i+t.length-n.length}),void j(n[0]);if(a+t.length<r-1)return _(e,r-t.length,a+t.length)}T({index:i})}})).finally((()=>{P(!1)}))}),[w,T,j]),F=(0,r.useCallback)(((e,r)=>{P(!0),t(w.requestTotal()).then((e=>T({total:e})));const a=r-1,i=Math.max(0,r-15),l=15+Math.min(0,r-15);return n(w.requestEntities(l,i)).then((t=>{if(t){if(t.length){const n=Z(t,e);if(n.length>0)return T({cache:n.concat(e),uri:n[n.length-1],index:a-(t.length-n.length)}),void j(n[n.length-1]);if(r-t.length>0)return F(e,r-t.length)}T({index:0})}})).finally((()=>{P(!1)}))}),[w,T,j]),L=(0,r.useCallback)(((t,n,r,a)=>{if(n<t.length){const i=t[n];return P(!0),e(w.checkEntity(i)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),L(e,n,r-1,a)}T({index:a+1,uri:i,cache:t,total:r}),j(i)})).finally((()=>{P(!1)}))}if(!(a>=r-1))return _(t,r,a);T({cache:t,total:r,index:r-1})}),[w,T,j,_]),B=(0,r.useCallback)(((t,n,r,a)=>{if(n>-1){const i=t[n];return P(!0),e(w.checkEntity(i)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),B(e,n-1,r-1,a-1)}T({index:a-1,uri:i,cache:t,total:r}),j(i)})).finally((()=>{P(!1)}))}if(!(a<=0))return F(t,a);T({index:0,cache:t,total:r})}),[w,T,j,F]),M=(0,r.useCallback)((()=>{if(c&&a){const e=c.indexOf(a)-1;B(c,e,l,i)}}),[B,c,a,l,i]),q=(0,r.useCallback)((()=>{if(c&&a){const e=c.indexOf(a)+1;L(c,e,l,i)}}),[L,c,a,l,i]);return(0,r.useEffect)((()=>{g(v)}),[g,v]),(0,r.useEffect)((()=>()=>g(!1)),[]),{total:l,onPrev:M,onNext:q,onSearchResultsClick:D,isPrevDisabled:v||i<=0,isNextDisabled:v||i>=l-1}},_=e=>{let{className:t}=e;const{total:n,onPrev:r,onNext:i,onSearchResultsClick:l,isPrevDisabled:o,isNextDisabled:c}=z();return(()=>{const{cache:e}=(0,x.useSelector)(C.ZP.selectors.getSearchNavigationData)||{},t=(0,x.useSelector)(C.ZP.selectors.getMode),n=(0,x.useSelector)(C.ZP.selectors.getEntity);return(0,s.uzs)(t)&&(null==e?void 0:e.includes(null==n?void 0:n.uri))})()?a().createElement(v,{className:t,total:n,onPrev:r,onNext:i,onSearchResultsClick:l,isPrevDisabled:o,isNextDisabled:c}):null}},11802:(e,t,n)=>{n.d(t,{u:()=>h});var r=n(24328),a=n.n(r),i=n(71153),l=n.n(i),o=n(31396),s=n(47746),c=n(98858);const u=(0,n(72342).makeStyles)((()=>({container:{position:"relative","& .Resizer":{zIndex:1,boxSizing:"border-box",backgroundClip:"padding-box","&.disabled":{cursor:"initial",height:0,margin:0},"&.horizontal":{height:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"100% 1px",backgroundPosition:"top",width:"100%",marginBottom:"-10px","&:not(.disabled):hover":{cursor:"row-resize",backgroundImage:"linear-gradient(rgba(0, 114, 206, 0), rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1))",backgroundSize:"100% 3px"}},"&.vertical":{width:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"1px 100%",backgroundPosition:"left",height:"100%",marginRight:"-10px","&:not(.disabled):hover":{cursor:"col-resize",backgroundImage:"linear-gradient(to left, rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1), rgba(0, 114, 206, 0.35))",backgroundSize:"3px 100%"}}}}}))),d=250,p=e=>"horizontal"===e,h=e=>{let{className:t,children:n,orientation:i,primary:h,defaultSize:m,size:f,minSize:g,maxSize:b,allowResize:y,debounceInterval:v=d,onChange:x}=e;const C=u(),E=(0,s.Z)(),[S,O]=(0,r.useState)(null),[k,P]=(0,r.useState)(!0),w=(0,r.useCallback)((()=>P(!0)),[]),I=(0,r.useCallback)((()=>P(!1)),[]),T=()=>p(i)?null==S?void 0:S.clientHeight:null==S?void 0:S.clientWidth,j=(0,r.useCallback)((0,c.DsO)((e=>{const t=T();x({percentageSize:e/t*100+"%",isMaxSize:+b>0?e===b:e===t+b,isMinSize:e===g,size:e})}),v),[x,i,b,S]),N=(0,r.useMemo)((()=>({transition:E.transitions.create(p(i)?"height":"width",{easing:E.transitions.easing.sharp,duration:E.transitions.duration.leavingScreen})})),[i,E]);return"number"==typeof f&&f<0&&(f=(T()||0)+f),a().createElement("div",{ref:O,className:l()(C.container,t)},a().createElement(o.Z,{split:i,size:f,primary:h,allowResize:y,onChange:j,defaultSize:m,minSize:g,maxSize:b,onDragStarted:I,onDragFinished:w,pane1Style:k?N:void 0},n))};h.displayName="ResizablePanes"},21210:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),a=n.n(r),i=n(52730),l=n(29945),o=n(98858),s=n(42639);const c=e=>{let{sourceType:t,className:n,classes:r}=e;const c=(0,i.useSelector)(l.ZP.selectors.getMetadata),{uri:u,icon:d}=(0,o.PWK)(c,t)||{},p=u?(0,o.tH7)(c,u)[0]:"",h=d?(0,o.vPL)("https://s3.amazonaws.com/reltio.images/api",d):null;return a().createElement(s.Z,{className:n,avatarText:p,icon:h,variant:"square",rootClasses:r})}},79935:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r);const i=()=>a().createElement("div",{style:{flex:1}})},75647:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),i=n(52730),l=n(29945),o=n(38677),s=n(79312),c=n(50914),u=n(2507),d=n.n(u);const p=(0,n(72342).makeStyles)({root:{display:"flex",alignItems:"flex-start"},slice:{fontWeight:500},cancelButton:{width:"88px",flexShrink:0,marginLeft:"15px"}}),h=()=>{const e=p(),t=(0,i.useSelector)(l.ZP.selectors.getHistoryEvent),n=(0,i.useDispatch)(),r=(0,c.pipe)(l.N5.history.actions.clearHistoryEvent,n);return t?a().createElement("div",{className:e.root},a().createElement(s.Z,{component:"div"},d().text("You are viewing a historic slice:")," ",a().createElement("span",{className:e.slice},d().date(t.aStamp,"llll"))),a().createElement(o.Z,{className:e.cancelButton,variant:"contained",color:"primary",onClick:r},d().text("Cancel"))):null}},98001:(e,t,n)=>{n.d(t,{G:()=>l,u:()=>o});var r=n(24328),a=n.n(r);const i=(0,r.createContext)(null);i.displayName="ActionsHookContext";const l=e=>{let{children:t,hook:n}=e;return a().createElement(i.Provider,{value:n},t)},o=()=>{const e=(0,r.useContext)(i);if(!e)throw new Error("ActionsHookContext must be provided");return e}},23759:(e,t,n)=>{n.d(t,{hR:()=>c,nX:()=>u,RT:()=>d,pu:()=>p,BF:()=>h});var r=n(24328),a=n.n(r),i=n(98858),l=n(50914),o=n(79573);const s=(0,r.createContext)(null),c=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children"]);return a().createElement(s.Provider,{value:n},t)},u=e=>{const{getCrosswalkColor:t=(0,l.pipe)(i.uKF,i.CJp)}=(0,r.useContext)(s)||{};return e?t(e):""},d=()=>{const{highlightedCrosswalks:e=[]}=(0,r.useContext)(s)||{};return e},p=e=>{const{highlightedCrosswalks:t=[],setCrosswalkHighlighted:n=o.ZT}=(0,r.useContext)(s)||{},a=!!e&&!!t.find((0,l.eqBy)(i.uKF,e));return{isHighlighted:a,isDimmed:t.length>0&&!a,highlightCrosswalk:(0,r.useCallback)((()=>n(e,!0)),[e,n]),removeHighlight:(0,r.useCallback)((()=>n(e,!1)),[e,n])}},h=e=>{const{toggleCrosswalkFocus:t=o.ZT,focusedCrosswalks:n=[]}=(0,r.useContext)(s)||{};return{isFocused:!!e&&n.some((0,l.eqBy)(i.uKF,e)),toggleCrosswalkFocus:(0,r.useCallback)((()=>t(e)),[e,t])}}},96697:(e,t,n)=>{n.d(t,{f:()=>u,M:()=>d});var r=n(24328),a=n.n(r),i=n(79573);function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=a().createContext({isLoading:!1,updateEntityLoadingState:i.ZT,updateEntitiesNavigationLoadingState:i.ZT,resetLoadingState:i.ZT}),c={entitiesNavigation:!1,entity:!1},u=e=>{let{children:t}=e;const n=(()=>{const[e,t]=(0,r.useState)(c),n=(0,r.useCallback)((e=>{t((t=>l({},t,{entity:e})))}),[]),a=(0,r.useCallback)((e=>{t((t=>l({},t,{entitiesNavigation:e})))}),[]),i=(0,r.useCallback)((()=>{t(c)}),[]);return{isLoading:Object.values(e).includes(!0),updateEntityLoadingState:n,updateEntitiesNavigationLoadingState:a,resetLoadingState:i}})();return a().createElement(s.Provider,{value:n},t)},d=()=>(0,r.useContext)(s)},49753:(e,t,n)=>{n.d(t,{T:()=>a});var r=n(24328);const a=n.n(r)().createContext({profileBand:{}});a.displayName="LabelsContext"},36852:(e,t,n)=>{n.d(t,{C:()=>m});var r=n(24328),a=n(52730),i=n(50914),l=n(98858),o=n(29945);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=(e,t)=>t.filter((t=>t.replyId!==e)),d=(e,t)=>{const n=e.replies.findIndex((e=>{let{replyId:n}=e;return n===t.replyId})),r=[...e.replies];return r[n]=t,r},p=[],h=e=>console.error("Collaboration error",e),m=e=>{let{objectIds:t=p,objectTypes:n,enabled:c=!0}=e;const m=(0,a.useSelector)(o.ZP.selectors.getEntity),f=(0,a.useSelector)(o.ZP.selectors.getTenant),g=(0,a.useSelector)(o.ZP.selectors.getCollaborationPath),b=(0,a.useSelector)(o.ZP.selectors.isCollaborationEnabled)&&c,[y,v]=(0,r.useState)(null),[x,C]=(0,r.useState)([]),[E,S]=(0,r.useState)(null),[O,k]=(0,r.useState)(null),[P,w]=(0,r.useState)(!1),[I,T]=(0,r.useState)(!1),[j,N]=(0,r.useState)({}),R=(0,r.useCallback)((e=>{S((t=>s({},t,e)))}),[]),D=null==m?void 0:m.uri,Z=(0,r.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(b&&D&&!(0,l.ZiX)(D)){const n=e=>{console.warn("Collaboration error",e),S(null)};(0,i.pipe)(l.$oF,(0,i.andThen)((0,i.map)((0,i.props)(["objectId","comments"]))),(0,i.andThen)(i.fromPairs),(0,i.andThen)(t?S:R),(0,i.otherwise)(n))({uris:e,tenant:f,collaborationPath:g})}else S(null)}),[R,g,D,b,f]);(0,r.useEffect)((()=>{Z(t,!0)}),[t,Z]);const z=(0,r.useCallback)(((e,t)=>{(0,l.liG)({collaborationPath:g,tenant:f,relatedObjectUri:e,pageToken:t}).then((e=>{let{items:n,nextPageToken:r}=e;C((e=>t?(0,i.uniqBy)((0,i.prop)("commentId"),[...e,...n]):n)),v(r)})).catch(h)}),[g,f]),_=(0,r.useCallback)((e=>{T(!0),(0,l.d7q)({collaborationPath:g,tenant:f,commentId:e}).then(k).catch(h).finally((()=>T(!1)))}),[g,f]),F=(0,r.useCallback)((e=>{let{content:t,namedUsers:n,objectType:r,uri:a,relatedObjectUris:i}=e;w(!0);const o={objectId:a,content:t,relatedObjectUris:i,objectType:r,visibility:"public",namedUsers:n,permanentLink:`${window.location.href}&commentId=${encodeURIComponent("{commentId}")}`};return(0,l.Yrx)({collaborationPath:g,tenant:f,data:o}).then((e=>{let[t]=e;return((e,t)=>{k(e),S((n=>s({},n,{[t]:[...n[t]||[],{commentId:e.commentId,replies:0,status:"open"}]}))),C((t=>[e,...t]))})(t,a)})).catch(h).finally((()=>w(!1)))}),[g,f]),L=(0,r.useCallback)((e=>{let{content:t,namedUsers:n,objectType:r,uri:a,relatedObjectUris:o,commentId:c,replies:u}=e;w(!0);const d={objectId:a,content:t,relatedObjectUris:o,objectType:r,visibility:"public",namedUsers:n,commentId:c,replies:u};return(0,l.uAg)({collaborationPath:g,tenant:f,data:d}).then((e=>(e=>{k(e),C((0,i.map)((0,i.when)((0,i.propEq)("commentId",e.commentId),(0,i.always)(e))))})(s({},e,{replies:u})))).catch(h).finally((()=>w(!1)))}),[g,f]),B=(0,r.useCallback)((e=>{let{uri:t,commentId:n}=e;w(!0),(0,l.YFy)({collaborationPath:g,tenant:f,commentId:n}).then((()=>((e,t)=>{k(null),S((n=>{const r=n[t]||[];return s({},n,{[t]:r.filter((t=>t.commentId!==e))})})),C((t=>t.filter((t=>t.commentId!==e))))})(n,t))).catch(h).finally((()=>w(!1)))}),[g,f]),M=(0,r.useCallback)(((e,t,n,r)=>{const a="resolve"===e.action?"resolved":"open",{replyId:i}=e;k("resolved"===a?e=>{if(e)return null}:t=>{if(t)return s({},t,{replies:r?u(i,t.replies):[...t.replies,e]})}),S((e=>s({},e,{[t]:(e[t]||[]).map((e=>e.commentId===n?s({},e,{status:a,replies:r?e.replies-1:e.replies+1}):e))}))),C((t=>t.map((t=>t.commentId===n?s({},t,{status:a,replies:r?u(e.replyId,t.replies):[...t.replies,e]}):t))))}),[]),q=(0,r.useCallback)((e=>{let{uri:t,commentId:n,reply:r}=e;w(!0),(0,l.Mfr)({collaborationPath:g,tenant:f,commentId:n,replyId:r.replyId}).then((()=>M(r,t,n,!0))).catch(h).finally((()=>w(!1)))}),[g,M,f]),U=(0,r.useCallback)(((e,t)=>{k((t=>{if(t)return s({},t,{replies:d(t,e)})})),C((n=>n.map((n=>n.commentId===t?s({},n,{replies:d(n,e)}):n))))}),[]),H=(0,r.useCallback)((e=>{let{content:t,namedUsers:n,commentId:r,replyId:a}=e;w(!0);const i={content:t,namedUsers:n};return(0,l.ufV)({collaborationPath:g,tenant:f,commentId:r,replyId:a,data:i}).then((e=>U(e,r))).catch(h).finally((()=>w(!1)))}),[g,f,U]),A=(0,r.useCallback)((e=>{let{content:t,namedUsers:n,commentId:r,action:a,uri:i}=e;w(!0);const o={content:t,action:a,namedUsers:n};return(0,l.PP2)({collaborationPath:g,tenant:f,commentId:r,data:o}).then((e=>{let[t]=e;return M(t,i,r)})).catch(h).finally((()=>w(!1)))}),[g,f,M]),G=(0,r.useCallback)((e=>{let{commentId:t,uri:n}=e;A({content:"",namedUsers:[],commentId:t,action:"resolve",uri:n})}),[A]),V=(0,r.useCallback)((e=>{let{commentId:t,uri:n}=e;A({content:"",namedUsers:[],commentId:t,action:"reopen",uri:n})}),[A]);return{clearCurrentComment:(0,r.useCallback)((()=>{k(null)}),[]),comments:x,commentsMap:E,getCommentState:(e,t)=>(0,i.pathOr)({},[e,t],j),updateCommentState:(e,t,n)=>{N((r=>{const a=[e,t],l=(0,i.path)(a,r);return(0,i.assocPath)(a,(0,i.mergeRight)(l,n),r)}))},clearCommentState:(e,t)=>N((0,i.dissocPath)([e,t])),createComment:F,createReply:A,currentComment:O,deleteComment:B,editComment:L,getComment:_,getComments:z,getCommentsCount:Z,loading:I,objectTypes:n,pageToken:y,reOpenThread:V,resolveThread:G,sending:P,deleteReply:q,editReply:H}}}}]);
|
|
2
2
|
//# sourceMappingURL=3875.js.map
|
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]="3a3e0e39-75c8-4f20-ad29-6e597d82868f",e._sentryDebugIdIdentifier="sentry-dbid-3a3e0e39-75c8-4f20-ad29-6e597d82868f")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1622"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3902],{55234:(e,t,n)=>{n.d(t,{Z:()=>O});var r=n(24328),l=n.n(r),o=n(2507),i=n.n(o),a=n(71153),s=n.n(a),c=n(50914),u=n(52730),d=n(50673),p=n(17512),E=n(79312),f=n(15793),m=n(19602),h=n(59952),g=n(33117),y=n(72342);function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const T={input:e=>b({},e,{fontSize:"14px"}),menuPortal:e=>b({},e,{zIndex:1300})},I=(0,y.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"},noOptionsMessage:{fontSize:"14px"}});const O=e=>{let{entityType:t,selectedAttributes:n,className:o,onChange:a,title:y,disableUnderline:b,menuPlacement:v="bottom"}=e;const O=(0,u.useSelector)(d.ZP.selectors.getMetadata),S=I(),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,p.EUG)(O,r);return e.concat(o?x(o,t+1,l):[])}),[])}),[O]),N=(0,r.useMemo)((()=>x((null==t?void 0:t.attributes)||[])),[t,x]);return l().createElement("div",{className:s()(S.root,o),"data-reltio-id":"attribute-selector"},l().createElement(E.Z,{className:S.title,variant:"subtitle1"},y||i().text("Attribute")),l().createElement(f.Z,{value:n,options:N,TextFieldProps:{InputProps:{disableUnderline:b},classes:{root:S.dropDownInput}},components:{DropdownIndicator:h.Z,MultiValue:e=>{let{data:t}=e,n=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,["data"]);return l().createElement(m.Z,n,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:n,data:r,label:o,innerProps:i}=e;return l().createElement("div",i,l().createElement(g.Z,{checked:n,level:r.level,data:r,label:o,labelInText:o,isFocused:t}))}},onChange:(0,c.pipe)((0,c.defaultTo)([]),a),styles:T,classes:S,menuPlacement:v,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(17512),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 g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}function y(e){const{innerProps:t,innerRef:n,children:r,isFocused:o,isSelected:i,selectProps:{classes:a},label:s}=e;return l().createElement(p.Z,g({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)))}y.propTypes={children:i().node,innerProps:i().shape({id:i().string.isRequired,key:i().string,onClick:i().func.isRequired,onMouseMove:i().func.isRequired,onMouseOver:i().func.isRequired,tabIndex:i().number.isRequired}).isRequired,innerRef:i().oneOfType([i().oneOf([null]),i().func,i().shape({current:i().any.isRequired})]),isFocused:i().bool.isRequired,isSelected:i().bool.isRequired,label:i().string,selectProps:i().shape({classes:i().shape({option:i().string})})};const b={Option:y};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){S(e,t,n[t])}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const x=(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,g=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"]),y=n?c:o?d.Z:u.Z,[v,S]=(0,r.useState)(""),_=x((0,a.omit)(["classes"],e)),C="custom-select-"+N++,R=O({},b,s),D=(0,T.ze)(_,p),P=O({indicatorSeparator:e=>O({},e,{margin:"10px 0"}),loadingIndicator:e=>O({},e,{display:i?e.display:"none"}),loadingMessage:e=>O({},e,{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'})},E),M=t?{inputId:C,TextFieldProps:O({label:t,InputLabelProps:{htmlFor:C,shrink:!(!e.value||!e.value.length)||void 0,className:D.label}},e.TextFieldProps)}:{};return l().createElement(y,I({isMulti:!0,inputId:C,inputValue:v,onChange:function(e,t){f(e,t),"create-option"===t.action&&(S(""),m("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;m(e,{action:n}),"set-value"!==n&&S(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:D,components:R,styles:P,menuPlacement:h,loadOptions:o},M,g))}_.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(52730),i=n(2507),a=n.n(i),s=n(50914),c=n(71153),u=n.n(c),d=n(79312),p=n(15793),E=n(59952),f=n(17512),m=n(50673),h=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 b={input:e=>g({},e,{fontSize:"14px"}),loadingMessage:e=>g({},e,{fontSize:"14px"}),menuPortal:e=>g({},e,{zIndex:1300})},v=(0,h.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"}}),T=e=>{let{selectedUsers:t,onChange:n,className:i,disableUnderline:c}=e;const h=v(),g=e=>({value:e,label:e}),y=e=>e.map(g),T=(0,o.useSelector)(m.ZP.selectors.getTenant),I=(0,o.useSelector)(m.ZP.selectors.getServicesPath),O=(0,r.useRef)();return l().createElement("div",{className:u()(h.root,i),"data-reltio-id":"user-selector"},l().createElement(d.Z,{className:h.title,variant:"subtitle1"},a().text("User")),l().createElement(p.Z,{value:y(t),onChange:(0,s.pipe)((0,s.defaultTo)([]),(0,s.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(O.current||(O.current=(0,f.kz_)({tenant:T,servicesPath:I})),O.current.then((0,s.pipe)((0,s.pluck)("username"),(e=>t=>e?t.filter((t=>f.P6Y.strings.search(t,e))):t)(e),y))),TextFieldProps:{InputProps:{disableUnderline:c},className:h.dropDownInput},components:{DropdownIndicator:E.Z},styles:b,classes:h,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(17512),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:()=>y});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(17512),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"}}),g=i().localeData().longDateFormat("L"),y=e=>{let{values:t,onChange:n,onFocus:o=d.ZT}=e;const i=g,a=(0,r.useRef)(null),[y,b]=(0,r.useState)(!1),v=h(),T=(0,r.useCallback)((()=>{b((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:y},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:y,anchorEl:a.current,onClose:()=>{b(!1)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2},l().createElement(m.Z,{values:t,onApply:e=>{n(e),b(!1)},type:u.oS0.TYPE_ACTIVENESS_DATE})))}},70675:(e,t,n)=>{n.d(t,{Z:()=>ie});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),g=n(17512),y=n(40435),b=n(15791),v=n(55234),T=n(71153),I=n.n(T),O=n(90590);const S=[g.KfU.WITHIN,g.KfU.AGO,g.KfU.BETWEEN],x=e=>({[g.KfU.WITHIN]:i().text("Within the last"),[g.KfU.AGO]:i().text("More than"),[g.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===g.KfU.WITHIN||e===g.KfU.AGO,u=e=>e===g.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),y=(null==t?void 0:t.type)||g.KfU.WITHIN,b=e=>c(e)?m:u(e)?E:void 0,v=e=>{n({type:y,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:y,label:x(y)},options:S.map((e=>({value:e,label:x(e)}))),onChange:e=>{let{value:r}=e;(null==t?void 0:t.type)!==r&&n({period:b(r),type:r})}}),c(y)?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 Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){V(e,t,n[t])}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const W=e=>{let{className:t,filter:n,onApplyFilter:o,entityType:s}=e;const u=B(),T=(0,r.useRef)(),[I,O]=(0,r.useState)(!1),[S,x]=(0,r.useState)(n),{activities:N=[],attributes:_=[],dateRange:C=null,users:R=[]}=S||{},D=(0,z.FE)(n)?"inherit":"primary";(0,r.useEffect)((()=>{I&&x(n)}),[n,I]);const P=(0,c.curry)(((e,t)=>{x((n=>Y({},n,{[e]:t})))})),M=(0,r.useCallback)((()=>{O((e=>!e))}),[]),A=(0,r.useCallback)((()=>{C&&(0,g.RZp)(C)?o(S):o((0,c.dissoc)("dateRange",S)),M()}),[S,C,o,M]),L=(0,r.useCallback)((()=>{x(Y({},z.tO))}),[]);return l().createElement(l().Fragment,null,l().createElement(y.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(b.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 $=n(52730),K=n(50985),q=n(50673),X=n(98538),J=n(95341),Q=n(42713),ee=n(79573);const te=(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)"}}),ne=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=ee.ZT}=e;const o=te(),{text:i,selected:a,onClick:c}=n;return l().createElement(J.Z,{classes:{root:o.menuItem},onClick:e=>{r(),c(e)},ref:t},a&&l().createElement(Q.Z,{className:o.checkIcon}),l().createElement(s.Z,{classes:{root:o.menuText}},i))}));ne.displayName="MenuItemRenderer";const re=ne,le=()=>{const e=(0,$.useSelector)(q.ZP.selectors.getHistoryMode),t=(0,$.useDispatch)(),n=e=>{t(q.N5.history.actions.setHistoryMode(e))},r=[{text:i().text("Compare to Current view"),selected:e===q.Z9.Current,onClick:()=>n(q.Z9.Current)},{text:i().text("Compare to Previous view"),selected:e===q.Z9.Previous,onClick:()=>n(q.Z9.Previous)}];return l().createElement(X.Z,{MenuItemRenderer:re,buttonComponent:y.Z,buttonProps:{icon:K.Z,size:"L"},menuId:"history-menu",menuItems:r})},oe=(0,R.makeStyles)({root:{display:"flex",flex:1,alignItems:"center"},icon:{margin:4},divider:{borderColor:"rgba(0,0,0,0.12)",margin:"3px 19px"},count:{fontSize:14},filterButton:{marginRight:"-4px"}}),ie=e=>{let{total:t,entityType:n,filter:r,onApplyFilter:o}=e;const d=oe();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(W,{className:d.filterButton,entityType:n,filter:r,onApplyFilter:o}),l().createElement(le,null))}},95085:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),l=n.n(r),o=n(2507),i=n.n(o),a=n(15422);const s=()=>l().createElement(a.Z,{text:i().text("History in the making"),secondaryText:i().text("When you create an event or perform an activity, it will show up here.")})},32158:(e,t,n)=>{n.d(t,{Z:()=>G});var r=n(24328),l=n.n(r),o=n(52730),i=n(44443),a=n(2507),s=n.n(a),c=n(50914),u=n(71153),d=n.n(u),p=n(17512),E=n(50673),f=n(38677),m=n(79312),h=n(57312),g=n(72342);const y=(0,g.makeStyles)((()=>({historyRow:{position:"relative",padding:"8px 12px 16px",cursor:"pointer"},selected:{background:"rgba(0,0,0,0.05)","&:before":{content:'""',background:"rgba(0,0,0,0.05)",width:"100%",height:"100%",position:"absolute",left:"-100%",top:0}},rowHeader:{display:"flex",position:"relative"},badge:e=>{let{color:t}=e;return{position:"absolute",width:"2px",height:"100%",left:"-9px",pointerEvents:"none",background:t,"&:before":{height:"100%",width:"3px",content:'""',left:"-3px",background:t,position:"absolute",opacity:.06}}},title:{color:"rgba(0,0,0,0.87)",fontSize:"13px",letterSpacing:0,lineHeight:"16px",fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","&.bold":{fontWeight:500}},date:{marginLeft:"auto",color:"rgba(0,0,0,0.54)",fontSize:"11px",letterSpacing:0,lineHeight:"16px",flexShrink:0},user:{color:"rgba(0,0,0,0.38)",fontSize:"12px",letterSpacing:0,lineHeight:"14px"}}))),b=e=>{let{change:t,isCurrent:n,isSelected:r,onClick:o}=e;const{uri:i,type:a,matchGroups:c,user:u,timestamp:E}=t,f=(0,p.GtP)(i),g=y({color:f});return l().createElement("div",{className:d()(g.historyRow,{[g.selected]:r}),onClick:o},l().createElement("div",{className:g.rowHeader},l().createElement("div",{className:g.badge}),l().createElement(m.Z,{className:d()(g.title,{bold:n})},n?s().text("Current view"):(0,h.Xr)(a)),!n&&l().createElement(m.Z,{className:g.date},s().date(E,"L LT"))),c&&l().createElement(m.Z,{className:g.title},s().text("Match rule:")," ",c.join(", ")),l().createElement(m.Z,{className:g.user},u))};var v=n(21256);const T=e=>e===v.b.FAKE_FILTERED_INCOMING||e===v.b.FAKE_FILTERED_OUTGOING,I=e=>{let{x:t,y:n,toX:r,toY:o,color:i,isDashed:a}=e;const s=((e,t,n,r)=>{const l=t>r,o=e<n,i=l?-6:6;return`M${e} ${t} L${o?n-12:n+12} ${t} ${o?`c 6 0 12 ${i} 12`:`c -6 0 -12 ${i} -12`} ${l?-12:12} L${n} ${r}`})(t,n,r,o);return l().createElement("path",{d:s,stroke:i,strokeWidth:2,fill:"none",strokeDasharray:a?"3,3":void 0})};function O(){return O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(this,arguments)}const S=(0,r.forwardRef)(((e,t)=>{let{x:n,y:r,color:o,isDashed:i,isCollapsed:a,showCollapseIcon:s,showLine:c}=e,u=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,["x","y","color","isDashed","isCollapsed","showCollapseIcon","showLine"]);const d=s?6:3;return l().createElement("g",O({},u,{ref:t}),c&&l().createElement("rect",{id:"line",x:n-d-4,y:r-d-4,width:2*d+8,height:2,fill:o}),l().createElement("circle",{cx:n,cy:r,r:d,fill:i?"#fff":o,stroke:o,strokeDasharray:i?"1,1":void 0,strokeWidth:2}),s&&l().createElement("g",{id:"icon"},l().createElement("rect",{x:n-4,y:r-1,width:8,height:2,fill:"#fff"}),a&&l().createElement("rect",{x:n-1,y:r-4,width:2,height:8,fill:"#fff"})))}));const x=(0,n(78223).Z)(S),N=(0,r.memo)((e=>{let{graphData:t,onHistoryCircleMouseOver:n}=e;const{historyLanes:r,rows:o}=t,i=[16],{links:a,rowLines:s,circles:c}=o.reduce(((e,t,a)=>{let{uri:s,height:c,uris:u,type:d,fakeType:E,index:f,timestamp:m,label:h}=t;const g=16*r[s].index+24,y=i[a];i.push(y+c);const b=T(E),O=b?u[0]:s,S=!(null!=u&&u.some((e=>r[e])));e.circles.push(l().createElement(x,{tooltipTitle:h,tooltipPlacement:"top",onMouseOver:n?()=>n(s,m,f):void 0,key:`circle-${O}-${a}`,x:g,y,color:(0,p.GtP)(O),isDashed:b,isCollapsed:S,showCollapseIcon:!!u,showLine:E===v.b.FAKE_NAVIGATE_PROFILE})),e.rowLines.push(l().createElement("rect",{key:`${O}-${f}`,x:g,y:y-8,width:"100%",height:16,fill:(0,p.GtP)(O),opacity:.06}));const N=d===v.b.ENTITIES_SPLITTED;return null==u||u.forEach((t=>{const n=r[t];if(!n)return;const i=o[a].height,s=16*n.index+24,c=N?y-i:y+i;g!==s&&e.links.push(l().createElement(I,{key:`link-${t}-${f}`,x:g,y,toX:s,toY:c,isDashed:T(E),color:(0,p.GtP)(t)}))})),e}),{links:[],circles:[],rowLines:[]}),u=16*Object.keys(r).length+24,d=i[i.length-1]-16;return Object.entries(r).forEach((e=>{let[t,n]=e;const r=16*n.index+24;n.lifeTime.forEach(((e,s)=>{var u;let{start:d,end:E}=e;if((null===(u=o[null==E?void 0:E.index])||void 0===u?void 0:u.type)===v.b.ENTITIES_SPLITTED)return;const f=(null==d?void 0:d.type)===v.b.ENTITIES_SPLITTED?(null==d?void 0:d.index)-1:null==d?void 0:d.index,m=(null==E?void 0:E.type)===v.b.ENTITIES_MERGED_MANUALLY||(null==E?void 0:E.type)===v.b.ENTITIES_MERGED?(null==E?void 0:E.index)+1:null==E?void 0:E.index,h=i[f]||i[i.length-2],g=i[m]||16;if(h<=g)return;const y=(0,p.GtP)(t);!E&&n.index>0&&c.push(l().createElement(S,{key:`initCircle-${t}-${s}`,x:r,y:g,color:y,showLine:!0})),a.unshift(l().createElement("path",{key:`line-${t}-${s}`,d:`M${r} ${h} L${r} ${g}`,stroke:y,strokeWidth:2}))}))})),l().createElement("svg",{className:"chart",width:u,height:d},l().createElement("g",{id:"rowLines"},s),l().createElement("g",{id:"links"},a),l().createElement("g",{id:"circles"},c))}));var _=n(87378);const C=(0,g.makeStyles)({historyTree:{display:"grid",gridTemplateColumns:"auto 1fr",overflowY:"auto"},graph:{overflowX:"auto",overflowY:"hidden"},history:{minWidth:"260px"},buttonContainer:{gridColumnStart:1,gridColumnEnd:3,padding:"8px 16px"},shadow:{boxShadow:"inset -8px 0px 5px -5px rgba(0,0,0,0.1)"}});function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){D(e,t,n[t])}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const P=e=>{let{historyData:t,isLoading:n,canLoadMore:a,onLoadMore:u,entityUri:m,historyEvent:h,findPreviousChange:g}=e;const y=C(),v=(0,o.useDispatch)(),T=(0,o.useSelector)(E.ZP.selectors.getIsEditableMode),I=(0,o.useSelector)(E.ZP.selectors.getMetadata),[O,S]=(0,r.useState)({historyLanes:{},rows:[]}),[x,D]=(0,r.useState)(!1),[P,M]=(0,r.useState)(-1);(0,r.useEffect)((()=>{if((0,c.isNil)(h))return void M(0);const e=e=>(null==e?void 0:e.uri)===((null==h?void 0:h.overrideUri)||m)&&(null==e?void 0:e.timestamp)===(null==h?void 0:h.aStamp),n=-1!==P?t.rows[P]:null,r=t.rows.findIndex((t=>e(t)));M(e(n)?P:r)}),[t.rows,h]);const w=(0,r.useRef)(null),A=(0,r.useCallback)((e=>{if(!(0,c.isNil)(e)){var n;const r=null===(n=t.rows)||void 0===n?void 0:n.map(((t,n)=>{var r;return R({},t,{height:null===(r=e.childNodes[n])||void 0===r?void 0:r.clientHeight})}));S({historyLanes:t.historyLanes,rows:r})}}),[t]),L=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:n}=(null==w?void 0:w.current)||{};D(n<e-t)};return l().createElement("div",{className:y.historyTree},n&&l().createElement(_.Z,null),l().createElement("div",{className:d()(y.graph,{[y.shadow]:x}),onScroll:L,ref:w},l().createElement(N,{onHistoryCircleMouseOver:(e,t,n)=>{if((0,c.isNil)(O.rows[n].label)){const r={time:t,select:"crosswalks"};(0,p.HvW)(e,r).then((e=>{let{crosswalks:t}=e;const r=t?(0,c.uniqBy)((0,c.prop)("type"),t).map((e=>{const t=(0,p.s5)(I,e.type);return t?t.label:null})).filter(c.identity).join(", "):s().text("No data");S((e=>R({},e,{rows:e.rows.map((e=>e.index===n?R({},e,{label:r}):e))})))}))}},graphData:O}),l().createElement(i.Z,{handleWidth:!0,onResize:L})),l().createElement("div",{ref:A,className:y.history},t.rows.map(((e,t)=>{const n=t===P,r=0===t;return l().createElement(b,{key:`row-${t}`,change:e,isCurrent:r,isSelected:n,onClick:()=>((e,t,n,r)=>{if(T){if(!window.confirm(s().text("Are you sure you want to go in history mode? All your changes will be lost.")))return;v(E.N5.mode.actions.modeUpdated(p.ARY.Viewing))}if(r&&!n||!r&&n)v(E.N5.history.actions.clearHistoryEvent()),M(0);else if(!r&&!n){const n=g(e-1,t.uri||m),r=g(e,t.uri||m),l=null==n?void 0:n.timestamp,o=null==r?void 0:r.timestamp,i=(null==t?void 0:t.uri)===m?null:null==t?void 0:t.uri;v(E.N5.history.actions.setHistoryEvent({aStamp:l,bStamp:o,overrideUri:i})),M(e)}})(t,e,n,r)})}))),a&&l().createElement("div",{className:y.buttonContainer},l().createElement(f.Z,{color:"primary",onClick:()=>u()},s().text("Show more"))))},M=(0,g.makeStyles)({root:{display:"flex",flexWrap:"wrap",padding:"10px 15px"}}),w=(0,g.makeStyles)({icon:e=>{let{color:t}=e;return{boxSizing:"border-box",borderWidth:2,borderStyle:"solid",borderColor:t,height:12,width:12,borderRadius:30,transition:"opacity 0.3s",margin:4}},active:e=>{let{color:t}=e;return{backgroundColor:t}},inactive:{backgroundColor:"white"},clickable:{cursor:"pointer"}}),A=e=>{let{value:t,isSelected:n=!0,onClick:r}=e;const o=(0,p.GtP)(t),i=w({color:o});return l().createElement("div",{className:d()(i.icon,{[i.inactive]:!n,[i.active]:n,[i.clickable]:!!r}),onClick:r})},L=e=>{let{values:t,selectedValues:n,entityUri:r,onSelectValues:o,className:i}=e;const a=M();return l().createElement("div",{className:d()(a.root,i)},l().createElement(A,{value:r}),(null==t?void 0:t.length)>0&&t.map((e=>l().createElement(A,{key:e,value:e,isSelected:null==n?void 0:n.includes(e),onClick:()=>(e=>{null!=n&&n.includes(e)?o((0,c.without)([e],n)):o([...n||[],e])})(e)}))))};function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const U=(e,t)=>e.reduce(((e,n,r)=>{let{start:l,end:o}=n;if(l){const n=t-l.timestamp;((0,c.isNil)(e.startDistance)||Math.abs(e.startDistance)>Math.abs(n)&&n>0)&&(e.startIndex=r,e.startDistance=n)}if(o){const n=t-o.timestamp;((0,c.isNil)(e.endDistance)||Math.abs(e.endDistance)>Math.abs(n)&&n<0)&&(e.endIndex=r,e.endDistance=n)}return e}),{startIndex:null,endIndex:null,startDistance:null,endDistance:null}),H=(0,g.makeStyles)({root:{display:"flex",flexDirection:"column",overflow:"hidden",position:"relative",height:"100%"},borderBottom:{borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}}),G=(0,r.memo)((e=>{let{isLoading:t,historyWithTotal:n,contributorsUris:o,entityUri:i,canLoadMore:a,onLoadMore:s,historyEvent:u}=e;const d=H(),[p,E]=(0,r.useState)(null);(0,r.useEffect)((()=>{E(o)}),[o]);const{historyData:f,findPreviousChange:m}=(e=>{let{entityUri:t,historyChanges:n,selectedUris:l}=e;return(0,r.useMemo)((()=>{const e={[t]:{index:0,lifeTime:[]}},r=[{user:"",timestamp:0,uri:t}],o=(0,c.curry)(((e,n,r)=>{const l=r.uri||t;if(e)if(Array.isArray(e)){if(r.type!==v.b.ENTITY_LOST_MERGE)return null;if(e.includes(l))return r;if(n&&r.uris)return e.some((e=>r.uris.includes(e)))?r:null}else{var o;if(l===e||n&&null!==(o=r.uris)&&void 0!==o&&o.includes(e))return r}return null})),i=(e,t,r)=>(0,c.pipe)((0,c.drop)(e+1),(0,c.find)(o(t,r)))(n),a=t=>(e[t]||l&&!l.includes(t)||(e[t]={index:Object.keys(e).length,lifeTime:[]}),e[t]),s=(e,t)=>{const n=e[e.length-1];!n||n.start&&(n.start.type!==v.b.ENTITY_CREATED||t.type!==v.b.ENTITIES_SPLITTED)?e.push({start:t,end:null}):n.start=t},u=(e,t)=>{let n=!0;if(e.length){const r=e[e.length-1];n=!((!r.start||r.start.timestamp<t.timestamp)&&(!r.end||r.end.timestamp>t.timestamp))}n&&e.push({start:null,end:null})},d=(e,t)=>{if(e.length){const n=e[e.length-1];n.start||(n.start=t)}e.push({start:null,end:t})},p=[];return null==n||n.forEach(((n,l)=>{var o;switch(n.type){case v.b.ENTITIES_SPLITTED:if(!i(l,n.uri||t,!1))return;{const e=n.uri,t=n.uris?[n.uris,e]:[e],r=i(l,t,!0);if(r&&(!e||e===r.uri))return}break;case v.b.ENTITY_LOST_MERGE:case v.b.RELATIONSHIP_CREATED:case v.b.RELATIONSHIP_REMOVED:case v.b.RELATIONSHIP_CHANGED:return}let c=!1;null===(o=n.uris)||void 0===o||o.forEach((e=>{a(e)||(c=!0)}));const E=a(n.uri||t);if(!E)return;const f=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){k(e,t,n[t])}))}return e}({},n);((t,n)=>{var l,o;switch(n.type){case v.b.ENTITY_CREATED:s(t,n);break;case v.b.ENTITIES_MERGED_ON_THE_FLY:case v.b.ENTITY_CHANGED:u(t,n);break;case v.b.ENTITY_LOST_MERGE:case v.b.ENTITY_REMOVED:d(t,n);break;case v.b.ENTITIES_SPLITTED:u(t,n),null===(l=n.uris)||void 0===l||l.forEach((t=>{const l=e[t];if(!l)return;const o=l.lifeTime.length;o?s(l.lifeTime,n):d(l.lifeTime,n),r.push({uri:t,user:n.user,type:n.type,fakeType:o?v.b.FAKE_UPDATE:v.b.FAKE_NAVIGATE_PROFILE,timestamp:n.timestamp})}));break;case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:u(t,n),null===(o=n.uris)||void 0===o||o.forEach((t=>{const r=e[t];r&&d(r.lifeTime,n)}))}})(E.lifeTime,f),c&&p.push(f),r.push(f)})),p.forEach((t=>{t.uris.forEach((l=>{e[l]||n.forEach((n=>{let{uri:o,uris:i,timestamp:a,user:s,type:u}=n;o===l&&(null==i||i.forEach((n=>{const l=e[n];if(!l)return;let o=null;switch(u){case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:o=v.b.FAKE_FILTERED_INCOMING;break;case v.b.ENTITIES_SPLITTED:o=v.b.FAKE_FILTERED_OUTGOING;break;default:return}const i={fakeType:o,uri:t.uri,uris:[n],type:u,user:s,timestamp:a},d=U(l.lifeTime,t.timestamp);o===v.b.FAKE_FILTERED_INCOMING?(0,c.isNil)(d.endIndex)||(l.lifeTime[d.endIndex].end=i):(0,c.isNil)(d.startIndex)||(l.lifeTime[d.startIndex].start=i),r.splice(r.indexOf(t),0,i)})))}))}))})),r.forEach(((e,n)=>{e.index=n,e.uri=e.uri||t})),{historyData:{historyLanes:e,rows:r},findPreviousChange:(e,t)=>(0,c.pipe)((0,c.slice)(e+1,1/0),(0,c.find)(o(t,!1)))(r)}}),[t,n,l])})({entityUri:i,historyChanges:null==n?void 0:n.changes,selectedUris:p});return l().createElement("div",{className:d.root},l().createElement(L,{values:o,selectedValues:p,onSelectValues:E,entityUri:i,className:d.borderBottom}),l().createElement(P,{historyData:f,isLoading:t,onLoadMore:s,canLoadMore:a,entityUri:i,historyEvent:u,findPreviousChange:m}))}))},7108:(e,t,n)=>{n.d(t,{tO:()=>f,FE:()=>m,k6:()=>h});var r=n(24328),l=n(17512),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,g]=(0,r.useState)(null),[y,b]=(0,r.useState)(!1),v=(0,d._)(),T=null==t?void 0:t.uri,I={max:32,order:"desc"},O=(0,l.O27)(null==o?void 0:o.attributes)||void 0;(0,r.useEffect)((()=>{T&&n&&(b(!0),v((0,l.kgP)(p({entityUri:T,historicUris:E,filter:c,showAll:O},I))).then(g).catch((e=>{console.warn("Failed to load history data",e),g(null)})).finally((()=>{b(!1)})))}),[c,O,E]),(0,r.useEffect)((()=>{T&&n&&(b(!0),v((0,l.wdF)({entityUri:T})).then((e=>{m(e)})).catch((e=>{console.warn("Failed to load history data",e),m(null)})).finally((()=>{b(!1)})),s(0))}),[T,null==t?void 0:t.updatedTime,n]);const S=(0,r.useCallback)((e=>{T&&E&&n&&(b(!0),v((0,l.kgP)(p({entityUri:T,historicUris:E,filter:c,showAll:O,offset:e},I))).then((e=>{g((t=>p({},t,{changes:[...null==t?void 0:t.changes,...e.changes]})))})).catch((e=>{console.warn("Failed to load history data",e)})).finally((()=>{b(!1)})))}),[E,c,n]),x=(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)((()=>{x&&(S(32*(a+1)),s(a+1))}),[S,a,x]);return{isLoading:y,canLoadMore:x,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(17512),o=n(14201);const i=e=>{let{perspectiveId:t,entity:n,historyButtonId:i}=e;const{perspectiveSettings:a}=(0,o._)(t),{active:s}=a||{},c=s===i,[u,d]=(0,r.useState)(!1),p=null==n?void 0:n.uri;(0,r.useEffect)((()=>{c||d(!1)}),[p]),(0,r.useEffect)((()=>{c&&d(!0)}),[c]);const E=p&&!(0,l.ZiX)(p)&&!(0,l.biM)(n);return{isHistoryEnabled:u&&E,isProfilePersisted:E}}},35722:(e,t,n)=>{n.d(t,{a:()=>s});var r=n(24328),l=n(52730),o=n(50673),i=n(17512),a=n(19701);const s=e=>{let{entity:t,historyEvent:n}=e;const[s,c]=(0,r.useState)(!1),u=(0,l.useSelector)(o.ZP.selectors.getHistorySlice),d=(0,l.useDispatch)(),p=(0,a._)(),{aStamp:E,bStamp:f,overrideUri:m}=n||{},h=m||(null==t?void 0:t.uri);return(0,r.useEffect)((()=>{n&&h&&(c(!0),p(Promise.all([(0,i.lrH)(h,E),f&&1!==f?(0,i.lrH)(h,f):Promise.resolve(null)])).then((e=>{let[t,n]=e;d(o.N5.history.actions.setHistorySlice({aEntity:t,bEntity:n}))})).catch((e=>{console.warn("Failed to load entity slice",e)})).finally((()=>{c(!1)})))}),[E,f,h]),{isLoading:s,historySlice:u}}},21256:(e,t,n)=>{n.d(t,{b:()=>i});var r,l=n(20414);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.FAKE_NAVIGATE_PROFILE="FAKE_NAVIGATE_PROFILE",e.FAKE_FILTERED_INCOMING="FAKE_FILTERED_INCOMING",e.FAKE_FILTERED_OUTGOING="FAKE_FILTERED_OUTGOING",e.FAKE_UPDATE="FAKE_UPDATE"}(r||(r={}));const i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}({},l.I,r)},38323:(e,t,n)=>{let r;n.d(t,{M:()=>r}),function(e){e.UPDATE="UPDATE",e.MERGE="MERGE",e.UNMERGE="UNMERGE"}(r||(r={}))},18408:(e,t,n)=>{n.d(t,{D:()=>E});var r=n(24328),l=n.n(r),o=n(2507),i=n.n(o),a=n(50914),s=n(83820),c=n(38677),u=n(10050),d=n(79573);const p=3e5,E=function(){let{anchorOrigin:e={vertical:"bottom",horizontal:"center"},showDismiss:t,dismissTitle:n=i().text("Dismiss"),autoHideDuration:o=p,onDismissClick:E=d.ZT}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[f,m]=(0,r.useState)(!1),[h,g]=(0,r.useState)(""),y=(0,r.useCallback)((()=>{m(!1),g("")}),[]),b=(0,r.useCallback)(((e,t)=>{"clickaway"!==t&&y()}),[y]),v=(0,r.useCallback)((e=>{m(!0),g(e)}),[]),T=(0,r.useCallback)((()=>l().createElement(s.Z,{container:document.body},l().createElement(u.Z,{open:f,anchorOrigin:e,autoHideDuration:o,onClose:b,message:h,style:{maxWidth:500},action:t?l().createElement(c.Z,{color:"primary",onClick:(0,a.pipe)(y,E)},n):void 0}))),[f,y,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]="c68e2a58-944a-4a16-88ca-0c9b73bd10d7",e._sentryDebugIdIdentifier="sentry-dbid-c68e2a58-944a-4a16-88ca-0c9b73bd10d7")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1624"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3902],{55234:(e,t,n)=>{n.d(t,{Z:()=>O});var r=n(24328),l=n.n(r),o=n(2507),i=n.n(o),a=n(71153),s=n.n(a),c=n(50914),u=n(52730),d=n(29945),p=n(98858),E=n(79312),f=n(15793),m=n(19602),h=n(59952),g=n(33117),b=n(72342);function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const T={input:e=>y({},e,{fontSize:"14px"}),menuPortal:e=>y({},e,{zIndex:1300})},I=(0,b.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"},noOptionsMessage:{fontSize:"14px"}});const O=e=>{let{entityType:t,selectedAttributes:n,className:o,onChange:a,title:b,disableUnderline:y,menuPlacement:v="bottom"}=e;const O=(0,u.useSelector)(d.ZP.selectors.getMetadata),S=I(),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,p.EUG)(O,r);return e.concat(o?x(o,t+1,l):[])}),[])}),[O]),N=(0,r.useMemo)((()=>x((null==t?void 0:t.attributes)||[])),[t,x]);return l().createElement("div",{className:s()(S.root,o),"data-reltio-id":"attribute-selector"},l().createElement(E.Z,{className:S.title,variant:"subtitle1"},b||i().text("Attribute")),l().createElement(f.Z,{value:n,options:N,TextFieldProps:{InputProps:{disableUnderline:y},classes:{root:S.dropDownInput}},components:{DropdownIndicator:h.Z,MultiValue:e=>{let{data:t}=e,n=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,["data"]);return l().createElement(m.Z,n,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:n,data:r,label:o,innerProps:i}=e;return l().createElement("div",i,l().createElement(g.Z,{checked:n,level:r.level,data:r,label:o,labelInText:o,isFocused:t}))}},onChange:(0,c.pipe)((0,c.defaultTo)([]),a),styles:T,classes:S,menuPlacement:v,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(98858),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 g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}function b(e){const{innerProps:t,innerRef:n,children:r,isFocused:o,isSelected:i,selectProps:{classes:a},label:s}=e;return l().createElement(p.Z,g({className:m()(a.option,{[a["option--selected"]]:i}),ref:n,selected:o,component:"div"},t),l().createElement(E.Z,{color:"primary",checked:i}),l().createElement(h.Z,{value:s},l().createElement("div",{className:a["option--item"]},r)))}b.propTypes={children:i().node,innerProps:i().shape({id:i().string.isRequired,key:i().string,onClick:i().func.isRequired,onMouseMove:i().func.isRequired,onMouseOver:i().func.isRequired,tabIndex:i().number.isRequired}).isRequired,innerRef:i().oneOfType([i().oneOf([null]),i().func,i().shape({current:i().any.isRequired})]),isFocused:i().bool.isRequired,isSelected:i().bool.isRequired,label:i().string,selectProps:i().shape({classes:i().shape({option:i().string})})};const y={Option:b};var v=n(72342),T=n(79573);function I(){return I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(this,arguments)}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){S(e,t,n[t])}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const x=(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,g=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,["label","creatable","getOptions","loadingIndicator","components","classes","styles","onChange","onInputChange","menuPlacement"]),b=n?c:o?d.Z:u.Z,[v,S]=(0,r.useState)(""),_=x((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(b,I({isMulti:!0,inputId:C,inputValue:v,onChange:function(e,t){f(e,t),"create-option"===t.action&&(S(""),m("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;m(e,{action:n}),"set-value"!==n&&S(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:D,components:R,styles:P,menuPlacement:h,loadOptions:o},M,g))}_.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(52730),i=n(2507),a=n.n(i),s=n(50914),c=n(71153),u=n.n(c),d=n(79312),p=n(15793),E=n(59952),f=n(98858),m=n(29945),h=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){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 y={input:e=>g({},e,{fontSize:"14px"}),loadingMessage:e=>g({},e,{fontSize:"14px"}),menuPortal:e=>g({},e,{zIndex:1300})},v=(0,h.makeStyles)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"}}),T=e=>{let{selectedUsers:t,onChange:n,className:i,disableUnderline:c}=e;const h=v(),g=e=>({value:e,label:e}),b=e=>e.map(g),T=(0,o.useSelector)(m.ZP.selectors.getTenant),I=(0,o.useSelector)(m.ZP.selectors.getServicesPath),O=(0,r.useRef)();return l().createElement("div",{className:u()(h.root,i),"data-reltio-id":"user-selector"},l().createElement(d.Z,{className:h.title,variant:"subtitle1"},a().text("User")),l().createElement(p.Z,{value:b(t),onChange:(0,s.pipe)((0,s.defaultTo)([]),(0,s.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(O.current||(O.current=(0,f.kz_)({tenant:T,servicesPath:I})),O.current.then((0,s.pipe)((0,s.pluck)("username"),(e=>t=>e?t.filter((t=>f.P6Y.strings.search(t,e))):t)(e),b))),TextFieldProps:{InputProps:{disableUnderline:c},className:h.dropDownInput},components:{DropdownIndicator:E.Z},styles:y,classes:h,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(98858),l=n(50914),o=n(2507),i=n.n(o),a=n(20414);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=(0,l.path)(["data","type"]),d=e=>{const{items:t,label:n}=e,[r]=t||[];return u(r)||n},p=e=>{const{items:t=[],label:n}=e,r=e=>{return t=u(e)||n,(0,l.pipe)(l.values,(0,l.includes)(t))(a.I);var t},o=(0,l.filter)(r)(t);return t.length!==o.length&&console.error("Activities not implemented:",(0,l.reject)(r)(t)),s({},e,{items:o,itemsTotal:o.length})},E=e=>(0,l.pipe)((0,l.propOr)([],"items"),(0,l.groupBy)(u),l.values,(0,l.ifElse)((e=>{let{length:t}=e;return t>1}),(0,l.map)((t=>s({},e,{items:t,itemsTotal:t.length}))),(()=>[e])))(e),f=(e,t,n,o)=>{const i=(0,r.zeJ)(n,t),a=(0,r.PFL)(i),s=(0,r.mB6)({attributePresentations:o,dataTypeDefinition:a});return(0,l.isNil)(e)?"":"string"==typeof e?i?s(e):e:Object.entries(e).flatMap((e=>{let[l,i]=e;return i.map((e=>f(e.value,(0,r.tCm)(t,l),n,o)))})).join(", ")},m=e=>({[a.I.COMMENT_ADDED]:i().text("Comment added"),[a.I.COMMENT_DELETED]:i().text("Comment deleted"),[a.I.COMMENT_UPDATED]:i().text("Comment updated"),[a.I.ENTITIES_MERGED]:i().text("Profile merged"),[a.I.ENTITIES_MERGED_MANUALLY]:i().text("Profile merged manually"),[a.I.ENTITIES_MERGED_ON_THE_FLY]:i().text("Profile merged on the fly"),[a.I.ENTITIES_SPLITTED]:i().text("Profile un-merged"),[a.I.ENTITY_CHANGED]:i().text("Profile updated"),[a.I.ENTITY_CREATED]:i().text("Profile created"),[a.I.ENTITY_LOST_MERGE]:i().text("Profile lost merge"),[a.I.ENTITY_REMOVED]:i().text("Profile removed"),[a.I.GROUP_CHANGED]:i().text("Group updated"),[a.I.GROUP_CREATED]:i().text("Group created"),[a.I.GROUP_REMOVED]:i().text("Group removed"),[a.I.MODEL_UPDATED]:i().text("Model was updated"),[a.I.NOT_MATCHES_RESET]:i().text("Not matches reset"),[a.I.NOT_MATCHES_SET]:i().text("Not matches set"),[a.I.PERIODIC_TASK_SCHEDULED]:i().text("Periodic task was scheduled"),[a.I.POTENTIAL_MATCHES_FOUND]:i().text("Potential matches found"),[a.I.POTENTIAL_MATCHES_REMOVED]:i().text("Potential matches removed"),[a.I.RELATIONSHIP_CHANGED]:i().text("Relationship updated"),[a.I.RELATIONSHIP_CREATED]:i().text("Relationship created"),[a.I.RELATIONSHIP_REMOVED]:i().text("Relationship removed"),[a.I.USER_LOGIN]:i().text("Logged in"),[a.I.USER_LOGOUT]:i().text("Logged out"),[a.I.USER_PROFILE_VIEW]:i().text("Profile viewed"),[a.I.USER_SEARCH]:i().text("Searched"),[a.I.ANALYTICS_ATTRIBUTES_CHANGED]:i().text("Analytics attribute changed"),[a.I.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE]:i().text("SFDC connector synchronization issue")}[e]||"")},27446:(e,t,n)=>{n.d(t,{Z:()=>b});var r=n(24328),l=n.n(r),o=n(95038),i=n.n(o),a=n(2507),s=n.n(a),c=n(50914),u=n(98858),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"}}),g=i().localeData().longDateFormat("L"),b=e=>{let{values:t,onChange:n,onFocus:o=d.ZT}=e;const i=g,a=(0,r.useRef)(null),[b,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:b},innerProps:{}}),disableUnderline:(0,c.isNil)(t),readOnly:!0,classes:{root:v.inputRoot,input:v.input}},InputLabelProps:{shrink:!1},placeholder:s().text(`${i} — ${i}`)}),l().createElement(E.ZP,{open:b,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:()=>ie});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),g=n(98858),b=n(40435),y=n(15791),v=n(55234),T=n(71153),I=n.n(T),O=n(90590);const S=[g.KfU.WITHIN,g.KfU.AGO,g.KfU.BETWEEN],x=e=>({[g.KfU.WITHIN]:i().text("Within the last"),[g.KfU.AGO]:i().text("More than"),[g.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===g.KfU.WITHIN||e===g.KfU.AGO,u=e=>e===g.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),b=(null==t?void 0:t.type)||g.KfU.WITHIN,y=e=>c(e)?m:u(e)?E:void 0,v=e=>{n({type:b,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:b,label:x(b)},options:S.map((e=>({value:e,label:x(e)}))),onChange:e=>{let{value:r}=e;(null==t?void 0:t.type)!==r&&n({period:y(r),type:r})}}),c(b)?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 Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){V(e,t,n[t])}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $=e=>{let{className:t,filter:n,onApplyFilter:o,entityType:s}=e;const u=B(),T=(0,r.useRef)(),[I,O]=(0,r.useState)(!1),[S,x]=(0,r.useState)(n),{activities:N=[],attributes:_=[],dateRange:C=null,users:R=[]}=S||{},D=(0,z.FE)(n)?"inherit":"primary";(0,r.useEffect)((()=>{I&&x(n)}),[n,I]);const P=(0,c.curry)(((e,t)=>{x((n=>Y({},n,{[e]:t})))})),M=(0,r.useCallback)((()=>{O((e=>!e))}),[]),A=(0,r.useCallback)((()=>{C&&(0,g.RZp)(C)?o(S):o((0,c.dissoc)("dateRange",S)),M()}),[S,C,o,M]),L=(0,r.useCallback)((()=>{x(Y({},z.tO))}),[]);return l().createElement(l().Fragment,null,l().createElement(b.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(52730),K=n(50985),q=n(29945),X=n(98538),J=n(95341),Q=n(42713),ee=n(79573);const te=(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)"}}),ne=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=ee.ZT}=e;const o=te(),{text:i,selected:a,onClick:c}=n;return l().createElement(J.Z,{classes:{root:o.menuItem},onClick:e=>{r(),c(e)},ref:t},a&&l().createElement(Q.Z,{className:o.checkIcon}),l().createElement(s.Z,{classes:{root:o.menuText}},i))}));ne.displayName="MenuItemRenderer";const re=ne,le=()=>{const e=(0,W.useSelector)(q.ZP.selectors.getHistoryMode),t=(0,W.useDispatch)(),n=e=>{t(q.N5.history.actions.setHistoryMode(e))},r=[{text:i().text("Compare to Current view"),selected:e===g.Z9$.Current,onClick:()=>n(g.Z9$.Current)},{text:i().text("Compare to Previous view"),selected:e===g.Z9$.Previous,onClick:()=>n(g.Z9$.Previous)}];return l().createElement(X.Z,{MenuItemRenderer:re,buttonComponent:b.Z,buttonProps:{icon:K.Z,size:"L"},menuId:"history-menu",menuItems:r})},oe=(0,R.makeStyles)({root:{display:"flex",flex:1,alignItems:"center"},icon:{margin:4},divider:{borderColor:"rgba(0,0,0,0.12)",margin:"3px 19px"},count:{fontSize:14},filterButton:{marginRight:"-4px"}}),ie=e=>{let{total:t,entityType:n,filter:r,onApplyFilter:o}=e;const d=oe();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(le,null))}},95085:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),l=n.n(r),o=n(2507),i=n.n(o),a=n(15422);const s=()=>l().createElement(a.Z,{text:i().text("History in the making"),secondaryText:i().text("When you create an event or perform an activity, it will show up here.")})},32158:(e,t,n)=>{n.d(t,{Z:()=>G});var r=n(24328),l=n.n(r),o=n(52730),i=n(44443),a=n(2507),s=n.n(a),c=n(50914),u=n(71153),d=n.n(u),p=n(98858),E=n(29945),f=n(38677),m=n(79312),h=n(57312),g=n(72342);const b=(0,g.makeStyles)((()=>({historyRow:{position:"relative",padding:"8px 12px 16px",cursor:"pointer"},selected:{background:"rgba(0,0,0,0.05)","&:before":{content:'""',background:"rgba(0,0,0,0.05)",width:"100%",height:"100%",position:"absolute",left:"-100%",top:0}},rowHeader:{display:"flex",position:"relative"},badge:e=>{let{color:t}=e;return{position:"absolute",width:"2px",height:"100%",left:"-9px",pointerEvents:"none",background:t,"&:before":{height:"100%",width:"3px",content:'""',left:"-3px",background:t,position:"absolute",opacity:.06}}},title:{color:"rgba(0,0,0,0.87)",fontSize:"13px",letterSpacing:0,lineHeight:"16px",fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","&.bold":{fontWeight:500}},date:{marginLeft:"auto",color:"rgba(0,0,0,0.54)",fontSize:"11px",letterSpacing:0,lineHeight:"16px",flexShrink:0},user:{color:"rgba(0,0,0,0.38)",fontSize:"12px",letterSpacing:0,lineHeight:"14px"}}))),y=e=>{let{change:t,isCurrent:n,isSelected:r,onClick:o}=e;const{uri:i,type:a,matchGroups:c,user:u,timestamp:E}=t,f=(0,p.GtP)(i),g=b({color:f});return l().createElement("div",{className:d()(g.historyRow,{[g.selected]:r}),onClick:o},l().createElement("div",{className:g.rowHeader},l().createElement("div",{className:g.badge}),l().createElement(m.Z,{className:d()(g.title,{bold:n})},n?s().text("Current view"):(0,h.Xr)(a)),!n&&l().createElement(m.Z,{className:g.date},s().date(E,"L LT"))),c&&l().createElement(m.Z,{className:g.title},s().text("Match rule:")," ",c.join(", ")),l().createElement(m.Z,{className:g.user},u))};var v=n(21256);const T=e=>e===v.b.FAKE_FILTERED_INCOMING||e===v.b.FAKE_FILTERED_OUTGOING,I=e=>{let{x:t,y:n,toX:r,toY:o,color:i,isDashed:a}=e;const s=((e,t,n,r)=>{const l=t>r,o=e<n,i=l?-6:6;return`M${e} ${t} L${o?n-12:n+12} ${t} ${o?`c 6 0 12 ${i} 12`:`c -6 0 -12 ${i} -12`} ${l?-12:12} L${n} ${r}`})(t,n,r,o);return l().createElement("path",{d:s,stroke:i,strokeWidth:2,fill:"none",strokeDasharray:a?"3,3":void 0})};function O(){return O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(this,arguments)}const S=(0,r.forwardRef)(((e,t)=>{let{x:n,y:r,color:o,isDashed:i,isCollapsed:a,showCollapseIcon:s,showLine:c}=e,u=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,["x","y","color","isDashed","isCollapsed","showCollapseIcon","showLine"]);const d=s?6:3;return l().createElement("g",O({},u,{ref:t}),c&&l().createElement("rect",{id:"line",x:n-d-4,y:r-d-4,width:2*d+8,height:2,fill:o}),l().createElement("circle",{cx:n,cy:r,r:d,fill:i?"#fff":o,stroke:o,strokeDasharray:i?"1,1":void 0,strokeWidth:2}),s&&l().createElement("g",{id:"icon"},l().createElement("rect",{x:n-4,y:r-1,width:8,height:2,fill:"#fff"}),a&&l().createElement("rect",{x:n-1,y:r-4,width:2,height:8,fill:"#fff"})))}));const x=(0,n(78223).Z)(S),N=(0,r.memo)((e=>{let{graphData:t,onHistoryCircleMouseOver:n}=e;const{historyLanes:r,rows:o}=t,i=[16],{links:a,rowLines:s,circles:c}=o.reduce(((e,t,a)=>{let{uri:s,height:c,uris:u,type:d,fakeType:E,index:f,timestamp:m,label:h}=t;const g=16*r[s].index+24,b=i[a];i.push(b+c);const y=T(E),O=y?u[0]:s,S=!(null!=u&&u.some((e=>r[e])));e.circles.push(l().createElement(x,{tooltipTitle:h,tooltipPlacement:"top",onMouseOver:n?()=>n(s,m,f):void 0,key:`circle-${O}-${a}`,x:g,y:b,color:(0,p.GtP)(O),isDashed:y,isCollapsed:S,showCollapseIcon:!!u,showLine:E===v.b.FAKE_NAVIGATE_PROFILE})),e.rowLines.push(l().createElement("rect",{key:`${O}-${f}`,x:g,y:b-8,width:"100%",height:16,fill:(0,p.GtP)(O),opacity:.06}));const N=d===v.b.ENTITIES_SPLITTED;return null==u||u.forEach((t=>{const n=r[t];if(!n)return;const i=o[a].height,s=16*n.index+24,c=N?b-i:b+i;g!==s&&e.links.push(l().createElement(I,{key:`link-${t}-${f}`,x:g,y:b,toX:s,toY:c,isDashed:T(E),color:(0,p.GtP)(t)}))})),e}),{links:[],circles:[],rowLines:[]}),u=16*Object.keys(r).length+24,d=i[i.length-1]-16;return Object.entries(r).forEach((e=>{let[t,n]=e;const r=16*n.index+24;n.lifeTime.forEach(((e,s)=>{var u;let{start:d,end:E}=e;if((null===(u=o[null==E?void 0:E.index])||void 0===u?void 0:u.type)===v.b.ENTITIES_SPLITTED)return;const f=(null==d?void 0:d.type)===v.b.ENTITIES_SPLITTED?(null==d?void 0:d.index)-1:null==d?void 0:d.index,m=(null==E?void 0:E.type)===v.b.ENTITIES_MERGED_MANUALLY||(null==E?void 0:E.type)===v.b.ENTITIES_MERGED?(null==E?void 0:E.index)+1:null==E?void 0:E.index,h=i[f]||i[i.length-2],g=i[m]||16;if(h<=g)return;const b=(0,p.GtP)(t);!E&&n.index>0&&c.push(l().createElement(S,{key:`initCircle-${t}-${s}`,x:r,y:g,color:b,showLine:!0})),a.unshift(l().createElement("path",{key:`line-${t}-${s}`,d:`M${r} ${h} L${r} ${g}`,stroke:b,strokeWidth:2}))}))})),l().createElement("svg",{className:"chart",width:u,height:d},l().createElement("g",{id:"rowLines"},s),l().createElement("g",{id:"links"},a),l().createElement("g",{id:"circles"},c))}));var _=n(87378);const C=(0,g.makeStyles)({historyTree:{display:"grid",gridTemplateColumns:"auto 1fr",overflowY:"auto"},graph:{overflowX:"auto",overflowY:"hidden"},history:{minWidth:"260px"},buttonContainer:{gridColumnStart:1,gridColumnEnd:3,padding:"8px 16px"},shadow:{boxShadow:"inset -8px 0px 5px -5px rgba(0,0,0,0.1)"}});function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){D(e,t,n[t])}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const P=e=>{let{historyData:t,isLoading:n,canLoadMore:a,onLoadMore:u,entityUri:m,historyEvent:h,findPreviousChange:g}=e;const b=C(),v=(0,o.useDispatch)(),T=(0,o.useSelector)(E.ZP.selectors.getIsEditableMode),I=(0,o.useSelector)(E.ZP.selectors.getMetadata),[O,S]=(0,r.useState)({historyLanes:{},rows:[]}),[x,D]=(0,r.useState)(!1),[P,M]=(0,r.useState)(-1);(0,r.useEffect)((()=>{if((0,c.isNil)(h))return void M(0);const e=e=>(null==e?void 0:e.uri)===((null==h?void 0:h.overrideUri)||m)&&(null==e?void 0:e.timestamp)===(null==h?void 0:h.aStamp),n=-1!==P?t.rows[P]:null,r=t.rows.findIndex((t=>e(t)));M(e(n)?P:r)}),[t.rows,h]);const w=(0,r.useRef)(null),A=(0,r.useCallback)((e=>{if(!(0,c.isNil)(e)){var n;const r=null===(n=t.rows)||void 0===n?void 0:n.map(((t,n)=>{var r;return R({},t,{height:null===(r=e.childNodes[n])||void 0===r?void 0:r.clientHeight})}));S({historyLanes:t.historyLanes,rows:r})}}),[t]),L=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:n}=(null==w?void 0:w.current)||{};D(n<e-t)};return l().createElement("div",{className:b.historyTree},n&&l().createElement(_.Z,null),l().createElement("div",{className:d()(b.graph,{[b.shadow]:x}),onScroll:L,ref:w},l().createElement(N,{onHistoryCircleMouseOver:(e,t,n)=>{if((0,c.isNil)(O.rows[n].label)){const r={time:t,select:"crosswalks"};(0,p.HvW)(e,r).then((e=>{let{crosswalks:t}=e;const r=t?(0,c.uniqBy)((0,c.prop)("type"),t).map((e=>{const t=(0,p.s5)(I,e.type);return t?t.label:null})).filter(c.identity).join(", "):s().text("No data");S((e=>R({},e,{rows:e.rows.map((e=>e.index===n?R({},e,{label:r}):e))})))}))}},graphData:O}),l().createElement(i.Z,{handleWidth:!0,onResize:L})),l().createElement("div",{ref:A,className:b.history},t.rows.map(((e,t)=>{const n=t===P,r=0===t;return l().createElement(y,{key:`row-${t}`,change:e,isCurrent:r,isSelected:n,onClick:()=>((e,t,n,r)=>{if(T){if(!window.confirm(s().text("Are you sure you want to go in history mode? All your changes will be lost.")))return;v(E.N5.mode.actions.modeUpdated(p.ARY.Viewing))}if(r&&!n||!r&&n)v(E.N5.history.actions.clearHistoryEvent()),M(0);else if(!r&&!n){const n=g(e-1,t.uri||m),r=g(e,t.uri||m),l=null==n?void 0:n.timestamp,o=null==r?void 0:r.timestamp,i=(null==t?void 0:t.uri)===m?null:null==t?void 0:t.uri;v(E.N5.history.actions.setHistoryEvent({aStamp:l,bStamp:o,overrideUri:i})),M(e)}})(t,e,n,r)})}))),a&&l().createElement("div",{className:b.buttonContainer},l().createElement(f.Z,{color:"primary",onClick:()=>u()},s().text("Show more"))))},M=(0,g.makeStyles)({root:{display:"flex",flexWrap:"wrap",padding:"10px 15px"}}),w=(0,g.makeStyles)({icon:e=>{let{color:t}=e;return{boxSizing:"border-box",borderWidth:2,borderStyle:"solid",borderColor:t,height:12,width:12,borderRadius:30,transition:"opacity 0.3s",margin:4}},active:e=>{let{color:t}=e;return{backgroundColor:t}},inactive:{backgroundColor:"white"},clickable:{cursor:"pointer"}}),A=e=>{let{value:t,isSelected:n=!0,onClick:r}=e;const o=(0,p.GtP)(t),i=w({color:o});return l().createElement("div",{className:d()(i.icon,{[i.inactive]:!n,[i.active]:n,[i.clickable]:!!r}),onClick:r})},L=e=>{let{values:t,selectedValues:n,entityUri:r,onSelectValues:o,className:i}=e;const a=M();return l().createElement("div",{className:d()(a.root,i)},l().createElement(A,{value:r}),(null==t?void 0:t.length)>0&&t.map((e=>l().createElement(A,{key:e,value:e,isSelected:null==n?void 0:n.includes(e),onClick:()=>(e=>{null!=n&&n.includes(e)?o((0,c.without)([e],n)):o([...n||[],e])})(e)}))))};function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const U=(e,t)=>e.reduce(((e,n,r)=>{let{start:l,end:o}=n;if(l){const n=t-l.timestamp;((0,c.isNil)(e.startDistance)||Math.abs(e.startDistance)>Math.abs(n)&&n>0)&&(e.startIndex=r,e.startDistance=n)}if(o){const n=t-o.timestamp;((0,c.isNil)(e.endDistance)||Math.abs(e.endDistance)>Math.abs(n)&&n<0)&&(e.endIndex=r,e.endDistance=n)}return e}),{startIndex:null,endIndex:null,startDistance:null,endDistance:null}),H=(0,g.makeStyles)({root:{display:"flex",flexDirection:"column",overflow:"hidden",position:"relative",height:"100%"},borderBottom:{borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}}),G=(0,r.memo)((e=>{let{isLoading:t,historyWithTotal:n,contributorsUris:o,entityUri:i,canLoadMore:a,onLoadMore:s,historyEvent:u}=e;const d=H(),[p,E]=(0,r.useState)(null);(0,r.useEffect)((()=>{E(o)}),[o]);const{historyData:f,findPreviousChange:m}=(e=>{let{entityUri:t,historyChanges:n,selectedUris:l}=e;return(0,r.useMemo)((()=>{const e={[t]:{index:0,lifeTime:[]}},r=[{user:"",timestamp:0,uri:t}],o=(0,c.curry)(((e,n,r)=>{const l=r.uri||t;if(e)if(Array.isArray(e)){if(r.type!==v.b.ENTITY_LOST_MERGE)return null;if(e.includes(l))return r;if(n&&r.uris)return e.some((e=>r.uris.includes(e)))?r:null}else{var o;if(l===e||n&&null!==(o=r.uris)&&void 0!==o&&o.includes(e))return r}return null})),i=(e,t,r)=>(0,c.pipe)((0,c.drop)(e+1),(0,c.find)(o(t,r)))(n),a=t=>(e[t]||l&&!l.includes(t)||(e[t]={index:Object.keys(e).length,lifeTime:[]}),e[t]),s=(e,t)=>{const n=e[e.length-1];!n||n.start&&(n.start.type!==v.b.ENTITY_CREATED||t.type!==v.b.ENTITIES_SPLITTED)?e.push({start:t,end:null}):n.start=t},u=(e,t)=>{let n=!0;if(e.length){const r=e[e.length-1];n=!((!r.start||r.start.timestamp<t.timestamp)&&(!r.end||r.end.timestamp>t.timestamp))}n&&e.push({start:null,end:null})},d=(e,t)=>{if(e.length){const n=e[e.length-1];n.start||(n.start=t)}e.push({start:null,end:t})},p=[];return null==n||n.forEach(((n,l)=>{var o;switch(n.type){case v.b.ENTITIES_SPLITTED:if(!i(l,n.uri||t,!1))return;{const e=n.uri,t=n.uris?[n.uris,e]:[e],r=i(l,t,!0);if(r&&(!e||e===r.uri))return}break;case v.b.ENTITY_LOST_MERGE:case v.b.RELATIONSHIP_CREATED:case v.b.RELATIONSHIP_REMOVED:case v.b.RELATIONSHIP_CHANGED:return}let c=!1;null===(o=n.uris)||void 0===o||o.forEach((e=>{a(e)||(c=!0)}));const E=a(n.uri||t);if(!E)return;const f=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){k(e,t,n[t])}))}return e}({},n);((t,n)=>{var l,o;switch(n.type){case v.b.ENTITY_CREATED:s(t,n);break;case v.b.ENTITIES_MERGED_ON_THE_FLY:case v.b.ENTITY_CHANGED:u(t,n);break;case v.b.ENTITY_LOST_MERGE:case v.b.ENTITY_REMOVED:d(t,n);break;case v.b.ENTITIES_SPLITTED:u(t,n),null===(l=n.uris)||void 0===l||l.forEach((t=>{const l=e[t];if(!l)return;const o=l.lifeTime.length;o?s(l.lifeTime,n):d(l.lifeTime,n),r.push({uri:t,user:n.user,type:n.type,fakeType:o?v.b.FAKE_UPDATE:v.b.FAKE_NAVIGATE_PROFILE,timestamp:n.timestamp})}));break;case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:u(t,n),null===(o=n.uris)||void 0===o||o.forEach((t=>{const r=e[t];r&&d(r.lifeTime,n)}))}})(E.lifeTime,f),c&&p.push(f),r.push(f)})),p.forEach((t=>{t.uris.forEach((l=>{e[l]||n.forEach((n=>{let{uri:o,uris:i,timestamp:a,user:s,type:u}=n;o===l&&(null==i||i.forEach((n=>{const l=e[n];if(!l)return;let o=null;switch(u){case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:o=v.b.FAKE_FILTERED_INCOMING;break;case v.b.ENTITIES_SPLITTED:o=v.b.FAKE_FILTERED_OUTGOING;break;default:return}const i={fakeType:o,uri:t.uri,uris:[n],type:u,user:s,timestamp:a},d=U(l.lifeTime,t.timestamp);o===v.b.FAKE_FILTERED_INCOMING?(0,c.isNil)(d.endIndex)||(l.lifeTime[d.endIndex].end=i):(0,c.isNil)(d.startIndex)||(l.lifeTime[d.startIndex].start=i),r.splice(r.indexOf(t),0,i)})))}))}))})),r.forEach(((e,n)=>{e.index=n,e.uri=e.uri||t})),{historyData:{historyLanes:e,rows:r},findPreviousChange:(e,t)=>(0,c.pipe)((0,c.slice)(e+1,1/0),(0,c.find)(o(t,!1)))(r)}}),[t,n,l])})({entityUri:i,historyChanges:null==n?void 0:n.changes,selectedUris:p});return l().createElement("div",{className:d.root},l().createElement(L,{values:o,selectedValues:p,onSelectValues:E,entityUri:i,className:d.borderBottom}),l().createElement(P,{historyData:f,isLoading:t,onLoadMore:s,canLoadMore:a,entityUri:i,historyEvent:u,findPreviousChange:m}))}))},7108:(e,t,n)=>{n.d(t,{tO:()=>f,FE:()=>m,k6:()=>h});var r=n(24328),l=n(98858),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,g]=(0,r.useState)(null),[b,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(g).catch((e=>{console.warn("Failed to load history data",e),g(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 S=(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=>{g((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]),x=(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)((()=>{x&&(S(32*(a+1)),s(a+1))}),[S,a,x]);return{isLoading:b,canLoadMore:x,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(98858),o=n(14201);const i=e=>{let{perspectiveId:t,entity:n,historyButtonId:i}=e;const{perspectiveSettings:a}=(0,o._)(t),{active:s}=a||{},c=s===i,[u,d]=(0,r.useState)(!1),p=null==n?void 0:n.uri;(0,r.useEffect)((()=>{c||d(!1)}),[p]),(0,r.useEffect)((()=>{c&&d(!0)}),[c]);const E=p&&!(0,l.ZiX)(p)&&!(0,l.biM)(n);return{isHistoryEnabled:u&&E,isProfilePersisted:E}}},35722:(e,t,n)=>{n.d(t,{a:()=>s});var r=n(24328),l=n(52730),o=n(29945),i=n(98858),a=n(19701);const s=e=>{let{entity:t,historyEvent:n}=e;const[s,c]=(0,r.useState)(!1),u=(0,l.useSelector)(o.ZP.selectors.getHistorySlice),d=(0,l.useDispatch)(),p=(0,a._)(),{aStamp:E,bStamp:f,overrideUri:m}=n||{},h=m||(null==t?void 0:t.uri);return(0,r.useEffect)((()=>{n&&h&&(c(!0),p(Promise.all([(0,i.lrH)(h,E),f&&1!==f?(0,i.lrH)(h,f):Promise.resolve(null)])).then((e=>{let[t,n]=e;d(o.N5.history.actions.setHistorySlice({aEntity:t,bEntity:n}))})).catch((e=>{console.warn("Failed to load entity slice",e)})).finally((()=>{c(!1)})))}),[E,f,h]),{isLoading:s,historySlice:u}}},21256:(e,t,n)=>{n.d(t,{b:()=>i});var r,l=n(20414);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.FAKE_NAVIGATE_PROFILE="FAKE_NAVIGATE_PROFILE",e.FAKE_FILTERED_INCOMING="FAKE_FILTERED_INCOMING",e.FAKE_FILTERED_OUTGOING="FAKE_FILTERED_OUTGOING",e.FAKE_UPDATE="FAKE_UPDATE"}(r||(r={}));const i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}({},l.I,r)},38323:(e,t,n)=>{let r;n.d(t,{M:()=>r}),function(e){e.UPDATE="UPDATE",e.MERGE="MERGE",e.UNMERGE="UNMERGE"}(r||(r={}))},18408:(e,t,n)=>{n.d(t,{D:()=>E});var r=n(24328),l=n.n(r),o=n(2507),i=n.n(o),a=n(50914),s=n(83820),c=n(38677),u=n(10050),d=n(79573);const p=3e5,E=function(){let{anchorOrigin:e={vertical:"bottom",horizontal:"center"},showDismiss:t,dismissTitle:n=i().text("Dismiss"),autoHideDuration:o=p,onDismissClick:E=d.ZT}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[f,m]=(0,r.useState)(!1),[h,g]=(0,r.useState)(""),b=(0,r.useCallback)((()=>{m(!1),g("")}),[]),y=(0,r.useCallback)(((e,t)=>{"clickaway"!==t&&b()}),[b]),v=(0,r.useCallback)((e=>{m(!0),g(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)(b,E)},n):void 0}))),[f,b,h]);return{SnackbarRenderer:T,showSnackbarMessage:v}}}}]);
|
|
2
2
|
//# sourceMappingURL=3902.js.map
|