@reltio/remotes 1.4.1133 → 1.4.1136
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/{604.css → 1196.css} +0 -0
- package/1196.js +1 -0
- package/{9819.css → 1957.css} +0 -0
- package/1957.js +1 -0
- package/2454.js +1 -1
- package/2590.js +1 -0
- package/2864.js +1 -1
- package/2899.js +1 -1
- package/350.js +1 -0
- package/3745.js +1 -0
- package/5884.js +1 -1
- package/597.js +1 -0
- package/6186.js +1 -0
- package/6244.js +1 -0
- package/6250.js +1 -0
- package/6719.js +1 -0
- package/6940.js +1 -0
- package/6971.js +1 -0
- package/7638.js +1 -1
- package/79.js +1 -0
- package/7990.js +1 -1
- package/8387.js +1 -1
- package/8421.js +1 -0
- package/8442.js +1 -1
- package/8988.js +1 -0
- package/9290.js +1 -0
- package/9838.js +1 -1
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/1607.js +0 -1
- package/2507.js +0 -1
- package/2623.js +0 -2
- package/2623.js.LICENSE.txt +0 -8
- package/2725.js +0 -1
- package/3029.js +0 -1
- package/3553.js +0 -1
- package/3923.js +0 -1
- package/4126.js +0 -1
- package/5276.js +0 -1
- package/604.js +0 -1
- package/6705.js +0 -1
- package/737.js +0 -1
- package/9306.js +0 -1
- package/9609.js +0 -1
- package/9819.js +0 -1
package/3553.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3553],{60894:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),o=n.n(r),a=n(13980),l=n.n(a),i=n(94656);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=>o().createElement("svg",s({width:20,height:18,viewBox:"0 0 20 18",xmlns:"http://www.w3.org/2000/svg"},e),o().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(8818),p=n(17440),h=n(47458),d=n(87918),m=n.n(d),b=n(85657);const f=e=>{let{columnsData:t,selectedColumns:n,onChangeColumns:a,title:l,tooltipTitle:i}=e;const[s,d]=(0,r.useState)(null),f=(0,r.useCallback)((e=>{const t=(0,p.pipe)(b.JJ,(0,p.pluck)("id"))(e),r=(0,b.u)(n,e);a(r?(0,p.difference)(n,t):(0,p.uniq)((0,p.concat)(n,t)))}),[n,a]);return o().createElement(o().Fragment,null,o().createElement(u.k,{tooltipTitle:i||m().text("Show/hide columns"),size:"L",icon:c,onClick:e=>d(e.currentTarget)}),o().createElement(h.G,{onColumnClick:f,anchorEl:s,columnsData:t,onClose:()=>d(null),title:l,selectedColumns:n}))};f.propTypes={columnsData:i.uz,selectedColumns:l().arrayOf(l().string),onChangeColumns:l().func,title:l().string,tooltipTitle:l().string};const g=f},47458:(e,t,n)=>{n.d(t,{G:()=>w});var r=n(24328),o=n.n(r),a=n(87918),l=n.n(a),i=n(17440),s=n(99493),c=n(44890),u=n(97820),p=n(85657),h=n(56656),d=n(54763),m=n(13980),b=n.n(m),f=n(7785),g=n(27239),y=n(71153),v=n.n(y);const x=(0,n(79692).Z)({popup:{minWidth:"200px"},groupItem:{backgroundColor:"rgba(0,0,0,0.04)"}}),P=e=>{let{item:t,onClick:n,checked:r,level:a,style:l,isFocused:i,isGroupItem:s,hideCheckBox:c}=e;const u=x();return o().createElement(f.Z,{hideCheckBox:c,key:t.id,onClick:n,checked:r,level:a,data:t,label:o().createElement(g.Z,{text:t.label,highlight:t.filterText}),labelInText:t.label,style:l,isFocused:i,hideIcon:s,className:v()({[u.groupItem]:s})})};P.propTypes={item:b().shape({label:b().string,filterText:b().string}),level:b().number,onClick:b().func,checked:b().bool,style:b().object,isGroupItem:b().bool,isFocused:b().bool,hideCheckBox:b().bool};const O=P,w=e=>{let{anchorEl:t,onClose:n,title:a,columnsData:m,onColumnClick:b,selectedColumns:f,hideCheckBox:g}=e;const y=x(),[v,P]=(0,r.useState)(""),w=(0,r.useMemo)((()=>(0,p.eX)(m,v)),[m,v]),C=(0,r.useMemo)((()=>(0,h.LG)(w)),[w]),k=(0,s.fW1)("label")(w)||308,E=(0,r.useCallback)((e=>{let{item:t}=e;return b(t)}),[b]),{focusIndex:S,handleKeyDown:T}=(0,d.t)({items:C,open:!0,onSelectFocusedItem:E,selectedItems:f,onClose:n}),j=(0,r.useCallback)((0,i.pipe)(n,(()=>P(""))),[n]),I=Math.min(300,32*C.length),D=Math.max(140,I+108);return o().createElement(u.Z,{className:y.popup,open:!!t,anchorEl:t,onClose:j,onSearch:P,title:a||l().text("Show/hide columns"),containerWidth:k,containerHeight:D,searchInputOnKeyDown:T},o().createElement(c.Z,{fixedTitle:!1,height:I,renderItem:(e,t,n)=>{let{item:r,level:a=0}=t;return o().createElement(O,{hideCheckBox:g,style:e,item:r,level:a,isFocused:S===n,checked:(0,p.u)(f,r),isGroupItem:(0,p.yf)(r),onClick:g?(0,i.pipe)(b,j):b})},items:C,getItemSize:()=>32,focusIndex:S}))}},85657:(e,t,n)=>{n.d(t,{eX:()=>g,JJ:()=>y,yf:()=>i,u:()=>v});var r=n(17440),o=n(99493);function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const i=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"),p=(e,t)=>{const n=((e,t)=>e.find((0,r.either)(c(t),s(t))))(e,t);return n?(n.children=p(n.children||[],t),e):e.concat(t)},h=(0,r.curry)(((e,t)=>o.P6Y.strings.search(t.label,e)||(t.children||[]).some(h(e)))),d=(0,r.reduce)(((e,t)=>p(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)(h(e)),(0,r.chain)((t=>[{item:a({},t,{filterText:e}),level:n},...t.children?m(e,t.children,n+1):[]])))(t)})),b=(0,r.has)("columns"),f=e=>{let{id:t,label:n,columns:o}=e;return[{id:t,groupId:t,label:n},...o.map((0,r.assoc)("groupId",t))]},g=(e,t)=>(0,r.pipe)((0,r.chain)((0,r.when)(b,f)),(0,r.filter)((0,r.either)(i,u)),d,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 i(t)?n.every(r):n.some(r)}},1876:(e,t,n)=>{n.d(t,{Z:()=>b});var r=n(24328),o=n.n(r),a=n(13980),l=n.n(a),i=n(87918),s=n.n(i),c=n(94079),u=n(87685);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}const h=e=>o().createElement("svg",p({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e),o().createElement("path",{d:"M18 2V0H0v2l7 8v8l4-2v-6z",fill:"currentColor",fillRule:"nonzero",stroke:"none",strokeWidth:1})),d=(0,n(79692).Z)((e=>({"filterIcon--enabled":{color:e.palette.primary.main},closeIcon:{position:"absolute",right:"3px",bottom:"3px",transform:"scale(0.5)"},button:{padding:"11px"}}))),m=e=>{let{enabled:t,onClick:n}=e;const r=d();return o().createElement(c.Tooltip,{title:t?s().text("Clear all filters"):s().text("Filter")},o().createElement(c.IconButton,{onClick:n,classes:{root:r.button}},t?o().createElement(o().Fragment,null,o().createElement(h,{className:r["filterIcon--enabled"]}),o().createElement(u.default,{color:"primary",className:r.closeIcon})):o().createElement(h,null)))};m.propTypes={enabled:l().bool,onClick:l().func};const b=m},58662:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(13980),o=n.n(r),a=n(24328),l=n.n(a),i=n(71153),s=n.n(i),c=n(94079),u=n(87918),p=n.n(u),h=n(31276),d=n(17440);const m=(0,n(79692).Z)({pagination:{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"56px",borderTop:"1px solid rgba(0,0,0,0.12)",boxShadow:"none"},caption:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px"},selectRoot:{marginLeft:"5px",marginRight:"36px"},select:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px",textAlign:"right"},actions:{marginLeft:"32px"}});function 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){f(e,t,n[t])}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g=e=>{let{classes:t={},count:n,rowsPerPageOptions:r,page:o,onChangePage:i,rowsPerPage:u,onChangeRowsPerPage:f,basicTableRef:g,labelRowsPerPage:y}=e;const v=m(),x=(0,a.useCallback)((()=>{(0,d.pathOr)(d.identity,["current","resetScrollbarPosition"],g)()}),[g]),P=(0,a.useCallback)((e=>{i(e),x()}),[i,x]),O=(0,a.useCallback)((e=>{i(0),f(e),x()}),[i,f,x]);return l().createElement(c.TablePagination,{classes:b({},t,{root:s()(v.pagination,t.root),select:s()(v.select,t.select),caption:v.caption,selectRoot:v.selectRoot,actions:v.actions}),component:"div",labelRowsPerPage:y||p().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return p().text("${fromRow}-${toRow} of ${countRows}",{fromRow:p().number(t,"0,0"),toRow:p().number(n,"0,0"),countRows:p().number(r,"0,0")})},count:n,rowsPerPageOptions:r,page:o,onChangePage:(0,d.pipe)((0,d.nthArg)(1),P),rowsPerPage:u,onChangeRowsPerPage:(0,d.pipe)(h.NA,O)})};g.propTypes={classes:o().object,rowsPerPageOptions:o().arrayOf(o().number),count:o().number,page:o().number,onChangePage:o().func,rowsPerPage:o().number,onChangeRowsPerPage:o().func,basicTableRef:o().shape({current:o().object}),labelRowsPerPage:o().string};const y=l().memo(g)},26180:(e,t,n)=>{n.d(t,{ZP:()=>b});var r=n(17440),o=n(31276);function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const i="CHANGE_COLUMNS",s="TOGGLE_FILTERS",c="CHANGE_FILTER",u="TOGGLE_SORT",p="CHANGE_PAGE",h="CHANGE_ROWS_PER_PAGE",d={changeColumns:(0,o.zD)(i),toggleFilters:(0,o.zD)(s),changeFilter:(0,o.zD)(c),toggleSort:(0,o.zD)(u),changePage:(0,o.zD)(p),changeRowsPerPage:(0,o.zD)(h)},m=(e,t)=>{const n=(0,r.difference)(e.visibleColumns,t),o=e=>n.includes(e);return(0,r.evolve)({visibleColumns:(0,r.always)(t),sorting:(0,r.when)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(e.field)}),(()=>{const[e]=t;return{field:e,order:"asc"}})),filters:e=>(0,r.keys)(e).reduce(((e,t)=>o(t)?(0,r.dissoc)(t,e):e),e)},e)},b={reducer:(e,t)=>{switch(t.type){case i:{const n=t.payload;return m(e,n)}case s:{const t=!e.filters;return a({},e,{filters:t?{}:null,page:t?e.page:0})}case c:{const{columnId:n,filter:o}=t.payload;return(0,r.evolve)({filters:o?(0,r.assoc)(n,o):(0,r.dissoc)(n),page:(0,r.always)(0)},e)}case u:{const n=t.payload,l=(0,r.path)(["sorting","field"],e),i=(0,r.path)(["sorting","order"],e);return a({},e,{sorting:{field:n,order:(0,o.Dh)(n===l?i:null)},page:0})}case p:return a({},e,{page:t.payload});case h:return a({},e,{rowsPerPage:t.payload});default:return e}},actions:d,changeVisibleColumns:m}},10237:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(27556),o=n(13980),a=n.n(o),l=n(24328),i=n.n(l);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,n(79692).Z)((e=>({"basic-view__paper":s({display:"flex",flexDirection:"column"},e.basicView)})));function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}const h=(0,l.forwardRef)(((e,t)=>{let{children:n,className:o}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","className"]);const l=u();return i().createElement(r.Z,p({ref:t,className:o,classes:{root:l["basic-view__paper"]}},a),n)}));h.displayName="BasicView",h.propTypes={children:a().node,className:a().string};const d=h},68439:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),o=n.n(r),a=n(52730),l=n(71153),i=n.n(l),s=n(94079),c=n(99493),u=n(87638);const p=(0,n(79692).Z)({"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",display:"inline-flex",marginRight:"12px",borderRadius:"2px"},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",display:"inline-flex",marginRight:"16px"}}),h=e=>{let{entity:t,className:n,size:r="small"}=e;const l=p(),h=(0,a.useSelector)(u.ZP.selectors.getMetadata),d=t.type,m=(0,c.nt9)(h,d)||{},b=(0,c.VD3)(h,m,"typeColor")||c.rSc.palette.primary.main;return o().createElement(s.Typography,{style:{backgroundColor:b,color:c.P6Y.Colors.getColor(b)?"#FFFFFF":"#212121"},className:i()(l[`entityType-${r}`],n),component:"div"},(0,c.jFi)(h,t))}},57304:(e,t,n)=>{n.d(t,{Z:()=>x});var r=n(24328),o=n.n(r),a=n(13980),l=n.n(a),i=n(71153),s=n.n(i),c=n(52730),u=n(17440),p=n(94079),h=n(87918),d=n.n(h),m=n(99493),b=n(87638),f=n(53180),g=n(68439);const y=(0,n(79692).Z)((e=>({profileBandWrapper:{flexShrink:0},profileBand:{display:"flex",padding:"16px 12px 16px 16px",alignItems:"flex-start",backgroundColor:"#fff",boxShadow:"inset 0 -1px 0 0 rgba(0,114,206,0.06), inset 0 1px 0 0 rgba(0,114,206,0.06);","&: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"}}}))),v=e=>{let{className:t,entity:n,children:a,classes:l}=e;const i=y({classes:l}),h=(0,c.useSelector)(b.ZP.selectors.getMetadata),v=(0,r.useCallback)((()=>{navigator.clipboard.writeText((0,m.BTI)(n))}),[n]);if((0,u.isNil)(n))return null;const x=(0,m.idV)(n.label),P=n.secondaryLabel,O=(0,m.ptG)(h,n),w=(0,m.Fn9)(n),C=n.uri,k=(0,m.BTI)(n);return o().createElement("div",{className:s()(i.profileBandWrapper,t)},o().createElement("div",{className:s()(i.profileBand,{[i.inactive]:!w}),"data-entity-uri":C},o().createElement(f.Z,{key:n.uri,entity:n,avatarClassName:i.profileIcon,imageClassName:i.imageProfileIcon}),o().createElement("div",{className:i.profileInfo},o().createElement("div",null,o().createElement(p.Typography,{variant:"h6",className:i.label},x),P&&o().createElement(p.Typography,{variant:"subtitle2",className:i.secondaryLabel},P),O&&o().createElement(p.Typography,{variant:"subtitle1",className:i.businessCard},O)),o().createElement("div",{className:i.specialInfo},o().createElement("div",{className:i.entityType},o().createElement(g.Z,{entity:n,size:"medium",className:i.badge}),!(0,m.ZiX)(C)&&o().createElement(p.Tooltip,{title:d().text("Copy to clipboard")},o().createElement(p.Typography,{display:"inline",variant:"body2",className:i.entityId,onClick:v},d().text("Entity ID"),": ",k))))),a&&o().createElement("div",null,a)))};v.propTypes={className:l().string,entity:l().object,children:l().node,classes:l().object};const x=v},93873:(e,t,n)=>{n.d(t,{a:()=>T});var r=n(24328),o=n.n(r),a=n(87918),l=n.n(a),i=n(94079),s=n(83348),c=n(8818),u=n(67766),p=n(42767),h=n(99493);const d=(0,n(79692).Z)({container:{display:"flex",alignItems:"center"},link:{whiteSpace:"nowrap",marginRight:"9px"}}),m=(0,s.Z)(i.Link),b=e=>{let{total:t=0,onPrev:n,onNext:r,onSearchResultsClick:a,isPrevDisabled:i,isNextDisabled:s}=e;const b=d();return o().createElement("div",{className:b.container},o().createElement(m,{className:b.link,component:"button",variant:"caption",onClick:a,underline:"none",tooltipTitle:l().text("Go to search results")},(0,h.k7L)(t,1e6)," ",1===t?l().text("Search result"):l().text("Search results")),o().createElement(c.k,{size:"L",icon:u.Z,tooltipTitle:l().text("Go to previous profile"),onClick:n,disabled:i,showForDisabled:!0}),o().createElement(c.k,{size:"L",icon:p.Z,tooltipTitle:l().text("Go to next profile"),onClick:r,disabled:s,showForDisabled:!0}))};var f=n(52730),g=n(87638),y=n(17440),v=n(39450),x=n(67218);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){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}class w{constructor(e){var t=this;let{data:{query:n,sortField:r,sortOrder:o},tenant:a,searchTenant:l,apiPath:i,dtssPath:s,globalSearchRequestOptions:c}=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],o=P({},t.globalSearchRequestOptions,{sort:t.sortField,order:t.sortOrder,select:"uri,label,type",scoreEnabled:!1},n);return t.isDT()?(0,h.uqV)({filters:r,options:o,customerTenant:t.tenant,dataTenant:t.searchTenant,dtssPath:t.dtssPath}):(0,h.ZOr)(r,o)},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,h.J$m)({filters:e,options:t,customerTenant:this.tenant,dataTenant:this.searchTenant,dtssPath:this.dtssPath}):(0,h.j_Q)(e,t)).then((e=>e.total))},this.query=n,this.sortField=r,this.sortOrder=o,this.tenant=a,this.searchTenant=l,this.apiPath=i,this.dtssPath=s,this.globalSearchRequestOptions=c}}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){k(e,t,n[t])}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class E{constructor(e){var t=this;let{data:n,tenant:r,apiPath:o}=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,h.P2h)({apiPath:t.apiPath,tenant:t.tenant,searchBody:C({},t.searchBody,{filter:e.length?(0,h.Uqd)()(r):t.searchBody.filter}),options:n})},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"id",values:[(0,h.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,h.dED)({apiPath:this.apiPath,tenant:this.tenant,searchBody:this.searchBody}).then((e=>e.count)),this.searchBody=n,this.tenant=r,this.apiPath=o}}const S=(e,t)=>(0,y.pipe)((0,y.map)((0,y.prop)("uri")),(0,y.reject)((e=>t.includes(e))))(e),T=()=>{const{total:e,onPrev:t,onNext:n,onSearchResultsClick:a,isPrevDisabled:l,isNextDisabled:i}=(()=>{const e=(0,x._)(),t=(0,x._)(),n=(0,x._)(),{uri:o,index:a,total:l,tenant:i,cache:s}=(0,f.useSelector)(g.ZP.selectors.getSearchNavigationData)||{},{type:c,data:u}=(0,f.useSelector)(g.ZP.selectors.getSearchProviderData)||{},p=(0,f.useSelector)(g.ZP.selectors.getTenant),d=(0,f.useSelector)(g.ZP.selectors.getApiPath),m=(0,f.useSelector)(g.ZP.selectors.getDtssPath),b=(0,f.useSelector)((e=>g.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),y=(0,r.useContext)(v.m),P=(0,f.useDispatch)(),[O,C]=(0,r.useState)(!1),k=(0,r.useMemo)((()=>((e,t)=>{switch(e){case"search":return new w(t);case"graphsearch":return new E(t)}})(c,{data:u,tenant:p,searchTenant:i,apiPath:d,dtssPath:m,globalSearchRequestOptions:b})),[c,u,p,i,d,m,b]),T=(0,r.useCallback)((e=>{P(g.yC.actions.updateSearchNavigationDataFields(e))}),[P]),j=(0,r.useCallback)((e=>{const t=p!==i?(0,h.wwR)({uri:e,dataTenant:i}):e;P(g.ui.actions.openEntity({uri:t,viewId:y,source:"navigation"}))}),[P,y,p,i]),I=(0,r.useCallback)((()=>{P(g.ui.actions.openPerspective({perspectiveId:c,viewId:y}))}),[P,c,y]);(0,r.useEffect)((()=>{a>=l?T({index:l-1}):a<0&&T({index:0})}),[l,a,T]);const D=(0,r.useCallback)(((e,r,o)=>{C(!0),t(k.requestTotal()).then((e=>T({total:e})));const a=o+1;return n(k.requestEntities(15,a)).then((t=>{if(t){if(t.length){const n=S(t,e);if(n.length>0)return T({cache:e.concat(n),uri:n[0],index:a+t.length-n.length}),void j(n[0]);if(o+t.length<r-1)return D(e,r-t.length,o+t.length)}T({index:a})}})).finally((()=>{C(!1)}))}),[k,T,j]),R=(0,r.useCallback)(((e,r)=>{C(!0),t(k.requestTotal()).then((e=>T({total:e})));const o=r-1,a=Math.max(0,r-15),l=15+Math.min(0,r-15);return n(k.requestEntities(l,a)).then((t=>{if(t){if(t.length){const n=S(t,e);if(n.length>0)return T({cache:n.concat(e),uri:n[n.length-1],index:o-(t.length-n.length)}),void j(n[n.length-1]);if(r-t.length>0)return R(e,r-t.length)}T({index:0})}})).finally((()=>{C(!1)}))}),[k,T,j]),N=(0,r.useCallback)(((t,n,r,o)=>{if(n<t.length){const a=t[n];return C(!0),e(k.checkEntity(a)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),N(e,n,r-1,o)}T({index:o+1,uri:a,cache:t,total:r}),j(a)})).finally((()=>{C(!1)}))}if(!(o>=r-1))return D(t,r,o);T({cache:t,total:r,index:r-1})}),[k,T,j,D]),Z=(0,r.useCallback)(((t,n,r,o)=>{if(n>-1){const a=t[n];return C(!0),e(k.checkEntity(a)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),Z(e,n-1,r-1,o-1)}T({index:o-1,uri:a,cache:t,total:r}),j(a)})).finally((()=>{C(!1)}))}if(!(o<=0))return R(t,o);T({index:0,cache:t,total:r})}),[k,T,j,R]),z=(0,r.useCallback)((()=>{if(s&&o){const e=s.indexOf(o)-1;Z(s,e,l,a)}}),[Z,s,o,l,a]),F=(0,r.useCallback)((()=>{if(s&&o){const e=s.indexOf(o)+1;N(s,e,l,a)}}),[N,s,o,l,a]);return{total:l,onPrev:z,onNext:F,onSearchResultsClick:I,isPrevDisabled:O||a<=0,isNextDisabled:O||a>=l-1}})();return(()=>{const{cache:e}=(0,f.useSelector)(g.ZP.selectors.getSearchNavigationData)||{},t=(0,f.useSelector)(g.ZP.selectors.getMode),n=(0,f.useSelector)(g.ZP.selectors.getEntity);return(0,h.uzs)(t)&&(null==e?void 0:e.includes(null==n?void 0:n.uri))})()?o().createElement(b,{total:e,onPrev:t,onNext:n,onSearchResultsClick:a,isPrevDisabled:l,isNextDisabled:i}):null}},51229:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(24328),o=n.n(r);const a=()=>o().createElement("div",{style:{flex:1}})},30553:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(13980),o=n.n(r),a=n(24328),l=n.n(a);const i=e=>{let{height:t,margin:n}=e;return l().createElement("div",{style:{width:"1px",height:`${t}px`,borderLeft:"1px solid rgba(0,0,0,0.38)",margin:`0 ${n}px`,flexShrink:"0"}})};i.propTypes={height:o().number,margin:o().number};const s=i},86361:(e,t,n)=>{n.d(t,{o:()=>l});var r=n(24328),o=n(17440);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l=e=>{let{actions:t,dispatch:n}=e;return(0,r.useMemo)((()=>Object.entries(t).reduce(((e,t)=>{let[r,l]=t;return 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){a(e,t,n[t])}))}return e}({},e,{[r]:(0,o.pipe)(l,n)})}),{})),[n,t])}},7718:(e,t,n)=>{n.d(t,{C:()=>h});var r=n(24328),o=n(52730),a=n(17440),l=n(99493),i=n(87638);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=[],p=e=>console.error("Collaboration error",e),h=e=>{let{objectIds:t=u,objectTypes:n,enabled:c=!0}=e;const h=(0,o.useSelector)(i.ZP.selectors.getEntity),d=(0,o.useSelector)(i.ZP.selectors.getTenant),m=(0,o.useSelector)(i.ZP.selectors.getCollaborationPath),b=(0,o.useSelector)(i.ZP.selectors.isCollaborationEnabled)&&c,[f,g]=(0,r.useState)(null),[y,v]=(0,r.useState)([]),[x,P]=(0,r.useState)(null),[O,w]=(0,r.useState)(null),[C,k]=(0,r.useState)(!1),[E,S]=(0,r.useState)(!1),T=(0,r.useCallback)((e=>{P((t=>s({},t,e)))}),[]),j=null==h?void 0:h.uri,I=(0,r.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(b&&j&&!(0,l.ZiX)(j)){const n=e=>{console.warn("Collaboration error",e),P(null)};(0,a.pipe)(l.$oF,(0,a.andThen)((0,a.map)((0,a.props)(["objectId","comments"]))),(0,a.andThen)(a.fromPairs),(0,a.andThen)(t?P:T),(0,a.otherwise)(n))({uris:e,tenant:d,collaborationPath:m})}else P(null)}),[T,m,j,b,d]);(0,r.useEffect)((()=>{I(t,!0)}),[t,I]);const D=(0,r.useCallback)(((e,t)=>{(0,l.liG)({collaborationPath:m,tenant:d,relatedObjectUri:e,pageToken:t}).then((e=>{let{items:n,nextPageToken:r}=e;v((e=>t?(0,a.uniqBy)((0,a.prop)("commentId"),[...e,...n]):n)),g(r)})).catch(p)}),[m,d]),R=(0,r.useCallback)((e=>{S(!0),(0,l.d7q)({collaborationPath:m,tenant:d,commentId:e}).then(w).catch(p).finally((()=>S(!1)))}),[m,d]),N=(0,r.useCallback)((e=>{let{content:t,namedUsers:n,objectType:r,uri:o,relatedObjectUris:a}=e;k(!0);const i={objectId:o,content:t,relatedObjectUris:a,objectType:r,visibility:"public",namedUsers:n,permanentLink:""};return(0,l.Yrx)({collaborationPath:m,tenant:d,data:i}).then((e=>{let[t]=e;return((e,t)=>{w(e),P((n=>s({},n,{[t]:[...n[t]||[],{commentId:e.commentId,replies:0,status:"open"}]}))),v((t=>[e,...t]))})(t,o)})).catch(p).finally((()=>k(!1)))}),[m,d]),Z=(0,r.useCallback)((e=>{let{content:t,namedUsers:n,objectType:r,uri:o,relatedObjectUris:i,commentId:c,replies:u}=e;k(!0);const h={objectId:o,content:t,relatedObjectUris:i,objectType:r,visibility:"public",namedUsers:n,permanentLink:"",commentId:c,replies:u};return(0,l.uAg)({collaborationPath:m,tenant:d,data:h}).then((e=>(e=>{w(e),v((0,a.map)((0,a.when)((0,a.propEq)("commentId",e.commentId),(0,a.always)(e))))})(s({},e,{replies:u})))).catch(p).finally((()=>k(!1)))}),[m,d]),z=(0,r.useCallback)((e=>{let{uri:t,commentId:n}=e;k(!0),(0,l.YFy)({collaborationPath:m,tenant:d,commentId:n}).then((()=>((e,t)=>{w(null),P((n=>{const r=n[t]||[];return s({},n,{[t]:r.filter((t=>t.commentId!==e))})})),v((t=>t.filter((t=>t.commentId!==e))))})(n,t))).catch(p).finally((()=>k(!1)))}),[m,d]),F=(0,r.useCallback)(((e,t,n)=>{const r="resolve"===e.action?"resolved":"open";w("resolved"===r?e=>{if(e)return null}:t=>{if(t)return s({},t,{replies:[...t.replies,e]})}),P((e=>s({},e,{[t]:(e[t]||[]).map((e=>e.commentId===n?s({},e,{status:r,replies:e.replies+1}):e))}))),v((t=>t.map((t=>t.commentId===n?s({},t,{status:r,replies:[...t.replies,e]}):t))))}),[]),q=(0,r.useCallback)((e=>{let{content:t,namedUsers:n,commentId:r,action:o,uri:a}=e;k(!0);const i={content:t,action:o,namedUsers:n};return(0,l.PP2)({collaborationPath:m,tenant:d,commentId:r,data:i}).then((e=>{let[t]=e;return F(t,a,r)})).catch(p).finally((()=>k(!1)))}),[m,d,F]),B=(0,r.useCallback)((e=>{let{commentId:t,uri:n}=e;q({content:"",namedUsers:[],commentId:t,action:"resolve",uri:n})}),[q]),G=(0,r.useCallback)((e=>{let{commentId:t,uri:n}=e;q({content:"",namedUsers:[],commentId:t,action:"reopen",uri:n})}),[q]);return{clearCurrentComment:(0,r.useCallback)((()=>{w(null)}),[]),comments:y,commentsMap:x,createComment:N,createReply:q,currentComment:O,deleteComment:z,editComment:Z,getComment:R,getComments:D,getCommentsCount:I,loading:E,objectTypes:n,pageToken:f,reOpenThread:G,resolveThread:B,sending:C}}},17554:(e,t,n)=>{n.d(t,{U:()=>i});var r=n(24328),o=n(52730),a=n(99493),l=n(87638);const i=()=>{const[e,t]=(0,r.useState)([]),n=(0,o.useSelector)(l.ZP.selectors.getTenant),i=(0,o.useSelector)(l.ZP.selectors.getServicesPath),s=e=>{console.warn("Users error",e),t([])};return(0,r.useEffect)((()=>{(0,a.kz_)({tenant:n,servicesPath:i}).then((e=>{let{array:n}=e;return t(n)})).catch(s)}),[n,i]),e}}}]);
|
package/3923.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3923],{10159:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),l=n.n(r),i=n(94079);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 a=e=>l().createElement("svg",o({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(79692).Z)((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 o=s();return l().createElement("div",{className:o.root},l().createElement(t,{className:o.logo}),l().createElement("div",{className:o.textBox},l().createElement(i.Typography,{className:o.text},n),r&&l().createElement(i.Typography,{className:o.secondaryText},r)))}},91515:(e,t,n)=>{n.d(t,{Z:()=>J});var r=n(24328),l=n.n(r),i=n(87918),o=n.n(i),a=n(94079),s=n(17440),c=n(51229),u=n(36444),d=n(22385),p=n(48465),m=n(85451),f=n(27815),E=n(71153),h=n.n(E),y=n(31517),v=n(67885);const g=[v.K.WITHIN,v.K.AGO,v.K.BETWEEN],b=e=>({[v.K.WITHIN]:o().text("Within the last"),[v.K.AGO]:o().text("More than"),[v.K.BETWEEN]:o().text("Date range")}[e]||"");var x=n(39621),T=n(20562),I=n(51843),N=n(79692);const w=(0,N.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},intervalContainer:{display:"flex",justifyContent:"space-between"},typeInput:{width:160,marginRight:10}}),O=[null,null],S=[null,"hours"],C=e=>{let{value:t,onChange:n,className:i}=e;const s=w(),c=e=>e===v.K.WITHIN||e===v.K.AGO,u=e=>e===v.K.BETWEEN,d=u(null==t?void 0:t.type)?t.period:O,p=c(null==t?void 0:t.type)?t.period:S,[m,f]=(0,r.useState)(d),[E,N]=(0,r.useState)(p),C=(null==t?void 0:t.type)||v.K.WITHIN,R=e=>c(e)?E:u(e)?m:void 0,D=e=>{n({type:C,period:e})};return(0,T.D)((()=>{t?c(t.type)?N(t.period):u(t.type)&&f(t.period):(f(O),N(S))}),[t]),l().createElement("div",{className:h()(s.root,i)},l().createElement(a.Typography,{className:s.title,variant:"subtitle1"},o().text("Date")),l().createElement("div",{className:s.intervalContainer},l().createElement(y.Z,{label:"",className:s.typeInput,value:{value:C,label:b(C)},options:g.map((e=>({value:e,label:b(e)}))),onChange:e=>{let{value:r}=e;(null==t?void 0:t.type)!==r&&n({period:R(r),type:r})}}),c(C)?l().createElement(x.Z,{interval:E,onChange:D}):l().createElement(I.Z,{values:m,onChange:D})))};var R=n(92575),D=n(96808),M=n(65942);const _=[M.M.UPDATE,M.M.MERGE,M.M.UNMERGE];function k(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 A={input:e=>k({},e,{fontSize:"14px"}),menuPortal:e=>k({},e,{zIndex:1300})},P=(0,N.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},valueContainer:{overflowY:"auto",height:44},option:{fontSize:"14px",height:"32px"}}),H=e=>{let{selectedHistoryActivityTypes:t,onChange:n,className:r}=e;const i=P(),c=e=>{return{value:e,label:(t=e,{[M.M.UPDATE]:o().text("Update"),[M.M.MERGE]:o().text("Merge"),[M.M.UNMERGE]:o().text("Unmerge")}[t]||"")};var t},u=e=>e.map(c),d=u(_);return l().createElement("div",{className:h()(i.root,r)},l().createElement(a.Typography,{className:i.title,variant:"subtitle1"},o().text("Activity")),l().createElement(R.Z,{value:u(t),onChange:(0,s.pipe)((0,s.defaultTo)([]),(0,s.pluck)("value"),n),options:d,TextFieldProps:{classes:{root:i.dropDownInput}},components:{DropdownIndicator:D.Z},styles:A,classes:i,menuPlacement:"bottom",menuPortalTarget:document.body}))},G=(0,N.Z)({popup:{width:500,height:500,overflowY:"hidden",display:"flex",flexDirection:"column"},filterContainer:{padding:20,height:410,display:"flex",flexDirection:"column"},filterContainerScrollable:{overflowY:"auto"},filterItem:{marginTop:15},filterControls:{display:"flex",padding:"10px 12px 0",borderTop:"solid 1px rgba(0, 0, 0, 0.12)"},clearButton:{marginRight:"auto"},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px"}});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}const F=e=>{let{className:t,filter:n,onApplyFilter:i,onClearFilter:c,entityType:E}=e;const h=G(),[y,v]=(0,r.useState)(null),g=()=>v(null),[b,x]=(0,r.useState)(n);(0,r.useEffect)((()=>{x(n)}),[n]);const T=(0,s.curry)(((e,t)=>{x((n=>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){j(e,t,n[t])}))}return e}({},n,{[e]:t})))})),{activities:I=[],attributes:N=[],dateRange:w=null,users:O=[]}=b||{};return l().createElement(l().Fragment,null,l().createElement(d.Z,{icon:u.Z,size:"L",onClick:e=>v(e.currentTarget),className:t}),l().createElement(a.Popover,{classes:{paper:h.popup},open:!!y,anchorEl:y,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},l().createElement("div",{className:h.filterContainer},l().createElement(a.Typography,{variant:"h6"},o().text("Filter")),l().createElement("div",{className:h.filterContainerScrollable},l().createElement(C,{value:w,onChange:T("dateRange"),className:h.filterItem}),l().createElement(m.Z,{selectedUsers:O,onChange:T("users"),className:h.filterItem}),l().createElement(H,{selectedHistoryActivityTypes:I,onChange:T("activities"),className:h.filterItem}),l().createElement(f.Z,{selectedAttributes:N,entityType:E,onChange:T("attributes"),className:h.filterItem,title:o().text("Attribute updated")}))),l().createElement("div",{className:h.filterControls},l().createElement(a.Button,{onClick:c,className:h.clearButton},o().text("Clear all")),l().createElement(a.Button,{onClick:g},o().text("Cancel")),l().createElement(a.Button,{color:"primary",onClick:()=>{w&&(0,p.R)(w)?i(b):i((0,s.dissoc)("dateRange",b)),g()}},o().text("Apply")))))};var U=n(52730),B=n(43054),Z=n(87638),z=n(55847),$=n(98281),K=n(31276);const W=(0,N.Z)({menuItem:{minHeight:"32px"},menuText:{fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"30px"},checkIcon:{position:"absolute",color:"rgba(0, 0, 0, 0.54)"}}),Y=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=K.ZT}=e;const i=W(),{text:o,selected:s,onClick:c}=n;return l().createElement(a.MenuItem,{classes:{root:i.menuItem},onClick:e=>{r(),c(e)},ref:t},s&&l().createElement($.Z,{className:i.checkIcon}),l().createElement(a.Typography,{classes:{root:i.menuText}},o))}));Y.displayName="MenuItemRenderer";const V=Y,q=()=>{const e=(0,U.useSelector)(Z.ZP.selectors.getHistoryMode),t=(0,U.useDispatch)(),n=e=>{t(Z.N5.history.actions.setHistoryMode(e))},r=[{text:o().text("Compare to Current view"),selected:e===Z.Z9.Current,onClick:()=>n(Z.Z9.Current)},{text:o().text("Compare to Previous view"),selected:e===Z.Z9.Previous,onClick:()=>n(Z.Z9.Previous)}];return l().createElement(z.Z,{MenuItemRenderer:V,buttonComponent:d.Z,buttonProps:{icon:B.Z,size:"L"},menuId:"history-menu",menuItems:r})},X=(0,N.Z)({root:{display:"flex",flex:1,alignItems:"center"},icon:{margin:4},divider:{backgroundColor:"rgba(0,0,0,0.12)",margin:"3px 19px"},count:{fontSize:14},filterButton:{marginRight:"-4px"}}),J=e=>{let{total:t,entityType:n,filter:r,onApplyFilter:i,onClearFilter:u}=e;const d=X();return l().createElement("div",{className:d.root},l().createElement(a.Typography,{variant:"h6"},o().text("History")),!(0,s.isNil)(t)&&l().createElement(l().Fragment,null,l().createElement(a.Divider,{orientation:"vertical",flexItem:!0,className:d.divider}),l().createElement(a.Typography,{variant:"body1",color:"textSecondary",className:d.count},1===t?o().text("${count} contributing profile",{count:t}):o().text("${count} contributing profiles",{count:t}))),l().createElement(c.Z,null),l().createElement(F,{className:d.filterButton,entityType:n,filter:r,onApplyFilter:i,onClearFilter:u}),l().createElement(q,null))}},6674:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),l=n.n(r),i=n(87918),o=n.n(i),a=n(10159);const s=()=>l().createElement(a.Z,{text:o().text("History in the making"),secondaryText:o().text("When you create an event or perform an activity, it will show up here.")})},54362:(e,t,n)=>{n.d(t,{Z:()=>G});var r=n(24328),l=n.n(r),i=n(52730),o=n(44443),a=n(87918),s=n.n(a),c=n(17440),u=n(71153),d=n.n(u),p=n(99493),m=n(87638),f=n(94079),E=n(34606),h=n(79692);const y=(0,h.Z)((()=>({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"},user:{color:"rgba(0,0,0,0.38)",fontSize:"12px",letterSpacing:0,lineHeight:"14px"}}))),v=e=>{let{change:t,isCurrent:n,isSelected:r,onClick:i}=e;const{uri:o,type:a,matchGroups:c,user:u,timestamp:m}=t,h=(0,p.GtP)(o),v=y({color:h});return l().createElement("div",{className:d()(v.historyRow,{[v.selected]:r}),onClick:i},l().createElement("div",{className:v.rowHeader},l().createElement("div",{className:v.badge}),l().createElement(f.Typography,{className:d()(v.title,{bold:n})},n?s().text("Current view"):(0,E.Xr)(a)),!n&&l().createElement(f.Typography,{className:v.date},s().date(m,"L LT"))),c&&l().createElement(f.Typography,{className:v.title},s().text("Match rule:")," ",c.join(", ")),l().createElement(f.Typography,{className:v.user},u))};var g=n(55912);const b=e=>e===g.b.FAKE_FILTERED_INCOMING||e===g.b.FAKE_FILTERED_OUTGOING,x=e=>{let{x:t,y:n,toX:r,toY:i,color:o,isDashed:a}=e;const s=((e,t,n,r)=>{const l=t>r,i=e<n,o=l?-6:6;return`M${e} ${t} L${i?n-12:n+12} ${t} ${i?`c 6 0 12 ${o} 12`:`c -6 0 -12 ${o} -12`} ${l?-12:12} L${n} ${r}`})(t,n,r,i);return l().createElement("path",{d:s,stroke:o,strokeWidth:2,fill:"none",strokeDasharray:a?"3,3":void 0})};function T(){return T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}const I=(0,r.forwardRef)(((e,t)=>{let{x:n,y:r,color:i,isDashed:o,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={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(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)&&(l[n]=e[n])}return l}(e,["x","y","color","isDashed","isCollapsed","showCollapseIcon","showLine"]);const d=s?6:3;return l().createElement("g",T({},u,{ref:t}),c&&l().createElement("rect",{id:"line",x:n-d-4,y:r-d-4,width:2*d+8,height:2,fill:i}),l().createElement("circle",{cx:n,cy:r,r:d,fill:o?"#fff":i,stroke:i,strokeDasharray:o?"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 N=(0,n(83348).Z)(I),w=(0,r.memo)((e=>{let{graphData:t,onHistoryCircleMouseOver:n}=e;const{historyLanes:r,rows:i}=t,o=[16],{links:a,rowLines:s,circles:c}=i.reduce(((e,t,a)=>{let{uri:s,height:c,uris:u,type:d,fakeType:m,index:f,timestamp:E,label:h}=t;const y=16*r[s].index+24,v=o[a];o.push(v+c);const T=b(m),I=T?u[0]:s,w=!(null!=u&&u.some((e=>r[e])));e.circles.push(l().createElement(N,{tooltipTitle:h,tooltipPlacement:"top",onMouseOver:n?()=>n(s,E,f):void 0,key:`circle-${I}-${a}`,x:y,y:v,color:(0,p.GtP)(I),isDashed:T,isCollapsed:w,showCollapseIcon:!!u,showLine:m===g.b.FAKE_NAVIGATE_PROFILE})),e.rowLines.push(l().createElement("rect",{key:`${I}-${f}`,x:y,y:v-8,width:"100%",height:16,fill:(0,p.GtP)(I),opacity:.06}));const O=d===g.b.ENTITIES_SPLITTED;return null==u||u.forEach((t=>{const n=r[t];if(!n)return;const o=i[a].height,s=16*n.index+24,c=O?v-o:v+o;y!==s&&e.links.push(l().createElement(x,{key:`link-${t}-${f}`,x:y,y:v,toX:s,toY:c,isDashed:b(m),color:(0,p.GtP)(t)}))})),e}),{links:[],circles:[],rowLines:[]}),u=16*Object.keys(r).length+24,d=o[o.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:m}=e;if((null===(u=i[null==m?void 0:m.index])||void 0===u?void 0:u.type)===g.b.ENTITIES_SPLITTED)return;const f=(null==d?void 0:d.type)===g.b.ENTITIES_SPLITTED?(null==d?void 0:d.index)-1:null==d?void 0:d.index,E=(null==m?void 0:m.type)===g.b.ENTITIES_MERGED_MANUALLY||(null==m?void 0:m.type)===g.b.ENTITIES_MERGED?(null==m?void 0:m.index)+1:null==m?void 0:m.index,h=o[f]||o[o.length-2],y=o[E]||16;if(h<=y)return;const v=(0,p.GtP)(t);!m&&n.index>0&&c.push(l().createElement(I,{key:`initCircle-${t}-${s}`,x:r,y,color:v,showLine:!0})),a.unshift(l().createElement("path",{key:`line-${t}-${s}`,d:`M${r} ${h} L${r} ${y}`,stroke:v,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 O=n(99136);const S=(0,h.Z)({historyTree:{display:"grid",gridTemplateColumns:"auto 1fr",overflowY:"auto"},graph:{overflowX:"scroll",overflowY:"hidden"},history:{minWidth:344},buttonContainer:{gridColumnStart:1,gridColumnEnd:3,padding:"8px 16px"},shadow:{boxShadow:"inset -8px 0px 5px -5px rgba(0,0,0,0.1)"}});function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){R(e,t,n[t])}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const D=e=>{let{historyData:t,isLoading:n,canLoadMore:a,onLoadMore:u,entityUri:E,historyEvent:h,findPreviousChange:y}=e;const g=S(),b=(0,i.useDispatch)(),x=(0,i.useSelector)(m.ZP.selectors.getIsEditableMode),T=(0,i.useSelector)(m.ZP.selectors.getMetadata),[I,N]=(0,r.useState)({historyLanes:{},rows:[]}),[R,D]=(0,r.useState)(!1),[M,_]=(0,r.useState)(-1);(0,r.useEffect)((()=>{if((0,c.isNil)(h))return void _(0);const e=e=>(null==e?void 0:e.uri)===((null==h?void 0:h.overrideUri)||E)&&(null==e?void 0:e.timestamp)===(null==h?void 0:h.aStamp),n=-1!==M?t.rows[M]:null,r=t.rows.findIndex((t=>e(t)));_(e(n)?M:r)}),[t.rows,h]);const k=(0,r.useRef)(null),L=(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 C({},t,{height:null===(r=e.childNodes[n])||void 0===r?void 0:r.clientHeight})}));N({historyLanes:t.historyLanes,rows:r})}}),[t]),A=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:n}=(null==k?void 0:k.current)||{};D(n<e-t)};return l().createElement("div",{className:g.historyTree},n&&l().createElement(O.Z,null),l().createElement("div",{className:d()(g.graph,{[g.shadow]:R}),onScroll:A,ref:k},l().createElement(w,{onHistoryCircleMouseOver:(e,t,n)=>{if((0,c.isNil)(I.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)(T,e.type);return t?t.label:null})).filter(c.identity).join(", "):s().text("No data");N((e=>C({},e,{rows:e.rows.map((e=>e.index===n?C({},e,{label:r}):e))})))}))}},graphData:I}),l().createElement(o.Z,{handleWidth:!0,onResize:A})),l().createElement("div",{ref:L,className:g.history},t.rows.map(((e,t)=>{const n=t===M,r=0===t;return l().createElement(v,{key:`row-${t}`,change:e,isCurrent:r,isSelected:n,onClick:()=>((e,t,n,r)=>{if(x){if(!window.confirm(s().text("Are you sure you want to go in history mode? All your changes will be lost.")))return;b(m.N5.mode.actions.modeUpdated(p.ARY.Viewing))}if(r&&!n||!r&&n)b(m.N5.history.actions.clearHistoryEvent()),_(0);else if(!r&&!n){const n=y(e-1,t.uri||E),r=y(e,t.uri||E),l=null==n?void 0:n.timestamp,i=null==r?void 0:r.timestamp,o=(null==t?void 0:t.uri)===E?null:null==t?void 0:t.uri;b(m.N5.history.actions.setHistoryEvent({aStamp:l,bStamp:i,overrideUri:o})),_(e)}})(t,e,n,r)})}))),a&&l().createElement("div",{className:g.buttonContainer},l().createElement(f.Button,{color:"primary",onClick:()=>u()},s().text("Show more"))))},M=(0,h.Z)({root:{display:"flex",flexWrap:"wrap",padding:"10px 15px"}}),_=(0,h.Z)({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"}}),k=e=>{let{value:t,isSelected:n=!0,onClick:r}=e;const i=(0,p.GtP)(t),o=_({color:i});return l().createElement("div",{className:d()(o.icon,{[o.inactive]:!n,[o.active]:n,[o.clickable]:!!r}),onClick:r})},L=e=>{let{values:t,selectedValues:n,entityUri:r,onSelectValues:i,className:o}=e;const a=M();return l().createElement("div",{className:d()(a.root,o)},l().createElement(k,{value:r}),(null==t?void 0:t.length)>0&&t.map((e=>l().createElement(k,{key:e,value:e,isSelected:null==n?void 0:n.includes(e),onClick:()=>(e=>{null!=n&&n.includes(e)?i((0,c.without)([e],n)):i([...n||[],e])})(e)}))))};function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const P=(e,t)=>e.reduce(((e,n,r)=>{let{start:l,end:i}=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(i){const n=t-i.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,h.Z)({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:i,entityUri:o,canLoadMore:a,onLoadMore:s,historyEvent:u}=e;const d=H(),[p,m]=(0,r.useState)(null);(0,r.useEffect)((()=>{m(i)}),[i]);const{historyData:f,findPreviousChange:E}=(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}],i=(0,c.curry)(((e,n,r)=>{const l=r.uri||t;if(e)if(Array.isArray(e)){if(r.type!==g.b.ENTITY_LOST_MERGE)return null;if(e.includes(l))return r;if(n&&r.uris)return e.some((e=>r.uris.includes(e)))?r:null}else{var i;if(l===e||n&&null!==(i=r.uris)&&void 0!==i&&i.includes(e))return r}return null})),o=(e,t,r)=>(0,c.pipe)((0,c.drop)(e+1),(0,c.find)(i(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!==g.b.ENTITY_CREATED||t.type!==g.b.ENTITIES_SPLITTED)?e.push({start:t,end:null}):n.start=t},u=(e,t)=>{let n=!0;if(e.length){const r=e[e.length-1];n=!((!r.start||r.start.timestamp<t.timestamp)&&(!r.end||r.end.timestamp>t.timestamp))}n&&e.push({start:null,end:null})},d=(e,t)=>{if(e.length){const n=e[e.length-1];n.start||(n.start=t)}e.push({start:null,end:t})},p=[];return null==n||n.forEach(((n,l)=>{var i;switch(n.type){case g.b.ENTITIES_SPLITTED:if(!o(l,n.uri||t,!1))return;{const e=n.uri,t=n.uris?[n.uris,e]:[e],r=o(l,t,!0);if(r&&(!e||e===r.uri))return}break;case g.b.ENTITY_LOST_MERGE:case g.b.RELATIONSHIP_CREATED:case g.b.RELATIONSHIP_REMOVED:case g.b.RELATIONSHIP_CHANGED:return}let c=!1;null===(i=n.uris)||void 0===i||i.forEach((e=>{a(e)||(c=!0)}));const m=a(n.uri||t);if(!m)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){A(e,t,n[t])}))}return e}({},n);((t,n)=>{var l,i;switch(n.type){case g.b.ENTITY_CREATED:s(t,n);break;case g.b.ENTITIES_MERGED_ON_THE_FLY:case g.b.ENTITY_CHANGED:u(t,n);break;case g.b.ENTITY_LOST_MERGE:case g.b.ENTITY_REMOVED:d(t,n);break;case g.b.ENTITIES_SPLITTED:u(t,n),null===(l=n.uris)||void 0===l||l.forEach((t=>{const l=e[t];if(!l)return;const i=l.lifeTime.length;i?s(l.lifeTime,n):d(l.lifeTime,n),r.push({uri:t,user:n.user,type:n.type,fakeType:i?g.b.FAKE_UPDATE:g.b.FAKE_NAVIGATE_PROFILE,timestamp:n.timestamp})}));break;case g.b.ENTITIES_MERGED:case g.b.ENTITIES_MERGED_MANUALLY:u(t,n),null===(i=n.uris)||void 0===i||i.forEach((t=>{const r=e[t];r&&d(r.lifeTime,n)}))}})(m.lifeTime,f),c&&p.push(f),r.push(f)})),p.forEach((t=>{t.uris.forEach((l=>{e[l]||n.forEach((n=>{let{uri:i,uris:o,timestamp:a,user:s,type:u}=n;i===l&&(null==o||o.forEach((n=>{const l=e[n];if(!l)return;let i=null;switch(u){case g.b.ENTITIES_MERGED:case g.b.ENTITIES_MERGED_MANUALLY:i=g.b.FAKE_FILTERED_INCOMING;break;case g.b.ENTITIES_SPLITTED:i=g.b.FAKE_FILTERED_OUTGOING;break;default:return}const o={fakeType:i,uri:t.uri,uris:[n],type:u,user:s,timestamp:a},d=P(l.lifeTime,t.timestamp);i===g.b.FAKE_FILTERED_INCOMING?(0,c.isNil)(d.endIndex)||(l.lifeTime[d.endIndex].end=o):(0,c.isNil)(d.startIndex)||(l.lifeTime[d.startIndex].start=o),r.splice(r.indexOf(t),0,o)})))}))}))})),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)(i(t,!1)))(r)}}),[t,n,l])})({entityUri:o,historyChanges:null==n?void 0:n.changes,selectedUris:p});return l().createElement("div",{className:d.root},l().createElement(L,{values:i,selectedValues:p,onSelectValues:m,entityUri:o,className:d.borderBottom}),l().createElement(D,{historyData:f,isLoading:t,onLoadMore:s,canLoadMore:a,entityUri:o,historyEvent:u,findPreviousChange:E}))}))},3409:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),l=n.n(r),i=n(52730),o=n(87638),a=n(94079),s=n(17440),c=n(87918),u=n.n(c);const d=(0,n(79692).Z)({root:{display:"flex",alignItems:"flex-start"},slice:{fontWeight:500},cancelButton:{width:"88px",flexShrink:0,marginLeft:"15px"}}),p=()=>{const e=d(),t=(0,i.useSelector)(o.ZP.selectors.getHistoryEvent),n=(0,i.useDispatch)(),r=(0,s.pipe)(o.N5.history.actions.clearHistoryEvent,n);return t?l().createElement("div",{className:e.root},l().createElement(a.Typography,{component:"div"},u().text("You are viewing a historic slice:")," ",l().createElement("span",{className:e.slice},u().date(t.aStamp,"llll"))),l().createElement(a.Button,{className:e.cancelButton,variant:"contained",color:"primary",onClick:r},u().text("Cancel"))):null}},85890:(e,t,n)=>{n.d(t,{k:()=>d});var r=n(24328),l=n(99493),i=n(65942),o=n(48465),a=n(67218);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={activities:[i.M.MERGE,i.M.UNMERGE,i.M.UPDATE]},d=e=>{let{entity:t,enabled:n}=e;const[i,c]=(0,r.useState)(u),[d,p]=(0,r.useState)(0),m=(0,r.useMemo)((()=>(0,o.Z)(i)),[i]),[f,E]=(0,r.useState)(null),[h,y]=(0,r.useState)(null),[v,g]=(0,r.useState)(!1),b=(0,a._)(),x=null==t?void 0:t.uri,T={max:32,order:"desc"},I=(0,l.O27)(null==i?void 0:i.attributes)||void 0;(0,r.useEffect)((()=>{x&&n&&(g(!0),b((0,l.kgP)(s({entityUri:x,historicUris:f,filter:m,showAll:I},T))).then(y).catch((e=>{console.warn("Failed to load history data",e),y(null)})).finally((()=>{g(!1)})))}),[m,I,f]),(0,r.useEffect)((()=>{x&&n&&(g(!0),b((0,l.wdF)({entityUri:x})).then((e=>{E(e)})).catch((e=>{console.warn("Failed to load history data",e),E(null)})).finally((()=>{g(!1)})),p(0))}),[x,null==t?void 0:t.updatedTime,n]);const N=(0,r.useCallback)((e=>{x&&f&&n&&(g(!0),b((0,l.kgP)(s({entityUri:x,historicUris:f,filter:m,showAll:I,offset:e},T))).then((e=>{y((t=>s({},t,{changes:[...null==t?void 0:t.changes,...e.changes]})))})).catch((e=>{console.warn("Failed to load history data",e)})).finally((()=>{g(!1)})))}),[f,m,n]),w=(0,r.useMemo)((()=>32*(d+1)<(null==h?void 0:h.total)),[h,d]),O=(0,r.useCallback)((e=>{p(0),c(e)}),[]),S=(0,r.useCallback)((()=>{O(s({},u))}),[]),C=(0,r.useCallback)((()=>{w&&(N(32*(d+1)),p(d+1))}),[N,d,w]);return{isLoading:v,canLoadMore:w,onLoadMore:C,onApplyFilter:O,onClearFilter:S,historicUris:f,historyWithTotal:h,historyFilter:i}}},71820:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(24328),l=n(99493);const i=e=>{let{isHistoryTabActive:t,entity:n}=e;const[i,o]=(0,r.useState)(!1),a=null==n?void 0:n.uri;(0,r.useEffect)((()=>{t||o(!1)}),[a]),(0,r.useEffect)((()=>{t&&o(!0)}),[t]);const s=a&&!(0,l.ZiX)(a)&&!(0,l.biM)(n);return{isHistoryEnabled:i&&s,isProfilePersisted:s}}},57730:(e,t,n)=>{n.d(t,{a:()=>s});var r=n(24328),l=n(52730),i=n(87638),o=n(99493),a=n(67218);const s=e=>{let{entity:t,historyEvent:n}=e;const[s,c]=(0,r.useState)(!1),u=(0,l.useSelector)(i.ZP.selectors.getHistorySlice),d=(0,l.useDispatch)(),p=(0,a._)(),{aStamp:m,bStamp:f,overrideUri:E}=n||{},h=E||(null==t?void 0:t.uri);return(0,r.useEffect)((()=>{n&&h&&(c(!0),p(Promise.all([(0,o.lrH)(h,m),f&&1!==f?(0,o.lrH)(h,f):Promise.resolve(null)])).then((e=>{let[t,n]=e;d(i.N5.history.actions.setHistorySlice({aEntity:t,bEntity:n}))})).catch((e=>{console.warn("Failed to load entity slice",e)})).finally((()=>{c(!1)})))}),[m,f,h]),{isLoading:s,historySlice:u}}},55912:(e,t,n)=>{n.d(t,{b:()=>o});var r,l=n(31537);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!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 o=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){i(e,t,n[t])}))}return e}({},l.I,r)},65942:(e,t,n)=>{let r;n.d(t,{M:()=>r}),function(e){e.UPDATE="UPDATE",e.MERGE="MERGE",e.UNMERGE="UNMERGE"}(r||(r={}))},48465:(e,t,n)=>{n.d(t,{Z:()=>f,R:()=>E});var r=n(95038),l=n.n(r),i=n(17440),o=n(99493),a=n(65942),s=n(31537),c=n(67885);const u=e=>(0,i.pipe)((0,i.map)(e),(0,i.join)(" or ")),d=e=>{const[t,n]=e;return l()().subtract(t,n).valueOf()},p=(0,i.chain)((0,i.cond)([[(0,i.equals)(a.M.MERGE),()=>[s.I.ENTITIES_MERGED,s.I.ENTITIES_MERGED_MANUALLY,s.I.ENTITIES_MERGED_ON_THE_FLY]],[(0,i.equals)(a.M.UNMERGE),()=>[s.I.ENTITIES_SPLITTED]],[(0,i.equals)(a.M.UPDATE),()=>[s.I.ENTITY_CHANGED]]])),m=(0,i.pipe)((0,i.defaultTo)([]),p,(0,i.concat)([s.I.ENTITY_CREATED,s.I.ENTITY_REMOVED,s.I.ENTITY_LOST_MERGE]),u((e=>`equals(type, '${e}')`))),f=(0,i.pipe)((0,i.defaultTo)({}),(0,i.reject)(o.O27),(0,i.evolve)({users:u((e=>`equals(user, '${(0,o.HRH)(e)}')`)),attributes:u((e=>`changes(${(0,o.HRH)(e.value)})`)),dateRange:e=>{let{type:t,period:n}=e;switch(t){case c.K.WITHIN:return`gte(timestamp, ${d(n)})`;case c.K.AGO:return`lte(timestamp, ${d(n)})`;case c.K.BETWEEN:{const[e,t]=n;return`gte(timestamp, ${e.valueOf()}) and lte(timestamp, ${l()(t).endOf("date").valueOf()})`}default:return""}}}),(0,i.over)((0,i.lensProp)("activities"),m),i.values,(0,i.reject)(o.O27),(0,i.append)("not equals(user, 'collaboration-service')"),(0,i.map)((e=>`(${e})`)),(0,i.join)(" and ")),E=e=>{if(e.type===c.K.AGO||e.type===c.K.WITHIN){const[t,n]=e.period;return"Number"===(0,i.type)(t)&&"String"===(0,i.type)(n)&&t>0}if(e.type===c.K.BETWEEN){const[t,n]=e.period;return t instanceof Date&&n instanceof Date}}},2804:(e,t,n)=>{n.d(t,{a:()=>l});var r=n(24328);const l=e=>{const[t,n]=(0,r.useState)(!1),[l,i]=(0,r.useState)({});return(0,r.useEffect)((()=>{e().then((e=>{i(e||{})})).then((e=>n(!0))).catch((e=>n(!0)))}),[]),{isLoaded:t,savedState:l}}}}]);
|
package/4126.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[4126],{27815:(e,t,n)=>{n.d(t,{Z:()=>O});var r=n(24328),o=n.n(r),l=n(87918),a=n.n(l),i=n(71153),s=n.n(i),c=n(17440),u=n(52730),d=n(87638),p=n(99493),h=n(94079),m=n(92575),f=n(37285),g=n(96808),b=n(7785),y=n(79692);function E(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 x={input:e=>E({},e,{fontSize:"14px"}),menuPortal:e=>E({},e,{zIndex:1300})},C=(0,y.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"},noOptionsMessage:{fontSize:"14px"}});const O=e=>{let{entityType:t,selectedAttributes:n,className:l,onChange:i,title:y,disableUnderline:E,menuPlacement:v="bottom"}=e;const O=(0,u.useSelector)(d.ZP.selectors.getMetadata),k=C(),T=(0,r.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.reduce(((e,r)=>{if(r.hidden)return e;const o=`${n&&n+" / "}${r.label}`;e.push({label:r.label,value:r.uri,attrType:r,chipLabel:o,level:t});const l=(0,p.EUG)(O,r);return e.concat(l?T(l,t+1,o):[])}),[])}),[O]),w=(0,r.useMemo)((()=>T((null==t?void 0:t.attributes)||[])),[t,T]);return o().createElement("div",{className:s()(k.root,l)},o().createElement(h.Typography,{className:k.title,variant:"subtitle1"},y||a().text("Attribute")),o().createElement(m.Z,{value:n,options:w,TextFieldProps:{InputProps:{disableUnderline:E},classes:{root:k.dropDownInput}},components:{DropdownIndicator:g.Z,MultiValue:e=>{let{data:t}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["data"]);return o().createElement(f.Z,n,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:n,data:r,label:l,innerProps:a}=e;return o().createElement("div",a,o().createElement(b.Z,{checked:n,level:r.level,data:r,label:l,labelInText:l,isFocused:t}))}},onChange:(0,c.pipe)((0,c.defaultTo)([]),i),styles:x,classes:k,menuPlacement:v,menuPortalTarget:document.body}))}},60894:(e,t,n)=>{n.d(t,{Z:()=>b});var r=n(24328),o=n.n(r),l=n(13980),a=n.n(l),i=n(94656);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=>o().createElement("svg",s({width:20,height:18,viewBox:"0 0 20 18",xmlns:"http://www.w3.org/2000/svg"},e),o().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(8818),d=n(17440),p=n(47458),h=n(87918),m=n.n(h),f=n(85657);const g=e=>{let{columnsData:t,selectedColumns:n,onChangeColumns:l,title:a,tooltipTitle:i}=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);l(r?(0,d.difference)(n,t):(0,d.uniq)((0,d.concat)(n,t)))}),[n,l]);return o().createElement(o().Fragment,null,o().createElement(u.k,{tooltipTitle:i||m().text("Show/hide columns"),size:"L",icon:c,onClick:e=>h(e.currentTarget)}),o().createElement(p.G,{onColumnClick:g,anchorEl:s,columnsData:t,onClose:()=>h(null),title:a,selectedColumns:n}))};g.propTypes={columnsData:i.uz,selectedColumns:a().arrayOf(a().string),onChangeColumns:a().func,title:a().string,tooltipTitle:a().string};const b=g},47458:(e,t,n)=>{n.d(t,{G:()=>O});var r=n(24328),o=n.n(r),l=n(87918),a=n.n(l),i=n(17440),s=n(99493),c=n(44890),u=n(97820),d=n(85657),p=n(56656),h=n(54763),m=n(13980),f=n.n(m),g=n(7785),b=n(27239),y=n(71153),E=n.n(y);const v=(0,n(79692).Z)({popup:{minWidth:"200px"},groupItem:{backgroundColor:"rgba(0,0,0,0.04)"}}),x=e=>{let{item:t,onClick:n,checked:r,level:l,style:a,isFocused:i,isGroupItem:s,hideCheckBox:c}=e;const u=v();return o().createElement(g.Z,{hideCheckBox:c,key:t.id,onClick:n,checked:r,level:l,data:t,label:o().createElement(b.Z,{text:t.label,highlight:t.filterText}),labelInText:t.label,style:a,isFocused:i,hideIcon:s,className:E()({[u.groupItem]:s})})};x.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 C=x,O=e=>{let{anchorEl:t,onClose:n,title:l,columnsData:m,onColumnClick:f,selectedColumns:g,hideCheckBox:b}=e;const y=v(),[E,x]=(0,r.useState)(""),O=(0,r.useMemo)((()=>(0,d.eX)(m,E)),[m,E]),k=(0,r.useMemo)((()=>(0,p.LG)(O)),[O]),T=(0,s.fW1)("label")(O)||308,w=(0,r.useCallback)((e=>{let{item:t}=e;return f(t)}),[f]),{focusIndex:S,handleKeyDown:I}=(0,h.t)({items:k,open:!0,onSelectFocusedItem:w,selectedItems:g,onClose:n}),P=(0,r.useCallback)((0,i.pipe)(n,(()=>x(""))),[n]),N=Math.min(300,32*k.length),D=Math.max(140,N+108);return o().createElement(u.Z,{className:y.popup,open:!!t,anchorEl:t,onClose:P,onSearch:x,title:l||a().text("Show/hide columns"),containerWidth:T,containerHeight:D,searchInputOnKeyDown:I},o().createElement(c.Z,{fixedTitle:!1,height:N,renderItem:(e,t,n)=>{let{item:r,level:l=0}=t;return o().createElement(C,{hideCheckBox:b,style:e,item:r,level:l,isFocused:S===n,checked:(0,d.u)(g,r),isGroupItem:(0,d.yf)(r),onClick:b?(0,i.pipe)(f,P):f})},items:k,getItemSize:()=>32,focusIndex:S}))}},85657:(e,t,n)=>{n.d(t,{eX:()=>b,JJ:()=>y,yf:()=>i,u:()=>E});var r=n(17440),o=n(99493);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){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const i=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)=>o.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:l({},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:o}=e;return[{id:t,groupId:t,label:n},...o.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)(i,u)),h,m(t))(e),y=e=>e.children?(0,r.chain)(y,e.children):[e],E=(e,t)=>{const n=y(t),r=t=>e.includes(t.id);return i(t)?n.every(r):n.some(r)}},39621:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(24328),o=n.n(r),l=n(17440),a=n(87918),i=n.n(a),s=n(6782),c=n(94079),u=n(31517),d=n(31276);const p=(0,n(79692).Z)({root:{display:"flex",flex:1},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px",fontSize:"14px"},inputNumber:{minWidth:"60px",marginRight:10,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.03)"},inputUnit:{width:"100%"}}),h=[i().text("minutes"),i().text("hours"),i().text("days"),i().text("weeks"),i().text("months"),i().text("years")],m=e=>{let{interval:[t,n],onChange:r,onFocus:a}=e;const i=p(),m=(0,l.pipe)(d.NA,parseInt,(e=>[e,n]),r),f=(0,l.pipe)((e=>{let{value:n}=e;return[t,n]}),r);return o().createElement("div",{className:i.root},o().createElement(c.TextField,{type:"number",value:t||"",onChange:m,inputProps:{min:1,onFocus:a},InputProps:{classes:{root:i.input}},className:i.inputNumber}),o().createElement(u.Z,{label:"",placeholder:(0,s.Z)(n),className:i.inputUnit,value:{value:n,label:(0,s.Z)(n)},options:h.map((e=>({value:e,label:(0,s.Z)(e)}))),onChange:f,TextFieldProps:{inputProps:{onFocus:a},InputProps:{classes:{root:i.input}}}}))}},68439:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),o=n.n(r),l=n(52730),a=n(71153),i=n.n(a),s=n(94079),c=n(99493),u=n(87638);const d=(0,n(79692).Z)({"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",display:"inline-flex",marginRight:"12px",borderRadius:"2px"},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",display:"inline-flex",marginRight:"16px"}}),p=e=>{let{entity:t,className:n,size:r="small"}=e;const a=d(),p=(0,l.useSelector)(u.ZP.selectors.getMetadata),h=t.type,m=(0,c.nt9)(p,h)||{},f=(0,c.VD3)(p,m,"typeColor")||c.rSc.palette.primary.main;return o().createElement(s.Typography,{style:{backgroundColor:f,color:c.P6Y.Colors.getColor(f)?"#FFFFFF":"#212121"},className:i()(a[`entityType-${r}`],n),component:"div"},(0,c.jFi)(p,t))}},57304:(e,t,n)=>{n.d(t,{Z:()=>v});var r=n(24328),o=n.n(r),l=n(13980),a=n.n(l),i=n(71153),s=n.n(i),c=n(52730),u=n(17440),d=n(94079),p=n(87918),h=n.n(p),m=n(99493),f=n(87638),g=n(53180),b=n(68439);const y=(0,n(79692).Z)((e=>({profileBandWrapper:{flexShrink:0},profileBand:{display:"flex",padding:"16px 12px 16px 16px",alignItems:"flex-start",backgroundColor:"#fff",boxShadow:"inset 0 -1px 0 0 rgba(0,114,206,0.06), inset 0 1px 0 0 rgba(0,114,206,0.06);","&: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"}}}))),E=e=>{let{className:t,entity:n,children:l,classes:a}=e;const i=y({classes:a}),p=(0,c.useSelector)(f.ZP.selectors.getMetadata),E=(0,r.useCallback)((()=>{navigator.clipboard.writeText((0,m.BTI)(n))}),[n]);if((0,u.isNil)(n))return null;const v=(0,m.idV)(n.label),x=n.secondaryLabel,C=(0,m.ptG)(p,n),O=(0,m.Fn9)(n),k=n.uri,T=(0,m.BTI)(n);return o().createElement("div",{className:s()(i.profileBandWrapper,t)},o().createElement("div",{className:s()(i.profileBand,{[i.inactive]:!O}),"data-entity-uri":k},o().createElement(g.Z,{key:n.uri,entity:n,avatarClassName:i.profileIcon,imageClassName:i.imageProfileIcon}),o().createElement("div",{className:i.profileInfo},o().createElement("div",null,o().createElement(d.Typography,{variant:"h6",className:i.label},v),x&&o().createElement(d.Typography,{variant:"subtitle2",className:i.secondaryLabel},x),C&&o().createElement(d.Typography,{variant:"subtitle1",className:i.businessCard},C)),o().createElement("div",{className:i.specialInfo},o().createElement("div",{className:i.entityType},o().createElement(b.Z,{entity:n,size:"medium",className:i.badge}),!(0,m.ZiX)(k)&&o().createElement(d.Tooltip,{title:h().text("Copy to clipboard")},o().createElement(d.Typography,{display:"inline",variant:"body2",className:i.entityId,onClick:E},h().text("Entity ID"),": ",T))))),l&&o().createElement("div",null,l)))};E.propTypes={className:a().string,entity:a().object,children:a().node,classes:a().object};const v=E},93873:(e,t,n)=>{n.d(t,{a:()=>I});var r=n(24328),o=n.n(r),l=n(87918),a=n.n(l),i=n(94079),s=n(83348),c=n(8818),u=n(67766),d=n(42767),p=n(99493);const h=(0,n(79692).Z)({container:{display:"flex",alignItems:"center"},link:{whiteSpace:"nowrap",marginRight:"9px"}}),m=(0,s.Z)(i.Link),f=e=>{let{total:t=0,onPrev:n,onNext:r,onSearchResultsClick:l,isPrevDisabled:i,isNextDisabled:s}=e;const f=h();return o().createElement("div",{className:f.container},o().createElement(m,{className:f.link,component:"button",variant:"caption",onClick:l,underline:"none",tooltipTitle:a().text("Go to search results")},(0,p.k7L)(t,1e6)," ",1===t?a().text("Search result"):a().text("Search results")),o().createElement(c.k,{size:"L",icon:u.Z,tooltipTitle:a().text("Go to previous profile"),onClick:n,disabled:i,showForDisabled:!0}),o().createElement(c.k,{size:"L",icon:d.Z,tooltipTitle:a().text("Go to next profile"),onClick:r,disabled:s,showForDisabled:!0}))};var g=n(52730),b=n(87638),y=n(17440),E=n(39450),v=n(67218);function x(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}class O{constructor(e){var t=this;let{data:{query:n,sortField:r,sortOrder:o},tenant:l,searchTenant:a,apiPath:i,dtssPath:s,globalSearchRequestOptions:c}=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],o=x({},t.globalSearchRequestOptions,{sort:t.sortField,order:t.sortOrder,select:"uri,label,type",scoreEnabled:!1},n);return t.isDT()?(0,p.uqV)({filters:r,options:o,customerTenant:t.tenant,dataTenant:t.searchTenant,dtssPath:t.dtssPath}):(0,p.ZOr)(r,o)},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,p.J$m)({filters:e,options:t,customerTenant:this.tenant,dataTenant:this.searchTenant,dtssPath:this.dtssPath}):(0,p.j_Q)(e,t)).then((e=>e.total))},this.query=n,this.sortField=r,this.sortOrder=o,this.tenant=l,this.searchTenant=a,this.apiPath=i,this.dtssPath=s,this.globalSearchRequestOptions=c}}function k(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){T(e,t,n[t])}))}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class w{constructor(e){var t=this;let{data:n,tenant:r,apiPath:o}=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,p.P2h)({apiPath:t.apiPath,tenant:t.tenant,searchBody:k({},t.searchBody,{filter:e.length?(0,p.Uqd)()(r):t.searchBody.filter}),options:n})},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"id",values:[(0,p.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,p.dED)({apiPath:this.apiPath,tenant:this.tenant,searchBody:this.searchBody}).then((e=>e.count)),this.searchBody=n,this.tenant=r,this.apiPath=o}}const S=(e,t)=>(0,y.pipe)((0,y.map)((0,y.prop)("uri")),(0,y.reject)((e=>t.includes(e))))(e),I=()=>{const{total:e,onPrev:t,onNext:n,onSearchResultsClick:l,isPrevDisabled:a,isNextDisabled:i}=(()=>{const e=(0,v._)(),t=(0,v._)(),n=(0,v._)(),{uri:o,index:l,total:a,tenant:i,cache:s}=(0,g.useSelector)(b.ZP.selectors.getSearchNavigationData)||{},{type:c,data:u}=(0,g.useSelector)(b.ZP.selectors.getSearchProviderData)||{},d=(0,g.useSelector)(b.ZP.selectors.getTenant),h=(0,g.useSelector)(b.ZP.selectors.getApiPath),m=(0,g.useSelector)(b.ZP.selectors.getDtssPath),f=(0,g.useSelector)((e=>b.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),y=(0,r.useContext)(E.m),x=(0,g.useDispatch)(),[C,k]=(0,r.useState)(!1),T=(0,r.useMemo)((()=>((e,t)=>{switch(e){case"search":return new O(t);case"graphsearch":return new w(t)}})(c,{data:u,tenant:d,searchTenant:i,apiPath:h,dtssPath:m,globalSearchRequestOptions:f})),[c,u,d,i,h,m,f]),I=(0,r.useCallback)((e=>{x(b.yC.actions.updateSearchNavigationDataFields(e))}),[x]),P=(0,r.useCallback)((e=>{const t=d!==i?(0,p.wwR)({uri:e,dataTenant:i}):e;x(b.ui.actions.openEntity({uri:t,viewId:y,source:"navigation"}))}),[x,y,d,i]),N=(0,r.useCallback)((()=>{x(b.ui.actions.openPerspective({perspectiveId:c,viewId:y}))}),[x,c,y]);(0,r.useEffect)((()=>{l>=a?I({index:a-1}):l<0&&I({index:0})}),[a,l,I]);const D=(0,r.useCallback)(((e,r,o)=>{k(!0),t(T.requestTotal()).then((e=>I({total:e})));const l=o+1;return n(T.requestEntities(15,l)).then((t=>{if(t){if(t.length){const n=S(t,e);if(n.length>0)return I({cache:e.concat(n),uri:n[0],index:l+t.length-n.length}),void P(n[0]);if(o+t.length<r-1)return D(e,r-t.length,o+t.length)}I({index:l})}})).finally((()=>{k(!1)}))}),[T,I,P]),R=(0,r.useCallback)(((e,r)=>{k(!0),t(T.requestTotal()).then((e=>I({total:e})));const o=r-1,l=Math.max(0,r-15),a=15+Math.min(0,r-15);return n(T.requestEntities(a,l)).then((t=>{if(t){if(t.length){const n=S(t,e);if(n.length>0)return I({cache:n.concat(e),uri:n[n.length-1],index:o-(t.length-n.length)}),void P(n[n.length-1]);if(r-t.length>0)return R(e,r-t.length)}I({index:0})}})).finally((()=>{k(!1)}))}),[T,I,P]),M=(0,r.useCallback)(((t,n,r,o)=>{if(n<t.length){const l=t[n];return k(!0),e(T.checkEntity(l)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),M(e,n,r-1,o)}I({index:o+1,uri:l,cache:t,total:r}),P(l)})).finally((()=>{k(!1)}))}if(!(o>=r-1))return D(t,r,o);I({cache:t,total:r,index:r-1})}),[T,I,P,D]),L=(0,r.useCallback)(((t,n,r,o)=>{if(n>-1){const l=t[n];return k(!0),e(T.checkEntity(l)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),L(e,n-1,r-1,o-1)}I({index:o-1,uri:l,cache:t,total:r}),P(l)})).finally((()=>{k(!1)}))}if(!(o<=0))return R(t,o);I({index:0,cache:t,total:r})}),[T,I,P,R]),_=(0,r.useCallback)((()=>{if(s&&o){const e=s.indexOf(o)-1;L(s,e,a,l)}}),[L,s,o,a,l]),A=(0,r.useCallback)((()=>{if(s&&o){const e=s.indexOf(o)+1;M(s,e,a,l)}}),[M,s,o,a,l]);return{total:a,onPrev:_,onNext:A,onSearchResultsClick:N,isPrevDisabled:C||l<=0,isNextDisabled:C||l>=a-1}})();return(()=>{const{cache:e}=(0,g.useSelector)(b.ZP.selectors.getSearchNavigationData)||{},t=(0,g.useSelector)(b.ZP.selectors.getMode),n=(0,g.useSelector)(b.ZP.selectors.getEntity);return(0,p.uzs)(t)&&(null==e?void 0:e.includes(null==n?void 0:n.uri))})()?o().createElement(f,{total:e,onPrev:t,onNext:n,onSearchResultsClick:l,isPrevDisabled:a,isNextDisabled:i}):null}},92575:(e,t,n)=>{n.d(t,{Z:()=>S});var r=n(24328),o=n.n(r),l=n(13980),a=n.n(l),i=n(17440),s=n(70347);const c=(0,n(5407).Z)(s.ZP);var u=n(5190),d=n(18461),p=n(94079),h=n(71153),m=n.n(h),f=n(88611);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:l,isSelected:a,selectProps:{classes:i},label:s}=e;return o().createElement(p.MenuItem,g({className:m()(i.option,{[i["option--selected"]]:a}),ref:n,selected:l,component:"div"},t),o().createElement(p.Checkbox,{color:"primary",checked:a}),o().createElement(f.C,{value:s},o().createElement("div",{className:i["option--item"]},r)))}b.propTypes={children:a().node,innerProps:a().shape({id:a().string.isRequired,key:a().string,onClick:a().func.isRequired,onMouseMove:a().func.isRequired,onMouseOver:a().func.isRequired,tabIndex:a().number.isRequired}).isRequired,innerRef:a().oneOfType([a().oneOf([null]),a().func,a().shape({current:a().any.isRequired})]),isFocused:a().bool.isRequired,isSelected:a().bool.isRequired,label:a().string,selectProps:a().shape({classes:a().shape({option:a().string})})};const y={Option:b};var E=n(79692),v=n(31276);function x(){return x=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},x.apply(this,arguments)}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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 k=(0,E.Z)((e=>({label:{top:6,left:16},placeholder:e=>({display:!e.placeholder||e.label?"none":void 0}),"option--selected":{fontWeight:400},clearIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)},dropdownIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)}})));let T=0;function w(e){const{label:t,creatable:n,getOptions:l,loadingIndicator:a,components:s,classes:p,styles:h,onChange:m,onInputChange:f,menuPlacement:g="auto"}=e,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["label","creatable","getOptions","loadingIndicator","components","classes","styles","onChange","onInputChange","menuPlacement"]),E=n?c:l?d.Z:u.Z,[O,w]=(0,r.useState)(""),S=k((0,i.omit)(["classes"],e)),I="custom-select-"+T++,P=C({},y,s),N=(0,v.ze)(S,p),D=C({indicatorSeparator:e=>C({},e,{margin:"10px 0"}),loadingIndicator:e=>C({},e,{display:a?e.display:"none"}),loadingMessage:e=>C({},e,{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'})},h),R=t?{inputId:I,TextFieldProps:C({label:t,InputLabelProps:{htmlFor:I,shrink:!(!e.value||!e.value.length)||void 0,className:N.label}},e.TextFieldProps)}:{};return o().createElement(E,x({isMulti:!0,inputId:I,inputValue:O,onChange:function(e,t){m(e,t),"create-option"===t.action&&(w(""),f("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;f(e,{action:n}),"set-value"!==n&&w(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:N,components:P,styles:D,menuPlacement:g,loadOptions:l},R,b))}w.defaultProps={creatable:!1,cacheOptions:!0,components:{},classes:{},placeholder:"",loadingIndicator:!1,onInputChange:()=>{},onChange:()=>{}},w.propTypes={creatable:a().bool,cacheOptions:a().bool,defaultOptions:a().bool,value:a().arrayOf(a().shape({label:a().string.isRequired,value:a().any})),options:a().arrayOf(a().shape({label:a().string.isRequired,value:a().any})),onChange:a().func,onInputChange:a().func,placeholder:a().string,label:a().string,loadingIndicator:a().bool,components:a().shape({ClearIndicator:a().func,Control:a().func,DropdownIndicator:a().func,DownChevron:a().func,CrossIcon:a().func,Group:a().func,GroupHeading:a().func,IndicatorsContainer:a().func,IndicatorSeparator:a().func,Input:a().func,LoadingIndicator:a().func,Menu:a().func,MenuList:a().func,MenuPortal:a().func,LoadingMessage:a().func,NoOptionsMessage:a().func,MultiValue:a().func,MultiValueContainer:a().func,MultiValueLabel:a().func,MultiValueRemove:a().func,Option:a().func,Placeholder:a().func,SelectContainer:a().func,SingleValue:a().func,ValueContainer:a().func}),classes:a().shape({control:a().string,valueContainer:a().string,multiValue:a().string,noOptionsMessage:a().string,singleValue:a().string,placeholder:a().string,menu:a().string,clearIndicator:a().string,dropdownIndicator:a().string,option:a().string,"option--selected":a().string,label:a().string}),styles:a().shape({clearIndicator:a().func,container:a().func,control:a().func,dropdownIndicator:a().func,group:a().func,groupHeading:a().func,indicatorsContainer:a().func,indicatorSeparator:a().func,input:a().func,loadingIndicator:a().func,loadingMessage:a().func,menu:a().func,menuList:a().func,menuPortal:a().func,multiValue:a().func,multiValueLabel:a().func,multiValueRemove:a().func,noOptionsMessage:a().func,option:a().func,placeholder:a().func,singleValue:a().func,valueContainer:a().func}),TextFieldProps:a().object,getOptions:a().func,menuPlacement:a().string,menuPortalTarget:a().object,getOptionValue:a().func,isSearchable:a().bool};const S=w},39827:(e,t,n)=>{n.d(t,{G:()=>h});var r=n(24328),o=n.n(r),l=n(71153),a=n.n(l),i=n(8818),s=n(79692),c=n(41128);const u=(0,s.Z)((e=>({container:{display:"flex",flexDirection:"column",flexShrink:0,width:"64px",paddingTop:"8px",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)"},active:{backgroundColor:(0,c.U1)(e.palette.primary.main,.12),color:e.palette.primary.main,"&:after":{content:'""',position:"absolute",height:"42px",width:"3px",backgroundColor:e.palette.primary.main,left:"-8px",borderRadius:"0 6px 6px 0"}},buttonWrapper:{position:"relative",width:"48px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",margin:"2px 8px",color:e.palette.text.secondary}})));function d(){return d=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},d.apply(this,arguments)}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const h=e=>{let{buttonsProps:t,activeIndexId:n,className:r,onButtonClick:l,classes:s={}}=e;const c=u(),{active:h,buttonWrapper:m}=s,f=p(s,["active","buttonWrapper"]);return o().createElement("div",{className:a()(c.container,r)},t.map((e=>{let{id:t}=e,r=p(e,["id"]);return o().createElement(i.k,d({},r,{classes:f,size:"S",key:t,className:a()({[a()(c.active,h)]:n===t},c.buttonWrapper,m),onClick:()=>l(t),"data-reltio-id":`reltio-profile-right-side-button-${t}`}))})))}},51229:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(24328),o=n.n(r);const l=()=>o().createElement("div",{style:{flex:1}})},85451:(e,t,n)=>{n.d(t,{Z:()=>x});var r=n(24328),o=n.n(r),l=n(52730),a=n(87918),i=n.n(a),s=n(17440),c=n(71153),u=n.n(c),d=n(94079),p=n(92575),h=n(96808),m=n(99493),f=n(87638),g=n(79692);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){y(e,t,n[t])}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const E={input:e=>b({},e,{fontSize:"14px"}),loadingMessage:e=>b({},e,{fontSize:"14px"}),menuPortal:e=>b({},e,{zIndex:1300})},v=(0,g.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"}}),x=e=>{let{selectedUsers:t,onChange:n,className:a,disableUnderline:c}=e;const g=v(),b=e=>({value:e,label:e}),y=e=>e.map(b),x=(0,l.useSelector)(f.ZP.selectors.getTenant),C=(0,l.useSelector)(f.ZP.selectors.getServicesPath),O=(0,r.useRef)();return o().createElement("div",{className:u()(g.root,a)},o().createElement(d.Typography,{className:g.title,variant:"subtitle1"},i().text("User")),o().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,m.kz_)({tenant:x,servicesPath:C})),O.current.then((0,s.pipe)((0,s.prop)("array"),(0,s.pluck)("username"),(e=>t=>e?t.filter((t=>m.P6Y.strings.search(t,e))):t)(e),y))),TextFieldProps:{InputProps:{disableUnderline:c},className:g.dropDownInput},components:{DropdownIndicator:h.Z},styles:E,classes:g,menuPortalTarget:document.body}))}},31537:(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={}))},34606:(e,t,n)=>{n.d(t,{te:()=>c,VV:()=>u,rx:()=>d,_V:()=>p,Xr:()=>h});var r=n(17440),o=n(87918),l=n.n(o),a=n(31537);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=(0,r.path)(["data","type"]),c=e=>{const{items:t,label:n}=e,[r]=t||[];return s(r)||n},u=(0,r.pipe)(c,(e=>(0,r.pipe)(r.values,(0,r.includes)(e))(a.I))),d=e=>(0,r.pipe)((0,r.propOr)([],"items"),(0,r.groupBy)(s),r.values,(0,r.ifElse)((e=>{let{length:t}=e;return t>1}),(0,r.map)((t=>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){i(e,t,n[t])}))}return e}({},e,{items:t,itemsTotal:t.length}))),(()=>[e])))(e),p=e=>(0,r.isNil)(e)?"":"string"==typeof e?e:Array.isArray(e)?e.map(p).join(", "):(0,r.is)(Object,e)?p("value"in e?e.value:Object.values(e)):e.toString(),h=e=>({[a.I.COMMENT_ADDED]:l().text("Comment added"),[a.I.COMMENT_DELETED]:l().text("Comment deleted"),[a.I.COMMENT_UPDATED]:l().text("Comment updated"),[a.I.ENTITIES_MERGED]:l().text("Profile merged"),[a.I.ENTITIES_MERGED_MANUALLY]:l().text("Profile merged manually"),[a.I.ENTITIES_MERGED_ON_THE_FLY]:l().text("Profile merged on the fly"),[a.I.ENTITIES_SPLITTED]:l().text("Profile un-merged"),[a.I.ENTITY_CHANGED]:l().text("Profile updated"),[a.I.ENTITY_CREATED]:l().text("Profile created"),[a.I.ENTITY_LOST_MERGE]:l().text("Profile lost merge"),[a.I.ENTITY_REMOVED]:l().text("Profile removed"),[a.I.GROUP_CHANGED]:l().text("Group updated"),[a.I.GROUP_CREATED]:l().text("Group created"),[a.I.GROUP_REMOVED]:l().text("Group removed"),[a.I.MODEL_UPDATED]:l().text("Model was updated"),[a.I.NOT_MATCHES_RESET]:l().text("Not matches reset"),[a.I.NOT_MATCHES_SET]:l().text("Not matches set"),[a.I.PERIODIC_TASK_SCHEDULED]:l().text("Periodic task was scheduled"),[a.I.POTENTIAL_MATCHES_FOUND]:l().text("Potential matches found"),[a.I.POTENTIAL_MATCHES_REMOVED]:l().text("Potential matches removed"),[a.I.RELATIONSHIP_CHANGED]:l().text("Relationship updated"),[a.I.RELATIONSHIP_CREATED]:l().text("Relationship created"),[a.I.RELATIONSHIP_REMOVED]:l().text("Relationship removed"),[a.I.USER_LOGIN]:l().text("Logged in"),[a.I.USER_LOGOUT]:l().text("Logged out"),[a.I.USER_PROFILE_VIEW]:l().text("Profile viewed"),[a.I.USER_SEARCH]:l().text("Searched"),[a.I.ANALYTICS_ATTRIBUTES_CHANGED]:l().text("Analytics attribute changed"),[a.I.SFDC_CONNECTOR_SYNCHRONIZATION_ISSUE]:l().text("SFDC connector synchronization issue")}[e]||"")},51843:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),o=n.n(r),l=n(95038),a=n.n(l),i=n(87918),s=n.n(i),c=n(17440),u=n(99493),d=n(94079),p=n(96808),h=n(37699);const m=(0,n(79692).Z)({root:{flex:1},dropdownIndicator:{transition:"transform .15s ease"},inputRoot:{fontSize:"14px",height:46},input:{padding:"0 12px 0"},dateOptionLabel:{minWidth:"100px"},paper:{minWidth:"112px"}}),f=a().localeData().longDateFormat("L"),g=e=>{let{values:t,onChange:n,onFocus:l}=e;const a=f,i=(0,r.useRef)(null),[g,b]=(0,r.useState)(!1),y=m(),E=(0,r.useCallback)((()=>{b((e=>!e)),l()}),[l]),v=()=>{b(!1)};return o().createElement("div",{className:y.root},o().createElement(d.TextField,{fullWidth:!0,value:t.map((e=>((e,t)=>(0,c.isNil)(e)?`${t}`:`${(0,u.mB6)({dataTypeDefinition:{type:u.oS0.TYPE_ACTIVENESS_DATE}},e)}`)(e,a))).join(" — "),onClick:E,variant:"filled",ref:i,InputProps:{endAdornment:o().createElement(p.Z,{selectProps:{classes:y,menuIsOpen:g},innerProps:{}}),disableUnderline:(0,c.isNil)(t),readOnly:!0,classes:{root:y.inputRoot,input:y.input}},InputLabelProps:{shrink:!1},placeholder:s().text(`${a} — ${a}`)}),o().createElement(d.Menu,{variant:"menu",open:g,autoFocus:!1,classes:{paper:y.paper},anchorEl:i.current,onClose:v,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:g,style:{width:"100%"}}},o().createElement(h.Z,{values:t,onCancel:v,onApply:e=>{n(e),b(!1)},type:u.oS0.TYPE_ACTIVENESS_DATE})))}},67885:(e,t,n)=>{let r,o;n.d(t,{K:()=>r,o:()=>o}),function(e){e.WITHIN="within",e.AGO="ago",e.BETWEEN="between"}(r||(r={})),function(e){e.INIT="init",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(o||(o={}))},68108:(e,t,n)=>{n.r(t),n.d(t,{default:()=>lt});var r=n(24328),o=n.n(r),l=n(52730),a=n(8598),i=n(36138),s=n(44443),c=n(22664),u=n(39450),d=n(585),p=n(87918),h=n.n(p),m=n(87638),f=n(99493),g=n(71820),b=n(57730),y=n(20562),E=n(2804),v=n(85965),x=n(85890),C=n(91515),O=n(54362),k=n(6674),T=n(63149),w=n(48017),S=n(96955),I=n(57304),P=n(3409),N=n(93873),D=n(66095),R=n(20982),M=n(39827),L=n(94079),_=n(80147),A=n(87685),U=n(22385),j=n(79692);const Z=(0,j.Z)({header:{display:"flex",flexDirection:"row",alignItems:"center",padding:"16px 12px",borderBottom:"1px solid rgba(0, 0, 0, 0.12);"},closeButton:{marginRight:"12px"}}),H=e=>{let{title:t,className:n,onClose:r,children:l}=e;const a=Z();return o().createElement("div",{className:n},o().createElement("div",{className:a.header},o().createElement(U.Z,{className:a.closeButton,icon:A.default,onClick:r}),t),l)};var F=n(99144),z=n(17440),B=n(31276),G=n(83401);let V;!function(e){e.Crosswalk="crosswalks",e.Source="source",e.Contributor="contributor"}(V||(V={}));const W=e=>(0,z.pipe)((0,z.map)((0,z.prop)("value")),z.sum)(e);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){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 q=e=>{let{data:t,width:n,height:o}=e;return(0,r.useMemo)((()=>{if(!n||!o)return{nodes:[],links:[]};const e=function(){let e=24,t=15,n=10,r=8,o=[1,1];function l(l){let{nodes:i,links:s}=l;const c={nodes:i,links:s};return function(e){let{nodes:t,links:n}=e;t.forEach((e=>{e.sourceLinks=[],e.targetLinks=[]})),n.forEach((e=>{e.source.sourceLinks.push(e),e.target.targetLinks.push(e)}))}(c),function(e){let{nodes:t}=e;t.forEach((e=>{e.value=Math.max(W(e.sourceLinks),W(e.targetLinks))}))}(c),function(t){let{nodes:n}=t;if(!n.length)return;let r,l=[n[0]],a=0;for(;l.length;)r=[],l.forEach((t=>{t.x=a,t.dx=e,t.targetLinks.forEach((e=>{r.indexOf(e.source)<0&&r.push(e.source)}))})),l=r,++a;if(n.forEach((e=>{e.x=a-1-e.x})),a>2){const t=(o[0]-2*e-22)/(a-2);n.forEach((n=>{n.sourceLinks&&0!=n.sourceLinks.length?n.x*=t:n.x=o[0]-e}))}else n[0].x=o[0]-e,n[1].x=n[0].x-22-e}(c),function(e){let{nodes:l,links:a}=e;const i=(0,z.pipe)((0,z.groupBy)((0,z.prop)("x")),z.toPairs,(0,z.sort)(((e,t)=>e[0]-t[0])),(0,z.map)((0,z.nth)(1)))(l);(function(){let e=(0,z.pipe)((0,z.map)((e=>(o[1]-(e.length-1)*r)/W(e))),(0,z.reduce)(Math.min,1/0))(i);const s=(0,z.pipe)((0,z.map)((e=>{var t;return e.value/((null===(t=e.targetLinks)||void 0===t?void 0:t.length)||1)})),(0,z.reduce)(Math.min,1/0))(l);e=Math.max(Math.min(e,t/s),n/s),i.forEach((t=>{t.forEach(((t,n)=>{t.y=n,t.dy=t.value*e}))})),a.forEach((t=>{t.dy=t.value*e}))})(),i.forEach((e=>{let t,n,l,a=0;const i=e.length;for(e.sort(((e,t)=>e.y-t.y)),l=0;l<i;++l)t=e[l],n=a-t.y,n>0&&(t.y+=n),a=t.y+t.dy+r;if(n=a-r-o[1],n>0)for(a=t.y-=n,l=i-2;l>=0;--l)t=e[l],n=t.y+t.dy+r-a,n>0&&(t.y-=n),a=t.y}));const s=(0,z.pipe)((0,z.map)((e=>(e.length-1)*r+(0,z.sum)((0,z.map)((e=>e.dy),e)))),(0,z.reduce)(Math.max,0))(i),c=(o[1]-s)/2;i.forEach((e=>{const{y:t,dy:n}=(0,z.last)(e),r=o[1]-(t+n);e.forEach((e=>{e.y+=r,c>0&&(e.y-=c)}))}))}(c),a(c),function(e){let{nodes:t}=e;(0,z.pipe)((0,z.groupBy)((0,z.prop)("x")),z.toPairs,(0,z.sort)(((e,t)=>t[0]-e[0])),(0,z.map)((0,z.nth)(1)))(t).forEach((e=>{(e=e.concat().sort(((e,t)=>e.y-t.y))).forEach(((t,n)=>{var o;if(null!==(o=t.sourceLinks)&&void 0!==o&&o.length){var l,a,i;const{target:o,ty:s,dy:c}=(0,z.last)(t.sourceLinks);let u=o.y+s+c-t.dy;(null===(l=e[n-1])||void 0===l?void 0:l.x)==t.x&&u<(null===(a=e[n-1])||void 0===a?void 0:a.y)+(null===(i=e[n-1])||void 0===i?void 0:i.dy)+r&&(u=e[n-1].y+e[n-1].dy+r),t.y>u&&(t.y=u)}}))}))}(c),c}function a(e){let{nodes:t}=e;(0,z.pipe)((0,z.groupBy)((0,z.prop)("x")),z.toPairs,(0,z.sort)(((e,t)=>e[0]-t[0])),(0,z.map)((0,z.nth)(1)))(t).forEach((e=>{e.forEach((e=>{var t,n;if(null!==(t=e.targetLinks)&&void 0!==t&&t.length){const t=[],n=e.targetLinks.map((e=>e.crosswalk.uuid)),r=[];e.targetLinks.forEach((function(e){-1==this.indexOf(e.source)&&this.push(e.source)}),r);for(let o=0;o<r.length;o++)for(let l=0;l<r[o].sourceLinks.length;l++){const a=n.indexOf(r[o].sourceLinks[l].crosswalk.uuid);-1!=a&&t.push(e.targetLinks[a])}e.targetLinks=t}if(null!==(n=e.sourceLinks)&&void 0!==n&&n.length){var r;const t=[];if(null!==(r=e.targetLinks)&&void 0!==r&&r.length){const n=e.sourceLinks.map((e=>e.crosswalk.uuid));for(let r=0;r<e.targetLinks.length;r++){const o=n.indexOf(e.targetLinks[r].crosswalk.uuid);-1!=o&&t.push(e.sourceLinks[o])}}const n=t.map((e=>e.crosswalk.uuid)),o=e.sourceLinks.filter((function(e){return-1==this.indexOf(e.crosswalk.uuid)}),n);if(e.sourceLinks=o.concat(t),t.length>0){let t=0;for(let e=0;e<o.length;e++)t+=o[e].dy;e.sizeForNewSources=t}}}))})),t.forEach((e=>{let t=0,n=e.sizeForNewSources||0;delete e.sizeForNewSources,e.sourceLinks.forEach((e=>{e.sy=t,t+=e.dy})),e.targetLinks.forEach((e=>{e.ty=n,n+=e.dy}))}))}return l.nodeWidth=()=>e,l.setNodeWidth=t=>(e=+t,l),l.nodePadding=()=>r,l.setNodePadding=e=>(r=+e,l),l.smallestNodeMaxHeight=()=>t,l.setSmallestNodeMaxHeight=e=>(t=+e,l),l.smallestNodeMinHeight=()=>n,l.setSmallestNodeMinHeight=e=>(n=+e,l),l.size=()=>o,l.setSize=e=>(o=e,l),l.update=e=>(a(e),e),l.link=()=>{let t=.5;function n(n){const r=!n.target.sourceLinks||0==n.target.sourceLinks.length,o=n.source.x+n.source.dx,l=n.target.x,a=(d=+(d=o),p=+(p=l),e=>d*(1-e)+p*e),i=a(t),s=a(1-t),c=n.source.y+n.sy-.13,u=n.target.y+n.ty-.13;var d,p;const h=r?"":`L${l+e},${u} L${l+e},${u+n.dy+.26}`;return c===u?`M${o},${c} \n L${l},${u}${h} \n L${l},${u+n.dy+.26} \n L${o},${c+n.dy+.26} Z`:`M${o},${c}\n C${i},${c} ${s},${u} ${l},${u}${h} \n L${l},${u+n.dy+.26} \n C${s},${u+n.dy+.26} ${i},${c+n.dy+.26} \n ${o},${c+n.dy+.26} Z`}return n.curvature=function(e){return arguments.length?(t=+e,n):t},n},l}().setNodeWidth(14).setNodePadding(20).setSize([o-2,n-2]),r=e.nodeWidth(),l=e.link(),a=(e=>{const t=e.nodes.map((e=>$({},e))),n=n=>{const r=e.nodes.indexOf(n);return t[r]},r=e.links.map((e=>$({},e,{source:n(e.source),target:n(e.target)})));return{nodes:t,links:r}})(t),{nodes:i,links:s}=e(a);return{nodes:i,links:s,nodeWidth:r,path:l}}),[t,o,n])};var X=n(94111),K=n(12147),Q=n(98685);const J=(0,j.Z)({tooltipTitle:{fontWeight:500,fontSize:"16px",lineHeight:"24px",letterSpacing:"0.15px",marginBottom:"8px",userSelect:"none"},tooltipRow:{display:"flex",alignItems:"center",fontSize:"13px",lineHeight:"15px",fontWeight:"normal","&:not(:last-child)":{marginBottom:"4px"}},tooltipIcon:{fontSize:"18px",color:"rgba(0, 0, 0, 0.54)",marginRight:"8px"},node:{stroke:"#000000",strokeWidth:1,strokeOpacity:.38},rootNode:{transform:"rotate(90deg)",userSelect:"none",fontSize:"13px"}}),ee=e=>{let{user:t,time:n,children:r}=e;const l=J(),a=o().createElement("div",null,o().createElement("span",{className:l.tooltipTitle},h().text("Merge details")),o().createElement("div",{className:l.tooltipRow},o().createElement(K.Z,{className:l.tooltipIcon}),h().date(n,"L LTS")),o().createElement("div",{className:l.tooltipRow},o().createElement(Q.Z,{className:l.tooltipIcon}),t));return o().createElement(X.Z,{title:a,placement:"top"},r)},te=e=>{let{node:t,nodeWidth:n,highlightEnabled:l,isColored:a}=e;const i=J(),[s,c]=(0,r.useState)(0),u=(0,r.useRef)(null),{x:d,y:p,name:h,label:m,targetLinks:f,sourceLinks:g,entity:{crosswalks:b=[],merges:y}}=t,[E]=b,{isDimmed:v,highlightCrosswalk:x,removeHighlight:C}=(0,T.pu)(E),O=(0,T.nX)(E),k=null!=b&&b.length?g[b.length-1].sy+g[b.length-1].dy:0;return(0,r.useEffect)((()=>{var e;const n=t.dy,r=(null==u||null===(e=u.current)||void 0===e?void 0:e.clientWidth)||0;n<r&&c(n/2-r/2)}),[]),o().createElement("g",{transform:`translate(${d},${p})`},"ROOT"===h?o().createElement("text",{dy:-5,dx:s,ref:u,className:i.rootNode},m||""):o().createElement(o().Fragment,null,o().createElement("rect",{height:k,width:14,className:i.node,fill:a?O:"#F0F0F0",key:"node-main",opacity:l&&v?.19:1,onMouseEnter:()=>{l&&x()},onMouseLeave:()=>{l&&C()}}),!(null==f||!f.length)&&(()=>{const e=(0,z.pipe)((0,z.map)((0,z.prop)("source")),(0,z.groupBy)((0,z.prop)("time")))(f);return null==y?void 0:y.map(((t,r)=>{let{time:a,user:s}=t;const c=e[a];if(!c)return;const[u,d]=c.reduce(((e,t)=>{let{sourceLinks:n}=t;return[(0,z.min)((0,z.head)(n).ty,e[0]),(0,z.max)((0,z.last)(n).ty+(0,z.last)(n).dy,e[1])]}),[1/0,0]);return o().createElement(ee,{user:s,time:a,key:"node-"+r},o().createElement("rect",{transform:`translate(0,${u})`,height:d-u,width:n,className:i.node,fillOpacity:.54,fill:"#F0F0F0",opacity:l&&v?.38:1}))}))})()))},ne=e=>{let{link:t,path:n,highlightEnabled:r,isColored:l}=e;const{crosswalk:a}=t,i=(0,T.nX)(a),{isDimmed:s,highlightCrosswalk:c,removeHighlight:u}=(0,T.pu)(a);return o().createElement("path",{d:n,fill:l?i:"#F0F0F0",opacity:r&&s?.1:1,onMouseEnter:()=>{r&&c()},onMouseLeave:()=>{r&&u()}})},re=e=>{let{width:t,height:n,data:l,accentContributors:a}=e;const[i,s]=(0,r.useState)(!1),[c,u]=(0,r.useState)(0),[d,p]=(0,r.useState)(0),{links:h,nodes:m,nodeWidth:f,path:g}=q({data:l,width:t,height:n});(0,r.useEffect)((()=>{p(0),u(0)}),[t,n]);const b=(0,r.useMemo)((()=>m.map(((e,t)=>o().createElement(te,{highlightEnabled:a,isColored:a,node:e,nodeWidth:f,key:`SankeyNode-${t}`})))),[m,a,f,t,n]),y=(0,r.useMemo)((()=>h.map(((e,t)=>o().createElement(ne,{highlightEnabled:!a,isColored:!a,link:e,path:g(e),key:`SankeyLink-${t}`})))),[a,h,g]),E=e=>{const t=e.pageX,n=t-c;return u(t),n},v=()=>s(!1),x=i?"none":"auto",C=i?"move":"default";return o().createElement("svg",{width:t,height:n,cursor:C,onPointerDown:e=>{e.preventDefault(),s(!0),E(e)},onPointerMove:e=>{if(!i)return;const t=E(e);p(d+t)},onPointerUp:v,onPointerLeave:v},o().createElement("g",{transform:`translate(${d},${n}) rotate(-90)`,pointerEvents:x},o().createElement("g",null,y),o().createElement("g",null,b)))};function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const le=(0,z.curry)(((e,t)=>!e||e.some((0,f.aFF)(t)))),ae=(0,z.curry)(((e,t)=>(0,z.evolve)({crosswalks:(0,z.filter)(le(e)),merges:(0,z.map)((0,z.evolve)({losers:(0,z.map)(ae(e))}))},t))),ie=e=>{let t=1;const n=(0,z.pipe)((0,z.evolve)({crosswalks:(0,z.map)((e=>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){oe(e,t,n[t])}))}return e}({},e,{uuid:t++})))}),(0,z.evolve)({merges:(0,z.map)((0,z.evolve)({losers:(0,z.map)((e=>n(e)))}))}));return n(e)},se=e=>{const t=[],n=[],r=(e,o,l)=>{const{crosswalks:a=[],merges:i=[],uri:s="",label:c}=e;t.push({entity:e,name:s,time:l,label:c});const u=t.length-1,d=(0,z.pipe)((0,z.chain)((e=>{let{losers:t,time:n}=e;return(0,z.pipe)((0,z.filter)((e=>{var t,n;return(null===(t=e.crosswalks)||void 0===t?void 0:t.length)||(null===(n=e.merges)||void 0===n?void 0:n.length)})),(0,z.chain)((e=>r(e,u,n))))(t)})),(0,z.concat)(a))(i);return-1!=o&&d.forEach((e=>n.push({source:t[u],target:t[o],value:10,crosswalk:e}))),d};r(e,-1,Date.now());const o=(0,z.pipe)((0,z.chain)((e=>{let{source:t,target:n}=e;return[t,n]})),z.uniq)(n);return{nodes:t.filter((e=>o.includes(e))),links:n}},ce=(0,j.Z)((()=>({graph:{padding:"8px 12px",boxSizing:"border-box",height:"100%",width:"100%",maxHeight:"500px"}}))),ue=(0,r.memo)((e=>{let{crosswalkTree:t,entityLabel:n,visibleCrosswalks:r,accentContributors:l}=e;const a=ce(),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;return(0,z.pipe)(ae(n),ie,se)({uri:"ROOT",label:t,crosswalks:[],merges:[{time:Date.now(),losers:[e]}]})}(t,n,r);return o().createElement("div",{className:a.graph},o().createElement(s.Z,{refreshMode:"debounce",refreshRate:100,handleWidth:!0,handleHeight:!0},(e=>{let{width:t=0,height:n=200}=e;return o().createElement(re,{width:t,height:n,data:i,accentContributors:l})})))}));var de=n(90186),pe=n(77243);function he(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){me(e,t,n[t])}))}return e}function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fe=n(52017),ge=n(79769),be=n(71153),ye=n.n(be),Ee=n(72753),ve=n(65549);function xe(){return xe=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},xe.apply(this,arguments)}const Ce=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",xe({width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},n),o().createElement("defs",null,o().createElement("path",{d:"M17 13.138l4.5 4.5-4.5 4.5V18.5h-1.247l-3.488-3.479 1.413-1.414 2.901 2.893H17v-3.362zM17 1.5L21.5 6 17 10.5V7.138h-.421l-11.03 11H2v-2h2.723l11.03-11H17V1.5zm-11.45 4l3.294 3.286-1.414 1.413L4.723 7.5H2v-2h3.55z",id:"svg457070356a"})),o().createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o().createElement("mask",{id:"svg457070356b",fill:"#fff"},o().createElement("use",{xlinkHref:"#svg457070356a"})),o().createElement("path",{fillOpacity:".54",fill:"#000",mask:"url(#svg457070356b)",d:"M0 0h24v24H0z"})))};var Oe=n(22983),ke=n(8818),Te=n(51229);const we=(0,j.Z)((e=>({root:{display:"flex",alignItems:"center",paddingRight:"8px","& button + button":{marginLeft:"4px"}},focusedIcon:e=>{let{isFocused:t}=e;return{width:28,height:28,color:t?"#000":"rgba(0, 0, 0, 0.54)",borderRadius:0}},title:{color:e.palette.text.secondary,paddingLeft:"6px",paddingRight:"2px"},uri:{lineHeight:"15px",color:e.palette.text.primary}}))),Se=e=>{let{contributorUri:t,focusable:n,disableAdd:r,disableUnmerge:l,onAdd:a,onUnmerge:i,onToggleFocus:s,onUnsubscribe:c,isFocused:u}=e;const d=we({isFocused:u});return o().createElement("div",{className:d.root},o().createElement(ke.k,{size:"XXS",onClick:()=>s(),className:d.focusedIcon,icon:n&&Ee.Z,disabled:!n,tooltipTitle:n&&h().text("Focus")}),o().createElement(L.Typography,{variant:"body2",className:d.uri},o().createElement("span",{className:d.title},h().text("Entity ID:")),(0,f.nIW)(t)),o().createElement(Te.Z,null),a&&o().createElement(ke.k,{size:"XS",icon:ve.Z,disabled:r,tooltipTitle:h().text("Add crosswalk"),showForDisabled:!0,onClick:()=>a()}),o().createElement(ke.k,{size:"XS",icon:Ce,disabled:l,tooltipTitle:h().text("Unmerge"),showForDisabled:!0,onClick:()=>i()}),c&&o().createElement(ke.k,{size:"XS",icon:Oe.Z,disabled:l,tooltipTitle:h().text("Unsubscribe"),showForDisabled:!0,onClick:()=>c()}))},Ie=(0,j.Z)((()=>({root:e=>{let{contributorColor:t}=e;return{fontSize:"13px",position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",border:"1px solid rgba(0, 0, 0, 0.05)",paddingLeft:"8px","&:before":{content:'" "',borderLeft:`8px solid ${t}`,position:"absolute",top:-1,left:0,bottom:-1},"& > div + div":{marginTop:"1px"}}},editor:{padding:"0px 30px 0px 25px"}}))),Pe=e=>{let{className:t,contributorUri:n,accentContributor:a,crosswalksBySources:i,expandedSources:s,disableAddCrosswalk:c,disableEditCrosswalk:u,disableDeleteCrosswalk:d,disableUnmergeContributor:p,onUnmerge:h,onEdit:g,onDelete:b,onAdd:y,onToggleSourceExpanded:E,onUnsubscribeContributor:v}=e;const x=a?(0,f.GtP)(n):"rgba(0, 0, 0, 0.38)",C=Ie({contributorColor:x}),O=(0,l.useSelector)(m.ZP.selectors.getDataTenants),k=(0,r.useRef)(null),[w]=(0,T.RT)();(0,r.useEffect)((()=>{var e;a&&w&&((0,z.pipe)((0,z.find)((e=>{let{source:t}=e;return t===w.type})),(0,z.propOr)({},"crosswalksByTypes"),z.values,z.flatten)(i).some((e=>(0,f.aFF)(w,e)&&e!==w))&&(null==k||null===(e=k.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})))}),[w]);const[S,I]=(0,r.useState)(!1),P=(0,z.pipe)((0,z.pluck)("crosswalksByTypes"),(0,z.find)((e=>e[pe.Y.Simple].length||e[pe.Y.Empty].length)),(0,z.props)([pe.Y.Simple,pe.Y.Empty]),z.flatten,z.head)(i),{toggleCrosswalkFocus:N,isFocused:D}=(0,T.BF)(P),R=(0,z.pipe)((0,z.pluck)("crosswalksByTypes"),(0,z.chain)(z.values),z.flatten)(i),M=(0,f.KMQ)(R,O);return o().createElement("div",{ref:k,className:ye()(C.root,t)},o().createElement(Se,{contributorUri:n,focusable:a&&!!P,disableAdd:c,disableUnmerge:p,isFocused:a&&D,onToggleFocus:N,onAdd:P&&(()=>I(!0)),onUnmerge:h,onUnsubscribe:M&&(()=>v({contributorUri:n,dataTenant:M,crosswalk:P}))}),i.map((e=>{let{source:t,crosswalksByTypes:n}=e;return o().createElement(fe.Z,{key:t,source:t,crosswalksByTypes:n,showCrosswalkColors:!a,crosswalksFocusEnabled:!a,expanded:null==s?void 0:s.includes(t),disableEditCrosswalk:u,disableDeleteCrosswalk:d,onEdit:g,onDelete:b,onToggleExpanded:()=>E(t)})})),S&&o().createElement(ge.Z,{className:C.editor,onAdd:e=>y({contributorCrosswalk:P,crosswalk:e}),onClose:()=>I(!1)}))},Ne=(0,j.Z)((()=>({table:{overflowY:"auto",overflowX:"hidden",paddingLeft:"16px",paddingRight:"6px"},tableRow:{"& + &":{marginTop:"10px"},margin:"auto",maxWidth:"448px"}})));function De(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){Re(e,t,n[t])}))}return e}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Me=(0,r.memo)((e=>{let{accentContributors:t,entity:n,contributors:a,selectedAttributeTypes:i,onChangeVisibleCrosswalks:s,readOnly:c,onAddCrosswalk:u=B.ZT,onEditCrosswalk:d=B.ZT,onDeleteCrosswalk:p=B.ZT,onUnmergeContributor:h=B.ZT,onUnsubscribeContributor:g=B.ZT}=e;const b=(0,l.useSelector)(m.ZP.selectors.getMetadata),y=(0,f.nt9)(b,n.type),E=Ne(),v=(0,r.useMemo)((()=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=e.crosswalks,o=(0,f.HQx)(e);return t.filter((e=>!(0,f.O27)(e.crosswalks))).map((t=>{let{uri:l,crosswalks:a}=t;return{contributorUri:l,crosswalksBySources:(0,z.pipe)((0,z.map)((e=>{if("relation"===e.ownerType){const t=o.find((0,f.aFF)(e));return t&&he({ownerType:"relation"},t)}{const t=r.find((0,f.aFF)(e));return t&&he({ownerType:"entity"},t)}})),(0,z.filter)((e=>!!e)),(0,de.o)(e.type,n))(a)}})).filter((e=>{let{crosswalksBySources:t}=e;return t.length>0}))}(n,a,i)),[n,a,i]),[x,C]=(0,r.useState)({}),O=(0,r.useMemo)((()=>((e,t)=>e.reduce(((e,n)=>{let{contributorUri:r,crosswalksBySources:o}=n;const l=(0,z.chain)((e=>{var n;let{source:o,crosswalksByTypes:l}=e;const a=null===(n=t[r])||void 0===n?void 0:n.includes(o);return l[pe.Y.Simple].concat(l[pe.Y.Empty]).concat(a?l[pe.Y.Dependent]:[])}),o);return e.concat(l)}),[]))(v,x)),[v,x]);(0,r.useEffect)((()=>{s(O)}),[O]);const k=(0,r.useCallback)((e=>{p({entityUri:null==n?void 0:n.uri,crosswalkId:e})}),[null==n?void 0:n.uri,p]),T=(0,r.useCallback)((e=>{d(De({},e,{entityUri:null==n?void 0:n.uri}))}),[null==n?void 0:n.uri,d]);return o().createElement("div",{className:E.table},v.map((e=>{let{contributorUri:r,crosswalksBySources:l}=e;return o().createElement(Pe,{key:r,className:E.tableRow,contributorUri:r,accentContributor:t,crosswalksBySources:l,disableAddCrosswalk:c||!(0,f.mkC)(y),disableEditCrosswalk:c||!(0,f.Zm0)(y),disableDeleteCrosswalk:c||!(0,f.a14)(y),disableUnmergeContributor:c||!(0,f.uGe)(f.BDP.UNMERGE,y),onAdd:e=>u(De({},e,{entity:n})),onDelete:k,onEdit:T,onUnmerge:()=>h(r),onUnsubscribeContributor:g,expandedSources:x[r],onToggleSourceExpanded:e=>{C((0,z.pipe)((0,z.unless)((0,z.has)(r),(0,z.assoc)(r,[])),(0,z.evolve)({[r]:(0,z.ifElse)((0,z.includes)(e),(0,z.without)([e]),(0,z.append)(e))})))}})})))}));var Le=n(81556);const _e=(0,j.Z)((e=>({container:{display:"flex",flexDirection:"column","& + &":{marginLeft:"16px"}},title:{fontSize:"13px",lineHeight:"15px",color:"#666666",marginBottom:"7px"},hintIcon:{width:"16px",height:"16px",verticalAlign:"middle"},graph:{width:"400px",height:"300px",borderRadius:"8px",background:"rgba(0, 0, 0, 0.03)",border:"1px solid rgba(0, 0, 0, 0.03)",position:"relative"},checkedIcon:{position:"absolute",height:"20px",width:"20px",right:"10px",top:"10px",color:e.palette.primary.main},selectedTree:{border:`1px solid ${e.palette.primary.main}`,background:"rgba(0, 114, 206, 0.05)"}}))),Ae=e=>{let{coloredCrosswalks:t,crosswalkTree:n,selected:l,title:a,onSelect:i=B.ZT}=e;const s=_e(),c=(0,r.useCallback)((e=>t.includes(e.uri)?(0,f.CJp)((0,f.uKF)(e)):"#CACCD1"),[t]);return o().createElement(T.hR,{getCrosswalkColor:c},o().createElement("div",{className:s.container,onClick:i},o().createElement("span",{className:s.title},a," ",o().createElement(F.Z,{className:s.hintIcon})),o().createElement("div",{className:ye()(s.graph,{[`${s.selectedTree}`]:l})},l&&o().createElement(Le.Z,{className:s.checkedIcon}),o().createElement(ue,{crosswalkTree:n}))))},Ue=(0,j.Z)((e=>({dialogContainer:{maxWidth:"unset"},dialogTitle:{padding:"13px 16px 0 16px",fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px"},dialogContent:{display:"flex",flexDirection:"column",padding:"13px 16px 0 16px"},trees:{display:"flex"},uri:{fontSize:"13px",lineHeight:"15px",color:e.palette.text.primary,marginBottom:"15px"},title:{fontSize:"13px",lineHeight:"15px",color:e.palette.text.secondary,paddingRight:"2px"}}))),je=e=>{let{canUnmerge:t,contributor:n,crosswalkTree:l,onClose:a,onUnmergeContributor:i}=e;const s=Ue(),[c,u]=(0,r.useState)(f.MBD.Unmerge),d=(0,r.useCallback)((e=>(0,f.keo)(n,e).map((e=>{let{uri:t}=e;return t}))),[n]);return o().createElement(L.Dialog,{open:!0,onClose:a,classes:{paper:s.dialogContainer}},o().createElement(L.DialogTitle,{classes:{root:s.dialogTitle}},h().text("Unmerge")),o().createElement(L.DialogContent,{classes:{root:s.dialogContent}},o().createElement(L.Typography,{variant:"body2",className:s.uri},o().createElement("span",{className:s.title},h().text("Entity URI:")),(0,f.nIW)(n.uri).toUpperCase()),o().createElement("div",{className:s.trees},o().createElement(Ae,{onSelect:()=>u(f.MBD.Unmerge),selected:c===f.MBD.Unmerge,title:h().text("Unmerge"),crosswalkTree:l,coloredCrosswalks:d(!0)}),n.merges&&n.uri!==l.uri&&o().createElement(Ae,{onSelect:()=>u(f.MBD.TreeUnmerge),selected:c===f.MBD.TreeUnmerge,title:h().text("Tree unmerge"),crosswalkTree:l,coloredCrosswalks:d(!1)}))),o().createElement(L.DialogActions,null,o().createElement(L.Button,{onClick:a},h().text("Cancel")),o().createElement(L.Button,{disabled:!t,onClick:()=>{i(c),a()},color:"primary"},h().text("Unmerge"))))},Ze=(0,j.Z)((e=>({dialogContainer:{maxWidth:"unset"},dialogTitle:{padding:"13px 16px 0 16px",fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px"},dialogContent:{display:"flex",flexDirection:"column",padding:"13px 16px 0 16px"},uri:{fontSize:"13px",lineHeight:"15px",color:e.palette.text.primary,marginBottom:"15px"},title:{fontSize:"13px",lineHeight:"15px",color:e.palette.text.secondary,paddingRight:"2px"}}))),He=e=>{let{canUnsubscribe:t,contributor:n,crosswalkTree:l,onClose:a,onUnsubscribeContributor:i}=e;const s=Ze(),c=(0,r.useMemo)((()=>(0,f.keo)(n,!0).map((e=>{let{uri:t}=e;return t}))),[n]);return o().createElement(L.Dialog,{open:!0,onClose:a,classes:{paper:s.dialogContainer}},o().createElement(L.DialogTitle,{classes:{root:s.dialogTitle}},h().text("Unsubscribe")),o().createElement(L.DialogContent,{classes:{root:s.dialogContent}},o().createElement(L.Typography,{variant:"body2",className:s.uri},o().createElement("span",{className:s.title},h().text("Entity URI:")),(0,f.nIW)(n.uri).toUpperCase()),o().createElement(Ae,{selected:!0,title:h().text("Unsubscribe"),crosswalkTree:l,coloredCrosswalks:c})),o().createElement(L.DialogActions,null,o().createElement(L.Button,{onClick:a},h().text("Cancel")),o().createElement(L.Button,{disabled:!t,onClick:()=>{i(),a()},color:"primary"},h().text("Unsubscribe"))))},Fe=(0,j.Z)((e=>({root:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%"},modeSwitcher:{backgroundColor:e.palette.background.paper,marginTop:"8px"},infoIcon:{fontSize:"18px",marginRight:"8px"},hint:{color:e.palette.text.secondary,display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"flex-start",margin:"5px 12px 10px 12px"},hintText:{fontSize:"12px",lineHeight:"16px"},crosswalksList:{height:"100%",width:"calc(100% - 24px)",margin:"8px 12px",background:e.palette.divider,opacity:.2},pane:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",overflow:"hidden"},resizablePanesWrapper:{flexGrow:1,width:"100%"}})));function ze(){return ze=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},ze.apply(this,arguments)}const Be=(0,r.memo)((e=>{let{activeMode:t,contributors:n,crosswalkTree:l,entity:a,onChangeMode:i,onUnmergeContributor:s=B.ZT,onUnsubscribeContributor:c=B.ZT}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["activeMode","contributors","crosswalkTree","entity","onChangeMode","onUnmergeContributor","onUnsubscribeContributor"]);const d=Fe(),[p,m]=(0,r.useState)("50%"),g=(0,r.useCallback)((e=>{let{percentageSize:t}=e;return m(t)}),[]),[b,y]=(0,r.useState)(),[E,v]=(0,r.useState)(),x=(0,r.useMemo)((()=>(0,f.Qbq)(l)>1),[l]),C=(0,r.useMemo)((()=>[{id:V.Crosswalk,title:h().text("Crosswalk")},{id:V.Source,title:h().text("Source")},{id:V.Contributor,title:h().text("Contributor")}]),[]),[O,k]=(0,r.useState)(),T=t===V.Contributor;return o().createElement("div",{className:d.root},b&&o().createElement(je,{canUnmerge:x,onClose:()=>y(null),onUnmergeContributor:e=>{s({entityUri:a.uri,contributorUri:b,operationType:e})},crosswalkTree:l,contributor:n.find((e=>{let{uri:t}=e;return t===b}))}),E&&o().createElement(He,{canUnsubscribe:x,onClose:()=>v(null),onUnsubscribeContributor:()=>c({dataTenant:E.dataTenant,crosswalk:E.crosswalk}),crosswalkTree:l,contributor:n.find((e=>{let{uri:t}=e;return t===E.contributorUri}))}),o().createElement(G.Z,{modes:C,modeId:t,className:d.modeSwitcher,onChange:i}),o().createElement(S.Z,{className:d.resizablePanesWrapper,orientation:"horizontal",size:p,minSize:170,maxSize:-170,allowResize:!0,onChange:g},o().createElement("div",{className:d.pane},l&&!(0,z.isEmpty)(O)&&o().createElement(ue,{entityLabel:(0,f.idV)(null==a?void 0:a.label),crosswalkTree:l,visibleCrosswalks:O,accentContributors:T})),o().createElement("div",{className:d.pane},o().createElement("div",{className:d.hint},o().createElement(F.Z,{className:d.infoIcon}),o().createElement("span",{className:d.hintText},h().text("You can drag a crosswalk to add values to attributes swimlanes"))),a&&o().createElement(Me,ze({onUnmergeContributor:y,onUnsubscribeContributor:v,accentContributors:T,contributors:n,entity:a,onChangeVisibleCrosswalks:k},u)))))}));var Ge=n(67218);function Ve(){return Ve=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},Ve.apply(this,arguments)}const We=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",Ve({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o().createElement("mask",{id:"svg4041339336a",masktype:"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"3",width:"19",height:"17"},o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S4.83 6.5 4 6.5 2.5 5.83 2.5 5zM21 20H8v-2h13v2zM8 10h13V8H8v2zm0-4V4h13v2H8zm0 10h13v-2H8v2zm-2.5.5v-3h-3v3h3z",fill:"#fff"})),o().createElement("g",{mask:"url(#svg4041339336a)"},o().createElement("path",{fillOpacity:".54",fill:"#000",d:"M0 0h24v24H0z"})))},$e=e=>{console.error(e),d.Z.addError({title:h().text("Error"),message:(0,f.xU7)(e,h().text("Something went wrong"))})};var Ye=n(39417),qe=n(58651),Xe=n(13896);function Ke(){return Ke=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},Ke.apply(this,arguments)}const Qe=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",Ke({width:"90",height:"90",viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o().createElement("circle",{cx:"45",cy:"45",r:"45",fill:"#0072CE",fillOpacity:".1"}),o().createElement("mask",{id:"svg985456408a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"90",height:"90"},o().createElement("circle",{cx:"45",cy:"45",r:"45",fill:"#fff"})),o().createElement("g",{mask:"url(#svg985456408a)"},o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-5.625 3.164h90V90h-90V3.164z",fill:"url(#paint0_linear)"}),o().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M66.01 19.992l20.615 20.615v52.337H32.83L18.281 79.131V19.99H66.01z",fill:"url(#paint1_linear)"}),o().createElement("path",{opacity:".06",fillRule:"evenodd",clipRule:"evenodd",d:"M16.523 20.39H87.54A2.46 2.46 0 0190 22.853v55.195a2.46 2.46 0 01-2.46 2.46H16.522a2.46 2.46 0 01-2.46-2.46V22.852a2.46 2.46 0 012.46-2.461z",fill:"#000"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.578 19.688h70.664c.971 0 1.758.787 1.758 1.757v55.196c0 .97-.787 1.757-1.758 1.757H17.578c-.97 0-1.758-.787-1.758-1.757V21.445c0-.97.787-1.758 1.758-1.758z",fill:"#fff"}),o().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M37.046 25.536c0-.583.472-1.055 1.055-1.055h14.633a1.055 1.055 0 110 2.11H38.101a1.055 1.055 0 01-1.055-1.055z",fill:"#B6C7DB"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.914 29.754c0-.582.472-1.054 1.055-1.054H60.54a1.055 1.055 0 110 2.11H37.969a1.055 1.055 0 01-1.055-1.056z",fill:"#979797"}),o().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M37.046 57.305c0-.583.472-1.055 1.055-1.055h14.633a1.055 1.055 0 110 2.11H38.101a1.055 1.055 0 01-1.055-1.055z",fill:"#B6C7DB"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.914 61.523c0-.582.472-1.054 1.055-1.054H60.54a1.055 1.055 0 110 2.11H37.969a1.055 1.055 0 01-1.055-1.056z",fill:"#979797"}),o().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M37.046 67.852c0-.583.472-1.055 1.055-1.055h28.696a1.055 1.055 0 110 2.11H38.1a1.055 1.055 0 01-1.055-1.055z",fill:"#B6C7DB"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.914 72.07c0-.582.472-1.054 1.055-1.054h26.087a1.055 1.055 0 110 2.109H37.97a1.055 1.055 0 01-1.055-1.055z",fill:"#979797"}),o().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M48.648 36.21c0-.582.472-1.054 1.054-1.054h28.696a1.055 1.055 0 110 2.11H49.702a1.055 1.055 0 01-1.054-1.055z",fill:"#B6C7DB"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M48.516 40.43c0-.583.472-1.055 1.054-1.055h22.572a1.055 1.055 0 110 2.11H49.57a1.055 1.055 0 01-1.054-1.055z",fill:"#979797"}),o().createElement("circle",{cx:"23.555",cy:"27.773",r:"3.164",fill:"#B6C7DB"}),o().createElement("circle",{cx:"23.555",cy:"27.773",r:"3.164",fill:"#B6C7DB"}),o().createElement("circle",{cx:"42.188",cy:"37.266",r:"2.109",fill:"#B6C7DB"}),o().createElement("circle",{cx:"42.188",cy:"47.813",r:"2.109",fill:"#B6C7DB"}),o().createElement("circle",{cx:"23.555",cy:"59.414",r:"3.164",fill:"#B6C7DB"}),o().createElement("circle",{cx:"23.555",cy:"69.961",r:"3.164",fill:"#B6C7DB"}),o().createElement("path",{opacity:".8",fillRule:"evenodd",clipRule:"evenodd",d:"M48.648 46.758c0-.583.472-1.055 1.054-1.055h28.696a1.055 1.055 0 110 2.11H49.702a1.055 1.055 0 01-1.054-1.055z",fill:"#B6C7DB"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M48.516 50.977c0-.583.472-1.055 1.054-1.055h26.088a1.055 1.055 0 110 2.11H49.57a1.055 1.055 0 01-1.054-1.055z",fill:"#979797"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M32.524 37.969v-2.813h-.703v14.191h3.93v-.703h-3.227v-9.972h3.227v-.703h-3.227z",fill:"#2B98F0"}),o().createElement("path",{opacity:".54",fillRule:"evenodd",clipRule:"evenodd",d:"M33.423 27.07l-1.242 1.243-1.243-1.243h2.485z",fill:"#000"}),o().createElement("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M17.578 7.734h65.39a2.11 2.11 0 012.11 2.11v6.328a2.11 2.11 0 01-2.11 2.11h-65.39a2.11 2.11 0 01-2.11-2.11V9.844a2.11 2.11 0 012.11-2.11z",fill:"#fff"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M20.39 13.008a2.11 2.11 0 012.11-2.11h24.61a2.11 2.11 0 110 4.22H22.5a2.11 2.11 0 01-2.11-2.11zM52.031 13.008a2.11 2.11 0 012.11-2.11h3.515a2.11 2.11 0 110 4.22h-3.515a2.11 2.11 0 01-2.11-2.11z",fill:"#979797"})),o().createElement("defs",null,o().createElement("linearGradient",{id:"paint0_linear",x1:"-5.625",y1:"3.164",x2:"-5.625",y2:"90",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:".01"}),o().createElement("stop",{offset:"1",stopColor:"#F4F4F4"})),o().createElement("linearGradient",{id:"paint1_linear",x1:"93.557",y1:"63.672",x2:"54.451",y2:"27.31",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:".01"}),o().createElement("stop",{offset:"1"}))))},Je=(0,j.Z)((e=>({root:{height:"100%",overflow:"hidden",background:e.palette.background.default,display:"flex",flexDirection:"column",alignItems:"center",paddingTop:"115px"},info:{color:e.palette.text.secondary,fontSize:"16px",lineHeight:"24px",marginTop:"16px"}}))),et=()=>{const e=Je();return o().createElement("div",{className:e.root},o().createElement(Qe,null),o().createElement("span",{className:e.info},h().text("Please persist your profile to be able to edit crosswalks")))},tt=(0,j.Z)({sourcesView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex"},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},resizablePanesWrapper:{flexGrow:1,height:"100%"},pane:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",overflow:"hidden"},tabs:{marginLeft:"1px"}});var nt;!function(e){e[e.Legend=0]="Legend",e[e.History=1]="History"}(nt||(nt={}));const rt=(0,l.connect)((e=>({entity:m.ZP.selectors.getEntity(e),metadata:m.ZP.selectors.getMetadata(e),historyEvent:m.ZP.selectors.getHistoryEvent(e)})))((e=>{var t,n;let{config:a,entity:i,metadata:s,getSavedState:c,saveState:u,dispatch:d,historyEvent:p}=e;const A=tt(),[U,j]=(0,r.useState)(V.Crosswalk),[Z,F]=(0,r.useState)(0),G=e=>F((t=>t===e?null:e)),W=null!==Z,$=Z===nt.History,{isHistoryEnabled:Y,isProfilePersisted:q}=(0,g.C)({isHistoryTabActive:$,entity:i}),X=q?i:null,K=null==X?void 0:X.uri,Q=(0,f.nt9)(s,null==i?void 0:i.type),{historySlice:J}=(0,b.a)({entity:X,historyEvent:p}),[ee,te]=(0,r.useState)();(0,y.D)((()=>{te(void 0)}),[J]),(0,y.D)((()=>{te(void 0)}),[K]);const[ne,re]=(0,r.useState)(-480),oe=(0,r.useCallback)((e=>{let{percentageSize:t}=e;return re(t)}),[]),{isLoaded:le,savedState:ae}=(0,E.a)(c),[ie,se]=(0,r.useState)();(0,r.useEffect)((()=>{le&&se(ae.visibleColumns)}),[le]),(0,r.useEffect)((()=>{const e=!(0,z.equals)(ie,ae.visibleColumns);le&&e&&u({visibleColumns:ie})}),[ie]);const{crosswalkTree:ce,reload:ue}=(e=>{const[t,n]=(0,r.useState)(null),[o,l]=(0,r.useState)(!1),a=(0,Ge._)(),i=e=>{console.warn("Failed to load crosswalk tree",e),n(null)},s=(0,r.useCallback)((()=>{e?(l(!0),a((0,f.wo0)({entityUri:e})).then((e=>{n(e)})).catch(i).finally((()=>{l(!1)}))):n(null)}),[e]);return(0,r.useEffect)((()=>{s()}),[s]),{isLoading:o,crosswalkTree:t,reload:s}})((null==J?void 0:J.aEntity.uri)||K),de=(0,r.useMemo)((()=>(0,f.b7X)(ce)),[ce]),pe=(0,r.useCallback)((()=>{K&&d(m.N5.entity.actions.loadEntity({viewId:a.id,uri:K}))}),[K,a,d]),he=(0,r.useCallback)((0,z.pipe)(pe,ue),[pe,ue]),{modifiedEntity:me,crosswalksMap:fe,newlyCreatedAttributes:ge,onDeleteAttribute:be,onPinAttribute:ye,onIgnoreAttribute:Ee,onEditAttribute:ve,onAddAttribute:xe}=(0,v.Q)({entity:(null==J?void 0:J.aEntity)||X,onModify:he,onError:$e}),{addCrosswalk:Ce,deleteCrosswalk:Oe,editCrosswalk:ke,unmergeContributor:Te,unsubscribeContributor:we}=(e=>{let{onLoad:t=B.ZT,onSuccess:n=B.ZT,onError:o=B.ZT}=e;const{addCrosswalk:a,editCrosswalk:i,deleteCrosswalk:s}=(0,Ye.P)({onLoad:t,onSuccess:n,onError:o}),c=(0,l.useSelector)(m.ZP.selectors.getDtssPath),u=(0,l.useSelector)(m.ZP.selectors.getTenant),d=(0,r.useCallback)((e=>{t(),e.then((()=>{n()})).catch(o)}),[t,o,n]);return{addCrosswalk:a,editCrosswalk:i,deleteCrosswalk:s,unmergeContributor:(0,r.useCallback)((e=>(0,z.pipe)(f.L8n,d)(e)),[d]),unsubscribeContributor:(0,r.useCallback)((e=>{let{crosswalk:t,dataTenant:n}=e;return(0,z.pipe)(f.R9X,(0,z.andThen)((e=>{if(!e.successful)throw new Error(h().text("Failed to unsubscribe contributor"));return e})),d)({dtssPath:c,value:t.value,type:t.type,sourceTable:t.sourceTable,dataTenant:n.id,customerTenant:u})}),[d,c,u])}})({onSuccess:he,onError:(0,r.useCallback)((e=>{$e(e),e.errorCode===f.Xt7.CROSSWALK_NOT_FOUND&&he()}),[he])}),{historyFilter:Se,onApplyFilter:Ie,onClearFilter:Pe,isLoading:Ne,historicUris:De,historyWithTotal:Re,canLoadMore:Me,onLoadMore:Le}=(0,x.k)({entity:X,enabled:Y}),_e=(e=>{let{activeMode:t,contributors:n}=e;const o=(0,r.useCallback)((e=>{var r;switch(t){case V.Source:return(0,f.kW2)(e.type);case V.Contributor:return(0,f.GtP)((null===(r=(0,f.A1W)(n,e))||void 0===r?void 0:r.uri)||"");case V.Crosswalk:return(0,f.CJp)((0,f.uKF)(e))}}),[t,n]),[l,a]=(0,r.useState)([]),i=(0,r.useRef)([]),s=(0,r.useCallback)((0,f.DsO)((()=>{a([...i.current])}),50),[]),c=(0,r.useCallback)((e=>{i.current=e,s(e)}),[s]),u=(0,r.useCallback)(((e,r)=>{if(e)if(r)if(t===V.Contributor){const t=(0,f.A1W)(n,e);c([e,...(null==t?void 0:t.crosswalks)||[]])}else c([e]);else c([])}),[t,c,n]),[d,p]=(0,r.useState)([]),h=(0,r.useCallback)(((e,t)=>(0,z.concat)(e.filter((e=>!(0,z.any)((0,f.aFF)(e),t))),t.filter((t=>!(0,z.any)((0,f.aFF)(t),e))))),[]),m=(0,r.useCallback)((e=>{if(e)if(t===V.Contributor){const t=(0,f.A1W)(n,e);p((n=>h([e,...(null==t?void 0:t.crosswalks)||[]],n)))}else p((t=>h([e],t)))}),[t,h,n]);return(0,r.useEffect)((()=>{p([])}),[t]),{getCrosswalkColor:o,highlightedCrosswalks:(0,r.useMemo)((()=>[...l,...d]),[l,d]),focusedCrosswalks:d,toggleCrosswalkFocus:m,setCrosswalkHighlighted:u}})({activeMode:U,contributors:de}),Ae=[{buttonProps:{id:nt.Legend,icon:We,tooltipTitle:h().text("Legend")},title:o().createElement(L.Typography,{variant:"h6"},h().text("Legend")),content:o().createElement(Be,{activeMode:U,onChangeMode:j,entity:(null==J?void 0:J.aEntity)||X,crosswalkTree:ce,contributors:de,selectedAttributeTypes:ee,readOnly:!!J,onAddCrosswalk:Ce,onUnmergeContributor:Te,onUnsubscribeContributor:we,onEditCrosswalk:ke,onDeleteCrosswalk:Oe})},{buttonProps:{id:nt.History,icon:_.Z,tooltipTitle:h().text("History")},title:o().createElement(C.Z,{total:((null==De?void 0:De.length)||0)+1,entityType:Q,filter:Se,onApplyFilter:Ie,onClearFilter:Pe}),content:q?o().createElement(O.Z,{isLoading:Ne,historyWithTotal:Re,contributorsUris:De,entityUri:K,historyEvent:p,onLoadMore:Le,canLoadMore:Me}):o().createElement(k.Z,null)}];return o().createElement("div",{className:A.sourcesView},o().createElement(T.hR,_e,o().createElement(Xe.DndProvider,{backend:qe.default},o().createElement(w.Z,null),o().createElement(S.Z,{className:A.resizablePanesWrapper,orientation:"vertical",size:W?ne:"100%",minSize:480,maxSize:-480,allowResize:W,onChange:oe},o().createElement("div",{className:A.pane},o().createElement(I.Z,{entity:(null==J?void 0:J.aEntity)||i},J?o().createElement(P.Z,null):o().createElement(N.a,null)),q?o().createElement(D.R,{attributeUris:ge},o().createElement(R.Z,{visibleColumns:ie,onChangeVisibleColumns:se,entity:me,crosswalksMap:fe,selectedAttributeTypes:ee,onSelectAttributeTypes:te,readOnly:!!J,onDelete:be,onPin:ye,onIgnore:Ee,onEdit:ve,onAdd:xe})):o().createElement(et,null)),o().createElement(H,{className:A.pane,title:null===(t=Ae[Z])||void 0===t?void 0:t.title,onClose:()=>G(Z)},null===(n=Ae[Z])||void 0===n?void 0:n.content)))),o().createElement(M.G,{className:A.tabs,buttonsProps:(0,z.pipe)((0,z.reject)((0,z.propEq)("hidden",!0)),(0,z.pluck)("buttonProps"))(Ae),onButtonClick:G,activeIndexId:Z}))})),ot=(0,i.createGenerateClassName)({productionPrefix:"sourcesPerspective",disableGlobal:!0}),lt=e=>{let{config:t,store:n,onResize:p,saveState:h,getSavedState:m}=e;const g=(0,r.useCallback)((0,f.aYu)(m),[m]);return o().createElement(l.Provider,{store:n},o().createElement(u.m.Provider,{value:t.id},o().createElement(i.StylesProvider,{generateClassName:ot},o().createElement(c.MuiPickersUtilsProvider,{utils:a.Z},o().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>null==p?void 0:p(Math.floor(e),Math.floor(t))}),t&&o().createElement(rt,{config:t,saveState:h,getSavedState:g}),o().createElement(d.Z,null)))))}}}]);
|
package/5276.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5276],{58662:(e,t,a)=>{a.d(t,{Z:()=>v});var n=a(13980),r=a.n(n),l=a(24328),o=a.n(l),i=a(71153),c=a.n(i),s=a(94079),p=a(87918),d=a.n(p),u=a(31276),f=a(17440);const m=(0,a(79692).Z)({pagination:{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"56px",borderTop:"1px solid rgba(0,0,0,0.12)",boxShadow:"none"},caption:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px"},selectRoot:{marginLeft:"5px",marginRight:"36px"},select:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px",textAlign:"right"},actions:{marginLeft:"32px"}});function h(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),n.forEach((function(t){g(e,t,a[t])}))}return e}function g(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const y=e=>{let{classes:t={},count:a,rowsPerPageOptions:n,page:r,onChangePage:i,rowsPerPage:p,onChangeRowsPerPage:g,basicTableRef:y,labelRowsPerPage:v}=e;const E=m(),b=(0,l.useCallback)((()=>{(0,f.pathOr)(f.identity,["current","resetScrollbarPosition"],y)()}),[y]),x=(0,l.useCallback)((e=>{i(e),b()}),[i,b]),w=(0,l.useCallback)((e=>{i(0),g(e),b()}),[i,g,b]);return o().createElement(s.TablePagination,{classes:h({},t,{root:c()(E.pagination,t.root),select:c()(E.select,t.select),caption:E.caption,selectRoot:E.selectRoot,actions:E.actions}),component:"div",labelRowsPerPage:v||d().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:a,count:n}=e;return d().text("${fromRow}-${toRow} of ${countRows}",{fromRow:d().number(t,"0,0"),toRow:d().number(a,"0,0"),countRows:d().number(n,"0,0")})},count:a,rowsPerPageOptions:n,page:r,onChangePage:(0,f.pipe)((0,f.nthArg)(1),x),rowsPerPage:p,onChangeRowsPerPage:(0,f.pipe)(u.NA,w)})};y.propTypes={classes:r().object,rowsPerPageOptions:r().arrayOf(r().number),count:r().number,page:r().number,onChangePage:r().func,rowsPerPage:r().number,onChangeRowsPerPage:r().func,basicTableRef:r().shape({current:r().object}),labelRowsPerPage:r().string};const v=o().memo(y)},10237:(e,t,a)=>{a.d(t,{Z:()=>f});var n=a(27556),r=a(13980),l=a.n(r),o=a(24328),i=a.n(o);function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),n.forEach((function(t){s(e,t,a[t])}))}return e}function s(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const p=(0,a(79692).Z)((e=>({"basic-view__paper":c({display:"flex",flexDirection:"column"},e.basicView)})));function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},d.apply(this,arguments)}const u=(0,o.forwardRef)(((e,t)=>{let{children:a,className:r}=e,l=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["children","className"]);const o=p();return i().createElement(n.Z,d({ref:t,className:r,classes:{root:o["basic-view__paper"]}},l),a)}));u.displayName="BasicView",u.propTypes={children:l().node,className:l().string};const f=u},92778:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(24328),r=a.n(n),l=a(15223),o=a(94079);const i=(0,a(79692).Z)({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(this,arguments)}const s=e=>{let{title:t,children:a=null,classes:n={}}=e,s=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["title","children","classes"]);const p=i();return r().createElement(l.Z,c({className:n.root,classes:{root:p.toolbar}},s),r().createElement(o.Typography,{className:n.title,classes:{root:p.title},variant:"h6"},t),a)}},37699:(e,t,a)=>{a.d(t,{Z:()=>x});var n=a(24328),r=a.n(n),l=a(13980),o=a.n(l),i=a(87918),c=a.n(i),s=a(58697),p=a.n(s),d=a(17440),u=a(23147),f=a(94079),m=a(22385),h=a(99493),g=a(43305),y=a(8459);const v=(0,a(79692).Z)((e=>({container:{display:"flex",flexDirection:"column",minHeight:"182px"},header:{display:"flex",paddingLeft:"10px",backgroundColor:"#FFFFFF"},title:{marginLeft:"10px",color:e.palette.text.primary,fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px"},dateRangeContainer:{display:"flex",flexGrow:1,whiteSpace:"nowrap",cursor:"default",paddingTop:"8px"},dateInput:{margin:"0 7px"},actionButtons:{display:"flex",justifyContent:"flex-end",height:"48px",margin:"0px 8px"},button:{width:"96px"}}))),E=(e,t)=>(0,d.pathOr)(null,[t],e),b=(0,n.forwardRef)(((e,t)=>{let{onCancel:a,onApply:l,values:o,type:i}=e;const s=v(),d=(0,n.useRef)(p()()),b=(0,n.useRef)(p()()),[x,w]=(0,n.useState)(null),[O,R]=(0,n.useState)(null);r().useEffect((()=>{w(E(o,0)),R(E(o,1))}),[o]);const M=i===h.oS0.TYPE_TIMESTAMP?g.Z:y.Z,z=i===h.oS0.TYPE_TIMESTAMP?c().text("Pick date and time"):c().text("Pick date");return r().createElement("div",{className:s.container,ref:t,onKeyDown:e=>"Tab"===e.key&&e.stopPropagation()},r().createElement(f.Toolbar,{disableGutters:!0,classes:{root:s.header}},r().createElement(m.Z,{size:"L",icon:u.Z,onClick:a}),r().createElement(f.Typography,{className:s.title},z)),r().createElement("div",{className:s.dateRangeContainer},r().createElement(M,{id:d.current,label:"From",variant:"filled",value:x,onChange:e=>{w(e)},className:s.dateInput,margin:"dense"}),r().createElement(M,{id:b.current,label:"To",variant:"filled",value:O,onChange:e=>{R(e)},className:s.dateInput,margin:"dense"})),r().createElement("div",{className:s.actionButtons},r().createElement(f.Button,{color:"primary",onClick:()=>{l(x&&O&&x>O?[O,x]:[x,O])},className:s.button},c().text("Update"))))}));b.propTypes={onCancel:o().func.isRequired,onApply:o().func.isRequired,values:o().arrayOf(o().instanceOf(Date)),type:o().string},b.displayName="DateRangePicker";const x=b},55847:(e,t,a)=>{a.d(t,{Z:()=>b});var n=a(24328),r=a.n(n),l=a(71153),o=a.n(l),i=a(17440),c=a(94079),s=a(48348),p=a(20562),d=a(83348),u=a(79692),f=a(41128);const m=(0,u.Z)((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,f.U1)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,f.U1)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),h=(0,d.Z)(c.MenuItem),g=(0,n.forwardRef)(((e,t)=>{let{item:a,onMenuClose:n=i.identity}=e;const l=m(),{disabled:o,text:s,tooltip:p,onClick:d,id:u=""}=a;return r().createElement(h,{tooltipTitle:p,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{n(e),d(e)},disabled:o,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${u}`},r().createElement(c.Typography,{classes:{root:l.menuText}},s))}));g.displayName="MenuItemRenderer";const y=g;function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},v.apply(this,arguments)}function E(e){let{className:t,menuId:a,buttonComponent:l=c.Button,buttonContent:d,menuItems:u=[],buttonProps:f={},popoverProps:h={},onMenuOpen:g=i.identity,onMenuClose:E=i.identity,MenuItemRenderer:b=y}=e;const x=l,w=m(),O=(0,n.useRef)(),[R,M]=(0,n.useState)(!1);(0,p.D)((()=>{R?g():E()}),[R]);const z=(0,n.useCallback)((e=>{null==e||e.stopPropagation(),M((e=>!e))}),[]);return r().createElement(r().Fragment,null,r().createElement(x,v({ref:O,className:o()(w.buttonRoot,{[w.selected]:R},t),onClick:z,"aria-pressed":R,"aria-controls":R?a:void 0,"aria-haspopup":"true"},f),d),r().createElement(s.Z,v({id:a,variant:"menu",open:R,autoFocus:!1,classes:{paper:w.paper},anchorEl:O.current,onClose:z,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:R}},h),u.map(((e,t)=>r().createElement(b,{item:e,key:t,onMenuClose:z})))))}E.displayName="DropDownMenuButton";const b=E},6230:(e,t,a)=>{a.d(t,{J:()=>s});var n=a(24328),r=a.n(n),l=a(87918),o=a.n(l),i=a(15689);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(this,arguments)}const s=e=>r().createElement(i.Z,c({message:o().text("No data available")},e))},51229:(e,t,a)=>{a.d(t,{Z:()=>l});var n=a(24328),r=a.n(n);const l=()=>r().createElement("div",{style:{flex:1}})},63072:(e,t,a)=>{a.d(t,{b:()=>o});var n=a(24328),r=a(99493),l=a(56764);const o=e=>{let{filter:t,max:a,offset:o,entityUri:i}=e;return(0,n.useCallback)((async()=>{const e=(0,l.U)(t),n=await(0,r.k6v)({filter:e,max:a,offset:o,entityUri:i}),{total:c}=await(0,r.FEC)({filter:e,entityUri:i});return{data:n,total:c}}),[t,a,o,i])}},96808:(e,t,a)=>{a.d(t,{Z:()=>m});var n=a(13980),r=a.n(n),l=a(24328),o=a.n(l),i=a(71153),c=a.n(i),s=a(10161),p=a(83543),d=a(22385);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},u.apply(this,arguments)}const f=e=>{const{selectProps:{classes:t,menuIsOpen:a},innerProps:n}=e,r=(0,s.m)();return o().createElement(d.Z,u({},n,{icon:p.Z,className:t.dropdownIndicator,size:"L",iconClassName:c()({[r.expanded]:a})}))};f.propTypes={innerProps:r().object.isRequired,selectProps:r().shape({classes:r().shape({dropdownIndicator:r().string}).isRequired,menuIsOpen:r().bool.isRequired}).isRequired};const m=f},24489:(e,t,a)=>{a.r(t),a.d(t,{default:()=>_});var n=a(8598),r=a(36138),l=a(22664),o=a(39450),i=a(585),c=a(24328),s=a.n(c),p=a(52730),d=a(44443),u=a(67885),f=a(6230),m=a(2256),h=a(88234),g=a(10237),y=a(92778),v=a(4094),E=a(93438),b=a(87638),x=a(99493),w=a(87918),O=a.n(w),R=a(17440),M=a(67218),z=a(63072),P=a(94079),C=a(43266);function S(){return S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},S.apply(this,arguments)}const B=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return s().createElement("svg",S({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),s().createElement("mask",{id:"svg2440373321a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},s().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),s().createElement("g",{mask:"url(#svg2440373321a)"},s().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:".3"}),s().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),s().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),s().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),s().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),s().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),s().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),s().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),s().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),s().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),s().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),s().createElement("path",{opacity:".5",d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".3",d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".8",d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),s().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".2",d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),s().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),s().createElement("g",{filter:"url(#filter0_d)"},s().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),s().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),s().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),s().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),s().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),s().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),s().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#paint0_linear)"}),s().createElement("g",{filter:"url(#filter1_d)"},s().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),s().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),s().createElement("g",{filter:"url(#filter2_d)"},s().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),s().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),s().createElement("defs",null,s().createElement("filter",{id:"filter0_d",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},s().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s().createElement("feOffset",{dy:"2"}),s().createElement("feGaussianBlur",{stdDeviation:"2"}),s().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),s().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),s().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),s().createElement("filter",{id:"filter1_d",x:"51.688",y:"62.625",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},s().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s().createElement("feOffset",{dy:"2"}),s().createElement("feGaussianBlur",{stdDeviation:"2"}),s().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),s().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),s().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),s().createElement("filter",{id:"filter2_d",x:"51.688",y:"44.063",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},s().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s().createElement("feOffset",{dy:"2"}),s().createElement("feGaussianBlur",{stdDeviation:"2"}),s().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),s().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),s().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),s().createElement("linearGradient",{id:"paint0_linear",x1:"68.438",y1:"71.571",x2:"60.119",y2:"58.801",gradientUnits:"userSpaceOnUse"},s().createElement("stop",{stopOpacity:"0"}),s().createElement("stop",{offset:"1"}))))};var I=a(79692);const j=(0,I.Z)((e=>({errorContainer:e=>{let{height:t}=e;return{height:t?`${t}px`:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)"}},errorIcon:{height:"88px",width:"88px",marginBottom:"20px",paddingTop:"36px"},refreshButton:{color:e.palette.primary.main,marginTop:"10px"},refreshIcon:{width:"24px",height:"24px"}}))),k=e=>{let{height:t,onRefresh:a,message:n}=e;const r=j({height:t});return s().createElement("div",{className:r.errorContainer},s().createElement(B,{className:r.errorIcon}),s().createElement(P.Typography,null,n),a&&s().createElement(P.Button,{className:r.refreshButton,startIcon:s().createElement(C.Z,{color:"primary",className:r.refreshIcon}),onClick:a},s().createElement(P.Typography,{variant:"button"},O().text("Refresh"))))},Z=(0,I.Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),F=()=>{const e=Z();return s().createElement(P.LinearProgress,{color:"secondary",className:e.loader})},D=[10,25,50,100],[N]=D,T=(0,I.Z)((()=>({viewContent:{overflow:"hidden",position:"relative",fontFamily:"Roboto, Helvetica, Arial, sans-serif",padding:"4px 17px 24px",display:"flex",flexDirection:"column"},activityLog:{flex:1,overflowY:"auto"},headerRoot:{lineHeight:"23px",minHeight:38,borderBottom:"1px solid rgba(0,0,0,0.12)"},headerTitle:{fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px"},basicView:{top:0,bottom:0,left:0,right:0,display:"flex",alignItems:"stretch",height:"100%"}}))),A=(0,c.memo)((e=>{let{config:t}=e;const[a,n]=(0,c.useState)(0),{exportTypes:r,caption:l}=t,o=T(),i=(0,p.useSelector)(b.ZP.selectors.getMetadata),w=(0,p.useSelector)(b.ZP.selectors.getEntity),P=(0,x.nt9)(i,null==w?void 0:w.type),C=null==w?void 0:w.uri,[S,B]=(0,c.useState)(N),I=(0,c.useMemo)((()=>{return e=N,D.filter((t=>t!==e)).concat(e).sort(R.subtract);var e}),[]),[j,Z]=(0,c.useState)({users:[],activities:[],attributes:[],sources:[],dateRange:{type:u.K.WITHIN,period:[4,"months"]}}),{state:A,data:H,total:_,reload:L}=(e=>{let{filter:t,max:a,offset:n,entityUri:r}=e;const[l,o]=(0,c.useState)([]),[i,s]=(0,c.useState)(0),[p,d]=(0,c.useState)(u.o.INIT),f=(0,M._)(),m=e=>{console.error(e),d(u.o.ERROR),o([]),s(0)},h=(0,z.b)({filter:t,max:a,offset:n,entityUri:r}),g=(0,c.useCallback)((()=>{if(!r)return;d(u.o.LOADING);const e=(0,R.pipe)(h,f,(0,R.andThen)((e=>{let{data:t,total:a}=e;d(u.o.LOADED),o(t),s(a)})),(0,R.otherwise)(m));e()}),[h]),y=()=>{try{g()}catch(e){m(e)}};return(0,c.useEffect)((()=>{y()}),[g]),{state:p,data:l,total:i,reload:y}})({filter:j,max:S,offset:a*S,entityUri:C}),U=(0,c.useCallback)((e=>{Z(e),n(0)}),[]);return s().createElement(g.Z,{className:o.basicView},s().createElement(y.Z,{title:l||O().text("Activity Log"),classes:{root:o.headerRoot,title:o.headerTitle}}),s().createElement(v.Z,{className:o.viewContent},s().createElement(E.Z,{value:j,onChange:U,entityType:P,entityUri:C,exportTypes:r}),(()=>{switch(A){case u.o.LOADED:return H&&0!==H.length?s().createElement(m.Z,{error:s().createElement(k,{message:O().text("Something went wrong")})},s().createElement("div",{className:o.activityLog},s().createElement(d.Z,{handleHeight:!0},(e=>{let{width:t=0,height:r=0}=e;return s().createElement(h.Z,{width:t,height:r+3,activities:H,count:_,page:a,onChangePage:n,rowsPerPage:S,onChangeRowsPerPage:B,rowsPerPageOptions:I})})))):s().createElement(f.J,null);case u.o.LOADING:return s().createElement(F,null);case u.o.ERROR:return s().createElement(k,{message:O().text("Error Loading Data"),onRefresh:L});default:return s().createElement("div",null,"Loading...")}})()))})),H=(0,r.createGenerateClassName)({productionPrefix:"profileActivityLog",disableGlobal:!0}),_=e=>{let{config:t,store:a,onResize:c}=e;return s().createElement(p.Provider,{store:a},s().createElement(o.m.Provider,{value:t.id},s().createElement(r.StylesProvider,{generateClassName:H},s().createElement(l.MuiPickersUtilsProvider,{utils:n.Z},s().createElement(d.Z,{handleHeight:!0,onResize:(e,t)=>null==c?void 0:c(Math.floor(e),Math.floor(t))}),s().createElement(A,{config:t}),s().createElement(i.Z,null)))))}}}]);
|