@reltio/remotes 1.4.1574 → 1.4.1576

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/4748.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[4748],{12714:(e,t,n)=>{n.d(t,{Z:()=>O});var r=n(24328),o=n.n(r),l=n(52730),a=n(50914),i=n(86051),c=n(81559),s=n(39148),u=n(64731),d=n(2507),m=n.n(d),p=n(87685),g=n(74443),f=n(8818);function v(){return v=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},v.apply(this,arguments)}const h=e=>o().createElement("svg",v({width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",focusable:"false"},e),o().createElement("defs",null,o().createElement("path",{d:"M20.222 6C21.21 6 22 6.8 22 7.778v12.444C22 21.2 21.209 22 20.222 22H7.778C6.79 22 6 21.2 6 20.222V7.778C6 6.8 6.791 6 7.778 6h12.444zM8 8v12h12V8H8zM4 18H2V4c0-1.1.9-2 2-2h14v2H4v14z",id:"Duplicate_svg__a"})),o().createElement("g",{transform:"translate(-2 -2)",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},o().createElement("mask",{id:"Duplicate_svg__b",fill:"#fff"},o().createElement("use",{xlinkHref:"#Duplicate_svg__a"})),o().createElement("g",{mask:"url(#Duplicate_svg__b)",fill:"#000",fillOpacity:.54},o().createElement("path",{d:"M0 0h24v24H0z"}))));var b=n(79692);const x=(0,b.Z)((()=>({actions:{width:"88px",height:"24px",display:"flex",alignItems:"center",justifyContent:"space-between",flexShrink:0,"& >span":{cursor:"pointer",display:"flex"},"& $actionIcon":{cursor:"pointer",color:"rgba(0, 0, 0, .54)"}},actionIcon:{}}))),y=(0,r.memo)((e=>{let{rowData:t,rowContext:n}=e;const l=x(),{id:a,attribute:i}=t||{},{addRowAfterIndex:c,removeRow:s,duplicateRow:u}=n,d=(0,r.useCallback)((()=>{c(a)}),[c,a]),v=(0,r.useCallback)((()=>{u(a)}),[u,a]),b=(0,r.useCallback)((()=>{s(a)}),[a,s]);return o().createElement("div",{className:l.actions},o().createElement(f.k,{tooltipTitle:m().text("Add"),icon:g.Z,size:"M",onClick:d}),i&&o().createElement(f.k,{tooltipTitle:m().text("Duplicate"),icon:h,size:"M",onClick:v}),o().createElement(f.k,{tooltipTitle:m().text("Delete"),icon:p.default,size:"M",onClick:b}))}));var C=n(41315),w=n(99757);const E=(0,r.memo)((e=>{let{rowData:t,rowContext:n,attributeSelectorProps:l}=e;const{attribute:a,id:i,filter:s}=t||{},{changeFilter:u,addNewFilter:d,attributesGroup:m}=n,p=(0,r.useCallback)((e=>(0,c.e6O)({data:e})),[]),g=(0,r.useMemo)((()=>[{id:"",title:"",attributes:m}]),[m]),f=(0,r.useCallback)((e=>{if(t){const t={fieldName:e.attribute.fieldName,filter:s,values:[]};u(t,i)}else d({fieldName:e.attribute.fieldName,filter:null,values:[]})}),[d,u,i,t,s]);return o().createElement(w.Z,{itemsGroups:g,ungroup:!0,single:!0,value:a,getLabel:p,onSelect:f,onOpenPopup:l.onOpen})}));var D=n(70215);const R=(0,b.Z)((()=>({attrSelector:{width:"222px",height:"40px",flexShrink:0},filterSelector:{width:"180px",flexShrink:0,marginTop:0,marginBottom:0},actionContainer:{alignItems:"center",marginRight:"15px"}}))),I={fieldName:null,filter:null,values:[]},k=()=>null,O=(0,r.memo)((e=>{let{attributeTypes:t,filters:n,onChange:d,components:m={}}=e;const{ValuesEditor:p,FilterSelector:g}=m,f=(0,l.useSelector)(i.ZP.selectors.getMetadata),v=(0,c.nt9)(f,(0,s.gZ)(t)),{attrSelector:h,filterSelector:b,actionContainer:x}=R(),w=(0,r.useRef)(n);w.current=n;const O=(0,r.useRef)(null),N=(0,r.useRef)(null),S=(0,r.useRef)(null),Z=(0,r.useMemo)((()=>({attributeSelectorContainer:h,filterSelectorContainer:b,actionsContainer:x})),[h,b,x]),H=(0,r.useMemo)((()=>(0,s.Uk)(t,v,f)),[t,f,v]),T=(0,r.useMemo)((()=>n.length?(0,s.QB)(n,H):[]),[H,n]);S.current=T.length,(0,r.useEffect)((()=>{O.current&&N.current!==S.current&&(O.current.querySelector("input").focus(),N.current=null)}),[T.length]);const M=(0,r.useCallback)((()=>{N.current=T.length}),[T.length]),P=(0,r.useMemo)((()=>({onOpen:M})),[M]),j=(0,r.useCallback)((e=>{const t=[...w.current];t.splice(e+1,0,I),d(t)}),[d]),B=(0,r.useCallback)((e=>{const t=[...w.current];t.splice(e,1),d(t)}),[d]),F=(0,r.useCallback)((e=>{const t=[...w.current];t.splice(e+1,0,{fieldName:w.current[e].fieldName,filter:w.current[e].filter,values:w.current[e].values}),d(t)}),[d]),V=(0,r.useCallback)(((e,t)=>{const n=(0,a.evolve)({[t]:(0,a.always)(e)},w.current);d(n)}),[d]),z=(0,r.useCallback)((e=>{d([...w.current,e])}),[d]);return o().createElement(C.Z,{rowClasses:Z,rowsData:T,AttributeSelectorComponent:E,FilterSelectorComponent:g||u.Z,ValuesEditorComponent:p||D.Z,ActionsComponent:y,LogicOperatorComponent:k,filterSelectorRefIndex:N.current,filterSelectorRef:O,lastRowAttributeSelectorProps:P,attributesGroup:H,changeFilter:V,addNewFilter:z,addRowAfterIndex:j,removeRow:B,duplicateRow:F,entityType:v})}))},64731:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),o=n.n(r),l=n(2507),a=n.n(l),i=n(50914),c=n(6782),s=n(81559),u=n(31517),d=n(39148);const m=(0,n(79692).Z)({dropDownSelector:{width:"100%"}}),p=(0,r.memo)((e=>{let{rowData:t,rowContext:n,textFieldInputRef:l,options:p}=e;const g=m(),{attribute:{attrType:f={},fieldName:v=null}={},filter:h,id:b}=t||{},{changeFilter:x}=n,y=p||f&&v&&(0,i.pipe)(s.d3Y,(0,i.map)((e=>({value:e,label:(0,c.Z)((0,s.XS2)(e))}))))(f,v),C=(0,r.useCallback)((e=>{const t={fieldName:v,filter:e.value,values:[]};x(t,b)}),[x,b,v]);return(0,r.useEffect)((()=>{(v&&!h||v&&!(0,d.dG)(y,h))&&C(y[0])}),[v,h,C,y]),o().createElement(u.Z,{label:"",height:40,isDisabled:!y,placeholder:a().text("Equals"),value:(0,d.dG)(y,h),options:y,onChange:C,className:g.dropDownSelector,textFieldInputRef:l,TextFieldProps:{inputProps:{"data-reltio-id":"filter-selector"}}})}))},70215:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),o=n.n(r),l=n(81559),a=n(24754);const i=(0,n(79692).Z)({input:{margin:0,borderRadius:"4px",width:"100%",paddingTop:0,paddingBottom:0},root:{borderRadius:"4px 4px 0 0",padding:0,display:"flex",alignItems:"center",margin:0},valuesEditor:{display:"flex",alignItems:"center",width:"222px!important",minHeight:"40px",flexShrink:0}}),c=(0,r.memo)((e=>{let{rowData:t,rowContext:n}=e;const c=i(),s=(null==t?void 0:t.attribute)&&(0,l.wNf)(t.filter),{changeFilter:u}=n,{values:d=[],attribute:{attrType:m,fieldName:p=null}={},filter:g,id:f}=t||{},v=m&&(0,l.PFL)(m),h=v&&(0,l.l1V)(v,g),b=(0,r.useMemo)((()=>({filter:g,fieldName:p,values:d||[]})),[g,p,d]),x=(0,r.useMemo)((()=>({InputProps:{classes:{root:c.input}}})),[c]),y=(0,r.useMemo)((()=>({root:c.root})),[c]),C=(0,r.useCallback)((e=>{u({fieldName:p,filter:g,values:e},f)}),[u,f,p,g]);return o().createElement("div",{className:c.valuesEditor},(null==t?void 0:t.attribute)&&s&&o().createElement(a.Z,{"data-reltio-id":"filter-value-editor",filter:b,onChange:C,dataTypeDefinition:h,fullWidth:!0,TextFieldProps:x,color:"primary",classes:y,orientation:"horizontal"}))}))},39148:(e,t,n)=>{n.d(t,{Uk:()=>s,dG:()=>d,QB:()=>m,gZ:()=>p});var r=n(81559),o=n(50914);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,t,n,a)=>{const i=(0,r.jFi)(e,{type:n}),c=t.label||t.name;return l({attrType:t,title:c},(0,r.kqr)(t)?{fieldName:t.name}:{entityTypeUri:n,pathToTitle:Array.isArray(a)?[i,...(0,o.chain)((0,o.prop)("label"),a),c]:[i,c],fieldName:(0,r.Tde)(t.uri,a)})},c=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const o=l({},i(e,t,n,r),{uri:t.uri}),a=t.children?t.children.map((o=>c(e,o,n,r.concat(t)))):[];return a.length&&(o.children=a),o},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(0,r.kkq)(e,n).map((e=>{const o=(0,r.kqr)(e)?null:t.uri;return c(n,e,o)}))},u=(e,t)=>{let n;const r=(e,t)=>{for(const o of t){if(e===o.fieldName)return void(n=o);"children"in o&&r(e,o.children)}};return r(e,t),n},d=(e,t)=>e?e.find((e=>e.value===t)):null,m=(e,t)=>e.map(((e,n)=>({attribute:e.fieldName?u(e.fieldName,t):void 0,filter:e.filter,id:n,values:e.values}))),p=e=>{const t=e.find((e=>!(0,r.kqr)(e)));return t?(0,r.u5q)(t.uri):null}},63172:(e,t,n)=>{n.d(t,{Z:()=>x});var r=n(24328),o=n.n(r),l=n(2507),a=n.n(l),i=n(94079),c=n(36444),s=n(81559),u=n(12714),d=n(79692);function m(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){p(e,t,n[t])}))}return e}function p(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={alignSelf:"center"},f=(0,d.Z)((()=>({buttonsWrapper:{display:"flex"},applyButton:m({},g,{marginRight:"16px"}),cancelButton:m({},g,{marginLeft:"auto"}),clearButon:m({},g)}))),v=e=>{let{onClear:t,onCancel:n,onApply:r}=e;const l=f();return o().createElement("div",{className:l.buttonsWrapper},o().createElement(i.Button,{onClick:t,variant:"text",color:"default",className:l.clearButon},a().text("Clear all")),o().createElement(i.Button,{onClick:n,variant:"text",color:"default",className:l.cancelButton},a().text("Cancel")),o().createElement(i.Button,{onClick:r,variant:"text",color:"primary",className:l.applyButton},a().text("Apply")))};var h=n(41128);const b=(0,d.Z)((e=>({triggerButton:{minWidth:0,color:"rgba(0,0,0,0.54)",width:"40px",marginLeft:"auto",marginRight:"12px"},filtersBuilderWrapper:{marginTop:"20px"},popupContent:{paddingLeft:"16px",paddingTop:"20px",paddingBottom:"6px",width:"770px"},divider:{marginBottom:"14px",marginLeft:"-16px",background:"rgba(0, 0, 0, 0.121569)"},changedFiltersIndicator:{backgroundColor:(0,h.U1)(e.palette.primary.main,.12)}}))),x=(0,r.memo)((e=>{let{filters:t,attributeTypes:n,onChange:l,components:d,children:m,onTogglePopup:p,isFiltersApplied:g,dataReltioId:f}=e;const h=b(),x=(0,r.useRef)(),[y,C]=(0,r.useState)(!1),[w,E]=(0,r.useState)([]),D=(null!=g?g:(0,s.Uqd)()(t))?"primary":"inherit",R=()=>{p&&p(!y),C((e=>!e))};(0,r.useEffect)((()=>{y&&E(t)}),[t,y]);const I=(0,r.useCallback)((()=>{l(w),R()}),[w,l]),k=(0,r.useCallback)((()=>{R()}),[]),O=(0,r.useCallback)((()=>{E([])}),[]);return o().createElement(o().Fragment,null,o().createElement(i.Button,{"data-reltio-id":f,ref:x,color:D,classes:{root:h.triggerButton,textPrimary:h.changedFiltersIndicator},onClick:R},o().createElement(c.Z,{color:D})),o().createElement(i.Popover,{open:y,classes:{paper:h.popupContent},anchorEl:x.current,onClose:R,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}},o().createElement(o().Fragment,null,o().createElement(i.Typography,{variant:"h6"},a().text("Filter")),o().createElement("div",{className:h.filtersBuilderWrapper},m,o().createElement(u.Z,{attributeTypes:n,filters:w,onChange:E,components:d})),o().createElement(i.Divider,{className:h.divider}),o().createElement(v,{onApply:I,onCancel:k,onClear:O}))))}))},32540:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(50914),o=n(24328),l=n.n(o),a=n(73038),i=n(21697);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const s=e=>{let{columnId:t,rowIndex:n,collapseContextValue:o,getRowHeight:s,tableRowsData:u,columnsData:d,getHeightForSubRow:m}=e,p=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,["columnId","rowIndex","collapseContextValue","getRowHeight","tableRowsData","columnsData","getHeightForSubRow"]);const g=u[n];return l().createElement(a.x.Provider,{value:o},l().createElement("div",c({},p,{style:{height:s(null==g?void 0:g.id)}}),u.length>0&&(0,i.getCellContentFromRowsData)({columnIndex:d.findIndex((0,r.propEq)("id",t)),headData:d,rowData:g,id:g.id,getHeightForSubRow:m})))}},40454:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),o=n(21697),l=n(14838),a=n(25461),i=n(50914),c=n(60730);const s=e=>{let{rowsData:t,columnsData:n,getIdFromRowValue:s,renderRowCell:u=l.Z,getRowCellHeight:d=a.Z,defaultRowHeight:m=48,maxRowValuesCount:p=1/0}=e;const{tableRowsData:g,collapseContextValue:f}=(0,c.Z)({rowsData:t,columnsData:n,renderRowCell:u,getRowCellHeight:d,maxRowValuesCount:p,getIdFromRowValue:s});return(0,r.useMemo)((()=>{const e=g.reduce(((e,t)=>{const{data:n,id:r}=t;return e[r]=(0,o.calculateRowHeight)(n,m),e}),{});return{getRowHeight:t=>(0,i.pathOr)(0,[t,"height"],e),collapseContextValue:f,getHeightForSubRow:(t,n,r)=>{const o=[t,"subRowHeight",n,r,"height"];return(0,i.pathOr)(0,o,e)},tableRowsData:g}}),[g,m,f])}},86776:(e,t,n)=>{n.d(t,{R:()=>f});var r=n(24328),o=n.n(r),l=n(71153),a=n.n(l),i=n(52730),c=n(50914),s=n(86051),u=n(94079),d=n(79692),m=n(81559);const p=(0,d.Z)({root:e=>{let{dataTenantId:t}=e;const n=(0,m.bsH)(t);return{backgroundColor:n,color:(0,m.nHA)(n),height:"18px",padding:"0 3px"}}}),g=e=>`DT:${(0,c.slice)(0,1,e)}`,f=e=>{let{dataTenantId:t,className:n}=e;const r=p({dataTenantId:t}),l=(0,i.useSelector)(s.ZP.selectors.getDataTenants),d=(0,c.pipe)((0,c.defaultTo)([]),(0,c.find)((0,c.propEq)("id",t)))(l),m=(0,c.pipe)((0,c.propOr)("","label"),c.toUpper,(0,c.ifElse)((0,c.startsWith)("DT:"),(0,c.slice)(0,4),g))(d),f=o().createElement("div",{className:a()(r.root,n)},o().createElement(u.Typography,{variant:"body2"},m));return null!=d&&d.label?o().createElement(u.Tooltip,{title:d.label},f):f}},58970:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),o=n.n(r),l=n(52730),a=n(86051),i=n(81559),c=n(52309);const s=e=>{let{name:t,values:n,onChange:s,entityType:u,TextFieldProps:d,fullWidth:m}=e;const p=(0,l.useSelector)(a.ZP.selectors.getMetadata),[g,f]=(0,r.useMemo)((()=>(0,i.UkJ)((0,i.KbW)(p,null==u?void 0:u.uri))),[null==u?void 0:u.uri,p]),v=(0,r.useMemo)((()=>function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((e=>{let{label:t,uri:n}=e;return{label:t,value:n}}))}(t===i.Ury.matchRules?f:g)),[t,f,g]);return o().createElement(c.Z,{values:n,onChange:s,options:v,TextFieldProps:d,fullWidth:m})};s.displayName="MatchRulesSelector";const u=s},52309:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(24328),o=n.n(r),l=n(50914),a=n(81559),i=n(96808),c=n(12079),s=n(36179),u=n(82455),d=n(92575),m=n(31276);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){g(e,t,n[t])}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=(0,n(79692).Z)((e=>({option:{paddingLeft:"35px"},dropdownIndicator:{cursor:"pointer",color:e.palette.text.secondary,marginTop:0,marginBottom:0},clearIndicator:{display:"none"}}))),v={input:e=>p({},e,{fontSize:"14px"}),menuPortal:e=>p({},e,{zIndex:1300}),menuList:e=>p({},e,{maxHeight:"240px",padding:"8px 0"}),menu:e=>p({},e,{maxHeight:"240px"})};function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){b(e,t,n[t])}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const x=e=>{let{values:t=[],onChange:n,options:p,fullWidth:g,TextFieldProps:b={}}=e;const x=f(),y=(0,r.useRef)(null),C=(0,r.useCallback)((e=>p.find((t=>t.value===e))||{value:e,label:e}),[p]),w=(0,r.useMemo)((()=>t.map(C)),[C,t]),{InputProps:E={},className:D}=b,R=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}(b,["InputProps","className"]);return o().createElement(d.Z,{value:w,onChange:(0,l.pipe)((0,l.defaultTo)([]),(0,l.pluck)("value"),n),options:p,TextFieldProps:h({InputProps:h({disableUnderline:(0,a.O27)(t)},E),variant:"filled",className:D,ref:y},R),components:{DropdownIndicator:i.Z,Option:c.Z,Menu:s.Z,MultiValue:u.Z,IndicatorSeparator:m.Vd},inputRef:y,classes:x,styles:h({},v,{container:e=>h({},e,g?{width:"100%"}:{})}),menuPortalTarget:document.body})};x.displayName="MultiValueSelector";const y=(0,r.memo)(x)},35071:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(13980),o=n.n(r),l=n(24328),a=n.n(l),i=n(73272),c=n(58241);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 u=e=>a().createElement("svg",s({viewBox:"0 0 20 20"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 10L14 5.5V9h-3.5L5 3.5 3.5 5l6.04 6H14v3.5l4.5-4.5zM7.04 11.455L3.5 15 5 16.5l3.54-3.545-1.5-1.5z"}));var d=n(2507),m=n.n(d),p=n(71153),g=n.n(p);const f=(0,n(79692).Z)((e=>({expanded:{backgroundColor:"rgba(0, 0, 0, 0.03)"},info:{fontSize:"13px",color:e.palette.text.secondary,wordWrap:"break-word"},icon:{width:"32px",height:"32px",fill:"#fff",backgroundColor:"rgba(177, 92, 189, 1)",borderRadius:"50%",margin:"5px 12px 0 8px"},infoBlock:{display:"flex",flexDirection:"row"},header:{display:"flex",flexDirection:"row",paddingBottom:"5px"},flex:{flex:1},caption:{fontSize:"16px",color:"rgba(0, 0, 0, 0.87)"},title:{display:"flex",flexDirection:"row",alignItems:"center",margin:"6px 0 8px 0"},flag:{height:"12px",width:"12px",stroke:"#000000",fill:"none",margin:"2px 5px 0 5px"},pmReviewCard:{borderTop:"3px solid #E83D40",flexDirection:"column",width:"100%"},date:{fontSize:"13px",color:"rgba(0, 0, 0, 0.87)"},mainInfo:{display:"flex",flexDirection:"column",flex:1}}))),v=e=>{let{date:t,type:n,createdBy:r,step:o,children:s,Actions:d}=e;const p=f(),[v,h]=(0,l.useState)(!1);return a().createElement("div",{className:p.pmReviewCard},a().createElement("div",{className:g()(p.header,{[p.expanded]:v})},a().createElement(u,{className:p.icon}),a().createElement("div",{className:p.mainInfo},a().createElement("div",{className:p.title},a().createElement("div",{className:g()(p.caption,p.flex)},m().text("Match review")),a().createElement(i.Z,{className:p.flag}),a().createElement("span",{className:p.date},m().date(t,"L")),a().createElement(c.Z,{isOpen:v,onClick:()=>{h(!v)}})),a().createElement("div",{className:p.infoBlock},a().createElement("div",{className:p.flex},a().createElement("div",{className:p.info},n),a().createElement("div",{className:p.info},m().text("Created by ${createdBy}",{createdBy:r})),a().createElement("div",{className:p.info},m().text("Step: ${step}",{step:o}))),d))),v?s:null)};v.propTypes={date:o().number,createdBy:o().string,type:o().string,step:o().string,children:o().oneOfType([o().node,o().arrayOf(o().node)]),Actions:o().node};const h=v},14377:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(24328),o=n.n(r),l=n(47603),a=n(2507),i=n.n(a),c=n(8818),s=n(55847),u=n(50914),d=n(94079);const m=(0,n(79692).Z)((e=>({menuItem:{height:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px"},checkbox:{padding:0,marginRight:"15px"}}))),p=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=u.identity}=e;const l=m(),{text:a,onClick:i,id:c,selected:s}=n;return o().createElement(d.MenuItem,{classes:{root:l.menuItem},onClick:e=>{r(e),i(e)},ref:t,"data-modal":!0,"data-reltio-id":`reltio-settings-menu-item${c}`},o().createElement(d.Checkbox,{checked:s,className:l.checkbox,color:"primary"}),o().createElement(d.Typography,{classes:{root:l.menuText}},a))}));p.displayName="SettingsMenuItemRenderer";const g=p,f=e=>{let{items:t,menuId:n}=e;return o().createElement(s.Z,{buttonComponent:c.k,buttonProps:{icon:l.Z,tooltipTitle:i().text("Settings"),size:"L"},menuId:n,menuItems:t,MenuItemRenderer:g})}},54337:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(24328),o=n.n(r),l=n(52730),a=n(50914),i=n(86051),c=n(81559),s=n(52309);const u=e=>{let{values:t,onChange:n,TextFieldProps:u,fullWidth:d}=e;const m=(0,l.useSelector)(i.ZP.selectors.getMetadata),p=(0,r.useMemo)((()=>(0,a.pipe)((0,a.sortBy)((e=>e.label)),(0,a.map)((e=>{let{label:t,uri:n}=e;return{label:t,value:(0,c.nIW)(n)}})))(m.sources)),[m.sources]);return o().createElement(s.Z,{values:t,onChange:n,options:p,TextFieldProps:u,fullWidth:d})};u.displayName="SourceSystemsSelector";const d=u},59651:(e,t,n)=>{n.d(t,{c:()=>s});var r=n(81559),o=n(24328),l=n.n(o),a=n(50914),i=n(94079);const c=(0,n(79692).Z)({root:{height:"18px",width:"18px",textAlign:"center"}}),s=e=>{let{tenant:t}=e;const n=c(),s=(0,o.useMemo)((()=>{const e=(0,r.bsH)(null==t?void 0:t.id);return{backgroundColor:e,color:(0,r.nHA)(e)}}),[null==t?void 0:t.id]);return l().createElement("div",{style:s,className:n.root},l().createElement(i.Typography,{variant:"body2"},(0,a.toUpper)((0,a.head)(null==t?void 0:t.name))))}},95474:(e,t,n)=>{n.d(t,{H:()=>x});var r=n(24328),o=n.n(r),l=n(52730),a=n(50914),i=n(83543),c=n(86051),s=n(81559),u=n(55847),d=n(59651),m=n(94079),p=n(31276),g=n(79692);const f=(0,g.Z)({root:{minHeight:"48px",gap:"30px"}}),v=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=p.ZT}=e;const l=f(),{tenant:a,onClick:i}=n,c=a.label?`${a.label} : ${a.name}`:a.name;return o().createElement(m.MenuItem,{onClick:()=>{r(),i(a)},ref:t,className:l.root},o().createElement(d.c,{tenant:a}),o().createElement(m.Typography,null,c))}));v.displayName="TenantMenuItem";const h=v,b=(0,g.Z)({menuButtonRoot:{padding:0}}),x=e=>{let{entityTypeUri:t,onChangeTenant:n,selectedTenant:m}=e;const p=b(),g=(0,l.useSelector)(c.ZP.selectors.getDataTenants),f=(0,l.useSelector)(c.ZP.selectors.getTenantObject),v=(0,r.useMemo)((()=>(0,a.pipe)((0,a.defaultTo)([]),(0,a.filter)((0,s.oZ7)(t)),(0,a.map)((e=>({tenant:e,onClick:n}))),(0,a.prepend)({tenant:f,onClick:n}))(g)),[g,t,n,f]);return(0,s.O27)(g)||!n?null:o().createElement(u.Z,{menuId:"tenantSelector",MenuItemRenderer:h,buttonContent:o().createElement(d.c,{tenant:m}),menuItems:v,buttonProps:{variant:"outlined",endIcon:o().createElement(i.Z,null),classes:{root:p.menuButtonRoot}},popoverProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}})}},34635:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(24328),o=n.n(r),l=n(71153),a=n.n(l);const i=e=>{let{value:t}=e;return t||null},c=e=>{let{label:t}=e;return t||null};var s=n(79692);const u=(0,s.Z)((()=>({hidden:{display:"none"}}))),d=e=>{let{columnValue:t,rowData:n,setHoveredColumn:r,resetHoveredColumn:l,someRowIsDragging:c}=e;const s=u(),d=n.cellRenderer||i,m=r?()=>r(t):void 0;return o().createElement("td",{onMouseOver:m,onMouseLeave:l},o().createElement("div",{className:a()({[s.hidden]:c})},o().createElement(d,{value:t[n.id]})))};var m=n(14940),p=n(13896),g=n(42484);let f;!function(e){e.Column="Column",e.Row="Row"}(f||(f={}));const v=(0,s.Z)((e=>({tableData:{position:"relative","&:hover":{"& $dragIndicator":{opacity:1}}},dragIndicator:{opacity:0,position:"absolute",top:0,left:"50%",cursor:"move",transition:"opacity 0.3s",transform:"translateX(-50%) rotate(90deg)",zIndex:5},dragIndicatorIcon:{width:"14.4px",height:"18px",color:e.palette.text.secondary},hidden:{display:"none"}}))),h=e=>{let{columnValue:t,rowData:n,index:l,onMoveColumn:c,onDropColumn:s,shouldRenderDragIndicator:u,setHoveredColumn:d,resetHoveredColumn:h,someRowIsDragging:b}=e;const x=v(),y=o().useRef(null),C=o().useRef(null),w=n.cellRenderer||i,[{targetId:E},D]=(0,p.useDrop)({accept:f.Column,hover:(e,n)=>{var r;if(!y.current)return;const o=e.index,a=l;if(o===a)return;const i=null===(r=y.current)||void 0===r?void 0:r.getBoundingClientRect(),s=(i.right-i.left)/2,u=n.getClientOffset().x-i.left;o<a&&u<s||o>a&&u>s||(c(e.columnValue.id,t.id),e.index=a)},drop:()=>{s&&s()},collect:e=>({targetId:e.getHandlerId()})}),[{opacity:R,sourceId:I},k,O]=(0,p.useDrag)({item:{type:f.Column,index:l,getColumnWidth:()=>{var e;return null==y||null===(e=y.current)||void 0===e?void 0:e.offsetWidth},columnValue:t,rowData:n},isDragging:e=>e.getItem().index===l,collect:e=>({opacity:e.isDragging()?0:1,sourceId:e.getHandlerId()})});(0,r.useEffect)((()=>{O((0,g.r)(),{captureDraggingState:!0}),D(y),k(C)}),[]);const N=d?()=>d(t):void 0;return o().createElement("td",{style:{opacity:R},ref:y,className:x.tableData,"data-source-id":I,"data-target-id":E,onMouseOver:N,onMouseLeave:h},o().createElement("div",{className:a()({[x.hidden]:b})},u&&o().createElement("div",{ref:C,className:x.dragIndicator},o().createElement(m.Z,{className:x.dragIndicatorIcon})),o().createElement(w,{value:t[n.id]})))},b=(0,s.Z)((e=>({tableHead:{position:"relative","&:hover":{"& $dragIndicator":{opacity:1}}},dragIndicator:{height:"100%",opacity:0,position:"absolute",top:0,left:0,cursor:"move",transition:"opacity 0.3s"},dragIndicatorIcon:{top:"15px",width:"14.4px",height:"18px",color:e.palette.text.secondary,position:"relative"}}))),x=e=>{let{rowData:t,isDraggable:n,dragRef:r}=e;const l=b(),a=t.headCellRenderer||c;return o().createElement("th",{className:l.tableHead},n&&o().createElement("div",{ref:r,className:l.dragIndicator},o().createElement(m.Z,{className:l.dragIndicatorIcon})),o().createElement(a,t))},y=e=>{let{rowData:t,columnsData:n,index:r,onMoveColumn:l,onDropColumn:a,setHoveredColumn:i,resetHoveredColumn:c}=e;const s=0===r;return o().createElement("tr",{className:t.rowClassName},o().createElement(x,{rowData:t,isDraggable:!1}),n.map(((e,n)=>{const r=e.isDraggable,u=s&&r;return l?o().createElement(h,{key:e.id||n,columnValue:e,rowData:t,index:n,onMoveColumn:l,onDropColumn:a,shouldRenderDragIndicator:u,setHoveredColumn:i,resetHoveredColumn:c}):o().createElement(d,{key:e.id||n,rowData:t,columnValue:e,setHoveredColumn:i,resetHoveredColumn:c})})))},C=e=>{let{rowData:t,index:n,columnsData:l,onMoveRow:a,onDropRow:i,onMoveColumn:c,onDropColumn:s,setHoveredColumn:u,resetHoveredColumn:m,someRowIsDragging:g,setSomeRowIsDragging:v}=e;const b=o().useRef(null),y=o().useRef(null),[{targetId:C},w]=(0,p.useDrop)({accept:f.Row,hover:(e,r)=>{if(!b.current)return;const o=e.index,l=n;if(o===l)return;const i=b.current.getBoundingClientRect(),c=(i.bottom-i.top)/2,s=r.getClientOffset().y-i.top;o<l&&s<c||o>l&&s>c||(a(e.id,t.id),e.index=l)},drop:()=>{i&&i()},collect:e=>({targetId:e.getHandlerId()})}),[{isDragging:E,sourceId:D},R,I]=(0,p.useDrag)({item:{type:f.Row,index:n,id:t.id},collect:e=>({sourceId:e.getHandlerId(),isDragging:e.isDragging()})});(0,r.useEffect)((()=>{I(w(b)),R(y)}),[]),(0,r.useEffect)((()=>{v(E)}),[E,v]);const k=E?0:1;return o().createElement("tr",{className:t.rowClassName,style:{opacity:k},ref:b,"data-target-id":C,"data-source-id":D},o().createElement(x,{rowData:t,isDraggable:!0,dragRef:y}),l.map(((e,n)=>c?o().createElement(h,{key:e.id||n,columnValue:e,rowData:t,index:n,onMoveColumn:c,onDropColumn:s,shouldRenderDragIndicator:!1,setHoveredColumn:u,resetHoveredColumn:m,someRowIsDragging:g}):o().createElement(d,{key:e.id||n,columnValue:e,rowData:t,setHoveredColumn:u,resetHoveredColumn:m,someRowIsDragging:g}))))},w=e=>{let{columnWidth:t,columnHeight:n,item:r}=e;const{rowData:l,columnValue:a}=r,c=l.cellRenderer||i;return o().createElement("div",{style:{width:t,height:n,background:"rgba(245,245,245, .5)"}},o().createElement(c,{value:a[l.id]}))},E=(0,s.Z)({dragLayer:{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1300,pointerEvents:"none"}}),D=(e,t,n)=>{const r=(null==e?void 0:e.getBoundingClientRect())||{x:0,y:0},o=`translate(${(null==t?void 0:t.x)-(null==r?void 0:r.x)-n/2}px, ${(null==t?void 0:t.y)-(null==r?void 0:r.y)}px`;return{display:"flex",transform:o,WebkitTransform:o}},R=e=>{var t;let{columnHeight:n}=e;const l=E(),a=(0,r.useRef)(),{isDragging:i,clientOffset:c,item:s}=(0,p.useDragLayer)((e=>({isDragging:e.isDragging(),clientOffset:e.getClientOffset(),item:e.getItem()})));if(!i||!s)return null;const u=null===(t=s.getColumnWidth)||void 0===t?void 0:t.call(s);return o().createElement("div",{className:l.dragLayer,ref:a},o().createElement("div",{style:D(a.current,c,u)},s.type===f.Column&&o().createElement(w,{columnWidth:u,columnHeight:n,item:s})))},I=(0,r.memo)((e=>{var t;let{className:n,rowsData:l,columnsData:a,theadRowsNumber:i=0,onMoveRow:c,onDropRow:s,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p}=e;const[g,f]=(0,r.useState)(!1),v=(0,r.useRef)(null),h=null==v||null===(t=v.current)||void 0===t?void 0:t.offsetHeight,b=!!c||!!u;return o().createElement(o().Fragment,null,b&&o().createElement(R,{columnHeight:h}),o().createElement("table",{ref:v,className:n},i>0&&o().createElement("thead",null,l.slice(0,i).map(((e,t)=>o().createElement(y,{key:e.id||t,rowData:e,columnsData:a,index:t,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p})))),o().createElement("tbody",null,l.slice(i).map(((e,t)=>c?o().createElement(C,{key:e.id||t,index:t+i,rowData:e,columnsData:a,onMoveRow:c,onDropRow:s,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p,someRowIsDragging:g,setSomeRowIsDragging:f}):o().createElement(y,{key:e.id||t,index:t+i,rowData:e,columnsData:a,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p}))))))}))},52049:(e,t,n)=>{n.d(t,{B:()=>o});var r=n(24328);const o=n.n(r)().createContext("");o.displayName="IdContext"}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[4748],{12714:(e,t,n)=>{n.d(t,{Z:()=>O});var r=n(24328),o=n.n(r),l=n(52730),a=n(50914),i=n(86051),c=n(88832),s=n(39148),u=n(64731),d=n(2507),m=n.n(d),p=n(87685),g=n(74443),f=n(8818);function v(){return v=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},v.apply(this,arguments)}const h=e=>o().createElement("svg",v({width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",focusable:"false"},e),o().createElement("defs",null,o().createElement("path",{d:"M20.222 6C21.21 6 22 6.8 22 7.778v12.444C22 21.2 21.209 22 20.222 22H7.778C6.79 22 6 21.2 6 20.222V7.778C6 6.8 6.791 6 7.778 6h12.444zM8 8v12h12V8H8zM4 18H2V4c0-1.1.9-2 2-2h14v2H4v14z",id:"Duplicate_svg__a"})),o().createElement("g",{transform:"translate(-2 -2)",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},o().createElement("mask",{id:"Duplicate_svg__b",fill:"#fff"},o().createElement("use",{xlinkHref:"#Duplicate_svg__a"})),o().createElement("g",{mask:"url(#Duplicate_svg__b)",fill:"#000",fillOpacity:.54},o().createElement("path",{d:"M0 0h24v24H0z"}))));var b=n(79692);const x=(0,b.Z)((()=>({actions:{width:"88px",height:"24px",display:"flex",alignItems:"center",justifyContent:"space-between",flexShrink:0,"& >span":{cursor:"pointer",display:"flex"},"& $actionIcon":{cursor:"pointer",color:"rgba(0, 0, 0, .54)"}},actionIcon:{}}))),y=(0,r.memo)((e=>{let{rowData:t,rowContext:n}=e;const l=x(),{id:a,attribute:i}=t||{},{addRowAfterIndex:c,removeRow:s,duplicateRow:u}=n,d=(0,r.useCallback)((()=>{c(a)}),[c,a]),v=(0,r.useCallback)((()=>{u(a)}),[u,a]),b=(0,r.useCallback)((()=>{s(a)}),[a,s]);return o().createElement("div",{className:l.actions},o().createElement(f.k,{tooltipTitle:m().text("Add"),icon:g.Z,size:"M",onClick:d}),i&&o().createElement(f.k,{tooltipTitle:m().text("Duplicate"),icon:h,size:"M",onClick:v}),o().createElement(f.k,{tooltipTitle:m().text("Delete"),icon:p.default,size:"M",onClick:b}))}));var C=n(41315),w=n(99757);const E=(0,r.memo)((e=>{let{rowData:t,rowContext:n,attributeSelectorProps:l}=e;const{attribute:a,id:i,filter:s}=t||{},{changeFilter:u,addNewFilter:d,attributesGroup:m}=n,p=(0,r.useCallback)((e=>(0,c.e6O)({data:e})),[]),g=(0,r.useMemo)((()=>[{id:"",title:"",attributes:m}]),[m]),f=(0,r.useCallback)((e=>{if(t){const t={fieldName:e.attribute.fieldName,filter:s,values:[]};u(t,i)}else d({fieldName:e.attribute.fieldName,filter:null,values:[]})}),[d,u,i,t,s]);return o().createElement(w.Z,{itemsGroups:g,ungroup:!0,single:!0,value:a,getLabel:p,onSelect:f,onOpenPopup:l.onOpen})}));var D=n(70215);const R=(0,b.Z)((()=>({attrSelector:{width:"222px",height:"40px",flexShrink:0},filterSelector:{width:"180px",flexShrink:0,marginTop:0,marginBottom:0},actionContainer:{alignItems:"center",marginRight:"15px"}}))),I={fieldName:null,filter:null,values:[]},k=()=>null,O=(0,r.memo)((e=>{let{attributeTypes:t,filters:n,onChange:d,components:m={}}=e;const{ValuesEditor:p,FilterSelector:g}=m,f=(0,l.useSelector)(i.ZP.selectors.getMetadata),v=(0,c.nt9)(f,(0,s.gZ)(t)),{attrSelector:h,filterSelector:b,actionContainer:x}=R(),w=(0,r.useRef)(n);w.current=n;const O=(0,r.useRef)(null),N=(0,r.useRef)(null),S=(0,r.useRef)(null),Z=(0,r.useMemo)((()=>({attributeSelectorContainer:h,filterSelectorContainer:b,actionsContainer:x})),[h,b,x]),H=(0,r.useMemo)((()=>(0,s.Uk)(t,v,f)),[t,f,v]),T=(0,r.useMemo)((()=>n.length?(0,s.QB)(n,H):[]),[H,n]);S.current=T.length,(0,r.useEffect)((()=>{O.current&&N.current!==S.current&&(O.current.querySelector("input").focus(),N.current=null)}),[T.length]);const M=(0,r.useCallback)((()=>{N.current=T.length}),[T.length]),P=(0,r.useMemo)((()=>({onOpen:M})),[M]),j=(0,r.useCallback)((e=>{const t=[...w.current];t.splice(e+1,0,I),d(t)}),[d]),B=(0,r.useCallback)((e=>{const t=[...w.current];t.splice(e,1),d(t)}),[d]),F=(0,r.useCallback)((e=>{const t=[...w.current];t.splice(e+1,0,{fieldName:w.current[e].fieldName,filter:w.current[e].filter,values:w.current[e].values}),d(t)}),[d]),V=(0,r.useCallback)(((e,t)=>{const n=(0,a.evolve)({[t]:(0,a.always)(e)},w.current);d(n)}),[d]),z=(0,r.useCallback)((e=>{d([...w.current,e])}),[d]);return o().createElement(C.Z,{rowClasses:Z,rowsData:T,AttributeSelectorComponent:E,FilterSelectorComponent:g||u.Z,ValuesEditorComponent:p||D.Z,ActionsComponent:y,LogicOperatorComponent:k,filterSelectorRefIndex:N.current,filterSelectorRef:O,lastRowAttributeSelectorProps:P,attributesGroup:H,changeFilter:V,addNewFilter:z,addRowAfterIndex:j,removeRow:B,duplicateRow:F,entityType:v})}))},64731:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),o=n.n(r),l=n(2507),a=n.n(l),i=n(50914),c=n(6782),s=n(88832),u=n(31517),d=n(39148);const m=(0,n(79692).Z)({dropDownSelector:{width:"100%"}}),p=(0,r.memo)((e=>{let{rowData:t,rowContext:n,textFieldInputRef:l,options:p}=e;const g=m(),{attribute:{attrType:f={},fieldName:v=null}={},filter:h,id:b}=t||{},{changeFilter:x}=n,y=p||f&&v&&(0,i.pipe)(s.d3Y,(0,i.map)((e=>({value:e,label:(0,c.Z)((0,s.XS2)(e))}))))(f,v),C=(0,r.useCallback)((e=>{const t={fieldName:v,filter:e.value,values:[]};x(t,b)}),[x,b,v]);return(0,r.useEffect)((()=>{(v&&!h||v&&!(0,d.dG)(y,h))&&C(y[0])}),[v,h,C,y]),o().createElement(u.Z,{label:"",height:40,isDisabled:!y,placeholder:a().text("Equals"),value:(0,d.dG)(y,h),options:y,onChange:C,className:g.dropDownSelector,textFieldInputRef:l,TextFieldProps:{inputProps:{"data-reltio-id":"filter-selector"}}})}))},70215:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),o=n.n(r),l=n(88832),a=n(24754);const i=(0,n(79692).Z)({input:{margin:0,borderRadius:"4px",width:"100%",paddingTop:0,paddingBottom:0},root:{borderRadius:"4px 4px 0 0",padding:0,display:"flex",alignItems:"center",margin:0},valuesEditor:{display:"flex",alignItems:"center",width:"222px!important",minHeight:"40px",flexShrink:0}}),c=(0,r.memo)((e=>{let{rowData:t,rowContext:n}=e;const c=i(),s=(null==t?void 0:t.attribute)&&(0,l.wNf)(t.filter),{changeFilter:u}=n,{values:d=[],attribute:{attrType:m,fieldName:p=null}={},filter:g,id:f}=t||{},v=m&&(0,l.PFL)(m),h=v&&(0,l.l1V)(v,g),b=(0,r.useMemo)((()=>({filter:g,fieldName:p,values:d||[]})),[g,p,d]),x=(0,r.useMemo)((()=>({InputProps:{classes:{root:c.input}}})),[c]),y=(0,r.useMemo)((()=>({root:c.root})),[c]),C=(0,r.useCallback)((e=>{u({fieldName:p,filter:g,values:e},f)}),[u,f,p,g]);return o().createElement("div",{className:c.valuesEditor},(null==t?void 0:t.attribute)&&s&&o().createElement(a.Z,{"data-reltio-id":"filter-value-editor",filter:b,onChange:C,dataTypeDefinition:h,fullWidth:!0,TextFieldProps:x,color:"primary",classes:y,orientation:"horizontal"}))}))},39148:(e,t,n)=>{n.d(t,{Uk:()=>s,dG:()=>d,QB:()=>m,gZ:()=>p});var r=n(88832),o=n(50914);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,t,n,a)=>{const i=(0,r.jFi)(e,{type:n}),c=t.label||t.name;return l({attrType:t,title:c},(0,r.kqr)(t)?{fieldName:t.name}:{entityTypeUri:n,pathToTitle:Array.isArray(a)?[i,...(0,o.chain)((0,o.prop)("label"),a),c]:[i,c],fieldName:(0,r.Tde)(t.uri,a)})},c=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const o=l({},i(e,t,n,r),{uri:t.uri}),a=t.children?t.children.map((o=>c(e,o,n,r.concat(t)))):[];return a.length&&(o.children=a),o},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(0,r.kkq)(e,n).map((e=>{const o=(0,r.kqr)(e)?null:t.uri;return c(n,e,o)}))},u=(e,t)=>{let n;const r=(e,t)=>{for(const o of t){if(e===o.fieldName)return void(n=o);"children"in o&&r(e,o.children)}};return r(e,t),n},d=(e,t)=>e?e.find((e=>e.value===t)):null,m=(e,t)=>e.map(((e,n)=>({attribute:e.fieldName?u(e.fieldName,t):void 0,filter:e.filter,id:n,values:e.values}))),p=e=>{const t=e.find((e=>!(0,r.kqr)(e)));return t?(0,r.u5q)(t.uri):null}},63172:(e,t,n)=>{n.d(t,{Z:()=>x});var r=n(24328),o=n.n(r),l=n(2507),a=n.n(l),i=n(94079),c=n(36444),s=n(88832),u=n(12714),d=n(79692);function m(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){p(e,t,n[t])}))}return e}function p(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={alignSelf:"center"},f=(0,d.Z)((()=>({buttonsWrapper:{display:"flex"},applyButton:m({},g,{marginRight:"16px"}),cancelButton:m({},g,{marginLeft:"auto"}),clearButon:m({},g)}))),v=e=>{let{onClear:t,onCancel:n,onApply:r}=e;const l=f();return o().createElement("div",{className:l.buttonsWrapper},o().createElement(i.Button,{onClick:t,variant:"text",color:"default",className:l.clearButon},a().text("Clear all")),o().createElement(i.Button,{onClick:n,variant:"text",color:"default",className:l.cancelButton},a().text("Cancel")),o().createElement(i.Button,{onClick:r,variant:"text",color:"primary",className:l.applyButton},a().text("Apply")))};var h=n(41128);const b=(0,d.Z)((e=>({triggerButton:{minWidth:0,color:"rgba(0,0,0,0.54)",width:"40px",marginLeft:"auto",marginRight:"12px"},filtersBuilderWrapper:{marginTop:"20px"},popupContent:{paddingLeft:"16px",paddingTop:"20px",paddingBottom:"6px",width:"770px"},divider:{marginBottom:"14px",marginLeft:"-16px",background:"rgba(0, 0, 0, 0.121569)"},changedFiltersIndicator:{backgroundColor:(0,h.U1)(e.palette.primary.main,.12)}}))),x=(0,r.memo)((e=>{let{filters:t,attributeTypes:n,onChange:l,components:d,children:m,onTogglePopup:p,isFiltersApplied:g,dataReltioId:f}=e;const h=b(),x=(0,r.useRef)(),[y,C]=(0,r.useState)(!1),[w,E]=(0,r.useState)([]),D=(null!=g?g:(0,s.Uqd)()(t))?"primary":"inherit",R=()=>{p&&p(!y),C((e=>!e))};(0,r.useEffect)((()=>{y&&E(t)}),[t,y]);const I=(0,r.useCallback)((()=>{l(w),R()}),[w,l]),k=(0,r.useCallback)((()=>{R()}),[]),O=(0,r.useCallback)((()=>{E([])}),[]);return o().createElement(o().Fragment,null,o().createElement(i.Button,{"data-reltio-id":f,ref:x,color:D,classes:{root:h.triggerButton,textPrimary:h.changedFiltersIndicator},onClick:R},o().createElement(c.Z,{color:D})),o().createElement(i.Popover,{open:y,classes:{paper:h.popupContent},anchorEl:x.current,onClose:R,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}},o().createElement(o().Fragment,null,o().createElement(i.Typography,{variant:"h6"},a().text("Filter")),o().createElement("div",{className:h.filtersBuilderWrapper},m,o().createElement(u.Z,{attributeTypes:n,filters:w,onChange:E,components:d})),o().createElement(i.Divider,{className:h.divider}),o().createElement(v,{onApply:I,onCancel:k,onClear:O}))))}))},32540:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(50914),o=n(24328),l=n.n(o),a=n(73038),i=n(21697);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const s=e=>{let{columnId:t,rowIndex:n,collapseContextValue:o,getRowHeight:s,tableRowsData:u,columnsData:d,getHeightForSubRow:m}=e,p=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,["columnId","rowIndex","collapseContextValue","getRowHeight","tableRowsData","columnsData","getHeightForSubRow"]);const g=u[n];return l().createElement(a.x.Provider,{value:o},l().createElement("div",c({},p,{style:{height:s(null==g?void 0:g.id)}}),u.length>0&&(0,i.getCellContentFromRowsData)({columnIndex:d.findIndex((0,r.propEq)("id",t)),headData:d,rowData:g,id:g.id,getHeightForSubRow:m})))}},40454:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),o=n(21697),l=n(14838),a=n(25461),i=n(50914),c=n(60730);const s=e=>{let{rowsData:t,columnsData:n,getIdFromRowValue:s,renderRowCell:u=l.Z,getRowCellHeight:d=a.Z,defaultRowHeight:m=48,maxRowValuesCount:p=1/0}=e;const{tableRowsData:g,collapseContextValue:f}=(0,c.Z)({rowsData:t,columnsData:n,renderRowCell:u,getRowCellHeight:d,maxRowValuesCount:p,getIdFromRowValue:s});return(0,r.useMemo)((()=>{const e=g.reduce(((e,t)=>{const{data:n,id:r}=t;return e[r]=(0,o.calculateRowHeight)(n,m),e}),{});return{getRowHeight:t=>(0,i.pathOr)(0,[t,"height"],e),collapseContextValue:f,getHeightForSubRow:(t,n,r)=>{const o=[t,"subRowHeight",n,r,"height"];return(0,i.pathOr)(0,o,e)},tableRowsData:g}}),[g,m,f])}},86776:(e,t,n)=>{n.d(t,{R:()=>f});var r=n(24328),o=n.n(r),l=n(71153),a=n.n(l),i=n(52730),c=n(50914),s=n(86051),u=n(94079),d=n(79692),m=n(88832);const p=(0,d.Z)({root:e=>{let{dataTenantId:t}=e;const n=(0,m.bsH)(t);return{backgroundColor:n,color:(0,m.nHA)(n),height:"18px",padding:"0 3px"}}}),g=e=>`DT:${(0,c.slice)(0,1,e)}`,f=e=>{let{dataTenantId:t,className:n}=e;const r=p({dataTenantId:t}),l=(0,i.useSelector)(s.ZP.selectors.getDataTenants),d=(0,c.pipe)((0,c.defaultTo)([]),(0,c.find)((0,c.propEq)("id",t)))(l),m=(0,c.pipe)((0,c.propOr)("","label"),c.toUpper,(0,c.ifElse)((0,c.startsWith)("DT:"),(0,c.slice)(0,4),g))(d),f=o().createElement("div",{className:a()(r.root,n)},o().createElement(u.Typography,{variant:"body2"},m));return null!=d&&d.label?o().createElement(u.Tooltip,{title:d.label},f):f}},58970:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),o=n.n(r),l=n(52730),a=n(86051),i=n(88832),c=n(52309);const s=e=>{let{name:t,values:n,onChange:s,entityType:u,TextFieldProps:d,fullWidth:m}=e;const p=(0,l.useSelector)(a.ZP.selectors.getMetadata),[g,f]=(0,r.useMemo)((()=>(0,i.UkJ)((0,i.KbW)(p,null==u?void 0:u.uri))),[null==u?void 0:u.uri,p]),v=(0,r.useMemo)((()=>function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((e=>{let{label:t,uri:n}=e;return{label:t,value:n}}))}(t===i.Ury.matchRules?f:g)),[t,f,g]);return o().createElement(c.Z,{values:n,onChange:s,options:v,TextFieldProps:d,fullWidth:m})};s.displayName="MatchRulesSelector";const u=s},52309:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(24328),o=n.n(r),l=n(50914),a=n(88832),i=n(96808),c=n(12079),s=n(36179),u=n(82455),d=n(92575),m=n(31276);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){g(e,t,n[t])}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=(0,n(79692).Z)((e=>({option:{paddingLeft:"35px"},dropdownIndicator:{cursor:"pointer",color:e.palette.text.secondary,marginTop:0,marginBottom:0},clearIndicator:{display:"none"}}))),v={input:e=>p({},e,{fontSize:"14px"}),menuPortal:e=>p({},e,{zIndex:1300}),menuList:e=>p({},e,{maxHeight:"240px",padding:"8px 0"}),menu:e=>p({},e,{maxHeight:"240px"})};function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){b(e,t,n[t])}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const x=e=>{let{values:t=[],onChange:n,options:p,fullWidth:g,TextFieldProps:b={}}=e;const x=f(),y=(0,r.useRef)(null),C=(0,r.useCallback)((e=>p.find((t=>t.value===e))||{value:e,label:e}),[p]),w=(0,r.useMemo)((()=>t.map(C)),[C,t]),{InputProps:E={},className:D}=b,R=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}(b,["InputProps","className"]);return o().createElement(d.Z,{value:w,onChange:(0,l.pipe)((0,l.defaultTo)([]),(0,l.pluck)("value"),n),options:p,TextFieldProps:h({InputProps:h({disableUnderline:(0,a.O27)(t)},E),variant:"filled",className:D,ref:y},R),components:{DropdownIndicator:i.Z,Option:c.Z,Menu:s.Z,MultiValue:u.Z,IndicatorSeparator:m.Vd},inputRef:y,classes:x,styles:h({},v,{container:e=>h({},e,g?{width:"100%"}:{})}),menuPortalTarget:document.body})};x.displayName="MultiValueSelector";const y=(0,r.memo)(x)},35071:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(13980),o=n.n(r),l=n(24328),a=n.n(l),i=n(73272),c=n(58241);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 u=e=>a().createElement("svg",s({viewBox:"0 0 20 20"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 10L14 5.5V9h-3.5L5 3.5 3.5 5l6.04 6H14v3.5l4.5-4.5zM7.04 11.455L3.5 15 5 16.5l3.54-3.545-1.5-1.5z"}));var d=n(2507),m=n.n(d),p=n(71153),g=n.n(p);const f=(0,n(79692).Z)((e=>({expanded:{backgroundColor:"rgba(0, 0, 0, 0.03)"},info:{fontSize:"13px",color:e.palette.text.secondary,wordWrap:"break-word"},icon:{width:"32px",height:"32px",fill:"#fff",backgroundColor:"rgba(177, 92, 189, 1)",borderRadius:"50%",margin:"5px 12px 0 8px"},infoBlock:{display:"flex",flexDirection:"row"},header:{display:"flex",flexDirection:"row",paddingBottom:"5px"},flex:{flex:1},caption:{fontSize:"16px",color:"rgba(0, 0, 0, 0.87)"},title:{display:"flex",flexDirection:"row",alignItems:"center",margin:"6px 0 8px 0"},flag:{height:"12px",width:"12px",stroke:"#000000",fill:"none",margin:"2px 5px 0 5px"},pmReviewCard:{borderTop:"3px solid #E83D40",flexDirection:"column",width:"100%"},date:{fontSize:"13px",color:"rgba(0, 0, 0, 0.87)"},mainInfo:{display:"flex",flexDirection:"column",flex:1}}))),v=e=>{let{date:t,type:n,createdBy:r,step:o,children:s,Actions:d}=e;const p=f(),[v,h]=(0,l.useState)(!1);return a().createElement("div",{className:p.pmReviewCard},a().createElement("div",{className:g()(p.header,{[p.expanded]:v})},a().createElement(u,{className:p.icon}),a().createElement("div",{className:p.mainInfo},a().createElement("div",{className:p.title},a().createElement("div",{className:g()(p.caption,p.flex)},m().text("Match review")),a().createElement(i.Z,{className:p.flag}),a().createElement("span",{className:p.date},m().date(t,"L")),a().createElement(c.Z,{isOpen:v,onClick:()=>{h(!v)}})),a().createElement("div",{className:p.infoBlock},a().createElement("div",{className:p.flex},a().createElement("div",{className:p.info},n),a().createElement("div",{className:p.info},m().text("Created by ${createdBy}",{createdBy:r})),a().createElement("div",{className:p.info},m().text("Step: ${step}",{step:o}))),d))),v?s:null)};v.propTypes={date:o().number,createdBy:o().string,type:o().string,step:o().string,children:o().oneOfType([o().node,o().arrayOf(o().node)]),Actions:o().node};const h=v},14377:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(24328),o=n.n(r),l=n(47603),a=n(2507),i=n.n(a),c=n(8818),s=n(55847),u=n(50914),d=n(94079);const m=(0,n(79692).Z)((e=>({menuItem:{height:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px"},checkbox:{padding:0,marginRight:"15px"}}))),p=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=u.identity}=e;const l=m(),{text:a,onClick:i,id:c,selected:s}=n;return o().createElement(d.MenuItem,{classes:{root:l.menuItem},onClick:e=>{r(e),i(e)},ref:t,"data-modal":!0,"data-reltio-id":`reltio-settings-menu-item${c}`},o().createElement(d.Checkbox,{checked:s,className:l.checkbox,color:"primary"}),o().createElement(d.Typography,{classes:{root:l.menuText}},a))}));p.displayName="SettingsMenuItemRenderer";const g=p,f=e=>{let{items:t,menuId:n}=e;return o().createElement(s.Z,{buttonComponent:c.k,buttonProps:{icon:l.Z,tooltipTitle:i().text("Settings"),size:"L"},menuId:n,menuItems:t,MenuItemRenderer:g})}},54337:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(24328),o=n.n(r),l=n(52730),a=n(50914),i=n(86051),c=n(88832),s=n(52309);const u=e=>{let{values:t,onChange:n,TextFieldProps:u,fullWidth:d}=e;const m=(0,l.useSelector)(i.ZP.selectors.getMetadata),p=(0,r.useMemo)((()=>(0,a.pipe)((0,a.sortBy)((e=>e.label)),(0,a.map)((e=>{let{label:t,uri:n}=e;return{label:t,value:(0,c.nIW)(n)}})))(m.sources)),[m.sources]);return o().createElement(s.Z,{values:t,onChange:n,options:p,TextFieldProps:u,fullWidth:d})};u.displayName="SourceSystemsSelector";const d=u},59651:(e,t,n)=>{n.d(t,{c:()=>s});var r=n(88832),o=n(24328),l=n.n(o),a=n(50914),i=n(94079);const c=(0,n(79692).Z)({root:{height:"18px",width:"18px",textAlign:"center"}}),s=e=>{let{tenant:t}=e;const n=c(),s=(0,o.useMemo)((()=>{const e=(0,r.bsH)(null==t?void 0:t.id);return{backgroundColor:e,color:(0,r.nHA)(e)}}),[null==t?void 0:t.id]);return l().createElement("div",{style:s,className:n.root},l().createElement(i.Typography,{variant:"body2"},(0,a.toUpper)((0,a.head)(null==t?void 0:t.name))))}},95474:(e,t,n)=>{n.d(t,{H:()=>x});var r=n(24328),o=n.n(r),l=n(52730),a=n(50914),i=n(83543),c=n(86051),s=n(88832),u=n(55847),d=n(59651),m=n(94079),p=n(31276),g=n(79692);const f=(0,g.Z)({root:{minHeight:"48px",gap:"30px"}}),v=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=p.ZT}=e;const l=f(),{tenant:a,onClick:i}=n,c=a.label?`${a.label} : ${a.name}`:a.name;return o().createElement(m.MenuItem,{onClick:()=>{r(),i(a)},ref:t,className:l.root},o().createElement(d.c,{tenant:a}),o().createElement(m.Typography,null,c))}));v.displayName="TenantMenuItem";const h=v,b=(0,g.Z)({menuButtonRoot:{padding:0}}),x=e=>{let{entityTypeUri:t,onChangeTenant:n,selectedTenant:m}=e;const p=b(),g=(0,l.useSelector)(c.ZP.selectors.getDataTenants),f=(0,l.useSelector)(c.ZP.selectors.getTenantObject),v=(0,r.useMemo)((()=>(0,a.pipe)((0,a.defaultTo)([]),(0,a.filter)((0,s.oZ7)(t)),(0,a.map)((e=>({tenant:e,onClick:n}))),(0,a.prepend)({tenant:f,onClick:n}))(g)),[g,t,n,f]);return(0,s.O27)(g)||!n?null:o().createElement(u.Z,{menuId:"tenantSelector",MenuItemRenderer:h,buttonContent:o().createElement(d.c,{tenant:m}),menuItems:v,buttonProps:{variant:"outlined",endIcon:o().createElement(i.Z,null),classes:{root:p.menuButtonRoot}},popoverProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}})}},34635:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(24328),o=n.n(r),l=n(71153),a=n.n(l);const i=e=>{let{value:t}=e;return t||null},c=e=>{let{label:t}=e;return t||null};var s=n(79692);const u=(0,s.Z)((()=>({hidden:{display:"none"}}))),d=e=>{let{columnValue:t,rowData:n,setHoveredColumn:r,resetHoveredColumn:l,someRowIsDragging:c}=e;const s=u(),d=n.cellRenderer||i,m=r?()=>r(t):void 0;return o().createElement("td",{onMouseOver:m,onMouseLeave:l},o().createElement("div",{className:a()({[s.hidden]:c})},o().createElement(d,{value:t[n.id]})))};var m=n(14940),p=n(13896),g=n(42484);let f;!function(e){e.Column="Column",e.Row="Row"}(f||(f={}));const v=(0,s.Z)((e=>({tableData:{position:"relative","&:hover":{"& $dragIndicator":{opacity:1}}},dragIndicator:{opacity:0,position:"absolute",top:0,left:"50%",cursor:"move",transition:"opacity 0.3s",transform:"translateX(-50%) rotate(90deg)",zIndex:5},dragIndicatorIcon:{width:"14.4px",height:"18px",color:e.palette.text.secondary},hidden:{display:"none"}}))),h=e=>{let{columnValue:t,rowData:n,index:l,onMoveColumn:c,onDropColumn:s,shouldRenderDragIndicator:u,setHoveredColumn:d,resetHoveredColumn:h,someRowIsDragging:b}=e;const x=v(),y=o().useRef(null),C=o().useRef(null),w=n.cellRenderer||i,[{targetId:E},D]=(0,p.useDrop)({accept:f.Column,hover:(e,n)=>{var r;if(!y.current)return;const o=e.index,a=l;if(o===a)return;const i=null===(r=y.current)||void 0===r?void 0:r.getBoundingClientRect(),s=(i.right-i.left)/2,u=n.getClientOffset().x-i.left;o<a&&u<s||o>a&&u>s||(c(e.columnValue.id,t.id),e.index=a)},drop:()=>{s&&s()},collect:e=>({targetId:e.getHandlerId()})}),[{opacity:R,sourceId:I},k,O]=(0,p.useDrag)({item:{type:f.Column,index:l,getColumnWidth:()=>{var e;return null==y||null===(e=y.current)||void 0===e?void 0:e.offsetWidth},columnValue:t,rowData:n},isDragging:e=>e.getItem().index===l,collect:e=>({opacity:e.isDragging()?0:1,sourceId:e.getHandlerId()})});(0,r.useEffect)((()=>{O((0,g.r)(),{captureDraggingState:!0}),D(y),k(C)}),[]);const N=d?()=>d(t):void 0;return o().createElement("td",{style:{opacity:R},ref:y,className:x.tableData,"data-source-id":I,"data-target-id":E,onMouseOver:N,onMouseLeave:h},o().createElement("div",{className:a()({[x.hidden]:b})},u&&o().createElement("div",{ref:C,className:x.dragIndicator},o().createElement(m.Z,{className:x.dragIndicatorIcon})),o().createElement(w,{value:t[n.id]})))},b=(0,s.Z)((e=>({tableHead:{position:"relative","&:hover":{"& $dragIndicator":{opacity:1}}},dragIndicator:{height:"100%",opacity:0,position:"absolute",top:0,left:0,cursor:"move",transition:"opacity 0.3s"},dragIndicatorIcon:{top:"15px",width:"14.4px",height:"18px",color:e.palette.text.secondary,position:"relative"}}))),x=e=>{let{rowData:t,isDraggable:n,dragRef:r}=e;const l=b(),a=t.headCellRenderer||c;return o().createElement("th",{className:l.tableHead},n&&o().createElement("div",{ref:r,className:l.dragIndicator},o().createElement(m.Z,{className:l.dragIndicatorIcon})),o().createElement(a,t))},y=e=>{let{rowData:t,columnsData:n,index:r,onMoveColumn:l,onDropColumn:a,setHoveredColumn:i,resetHoveredColumn:c}=e;const s=0===r;return o().createElement("tr",{className:t.rowClassName},o().createElement(x,{rowData:t,isDraggable:!1}),n.map(((e,n)=>{const r=e.isDraggable,u=s&&r;return l?o().createElement(h,{key:e.id||n,columnValue:e,rowData:t,index:n,onMoveColumn:l,onDropColumn:a,shouldRenderDragIndicator:u,setHoveredColumn:i,resetHoveredColumn:c}):o().createElement(d,{key:e.id||n,rowData:t,columnValue:e,setHoveredColumn:i,resetHoveredColumn:c})})))},C=e=>{let{rowData:t,index:n,columnsData:l,onMoveRow:a,onDropRow:i,onMoveColumn:c,onDropColumn:s,setHoveredColumn:u,resetHoveredColumn:m,someRowIsDragging:g,setSomeRowIsDragging:v}=e;const b=o().useRef(null),y=o().useRef(null),[{targetId:C},w]=(0,p.useDrop)({accept:f.Row,hover:(e,r)=>{if(!b.current)return;const o=e.index,l=n;if(o===l)return;const i=b.current.getBoundingClientRect(),c=(i.bottom-i.top)/2,s=r.getClientOffset().y-i.top;o<l&&s<c||o>l&&s>c||(a(e.id,t.id),e.index=l)},drop:()=>{i&&i()},collect:e=>({targetId:e.getHandlerId()})}),[{isDragging:E,sourceId:D},R,I]=(0,p.useDrag)({item:{type:f.Row,index:n,id:t.id},collect:e=>({sourceId:e.getHandlerId(),isDragging:e.isDragging()})});(0,r.useEffect)((()=>{I(w(b)),R(y)}),[]),(0,r.useEffect)((()=>{v(E)}),[E,v]);const k=E?0:1;return o().createElement("tr",{className:t.rowClassName,style:{opacity:k},ref:b,"data-target-id":C,"data-source-id":D},o().createElement(x,{rowData:t,isDraggable:!0,dragRef:y}),l.map(((e,n)=>c?o().createElement(h,{key:e.id||n,columnValue:e,rowData:t,index:n,onMoveColumn:c,onDropColumn:s,shouldRenderDragIndicator:!1,setHoveredColumn:u,resetHoveredColumn:m,someRowIsDragging:g}):o().createElement(d,{key:e.id||n,columnValue:e,rowData:t,setHoveredColumn:u,resetHoveredColumn:m,someRowIsDragging:g}))))},w=e=>{let{columnWidth:t,columnHeight:n,item:r}=e;const{rowData:l,columnValue:a}=r,c=l.cellRenderer||i;return o().createElement("div",{style:{width:t,height:n,background:"rgba(245,245,245, .5)"}},o().createElement(c,{value:a[l.id]}))},E=(0,s.Z)({dragLayer:{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1300,pointerEvents:"none"}}),D=(e,t,n)=>{const r=(null==e?void 0:e.getBoundingClientRect())||{x:0,y:0},o=`translate(${(null==t?void 0:t.x)-(null==r?void 0:r.x)-n/2}px, ${(null==t?void 0:t.y)-(null==r?void 0:r.y)}px`;return{display:"flex",transform:o,WebkitTransform:o}},R=e=>{var t;let{columnHeight:n}=e;const l=E(),a=(0,r.useRef)(),{isDragging:i,clientOffset:c,item:s}=(0,p.useDragLayer)((e=>({isDragging:e.isDragging(),clientOffset:e.getClientOffset(),item:e.getItem()})));if(!i||!s)return null;const u=null===(t=s.getColumnWidth)||void 0===t?void 0:t.call(s);return o().createElement("div",{className:l.dragLayer,ref:a},o().createElement("div",{style:D(a.current,c,u)},s.type===f.Column&&o().createElement(w,{columnWidth:u,columnHeight:n,item:s})))},I=(0,r.memo)((e=>{var t;let{className:n,rowsData:l,columnsData:a,theadRowsNumber:i=0,onMoveRow:c,onDropRow:s,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p}=e;const[g,f]=(0,r.useState)(!1),v=(0,r.useRef)(null),h=null==v||null===(t=v.current)||void 0===t?void 0:t.offsetHeight,b=!!c||!!u;return o().createElement(o().Fragment,null,b&&o().createElement(R,{columnHeight:h}),o().createElement("table",{ref:v,className:n},i>0&&o().createElement("thead",null,l.slice(0,i).map(((e,t)=>o().createElement(y,{key:e.id||t,rowData:e,columnsData:a,index:t,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p})))),o().createElement("tbody",null,l.slice(i).map(((e,t)=>c?o().createElement(C,{key:e.id||t,index:t+i,rowData:e,columnsData:a,onMoveRow:c,onDropRow:s,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p,someRowIsDragging:g,setSomeRowIsDragging:f}):o().createElement(y,{key:e.id||t,index:t+i,rowData:e,columnsData:a,onMoveColumn:u,onDropColumn:d,setHoveredColumn:m,resetHoveredColumn:p}))))))}))},52049:(e,t,n)=>{n.d(t,{B:()=>o});var r=n(24328);const o=n.n(r)().createContext("");o.displayName="IdContext"}}]);
2
2
  //# sourceMappingURL=4748.js.map
package/4843.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[4843],{34843:(e,t,r)=>{r.r(t),r.d(t,{ACTIVENESS_ATTR_TYPES:()=>i.ViP,ACTIVITY_TYPES:()=>i.IL3,ActivenessAttrTypes:()=>i.PY2,ActivityFilter:()=>i.Ng6,ActivityFilters:()=>i.YJ7,AdditionalFilterOptionsValues:()=>i.NlI,AllDateRangeValues:()=>i.XYV,ApiErrorCode:()=>i.Xt7,AttributeErrorType:()=>i.wfT,AttributeTypeType:()=>i.EMD,AttributeValuePathItemType:()=>i.HAc,AuditAttrTypes:()=>i.PEf,CardinalityType:()=>i.oA3,ChartTypes:()=>i.$XE,CollaborationAttrTypes:()=>i.eWf,CollaborationObjectTypes:()=>i.q7e,ComplexAttributeType:()=>i.KVe,ConfigPermissions:()=>i.WVQ,ConnectionEntityType:()=>i.oZZ,ConnectionRelationType:()=>i.bNA,ConnectionType:()=>i.Rjq,CrosswalksAttrTypes:()=>i.G39,CustomAction:()=>i.W0P,CustomScriptPlatform:()=>i.X1H,DCRChangeRequestState:()=>i.hdG,DCROperationTypes:()=>i.ws7,DCRTypes:()=>i.VI$,DQDataLevel:()=>i.yn8,DQMetric:()=>i.N0y,DashboardViewTypes:()=>i.dZX,DataTenantType:()=>i.bQt,DataTypes:()=>i.oS0,DateRangeTypes:()=>i.KfU,DateRangeValue:()=>i.bZE,Directions:()=>i.Nsj,DraftMarks:()=>i.psV,EntityAttrTypes:()=>i.xPW,EntityType:()=>i.pyR,EntityTypeType:()=>i.p8l,ErrorSeverity:()=>i.Wkf,ErrorSource:()=>i.zHr,ErrorType:()=>i.NIO,FACET_TYPES:()=>i.$26,FileValueType:()=>i.Esk,FillRateState:()=>i.s9T,FilterBuilder:()=>i.MEy,FilterOptions:()=>i.j5E,FilterType:()=>i.vAw,FilterValueType:()=>i.NMQ,GlobalContextValue:()=>i.eVu,GraphLayout:()=>i.YGb,GraphTypeType:()=>i.mNm,HistoryOperations:()=>i.Y1q,InteractionTypeType:()=>i.RgZ,KeywordSearchType:()=>i.Qy0,LOCALE_ATTRIBUTE_PRESENTATION:()=>i.Q26,LookupValueType:()=>i.pYu,MAP_SEARCH_TYPES:()=>i.wIJ,MapSearch:()=>i.GFH,MatchRulesAttrNames:()=>i.Ury,MatchRulesAttrTypes:()=>i.S91,MatchRulesType:()=>i.p3$,Maybe:()=>i.wSh,MetadataPermissions:()=>i.BDP,MetadataType:()=>i.pGS,Mode:()=>i.ARY,ModeType:()=>i.XGc,ModeTypes:()=>i.fO_,NODE_EDITING_MODES:()=>i.wwy,NOT_MATCH:()=>i.h_8,NO_LABEL:()=>i._XL,NestedAttributeType:()=>i.j2V,NestedAttributeValueType:()=>i.dMV,Node:()=>i.NBX,NumberPresentationStrategy:()=>i.xYD,Operation:()=>i.OXy,Operations:()=>i.BXd,Order:()=>i.KM9,PagingType:()=>i.CJB,PerspectiveClass:()=>i.lXI,PotentialMatchesAttrTypes:()=>i.C68,PotentialMatchesConfigType:()=>i.yxQ,PredefinedWorkflowProcessType:()=>i.Yj_,PreviewPanelMode:()=>i.D25,ProfileViewTypes:()=>i.ZIY,READABLE_QUERY_PRIMITIVE_TYPES:()=>i.Tl4,RdmAttrTypes:()=>i.lwr,ReferenceAttributeType:()=>i.NkU,ReferenceAttributeValueType:()=>i.Rtp,RelationDirections:()=>i.YGx,RelationType:()=>i.uTS,RelationTypeDirection:()=>i.MCv,RelationTypeType:()=>i.IYE,RelationsConfigType:()=>i.PiC,RequestAction:()=>i.MVv,STATUS_CODE_FIELD:()=>i.Q_m,ScreenItemType:()=>i.h_m,SearchDrivenDateRangeValues:()=>i.DUe,SearchOperator:()=>i.tJI,SearchResultMode:()=>i.fDt,SimpleAttributeValueType:()=>i.cNQ,SimpleLookupType:()=>i.SwE,SortOrderType:()=>i.ZHR,SortingStrategy:()=>i.PYu,SpecialAttrTypes:()=>i.lD1,StatusVF:()=>i.lVm,TREE_DEFAULT_SORT_FIELD:()=>i.vnX,TREE_DEFAULT_SORT_ORDER:()=>i.$x5,TREE_SORT_FIELD_VALUES:()=>i._R1,TREE_SORT_ORDER_VALUES:()=>i.wUm,UniquenessAnalysisState:()=>i.dC6,UnmergeOperation:()=>i.MBD,UserPermissions:()=>i.GmF,ValidationServiceOption:()=>i.cKm,WorkflowAttrTypes:()=>i.iP_,WorkflowPriority:()=>i.NVC,addAttribute:()=>i.tPT,addCommentForTask:()=>i.tZe,addCrosswalk:()=>i.kRE,addCrosswalkInContributor:()=>i.psB,addDefaultValuesToAttributes:()=>i.X0$,addDefaultValuesToComplexAttribute:()=>i.$vY,addEntityAttributes:()=>i.zE1,addEntitySpecialAttribute:()=>i.Wm5,addGlobalFilterToQuery:()=>i.vyX,addNewAttribute:()=>i.wLZ,addProtocolToLink:()=>i.W4V,addReferencedRelationCrosswalks:()=>i.EtK,addToEntityRequiredAttributes:()=>i.ayi,addValueToDependentLookups:()=>i.asT,applyCrosswalks:()=>i.kGs,applyPresentationStrategyToValue:()=>i.RLE,applyRelationTypeObject:()=>i.ewt,areAllOperatorsAnd:()=>i.O_f,areOneHierarchyUris:()=>i.sOy,attributePresentationStrategyCustomization:()=>i.kP7,attributeUriToSearchUri:()=>i.Tde,basicFilterBuildRules:()=>i.LMI,buildAttributesReadableQuery:()=>i.skb,buildBasicFilterString:()=>i.sPt,buildComplexFilterString:()=>i.sH1,buildDateRangeFilterClause:()=>i.lPZ,buildEntityTypeFilterClause:()=>i.bG8,buildEntityUriFilterClause:()=>i._LJ,buildError:()=>i.RPM,buildFilterHierarchyList:()=>i.h27,buildFilterQueryString:()=>i.Uqd,buildHierarchyAttributesReadableQuery:()=>i.xG,buildLookupRecord:()=>i.Z2f,buildOperationsToString:()=>i.fgW,buildReadableQuery:()=>i.I69,buildReadableQueryToString:()=>i.ZxB,buildSourceFilterClause:()=>i.dwd,buildUserFilterClause:()=>i.F$g,calcTotalCommentItems:()=>i.mdt,calculateCrosswalkTreeDeep:()=>i.Qbq,canCreateRelationBetweenEntities:()=>i.rny,canUserCreateWorkflowConfigJar:()=>i.UEY,canUserCreateWorkflowEnvironmentConfigJar:()=>i.Q0T,canUserDeleteProfiles:()=>i.Lyr,canUserExecuteWorkflowJobs:()=>i.sBn,canUserExecuteWorkflowJobsSyncBusinessProcessData:()=>i.itK,canUserExecuteWorkflowJobsTerminateProcessInstance:()=>i.H9$,canUserExecuteWorkflowJobsUpdateTasks:()=>i.KPc,canUserExecuteWorkflowJobsValidateTasks:()=>i.zos,canUserGetDQStatistic:()=>i.ELQ,canUserImportEntitiesFromDT:()=>i.dZs,canUserMakeActivitiesExport:()=>i.Cz4,canUserMakeBulkUpdate:()=>i.z_L,canUserMakeExport:()=>i.fGe,canUserManageWorkflowDefinition:()=>i.iuF,canUserManageWorkflowEnvironmentDefinition:()=>i.Wib,canUserOpenDataLoader:()=>i.Hn0,canUserReadDVF:()=>i.obS,canUserReadEntitiesFromDT:()=>i.E$L,canUserReadWorkflowDataTask:()=>i.XUh,canUserRegisterConfigEnvironments:()=>i.Qp_,canUserStartProcessInstanceFromQuery:()=>i._jk,canUserUpdateProcessInstance:()=>i.sKE,canUserUpdateWorkflowDataTask:()=>i.WmG,canUserViewProcessInstanceSearchQuery:()=>i.QKx,canUserViewWorkflowConfigJar:()=>i.Oik,canUserViewWorkflowDefinition:()=>i.s0A,canUserViewWorkflowEnvironmentConfigJar:()=>i.o9m,canUserViewWorkflowJobs:()=>i.MCd,canWrapInSameAttribute:()=>i.RsS,cascadeUpdate:()=>i.tGK,changeEntityAttribute:()=>i.lIv,checkCanCreateAttribute:()=>i.Vg3,checkCanCreateCrosswalk:()=>i.mkC,checkCanDeleteAttribute:()=>i.xv5,checkCanDeleteCrosswalk:()=>i.a14,checkCanEditAttribute:()=>i.yv0,checkCanEditCrosswalk:()=>i.Zm0,checkCanImportEntityOfType:()=>i.Nxd,checkCanReadAttribute:()=>i.$mM,checkConfigPermission:()=>i.ifj,checkDraftMarked:()=>i.NWi,checkEdited:()=>i.xr3,checkIfOptionHasValues:()=>i.wNf,checkIgnored:()=>i.iJH,checkMatchRuleSummaryRelevance:()=>i.KB$,checkMetadataForCreate:()=>i.d89,checkMetadataForDelete:()=>i.Edd,checkMetadataForUpdate:()=>i.Z5t,checkMetadataPermission:()=>i.uGe,checkMetadataPermissions:()=>i.UoR,checkNew:()=>i.xvW,checkRemoved:()=>i.$qe,checkUserPermissions:()=>i.yPM,cleanAttributes:()=>i.$cp,cleanAttributesWith:()=>i.vKJ,cloneEntity:()=>i.VtG,collectAllDiffs:()=>i.AID,collectAllTransitiveEntitiesUris:()=>i.B1H,collectContributorsFromTree:()=>i.b7X,collectCrosswalksFromAttributes:()=>i.$uE,collectCrosswalksFromContributor:()=>i.keo,collectDiffForValidation:()=>i.C_p,collectPerspectiveViews:()=>i.G27,collectSearchParamsForTotal:()=>i.O8b,collectVersions:()=>i.JA0,compareActivenessAttributes:()=>i.b3T,compareAttributes:()=>i.oC6,compareImages:()=>i._Zs,compareRoles:()=>i.epC,compareTags:()=>i.YYG,configServiceRequest:()=>i.f_2,convertOldAdvancedAttribute:()=>i.w3l,convertOldDashboardConfig:()=>i.QHB,convertOldFacets:()=>i.Jso,convertOldLayoutToReltioGridLayout:()=>i.RXH,convertOldProfileConfig:()=>i.Vr9,convertOldUIConfigToNewConfig:()=>i.lMm,convertPivotingValueToSearchFilters:()=>i.BlA,convertReferencedEntityForAttrValue:()=>i.fmQ,convertTransitionAttributes:()=>i.yRD,convertValidationServiceErrors:()=>i.NcL,countPercents:()=>i.QK6,createActivity:()=>i.ymd,createAttribute:()=>i.JV_,createCommandExecutor:()=>i.XiW,createComment:()=>i.Yrx,createDCRProcessor:()=>i.BiY,createDefaultValues:()=>i.GPx,createNewAttribute:()=>i.gjI,createNewConnectionWithDefaultRelationType:()=>i.vlo,createObjectIdForPM:()=>i.E_P,createRecentSearch:()=>i.aAL,createReferencedRelationForAttrValue:()=>i.NBq,createRelatedObjectUris:()=>i.wp9,createRelation:()=>i.DsR,createRelationCreateCommand:()=>i.MPc,createRelationDeleteCommand:()=>i.gWE,createRelationIgnoreCommand:()=>i.DT_,createRelationRepointCommand:()=>i.ipn,createRelationTypesLabelsMap:()=>i.ORg,createRelationUpdateCommand:()=>i._wz,createRelationsCommandsFromConnections:()=>i.RYR,createReply:()=>i.PP2,createRequestProvider:()=>i.wS7,createSavedSearch:()=>i.cBQ,createTemporaryEntity:()=>i.pBq,debounce:()=>i.DsO,deleteActivenessAttribute:()=>i.X78,deleteAttribute:()=>i.xZs,deleteComment:()=>i.YFy,deleteCrosswalk:()=>i.Gmt,deleteCrosswalkAttribute:()=>i.K$w,deleteRecentSearch:()=>i.DSj,deleteReply:()=>i.Mfr,deleteSavedSearch:()=>i.k9j,durationToTimestamp:()=>i.EjS,editAttribute:()=>i.ww$,editCrosswalkAttribute:()=>i.WVU,editEntitySpecialAttribute:()=>i.hxF,enhanceDCREntitiesFromResponse:()=>i.n6p,enrichEntityWithDataTenant:()=>i.E7G,entity:()=>i.nwO,entityCumulativeUpdate:()=>i.Mzk,eqCrosswalks:()=>i.aFF,escapeQueryValue:()=>i.HRH,evaluateAttributeLabel:()=>i.EZK,evaluateDeepEntityLabel:()=>i.Kxm,evaluateErrorPath:()=>i.Z9i,exportActivities:()=>i.CrF,filterOutHiddenAttributes:()=>i.DNd,filterRelatedParentValuesForDependentLookupValueUri:()=>i.vUy,filterValueToQueryString:()=>i.lJh,filterValueToQueryStringWithQuotes:()=>i.zHo,find:()=>i.sEJ,findAllTemporaryRefEntityURI:()=>i.UO$,findAttributeTypeByUri:()=>i.zeJ,findAttributeValueByUri:()=>i.dLR,findAttributeValues:()=>i.JQy,findAttributeValuesByTypeUri:()=>i.XtP,findClosestCommonAncestor:()=>i.Ug0,findContributorForCrosswalk:()=>i.A1W,findLabelPattern:()=>i.sw,findNodeById:()=>i.nv3,findParentNodeById:()=>i.JgD,findParentNodes:()=>i.nve,findReferenceAttributeByRefEntityUri:()=>i.SkP,findRelatedTemporaryEntities:()=>i.SAs,findSiblingsAttributeValues:()=>i.i5L,findSourceSystemByUri:()=>i.PWK,findValueInAttributesByUriSuffix:()=>i.IM5,fixLayout:()=>i.Aup,fixNonUniqViewsIds:()=>i.Mfk,flatAttributeTreeNode:()=>i.HQx,flatAttributeTreeNodeWithSimplesOnly:()=>i.oN$,formatDataTypeValue:()=>i.mB6,formatDate:()=>i.p6d,formatDateTime:()=>i.o0x,formatNumber:()=>i.ufS,formatNumberAsMetric:()=>i.k7L,formatRelevanceScore:()=>i.ped,formatTime:()=>i.mrB,generateEntityUrlForOldMode:()=>i.OuZ,generateNewRelationUri:()=>i.ncP,generatePivotingUrlForOldMode:()=>i.FQ2,generateTagUrlForOldMode:()=>i.W$R,generateTempDCRUri:()=>i.JOV,generateTempUri:()=>i.Zmi,generateUri:()=>i.hm5,generateValuableQueryString:()=>i.ECL,getAbsoluteImageUrl:()=>i.vPL,getAbsoluteValueUriFromPath:()=>i.qmL,getAccessToken:()=>i.hPi,getActionPermissionForMatch:()=>i.hXd,getActionPermissionForMatches:()=>i.OCS,getActivenessAttributes:()=>i.p2l,getActivities:()=>i.qF1,getActivitiesTotal:()=>i._X$,getActivityLabelsFromNewActivity:()=>i.yj2,getActorsForInteraction:()=>i.bzh,getAllAttributeTypesTree:()=>i.k66,getAllEntityTypesForGraphType:()=>i.kiP,getAllPaths:()=>i.pSg,getAllUsersForTenant:()=>i.kz_,getAnalyticsAttributeTypesTree:()=>i.H_U,getAnalyticsAttributesList:()=>i.t9e,getAssigneeForTask:()=>i.j2$,getAttrDataTypeDefinition:()=>i.PFL,getAttrTypeForFacet:()=>i.aJ3,getAttrTypeLookupCode:()=>i.To9,getAttributeByPath:()=>i.wpo,getAttributeOwnError:()=>i.ADq,getAttributePagerActiveErrors:()=>i.UUb,getAttributePagerActiveTypeErrorMessage:()=>i.tQX,getAttributeSource:()=>i.xy8,getAttributeTypeSubAttributes:()=>i.EUG,getAttributeTypeUriByValueUri:()=>i.AFK,getAttributeTypesHierarchyByUri:()=>i.X3M,getAttributeTypesTree:()=>i.WN0,getAttributeValue:()=>i.kDl,getAttributeValuePath:()=>i.uDV,getAttributeValuesByPath:()=>i.IhQ,getAttributeValuesByPathWithOvFlag:()=>i.pfb,getAttributeValuesUris:()=>i.R$r,getAttributesForMatchRules:()=>i.w80,getAttributesList:()=>i.Pfu,getAttributesListForEditMode:()=>i.Gtj,getAttributesListForReadMode:()=>i.fyF,getAttributesTreeFromAttributes:()=>i.kkq,getBaseUri:()=>i.u5q,getBusinessCardAttributes:()=>i.O$n,getBusinessCardAttributesText:()=>i.ptG,getChartItemColor:()=>i.f4_,getColorForId:()=>i.uap,getComment:()=>i.d7q,getComments:()=>i.liG,getCommentsCount:()=>i.$oF,getConnectionEntityUriPath:()=>i.avf,getConnectionRelationAttributesPath:()=>i.DiQ,getConnectionRelationDirectionPath:()=>i.cfX,getConnectionRelationEndDatePath:()=>i.vD3,getConnectionRelationObjectPath:()=>i.Qrb,getConnectionRelationStartDatePath:()=>i.EJQ,getConnectionRelationTypePath:()=>i.HWy,getConnectionRelationUriForLink:()=>i.gjS,getConnectionRelationUriPath:()=>i.y6v,getConsoleApps:()=>i.JUW,getContributorColor:()=>i.GtP,getCreatableAttributeTypes:()=>i._kX,getCreatableOrReadableAttributeTypes:()=>i.u1e,getCrosswalkAttributes:()=>i.sJj,getCrosswalkColor:()=>i.CJp,getCrosswalkId:()=>i.uKF,getCrosswalkTree:()=>i.wo0,getCrosswalkType:()=>i.s5,getCrosswalksTypes:()=>i.cwx,getCustomerTenantInfo:()=>i.Y6b,getDQChartsData:()=>i.TTx,getDTSubscriptions:()=>i.UtR,getDVF:()=>i.HaQ,getDataChangeRequest:()=>i.E6I,getDataTenantEntity:()=>i.Won,getDataTenantEntitySecondaryLabel:()=>i.vTU,getDataTenantEntityUri:()=>i.Nsy,getDataTenantFromCrosswalks:()=>i.KMQ,getDataTenantFromEntityUri:()=>i.Do$,getDataTenantSpecialAttributeFieldName:()=>i.CSV,getDataTenantsInfo:()=>i.TMe,getDataTypeDefinitionForFilterValue:()=>i.l1V,getDateRangeByDatePeriod:()=>i.RHh,getDateRangeByValue:()=>i.VQ1,getDateRangeOptions:()=>i.cGG,getDefaultRelationTypeObject:()=>i.z7d,getDefaultSurvivorshipStrategy:()=>i.Xaq,getDependentLookupStateForValueUri:()=>i.Sj8,getDependentLookups:()=>i.PJj,getDescendantEntityTypes:()=>i.k3T,getDirectionalLabelFromObject:()=>i.PjQ,getDtssEntityUrl:()=>i.s7l,getDvfColor:()=>i.jLA,getEditableAttributeTypeSubAttributes:()=>i.BoX,getEndObjectTypeUri:()=>i.GGR,getEndObjectUri:()=>i.j5q,getEntitiesByUris:()=>i.DnY,getEntitiesHierarchy:()=>i.RY5,getEntitiesMapForConnections:()=>i.Px$,getEntitiesMapForTransitiveMatches:()=>i.KPC,getEntitiesStats:()=>i.NIY,getEntity:()=>i.HvW,getEntityAttributesFromMetadata:()=>i.Fof,getEntityBySurvivorshipGroupUri:()=>i.BXy,getEntityColor:()=>i.fX,getEntityId:()=>i.BTI,getEntityImage:()=>i.uie,getEntityMatchRules:()=>i.q27,getEntityPerspectiveScreenItem:()=>i.vrC,getEntityPreviousChange:()=>i.fAQ,getEntitySecondaryLabel:()=>i.XkT,getEntityTimeSlice:()=>i.lrH,getEntityType:()=>i.nt9,getEntityTypeGraphIcon:()=>i.XH8,getEntityTypeImage:()=>i.XH2,getEntityTypeLabel:()=>i.jFi,getEntityTypeMatchAttributes:()=>i.qhs,getEntityUpdatedTime:()=>i.GBJ,getEntityUriForLink:()=>i.wwR,getEntityUriFromAttributeUri:()=>i.Uk3,getEntityUriFromDCRUri:()=>i.$Rg,getEntityUriFromMatchObject:()=>i.ev7,getEnvironmentSettings:()=>i.RB9,getErrorId:()=>i.iFp,getErrorMessage:()=>i.e$p,getErrorType:()=>i.PcX,getErrorUniqKey:()=>i.SpP,getFacetTitle:()=>i.R6_,getFacetTypeForAttrType:()=>i.CY1,getFacetedAttributeData:()=>i.Ajk,getFacetedAttributeDataWithSearchParams:()=>i.Yiz,getFacets:()=>i.FK9,getFileName:()=>i.UOo,getFillRate:()=>i.aTW,getFilterOptionArity:()=>i.uug,getFilterOptionForFacet:()=>i.P$2,getFilterOptionLabel:()=>i.XS2,getFilterOptionsForDataTypeDefinition:()=>i.Hyb,getFilterOptionsForQueryBuilder:()=>i.d3Y,getFilterOptionsForRelationshipQueryBuilder:()=>i.Klp,getFilterValueForFacet:()=>i.WxZ,getFilterValueLabel:()=>i.Gzu,getFilteredEntities:()=>i.ZOr,getFilteredEntitiesFromDataTenant:()=>i.uqV,getFirstElementIfArray:()=>i.Pm4,getFirstLevelSearchUri:()=>i.hWO,getFontColor:()=>i.nHA,getFullObjectsHierarchy:()=>i.nVD,getGlobalContextValue:()=>i._tF,getGraphSearchCount:()=>i.dED,getGraphSearchEntities:()=>i.P2h,getGraphType:()=>i.jrr,getGraphTypesForEntityType:()=>i.mmY,getGroupLabelByTypeUri:()=>i.T6O,getGroupTasksForTenant:()=>i.h6J,getGroupsFromSearchState:()=>i.hM2,getHash:()=>i.XR6,getHierarchyAncestors:()=>i.jmz,getHierarchyDescendants:()=>i.IHt,getHierarchyNodeEditorActiveError:()=>i.NZI,getHistoricUris:()=>i.wdF,getHistoryAppearanceBySpecialAttributeValue:()=>i.YNv,getHistoryAppearanceByUri:()=>i.IFm,getHistoryAttributeClassName:()=>i.o_F,getHistoryWithTotal:()=>i.kgP,getHops:()=>i.ZYI,getImageAttributeOvPreviewUrl:()=>i.QXK,getImageAttributeOvThumbnailUrl:()=>i.efz,getImageAttributeOvUrl:()=>i.Q5d,getImageAttributeThumbnailUrl:()=>i.Ysv,getInOutRelationTypesForEntityTypeUri:()=>i.UWq,getInOutRelations:()=>i.ocC,getInheritancePath:()=>i.io3,getInteractionAttributesFromMetadata:()=>i.Sbt,getInteractionType:()=>i.roS,getInteractionTypesForEntityType:()=>i.Ww1,getInteractions:()=>i.QaS,getIntervalUnitLabel:()=>i.wsP,getKeywordFromOldSearchState:()=>i.ERZ,getKeywordFromSearchState:()=>i.CL1,getLabel:()=>i.idV,getLastUriPart:()=>i.nIW,getLookupCodesFromFacets:()=>i.fjE,getLookupLabel:()=>i.sG0,getLookups:()=>i.tV7,getMapSearchLabel:()=>i.g8o,getMapSearchValues:()=>i.Qy,getMatchGroupLabelsForFacet:()=>i.t2P,getMatchGroups:()=>i.KbW,getMatchRuleLabel:()=>i.wId,getMatchRuleSummary:()=>i.TAC,getMatchRules:()=>i.LS0,getMatchesForDataTenantEntity:()=>i.bFH,getMatchesFromDataTenants:()=>i.Rgl,getMaxItemWidth:()=>i.fW1,getMlDqData:()=>i.GFW,getNotAppliedTreeCommands:()=>i.Ywp,getNotMatch:()=>i.pg,getNotMatchesFromDataTenants:()=>i.WSA,getNumberFormat:()=>i.ffJ,getNumberFormatForLocale:()=>i.gEI,getOldRangeFacetValues:()=>i.fed,getOvAttributeValuesByPath:()=>i.tT_,getOvAttributeValuesByPathWithOvFlag:()=>i.BgZ,getOvAttributeValuesByPathWithUri:()=>i.xIV,getPagedEntity:()=>i.KbL,getParentUri:()=>i.JBA,getPathByEntityUri:()=>i.aNC,getPathsTree:()=>i.RFJ,getPathsWithTempUri:()=>i.Zeh,getPayloadForNodeApplyEditing:()=>i.OT5,getPinnedAttributesForUser:()=>i.mC3,getPivotingLabel:()=>i.kR6,getPotentialMatchesColor:()=>i.gFw,getPotentialMatchesObjectIdsForCollaboration:()=>i.NVY,getProfileActivities:()=>i.k6v,getProfileActivitiesTotal:()=>i.FEC,getProfileBandObjectIdsForCollaboration:()=>i.L5S,getProfileEntityWithHistoryDiff:()=>i.Ob5,getProfileEntityWithoutHistoryDiff:()=>i.KUV,getProfileObjectIdsForCollaboration:()=>i.dvH,getProfileViewsIdsByTypes:()=>i.V3i,getPropWithInheritance:()=>i.VD3,getRangeOptionLabel:()=>i.mm2,getRdmTenants:()=>i.rou,getReadableAttributeTypes:()=>i.izH,getReadableAttributesList:()=>i.DK$,getRecentSearches:()=>i.KMp,getReferencedAttrTypeUrisFromAttrType:()=>i.c31,getReferencedEntityActiveError:()=>i.mbo,getReferencedEntityAttrTypesUris:()=>i.gT8,getReferencedEntityFromAttrValue:()=>i.CZ8,getReferencedEntityTypeUri:()=>i.uGi,getReferencedEntityTypeUriFromAttrType:()=>i.Poc,getReferencedEntityTypeUriFromAttrValue:()=>i._9k,getReferencedEntityUri:()=>i.ZTM,getReferencedEntityUriFromAttrValue:()=>i.bwT,getReferencedRelationAttrTypesUris:()=>i.tF$,getReferencedRelationFromAttrValue:()=>i.o96,getReferencedRelationUriFromAttrValue:()=>i.M4S,getRelation:()=>i._vs,getRelationAttributesList:()=>i.xF8,getRelationCrosswalks:()=>i.PUO,getRelationEditorActiveError:()=>i.ATu,getRelationEntityTypesUris:()=>i.j1S,getRelationType:()=>i.V3K,getRelationTypeLabelFromMetadata:()=>i.Lmx,getRelationTypePropWithInheritance:()=>i.oSN,getRelationTypeUriFromAttrType:()=>i.ZaZ,getRelationsForDataTenantEntity:()=>i.n_1,getRelationsForEntity:()=>i.N6e,getRelationshipTypeUrisFromGraphType:()=>i.SxO,getRelationshipsObjectIdsForCollaboration:()=>i.w3p,getRequestErrorMessage:()=>i.xU7,getRequestErrorStatusCode:()=>i.hAq,getRequiredAttributeTypes:()=>i.Y_p,getRequiredAttributeTypesByTypeUri:()=>i.$k6,getResolvedLookupLabel:()=>i.Gdl,getResolvedLookupValue:()=>i.U6P,getResolvedLookupsForFacet:()=>i.OwB,getRestrictedObjectsHierarchy:()=>i.hTh,getRoleLabel:()=>i.xqc,getRolesForEntityType:()=>i.JvE,getRootFieldName:()=>i.i29,getRulesConfig:()=>i.dzT,getSavedSearch:()=>i.uPS,getSavedSearches:()=>i.cZV,getSearchGroupAttributeEntityTypeUri:()=>i.n3B,getSearchGroupAttributeLabel:()=>i.e6O,getSearchLink:()=>i.s7j,getSearchLinkState:()=>i.j$Q,getSingleAttributeEntity:()=>i.PeS,getSourceColor:()=>i.kW2,getSourceSystemLabel:()=>i.tH7,getSpecialAttrTypeByFieldName:()=>i.Yxg,getSpecialAttributesPresentation:()=>i.bOT,getStartObjectTypeUri:()=>i.MaZ,getStartObjectUri:()=>i.nqN,getSuitableEntityTypeUrisForRelationTypes:()=>i.jWj,getSurvivorshipStrategy:()=>i.o_J,getTaskById:()=>i.yW4,getTasksForEntity:()=>i.uT0,getTasksForTenant:()=>i.C82,getTenantIconColor:()=>i.bsH,getTenantName:()=>i.u9Z,getTenantPermissions:()=>i.LCU,getTotalFromDataTenant:()=>i.J$m,getTotals:()=>i.j_Q,getTotalsForQuery:()=>i.OaI,getTransitiveMatchRules:()=>i.wB1,getTransitiveMatches:()=>i.SP6,getTransitiveMatchesForEntity:()=>i.ZYr,getTree:()=>i.IMU,getUIConfiguration:()=>i.FoU,getUnresolvedLookupsList:()=>i.DVz,getUnresolvedLookupsListFromSearchGroups:()=>i.mxe,getUrisForSaving:()=>i.FHr,getUserPreference:()=>i.D1g,getValidatedSortField:()=>i.VO3,getValidatedSortOrder:()=>i.de5,gif2Url:()=>i.Uw1,hasAttributeDescendantsWithErrors:()=>i.J6q,hasDependentLookupAttributes:()=>i.XCe,hasEntityInTree:()=>i.fbl,hasMatchRulesWithoutML:()=>i.Ir,hasMlMatchRule:()=>i.XQO,hasNonImportedRelations:()=>i.QXb,historyPalettes:()=>i.zXF,ignoreAttribute:()=>i.P8_,ignoreSuggestedRelation:()=>i.iiD,importDTConnections:()=>i.MOC,importEntityFromDataTenant:()=>i.WF,inOutRelationsDeduplicator:()=>i.xE1,initDependentLookups:()=>i.idW,initializeWebWorker:()=>i.QWZ,insertDefaultImageByAttrUri:()=>i.YL3,intl:()=>i.NW9,isAbortError:()=>i.D_E,isActiveObject:()=>i.Fn9,isActivenessAttrType:()=>i.j2U,isAllowedReferencedSubAttribute:()=>i.MpE,isAnalyticAttribute:()=>i.kQw,isAndOperator:()=>i.mfm,isAttributeSearchUri:()=>i.vZp,isAttributeTypeError:()=>i.Wah,isAttributeTypeInDependentLookups:()=>i.E8K,isAttributeValueLink:()=>i.VSb,isAutoGeneratedAttribute:()=>i.vr_,isAutopopulationEnabled:()=>i.Vmh,isAvailableAttributeTypeForProfile:()=>i.FgW,isAvailableEntityType:()=>i.oDv,isAvailableEntityTypeForDataTenant:()=>i.fGG,isAvailableEntityTypeUri:()=>i.kuw,isAvailableRelationBetweenEntities:()=>i.eHk,isAvailableRelationType:()=>i.Tt2,isAvailableRelationTypeUri:()=>i.pQZ,isAvailableTenantForEntityType:()=>i.oZ7,isBooleanType:()=>i.T6Y,isChangeRequestUri:()=>i.VRd,isCompatibleFilters:()=>i._26,isComplexAttribute:()=>i.YkM,isCompositeFilterOption:()=>i.J6y,isCountFilterOption:()=>i.njU,isCreatableEntityType:()=>i.TBP,isCriticalError:()=>i.IT0,isCrosswalkDisabled:()=>i.x_,isDCRUri:()=>i.FP6,isDataTenantEntity:()=>i.biM,isDataTenantEntityUri:()=>i.TMl,isDateFilterOption:()=>i.Vkd,isDateRangeFacet:()=>i.WiY,isDateRangeFilterOption:()=>i._zi,isDateRangeValid:()=>i.RZp,isDateRangeValue:()=>i.J6D,isDateType:()=>i.Lt4,isDependentLookupAttrType:()=>i.QEi,isEditMode:()=>i.whI,isEditableMode:()=>i.KIu,isEmail:()=>i.JhM,isEmailType:()=>i.C_0,isEmptyEntity:()=>i.lzc,isEmptySearchGroup:()=>i.qIF,isEmptyValue:()=>i.O27,isEntityImportedToCT:()=>i.aBi,isEntitySpecialAttrType:()=>i.xOX,isEntityTypeUri:()=>i.EdS,isEntityUri:()=>i.WgC,isEnumAttrType:()=>i.eEv,isFileFilterOption:()=>i.A4t,isFirstLevelAttributeUri:()=>i.YOQ,isFloatingType:()=>i.Wos,isFreemiumAdmin:()=>i.jWr,isImage:()=>i.Or$,isInHierarchy:()=>i.lhE,isLookupAttrType:()=>i.CwH,isMatchRuleAttrType:()=>i.pzC,isMultiValueOption:()=>i.ymH,isNested:()=>i.QZu,isNumericRangeFacet:()=>i.rYH,isNumericType:()=>i.FVt,isObject:()=>i.Kn2,isOrOperator:()=>i.jgw,isOutdatedDateRangeValue:()=>i.Qgr,isOv:()=>i.OXP,isPartOfErrorAttributeTypeUri:()=>i.nsY,isPartOfErrorParentUri:()=>i.vyG,isRDMLookupAttrType:()=>i.lS4,isRangeFacet:()=>i.g5f,isRangeFilterOption:()=>i.fp6,isReadableAttribute:()=>i.Uty,isReference:()=>i.YkG,isRelationAttrType:()=>i.xdS,isRelationCommandForUri:()=>i.kMF,isRelationTypeUri:()=>i.$NE,isRelationUri:()=>i.bC9,isRelationWithEntityType:()=>i.Ian,isReltioCrosswalk:()=>i.KVV,isRequired:()=>i.q9e,isResolvedLookupCode:()=>i.iIf,isRoleAttrType:()=>i.ian,isSSNType:()=>i.m6e,isSourceSystemAttrType:()=>i.OFd,isSpecialAttribute:()=>i.kqr,isSuggestMode:()=>i.fnZ,isTagAttrType:()=>i.VFZ,isTempUri:()=>i.ZiX,isTimestampBasedType:()=>i.j5n,isToday:()=>i.zkt,isTransitiveMatch:()=>i.Pcm,isTypeAttrType:()=>i.QDV,isTypeFacet:()=>i.M5u,isTypeSearchGroupAttribute:()=>i.laD,isTypeaheadAttrType:()=>i.mtq,isUnresolvedLookupCode:()=>i.CtB,isUrl:()=>i.CBv,isUrlType:()=>i.I0t,isValidRelationToAdd:()=>i.u1G,isValidSearchGroup:()=>i.gk1,isValidSearchGroupAttribute:()=>i.Bgb,isViewMode:()=>i.uzs,joinFilterStrings:()=>i.v0l,loadMetadata:()=>i.Zqp,localizeMetadata:()=>i.j0k,looseEquals:()=>i.l22,makeAttrTypeUri:()=>i.tCm,makeCompositeFilterOption:()=>i.gmx,mapFilterValue:()=>i.mOr,mapSearchTypeToFieldName:()=>i.TwZ,mapTree:()=>i.GyU,markAsNotMatch:()=>i.zGm,markDataTenantEntityAsNotMatch:()=>i.bMg,markEdited:()=>i.EyD,markIgnored:()=>i.FQA,markMixedEntitiesAsNotMatches:()=>i.fZN,markNew:()=>i.xsF,markRemoved:()=>i.Lxg,markSavedSearchAsFavorite:()=>i.O3l,markSavedSearchAsPublic:()=>i.Wni,marksJSONReplacer:()=>i.wRx,mergeCustomerTenantEntityWithMixedEntities:()=>i.OxG,mergeDataEntityWithCustomerEntity:()=>i.Jwg,mergeDataTenantEntity:()=>i.uJQ,mergeLookupsLists:()=>i.qWg,mergeSameEntities:()=>i.i96,multiValueFilter:()=>i.NPd,normalizeMetadata:()=>i.MrZ,omitMarks:()=>i.zhn,operatorOptions:()=>i.G8q,optimizeCommands:()=>i.Jct,orderByArrayComparator:()=>i.A9Y,parseAdvancedSearch:()=>i.Y5F,parseBoolean:()=>i.gxP,parseCompositeFilterOption:()=>i.c$P,parseCompositeFilters:()=>i.M7o,parseMetadata:()=>i.BBN,parseRelationsConfig:()=>i.fS6,parseTimestamp:()=>i.ZBU,partitionByMlMatch:()=>i.UkJ,pinAttribute:()=>i.xkv,populateDependentLookupsFromEntity:()=>i.z$M,postGraphExport:()=>i.KAm,prepareAttrDiff:()=>i.lCl,prepareEntityForValidation:()=>i.rkF,processDefinitions:()=>i.IU6,promiseAllSettled:()=>i.RGr,promisifyCallback:()=>i.aYu,promisifyProvider:()=>i.ije,rateRelation:()=>i.Buf,rawRequest:()=>i.YLu,referencedEntityAttributeTypesSelectionStrategy:()=>i.ct9,reinstateDataTenantEntityMatch:()=>i.XkY,reinstateMatch:()=>i.T5R,reinstateMixedEntitiesMatches:()=>i.uQS,relationEditorAttributeTypesSelectionStrategy:()=>i.wcJ,removeAttribute:()=>i.d$I,removeDtssPrefixFromEntityUri:()=>i.rSp,removeEntity:()=>i.Sx,removeEntityAttribute:()=>i.Ilm,removeEntitySpecialAttribute:()=>i.Ki6,removeRelation:()=>i.VGk,removeUnsupportedLayoutItems:()=>i.sFD,removeValuesFromDependentLookups:()=>i.eWN,replacePlaceholdersInQuery:()=>i.dWE,replaceTempUriInCommands:()=>i.Lkd,replaceTemporaryRefEntityURI:()=>i.aDL,requestForDataTenant:()=>i.yaA,resetUserPreference:()=>i.lOh,resolve:()=>i.DBr,resolveLookupsList:()=>i.hK$,revertPresentationStrategyForValue:()=>i.uKH,runTaskAction:()=>i.TZ_,sanitizeTypesInSearchGroups:()=>i.CMB,saveEntity:()=>i.FU8,saveTemporaryEntities:()=>i.J$p,saveTemporaryEntity:()=>i.b5s,searchUriToAttrUri:()=>i.h2W,sendRequestFromCustomSandbox:()=>i.SL_,sendWorkflowRequest:()=>i.oUH,setAsMatch:()=>i.ck9,setGlobalContextValue:()=>i.RAb,setLookupStrategy:()=>i.nL,setMinHeightForDashboardWidgets:()=>i.k$p,setRequestProvider:()=>i.Xs0,setUserPreference:()=>i.u7I,shiftDownOperators:()=>i.rxg,shiftUpOperators:()=>i.bji,shouldUseValidationService:()=>i.oCZ,sortTreeChildren:()=>i.MjG,startProcessFromQuery:()=>i.FuV,startProcessInstance:()=>i.$ju,startProcessInstanceByPairs:()=>i.t6d,svg2Url:()=>i.m5F,syncAttributeTypeWithDependentLookups:()=>i.sx,theme:()=>i.rSc,typeAheadSearch:()=>i.U10,unmergeContributor:()=>i.L8n,unsubscribeEntityFromDataTenantEntity:()=>i.R9X,updateActivenessAttribute:()=>i.rj2,updateAssigneeForTask:()=>i._C4,updateAttribute:()=>i.tCj,updateComment:()=>i.uAg,updateConnectionEntityLabel:()=>i.wx9,updateDueDateForTask:()=>i.KF3,updatePriorityForTask:()=>i.ax9,updateRelation:()=>i.HH7,updateReply:()=>i.ufV,updateSavedSearch:()=>i._6y,updateTreesWithNewEntity:()=>i.XTh,uploadFileForSearch:()=>i.AJo,uploadImage:()=>i.Ixr,userPreferencesComparator:()=>i.oss,utils:()=>i.P6Y,validateComplexAttribute:()=>i.q5j,validateConnection:()=>i.Bd_,validateConnectionRelation:()=>i.xkB,validateEntity:()=>i.W41,validateEntityChanges:()=>i.WkI,validateEntityLocally:()=>i.sSE,validateFilter:()=>i.GMd,validateFilterValue:()=>i.jtL,validateHierarchyConnection:()=>i.Bxm,validateRequiredAttributes:()=>i.FVh,walkTree:()=>i.inb,withDtssPotentialItems:()=>i.U_T,wrapInArray:()=>i.FTe,wrapInArrayIfNeeded:()=>i.VGB,wrapInBrackets:()=>i.tM8,wrapInDoubleQuotes:()=>i.Wfe,wrapInQuotes:()=>i.Ls5,wrapQueryWithBrackets:()=>i.$bd});var i=r(81559)}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[4843],{34843:(e,t,r)=>{r.r(t),r.d(t,{ACTIVENESS_ATTR_TYPES:()=>i.ViP,ACTIVITY_TYPES:()=>i.IL3,ActivenessAttrTypes:()=>i.PY2,ActivityFilter:()=>i.Ng6,ActivityFilters:()=>i.YJ7,AdditionalFilterOptionsValues:()=>i.NlI,AllDateRangeValues:()=>i.XYV,ApiErrorCode:()=>i.Xt7,AttributeErrorType:()=>i.wfT,AttributeTypeType:()=>i.EMD,AttributeValuePathItemType:()=>i.HAc,AuditAttrTypes:()=>i.PEf,CardinalityType:()=>i.oA3,ChartTypes:()=>i.$XE,CollaborationAttrTypes:()=>i.eWf,CollaborationObjectTypes:()=>i.q7e,ComplexAttributeType:()=>i.KVe,ConfigPermissions:()=>i.WVQ,ConnectionEntityType:()=>i.oZZ,ConnectionRelationType:()=>i.bNA,ConnectionType:()=>i.Rjq,CrosswalksAttrTypes:()=>i.G39,CustomAction:()=>i.W0P,CustomScriptPlatform:()=>i.X1H,DCRChangeRequestState:()=>i.hdG,DCROperationTypes:()=>i.ws7,DCRTypes:()=>i.VI$,DQDataLevel:()=>i.yn8,DQMetric:()=>i.N0y,DashboardViewTypes:()=>i.dZX,DataTenantType:()=>i.bQt,DataTypes:()=>i.oS0,DateRangeTypes:()=>i.KfU,DateRangeValue:()=>i.bZE,Directions:()=>i.Nsj,DraftMarks:()=>i.psV,EntityAttrTypes:()=>i.xPW,EntityType:()=>i.pyR,EntityTypeType:()=>i.p8l,ErrorSeverity:()=>i.Wkf,ErrorSource:()=>i.zHr,ErrorType:()=>i.NIO,FACET_TYPES:()=>i.$26,FillRateState:()=>i.s9T,FilterBuilder:()=>i.MEy,FilterOptions:()=>i.j5E,FilterType:()=>i.vAw,FilterValueType:()=>i.NMQ,GlobalContextValue:()=>i.eVu,GraphLayout:()=>i.YGb,HistoryOperations:()=>i.Y1q,InteractionTypeType:()=>i.RgZ,KeywordSearchType:()=>i.Qy0,LOCALE_ATTRIBUTE_PRESENTATION:()=>i.Q26,LookupValueType:()=>i.pYu,MAP_SEARCH_TYPES:()=>i.wIJ,MapSearch:()=>i.GFH,MatchRulesAttrNames:()=>i.Ury,MatchRulesAttrTypes:()=>i.S91,Maybe:()=>i.wSh,MetadataPermissions:()=>i.BDP,MetadataType:()=>i.pGS,Mode:()=>i.ARY,ModeType:()=>i.XGc,ModeTypes:()=>i.fO_,NODE_EDITING_MODES:()=>i.wwy,NOT_MATCH:()=>i.h_8,NO_LABEL:()=>i._XL,NestedAttributeType:()=>i.j2V,NestedAttributeValueType:()=>i.dMV,NumberPresentationStrategy:()=>i.xYD,Operation:()=>i.OXy,Operations:()=>i.BXd,Order:()=>i.KM9,PerspectiveClass:()=>i.lXI,PotentialMatchesAttrTypes:()=>i.C68,PredefinedWorkflowProcessType:()=>i.Yj_,PreviewPanelMode:()=>i.D25,ProfileViewTypes:()=>i.ZIY,READABLE_QUERY_PRIMITIVE_TYPES:()=>i.Tl4,RdmAttrTypes:()=>i.lwr,ReferenceAttributeType:()=>i.NkU,ReferenceAttributeValueType:()=>i.Rtp,RelationDirections:()=>i.YGx,RelationType:()=>i.uTS,RelationTypeDirection:()=>i.MCv,RelationTypeType:()=>i.IYE,RelationsConfigType:()=>i.PiC,RequestAction:()=>i.MVv,STATUS_CODE_FIELD:()=>i.Q_m,ScreenItemType:()=>i.h_m,SearchDrivenDateRangeValues:()=>i.DUe,SearchOperator:()=>i.tJI,SearchResultMode:()=>i.fDt,SimpleAttributeValueType:()=>i.cNQ,SimpleLookupType:()=>i.SwE,SortOrderType:()=>i.ZHR,SortingStrategy:()=>i.PYu,SpecialAttrTypes:()=>i.lD1,StatusVF:()=>i.lVm,TREE_DEFAULT_SORT_FIELD:()=>i.vnX,TREE_DEFAULT_SORT_ORDER:()=>i.$x5,TREE_SORT_FIELD_VALUES:()=>i._R1,TREE_SORT_ORDER_VALUES:()=>i.wUm,UniquenessAnalysisState:()=>i.dC6,UnmergeOperation:()=>i.MBD,UserPermissions:()=>i.GmF,ValidationServiceOption:()=>i.cKm,WorkflowAttrTypes:()=>i.iP_,WorkflowPriority:()=>i.NVC,addAttribute:()=>i.tPT,addCommentForTask:()=>i.tZe,addCrosswalk:()=>i.kRE,addCrosswalkInContributor:()=>i.psB,addDefaultValuesToAttributes:()=>i.X0$,addDefaultValuesToComplexAttribute:()=>i.$vY,addEntityAttributes:()=>i.zE1,addEntitySpecialAttribute:()=>i.Wm5,addGlobalFilterToQuery:()=>i.vyX,addNewAttribute:()=>i.wLZ,addProtocolToLink:()=>i.W4V,addReferencedRelationCrosswalks:()=>i.EtK,addToEntityRequiredAttributes:()=>i.ayi,addValueToDependentLookups:()=>i.asT,applyCrosswalks:()=>i.kGs,applyPresentationStrategyToValue:()=>i.RLE,applyRelationTypeObject:()=>i.ewt,areAllOperatorsAnd:()=>i.O_f,areOneHierarchyUris:()=>i.sOy,attributePresentationStrategyCustomization:()=>i.kP7,attributeUriToSearchUri:()=>i.Tde,basicFilterBuildRules:()=>i.LMI,buildAttributesReadableQuery:()=>i.skb,buildBasicFilterString:()=>i.sPt,buildComplexFilterString:()=>i.sH1,buildDateRangeFilterClause:()=>i.lPZ,buildEntityTypeFilterClause:()=>i.bG8,buildEntityUriFilterClause:()=>i._LJ,buildError:()=>i.RPM,buildFilterHierarchyList:()=>i.h27,buildFilterQueryString:()=>i.Uqd,buildHierarchyAttributesReadableQuery:()=>i.xG,buildLookupRecord:()=>i.Z2f,buildOperationsToString:()=>i.fgW,buildReadableQuery:()=>i.I69,buildReadableQueryToString:()=>i.ZxB,buildSourceFilterClause:()=>i.dwd,buildUserFilterClause:()=>i.F$g,calcTotalCommentItems:()=>i.mdt,calculateCrosswalkTreeDeep:()=>i.Qbq,canCreateRelationBetweenEntities:()=>i.rny,canUserCreateWorkflowConfigJar:()=>i.UEY,canUserCreateWorkflowEnvironmentConfigJar:()=>i.Q0T,canUserDeleteProfiles:()=>i.Lyr,canUserExecuteWorkflowJobs:()=>i.sBn,canUserExecuteWorkflowJobsSyncBusinessProcessData:()=>i.itK,canUserExecuteWorkflowJobsTerminateProcessInstance:()=>i.H9$,canUserExecuteWorkflowJobsUpdateTasks:()=>i.KPc,canUserExecuteWorkflowJobsValidateTasks:()=>i.zos,canUserGetDQStatistic:()=>i.ELQ,canUserImportEntitiesFromDT:()=>i.dZs,canUserMakeActivitiesExport:()=>i.Cz4,canUserMakeBulkUpdate:()=>i.z_L,canUserMakeExport:()=>i.fGe,canUserManageWorkflowDefinition:()=>i.iuF,canUserManageWorkflowEnvironmentDefinition:()=>i.Wib,canUserOpenDataLoader:()=>i.Hn0,canUserReadDVF:()=>i.obS,canUserReadEntitiesFromDT:()=>i.E$L,canUserReadWorkflowDataTask:()=>i.XUh,canUserRegisterConfigEnvironments:()=>i.Qp_,canUserStartProcessInstanceFromQuery:()=>i._jk,canUserUpdateProcessInstance:()=>i.sKE,canUserUpdateWorkflowDataTask:()=>i.WmG,canUserViewProcessInstanceSearchQuery:()=>i.QKx,canUserViewWorkflowConfigJar:()=>i.Oik,canUserViewWorkflowDefinition:()=>i.s0A,canUserViewWorkflowEnvironmentConfigJar:()=>i.o9m,canUserViewWorkflowJobs:()=>i.MCd,canWrapInSameAttribute:()=>i.RsS,cascadeUpdate:()=>i.tGK,changeEntityAttribute:()=>i.lIv,checkCanCreateAttribute:()=>i.Vg3,checkCanCreateCrosswalk:()=>i.mkC,checkCanDeleteAttribute:()=>i.xv5,checkCanDeleteCrosswalk:()=>i.a14,checkCanEditAttribute:()=>i.yv0,checkCanEditCrosswalk:()=>i.Zm0,checkCanImportEntityOfType:()=>i.Nxd,checkCanReadAttribute:()=>i.$mM,checkConfigPermission:()=>i.ifj,checkDraftMarked:()=>i.NWi,checkEdited:()=>i.xr3,checkIfOptionHasValues:()=>i.wNf,checkIgnored:()=>i.iJH,checkMatchRuleSummaryRelevance:()=>i.KB$,checkMetadataForCreate:()=>i.d89,checkMetadataForDelete:()=>i.Edd,checkMetadataForUpdate:()=>i.Z5t,checkMetadataPermission:()=>i.uGe,checkMetadataPermissions:()=>i.UoR,checkNew:()=>i.xvW,checkRemoved:()=>i.$qe,checkUserPermissions:()=>i.yPM,cleanAttributes:()=>i.$cp,cleanAttributesWith:()=>i.vKJ,cloneEntity:()=>i.VtG,collectAllDiffs:()=>i.AID,collectAllTransitiveEntitiesUris:()=>i.B1H,collectContributorsFromTree:()=>i.b7X,collectCrosswalksFromAttributes:()=>i.$uE,collectCrosswalksFromContributor:()=>i.keo,collectDiffForValidation:()=>i.C_p,collectPerspectiveViews:()=>i.G27,collectSearchParamsForTotal:()=>i.O8b,collectVersions:()=>i.JA0,compareActivenessAttributes:()=>i.b3T,compareAttributes:()=>i.oC6,compareImages:()=>i._Zs,compareRoles:()=>i.epC,compareTags:()=>i.YYG,configServiceRequest:()=>i.f_2,convertOldAdvancedAttribute:()=>i.w3l,convertOldDashboardConfig:()=>i.QHB,convertOldFacets:()=>i.Jso,convertOldLayoutToReltioGridLayout:()=>i.RXH,convertOldProfileConfig:()=>i.Vr9,convertOldUIConfigToNewConfig:()=>i.lMm,convertPivotingValueToSearchFilters:()=>i.BlA,convertReferencedEntityForAttrValue:()=>i.fmQ,convertTransitionAttributes:()=>i.yRD,convertValidationServiceErrors:()=>i.NcL,countPercents:()=>i.QK6,createActivity:()=>i.ymd,createAttribute:()=>i.JV_,createCommandExecutor:()=>i.XiW,createComment:()=>i.Yrx,createDCRProcessor:()=>i.BiY,createDefaultValues:()=>i.GPx,createNewAttribute:()=>i.gjI,createNewConnectionWithDefaultRelationType:()=>i.vlo,createObjectIdForPM:()=>i.E_P,createRecentSearch:()=>i.aAL,createReferencedRelationForAttrValue:()=>i.NBq,createRelatedObjectUris:()=>i.wp9,createRelation:()=>i.DsR,createRelationCreateCommand:()=>i.MPc,createRelationDeleteCommand:()=>i.gWE,createRelationIgnoreCommand:()=>i.DT_,createRelationRepointCommand:()=>i.ipn,createRelationTypesLabelsMap:()=>i.ORg,createRelationUpdateCommand:()=>i._wz,createRelationsCommandsFromConnections:()=>i.RYR,createReply:()=>i.PP2,createRequestProvider:()=>i.wS7,createSavedSearch:()=>i.cBQ,createTemporaryEntity:()=>i.pBq,debounce:()=>i.DsO,deleteActivenessAttribute:()=>i.X78,deleteAttribute:()=>i.xZs,deleteComment:()=>i.YFy,deleteCrosswalk:()=>i.Gmt,deleteCrosswalkAttribute:()=>i.K$w,deleteRecentSearch:()=>i.DSj,deleteReply:()=>i.Mfr,deleteSavedSearch:()=>i.k9j,durationToTimestamp:()=>i.EjS,editAttribute:()=>i.ww$,editCrosswalkAttribute:()=>i.WVU,editEntitySpecialAttribute:()=>i.hxF,enhanceDCREntitiesFromResponse:()=>i.n6p,enrichEntityWithDataTenant:()=>i.E7G,entity:()=>i.nwO,entityCumulativeUpdate:()=>i.Mzk,eqCrosswalks:()=>i.aFF,escapeQueryValue:()=>i.HRH,evaluateAttributeLabel:()=>i.EZK,evaluateDeepEntityLabel:()=>i.Kxm,evaluateErrorPath:()=>i.Z9i,exportActivities:()=>i.CrF,filterOutHiddenAttributes:()=>i.DNd,filterRelatedParentValuesForDependentLookupValueUri:()=>i.vUy,filterValueToQueryString:()=>i.lJh,filterValueToQueryStringWithQuotes:()=>i.zHo,findAllTemporaryRefEntityURI:()=>i.UO$,findAttributeTypeByUri:()=>i.zeJ,findAttributeValueByUri:()=>i.dLR,findAttributeValues:()=>i.JQy,findAttributeValuesByTypeUri:()=>i.XtP,findClosestCommonAncestor:()=>i.Ug0,findContributorForCrosswalk:()=>i.A1W,findLabelPattern:()=>i.sw,findNodeById:()=>i.nv3,findParentNodeById:()=>i.JgD,findReferenceAttributeByRefEntityUri:()=>i.SkP,findRelatedTemporaryEntities:()=>i.SAs,findSiblingsAttributeValues:()=>i.i5L,findSourceSystemByUri:()=>i.PWK,findValueInAttributesByUriSuffix:()=>i.IM5,fixLayout:()=>i.Aup,fixNonUniqViewsIds:()=>i.Mfk,flatAttributeTreeNode:()=>i.HQx,flatAttributeTreeNodeWithSimplesOnly:()=>i.oN$,formatDataTypeValue:()=>i.mB6,formatDate:()=>i.p6d,formatDateTime:()=>i.o0x,formatNumber:()=>i.ufS,formatNumberAsMetric:()=>i.k7L,formatRelevanceScore:()=>i.ped,formatTime:()=>i.mrB,generateEntityUrlForOldMode:()=>i.OuZ,generateNewRelationUri:()=>i.ncP,generatePivotingUrlForOldMode:()=>i.FQ2,generateTagUrlForOldMode:()=>i.W$R,generateTempDCRUri:()=>i.JOV,generateTempUri:()=>i.Zmi,generateUri:()=>i.hm5,generateValuableQueryString:()=>i.ECL,getAbsoluteImageUrl:()=>i.vPL,getAbsoluteValueUriFromPath:()=>i.qmL,getAccessToken:()=>i.hPi,getActionPermissionForMatch:()=>i.hXd,getActionPermissionForMatches:()=>i.OCS,getActivenessAttributes:()=>i.p2l,getActivities:()=>i.qF1,getActivitiesTotal:()=>i._X$,getActorsForInteraction:()=>i.bzh,getAllAttributeTypesTree:()=>i.k66,getAllEntityTypesForGraphType:()=>i.kiP,getAllPaths:()=>i.pSg,getAllUsersForTenant:()=>i.kz_,getAnalyticsAttributeTypesTree:()=>i.H_U,getAnalyticsAttributesList:()=>i.t9e,getAssigneeForTask:()=>i.j2$,getAttrDataTypeDefinition:()=>i.PFL,getAttrTypeForFacet:()=>i.aJ3,getAttrTypeLookupCode:()=>i.To9,getAttributeByPath:()=>i.wpo,getAttributeOwnError:()=>i.ADq,getAttributePagerActiveErrors:()=>i.UUb,getAttributePagerActiveTypeErrorMessage:()=>i.tQX,getAttributeSource:()=>i.xy8,getAttributeTypeSubAttributes:()=>i.EUG,getAttributeTypeUriByValueUri:()=>i.AFK,getAttributeTypesHierarchyByUri:()=>i.X3M,getAttributeTypesTree:()=>i.WN0,getAttributeValue:()=>i.kDl,getAttributeValuePath:()=>i.uDV,getAttributeValuesByPath:()=>i.IhQ,getAttributeValuesByPathWithOvFlag:()=>i.pfb,getAttributeValuesUris:()=>i.R$r,getAttributesForMatchRules:()=>i.w80,getAttributesList:()=>i.Pfu,getAttributesListForEditMode:()=>i.Gtj,getAttributesListForReadMode:()=>i.fyF,getAttributesTreeFromAttributes:()=>i.kkq,getBaseUri:()=>i.u5q,getBusinessCardAttributes:()=>i.O$n,getBusinessCardAttributesText:()=>i.ptG,getChartItemColor:()=>i.f4_,getColorForId:()=>i.uap,getComment:()=>i.d7q,getComments:()=>i.liG,getCommentsCount:()=>i.$oF,getConnectionEntityUriPath:()=>i.avf,getConnectionRelationAttributesPath:()=>i.DiQ,getConnectionRelationDirectionPath:()=>i.cfX,getConnectionRelationEndDatePath:()=>i.vD3,getConnectionRelationObjectPath:()=>i.Qrb,getConnectionRelationStartDatePath:()=>i.EJQ,getConnectionRelationTypePath:()=>i.HWy,getConnectionRelationUriForLink:()=>i.gjS,getConnectionRelationUriPath:()=>i.y6v,getConsoleApps:()=>i.JUW,getContributorColor:()=>i.GtP,getCreatableAttributeTypes:()=>i._kX,getCreatableOrReadableAttributeTypes:()=>i.u1e,getCrosswalkAttributes:()=>i.sJj,getCrosswalkColor:()=>i.CJp,getCrosswalkId:()=>i.uKF,getCrosswalkTree:()=>i.wo0,getCrosswalkType:()=>i.s5,getCrosswalksTypes:()=>i.cwx,getCustomerTenantInfo:()=>i.Y6b,getDQChartsData:()=>i.TTx,getDTSubscriptions:()=>i.UtR,getDVF:()=>i.HaQ,getDataChangeRequest:()=>i.E6I,getDataTenantEntity:()=>i.Won,getDataTenantEntitySecondaryLabel:()=>i.vTU,getDataTenantEntityUri:()=>i.Nsy,getDataTenantFromCrosswalks:()=>i.KMQ,getDataTenantFromEntityUri:()=>i.Do$,getDataTenantSpecialAttributeFieldName:()=>i.CSV,getDataTenantsInfo:()=>i.TMe,getDataTypeDefinitionForFilterValue:()=>i.l1V,getDateRangeByDatePeriod:()=>i.RHh,getDateRangeByValue:()=>i.VQ1,getDateRangeOptions:()=>i.cGG,getDefaultRelationTypeObject:()=>i.z7d,getDefaultSurvivorshipStrategy:()=>i.Xaq,getDependentLookupStateForValueUri:()=>i.Sj8,getDependentLookups:()=>i.PJj,getDescendantEntityTypes:()=>i.k3T,getDirectionalLabelFromObject:()=>i.PjQ,getDtssEntityUrl:()=>i.s7l,getDvfColor:()=>i.jLA,getEditableAttributeTypeSubAttributes:()=>i.BoX,getEndObjectTypeUri:()=>i.GGR,getEndObjectUri:()=>i.j5q,getEntitiesByUris:()=>i.DnY,getEntitiesHierarchy:()=>i.RY5,getEntitiesMapForConnections:()=>i.Px$,getEntitiesMapForTransitiveMatches:()=>i.KPC,getEntitiesStats:()=>i.NIY,getEntity:()=>i.HvW,getEntityAttributesFromMetadata:()=>i.Fof,getEntityBySurvivorshipGroupUri:()=>i.BXy,getEntityColor:()=>i.fX,getEntityId:()=>i.BTI,getEntityImage:()=>i.uie,getEntityMatchRules:()=>i.q27,getEntityPerspectiveScreenItem:()=>i.vrC,getEntityPreviousChange:()=>i.fAQ,getEntitySecondaryLabel:()=>i.XkT,getEntityTimeSlice:()=>i.lrH,getEntityType:()=>i.nt9,getEntityTypeGraphIcon:()=>i.XH8,getEntityTypeImage:()=>i.XH2,getEntityTypeLabel:()=>i.jFi,getEntityTypeMatchAttributes:()=>i.qhs,getEntityUpdatedTime:()=>i.GBJ,getEntityUriForLink:()=>i.wwR,getEntityUriFromAttributeUri:()=>i.Uk3,getEntityUriFromDCRUri:()=>i.$Rg,getEntityUriFromMatchObject:()=>i.ev7,getEnvironmentSettings:()=>i.RB9,getErrorId:()=>i.iFp,getErrorMessage:()=>i.e$p,getErrorType:()=>i.PcX,getErrorUniqKey:()=>i.SpP,getFacetTitle:()=>i.R6_,getFacetTypeForAttrType:()=>i.CY1,getFacetedAttributeData:()=>i.Ajk,getFacetedAttributeDataWithSearchParams:()=>i.Yiz,getFacets:()=>i.FK9,getFileName:()=>i.UOo,getFillRate:()=>i.aTW,getFilterOptionArity:()=>i.uug,getFilterOptionForFacet:()=>i.P$2,getFilterOptionLabel:()=>i.XS2,getFilterOptionsForDataTypeDefinition:()=>i.Hyb,getFilterOptionsForQueryBuilder:()=>i.d3Y,getFilterOptionsForRelationshipQueryBuilder:()=>i.Klp,getFilterValueForFacet:()=>i.WxZ,getFilterValueLabel:()=>i.Gzu,getFilteredEntities:()=>i.ZOr,getFilteredEntitiesFromDataTenant:()=>i.uqV,getFirstElementIfArray:()=>i.Pm4,getFirstLevelSearchUri:()=>i.hWO,getFontColor:()=>i.nHA,getFullObjectsHierarchy:()=>i.nVD,getGlobalContextValue:()=>i._tF,getGraphSearchCount:()=>i.dED,getGraphSearchEntities:()=>i.P2h,getGraphType:()=>i.jrr,getGraphTypesForEntityType:()=>i.mmY,getGroupLabelByTypeUri:()=>i.T6O,getGroupTasksForTenant:()=>i.h6J,getGroupsFromSearchState:()=>i.hM2,getHash:()=>i.XR6,getHierarchyAncestors:()=>i.jmz,getHierarchyDescendants:()=>i.IHt,getHierarchyNodeEditorActiveError:()=>i.NZI,getHistoricUris:()=>i.wdF,getHistoryAppearanceBySpecialAttributeValue:()=>i.YNv,getHistoryAppearanceByUri:()=>i.IFm,getHistoryAttributeClassName:()=>i.o_F,getHistoryWithTotal:()=>i.kgP,getHops:()=>i.ZYI,getImageAttributeOvPreviewUrl:()=>i.QXK,getImageAttributeOvThumbnailUrl:()=>i.efz,getImageAttributeOvUrl:()=>i.Q5d,getImageAttributeThumbnailUrl:()=>i.Ysv,getInOutRelationTypesForEntityTypeUri:()=>i.UWq,getInOutRelations:()=>i.ocC,getInheritancePath:()=>i.io3,getInteractionAttributesFromMetadata:()=>i.Sbt,getInteractionType:()=>i.roS,getInteractionTypesForEntityType:()=>i.Ww1,getInteractions:()=>i.QaS,getIntervalUnitLabel:()=>i.wsP,getKeywordFromOldSearchState:()=>i.ERZ,getKeywordFromSearchState:()=>i.CL1,getLabel:()=>i.idV,getLastUriPart:()=>i.nIW,getLookupCodesFromFacets:()=>i.fjE,getLookupLabel:()=>i.sG0,getLookups:()=>i.tV7,getMapSearchLabel:()=>i.g8o,getMapSearchValues:()=>i.Qy,getMatchGroupLabelsForFacet:()=>i.t2P,getMatchGroups:()=>i.KbW,getMatchRuleLabel:()=>i.wId,getMatchRuleSummary:()=>i.TAC,getMatchRules:()=>i.LS0,getMatchesForDataTenantEntity:()=>i.bFH,getMatchesFromDataTenants:()=>i.Rgl,getMaxItemWidth:()=>i.fW1,getMlDqData:()=>i.GFW,getNotAppliedTreeCommands:()=>i.Ywp,getNotMatch:()=>i.pg,getNotMatchesFromDataTenants:()=>i.WSA,getNumberFormat:()=>i.ffJ,getNumberFormatForLocale:()=>i.gEI,getOldRangeFacetValues:()=>i.fed,getOvAttributeValuesByPath:()=>i.tT_,getOvAttributeValuesByPathWithOvFlag:()=>i.BgZ,getOvAttributeValuesByPathWithUri:()=>i.xIV,getPagedEntity:()=>i.KbL,getParentUri:()=>i.JBA,getPathByEntityUri:()=>i.aNC,getPathsTree:()=>i.RFJ,getPathsWithTempUri:()=>i.Zeh,getPayloadForNodeApplyEditing:()=>i.OT5,getPinnedAttributesForUser:()=>i.mC3,getPivotingLabel:()=>i.kR6,getPotentialMatchesColor:()=>i.gFw,getPotentialMatchesObjectIdsForCollaboration:()=>i.NVY,getProfileActivities:()=>i.k6v,getProfileActivitiesTotal:()=>i.FEC,getProfileBandObjectIdsForCollaboration:()=>i.L5S,getProfileEntityWithHistoryDiff:()=>i.Ob5,getProfileEntityWithoutHistoryDiff:()=>i.KUV,getProfileObjectIdsForCollaboration:()=>i.dvH,getProfileViewsIdsByTypes:()=>i.V3i,getPropWithInheritance:()=>i.VD3,getRangeOptionLabel:()=>i.mm2,getRdmTenants:()=>i.rou,getReadableAttributeTypes:()=>i.izH,getReadableAttributesList:()=>i.DK$,getRecentSearches:()=>i.KMp,getReferencedAttrTypeUrisFromAttrType:()=>i.c31,getReferencedEntityActiveError:()=>i.mbo,getReferencedEntityAttrTypesUris:()=>i.gT8,getReferencedEntityFromAttrValue:()=>i.CZ8,getReferencedEntityTypeUri:()=>i.uGi,getReferencedEntityTypeUriFromAttrType:()=>i.Poc,getReferencedEntityTypeUriFromAttrValue:()=>i._9k,getReferencedEntityUri:()=>i.ZTM,getReferencedEntityUriFromAttrValue:()=>i.bwT,getReferencedRelationAttrTypesUris:()=>i.tF$,getReferencedRelationFromAttrValue:()=>i.o96,getReferencedRelationUriFromAttrValue:()=>i.M4S,getRelation:()=>i._vs,getRelationAttributesList:()=>i.xF8,getRelationCrosswalks:()=>i.PUO,getRelationEditorActiveError:()=>i.ATu,getRelationEntityTypesUris:()=>i.j1S,getRelationType:()=>i.V3K,getRelationTypeLabelFromMetadata:()=>i.Lmx,getRelationTypePropWithInheritance:()=>i.oSN,getRelationTypeUriFromAttrType:()=>i.ZaZ,getRelationsForDataTenantEntity:()=>i.n_1,getRelationsForEntity:()=>i.N6e,getRelationshipTypeUrisFromGraphType:()=>i.SxO,getRelationshipsObjectIdsForCollaboration:()=>i.w3p,getRequestErrorMessage:()=>i.xU7,getRequestErrorStatusCode:()=>i.hAq,getRequiredAttributeTypes:()=>i.Y_p,getRequiredAttributeTypesByTypeUri:()=>i.$k6,getResolvedLookupLabel:()=>i.Gdl,getResolvedLookupValue:()=>i.U6P,getResolvedLookupsForFacet:()=>i.OwB,getRestrictedObjectsHierarchy:()=>i.hTh,getRoleLabel:()=>i.xqc,getRolesForEntityType:()=>i.JvE,getRootFieldName:()=>i.i29,getRulesConfig:()=>i.dzT,getSavedSearch:()=>i.uPS,getSavedSearches:()=>i.cZV,getSearchGroupAttributeEntityTypeUri:()=>i.n3B,getSearchGroupAttributeLabel:()=>i.e6O,getSearchLink:()=>i.s7j,getSearchLinkState:()=>i.j$Q,getSingleAttributeEntity:()=>i.PeS,getSourceColor:()=>i.kW2,getSourceSystemLabel:()=>i.tH7,getSpecialAttrTypeByFieldName:()=>i.Yxg,getSpecialAttributesPresentation:()=>i.bOT,getStartObjectTypeUri:()=>i.MaZ,getStartObjectUri:()=>i.nqN,getSuitableEntityTypeUrisForRelationTypes:()=>i.jWj,getSurvivorshipStrategy:()=>i.o_J,getTaskById:()=>i.yW4,getTasksForEntity:()=>i.uT0,getTasksForTenant:()=>i.C82,getTenantIconColor:()=>i.bsH,getTenantName:()=>i.u9Z,getTenantPermissions:()=>i.LCU,getTotalFromDataTenant:()=>i.J$m,getTotals:()=>i.j_Q,getTotalsForQuery:()=>i.OaI,getTransitiveMatchRules:()=>i.wB1,getTransitiveMatches:()=>i.SP6,getTransitiveMatchesForEntity:()=>i.ZYr,getTree:()=>i.IMU,getUIConfiguration:()=>i.FoU,getUnresolvedLookupsList:()=>i.DVz,getUnresolvedLookupsListFromSearchGroups:()=>i.mxe,getUrisForSaving:()=>i.FHr,getUserPreference:()=>i.D1g,getValidatedSortField:()=>i.VO3,getValidatedSortOrder:()=>i.de5,gif2Url:()=>i.Uw1,hasAttributeDescendantsWithErrors:()=>i.J6q,hasDependentLookupAttributes:()=>i.XCe,hasEntityInTree:()=>i.fbl,hasMatchRulesWithoutML:()=>i.Ir,hasMlMatchRule:()=>i.XQO,hasNonImportedRelations:()=>i.QXb,historyPalettes:()=>i.zXF,ignoreAttribute:()=>i.P8_,ignoreSuggestedRelation:()=>i.iiD,importDTConnections:()=>i.MOC,importEntityFromDataTenant:()=>i.WF,inOutRelationsDeduplicator:()=>i.xE1,initDependentLookups:()=>i.idW,initializeWebWorker:()=>i.QWZ,insertDefaultImageByAttrUri:()=>i.YL3,intl:()=>i.NW9,isAbortError:()=>i.D_E,isActiveObject:()=>i.Fn9,isActivenessAttrType:()=>i.j2U,isAllowedReferencedSubAttribute:()=>i.MpE,isAnalyticAttribute:()=>i.kQw,isAndOperator:()=>i.mfm,isAttributeSearchUri:()=>i.vZp,isAttributeTypeError:()=>i.Wah,isAttributeTypeInDependentLookups:()=>i.E8K,isAttributeValueLink:()=>i.VSb,isAutoGeneratedAttribute:()=>i.vr_,isAutopopulationEnabled:()=>i.Vmh,isAvailableAttributeTypeForProfile:()=>i.FgW,isAvailableEntityType:()=>i.oDv,isAvailableEntityTypeForDataTenant:()=>i.fGG,isAvailableEntityTypeUri:()=>i.kuw,isAvailableRelationBetweenEntities:()=>i.eHk,isAvailableRelationType:()=>i.Tt2,isAvailableRelationTypeUri:()=>i.pQZ,isAvailableTenantForEntityType:()=>i.oZ7,isBooleanType:()=>i.T6Y,isChangeRequestUri:()=>i.VRd,isCompatibleFilters:()=>i._26,isComplexAttribute:()=>i.YkM,isCompositeFilterOption:()=>i.J6y,isCountFilterOption:()=>i.njU,isCreatableEntityType:()=>i.TBP,isCriticalError:()=>i.IT0,isCrosswalkDisabled:()=>i.x_,isDCRUri:()=>i.FP6,isDataTenantEntity:()=>i.biM,isDataTenantEntityUri:()=>i.TMl,isDateFilterOption:()=>i.Vkd,isDateRangeFacet:()=>i.WiY,isDateRangeFilterOption:()=>i._zi,isDateRangeValid:()=>i.RZp,isDateRangeValue:()=>i.J6D,isDateType:()=>i.Lt4,isDependentLookupAttrType:()=>i.QEi,isEditMode:()=>i.whI,isEditableMode:()=>i.KIu,isEmail:()=>i.JhM,isEmailType:()=>i.C_0,isEmptyEntity:()=>i.lzc,isEmptySearchGroup:()=>i.qIF,isEmptyValue:()=>i.O27,isEntityImportedToCT:()=>i.aBi,isEntitySpecialAttrType:()=>i.xOX,isEntityTypeUri:()=>i.EdS,isEntityUri:()=>i.WgC,isEnumAttrType:()=>i.eEv,isFileFilterOption:()=>i.A4t,isFirstLevelAttributeUri:()=>i.YOQ,isFloatingType:()=>i.Wos,isFreemiumAdmin:()=>i.jWr,isImage:()=>i.Or$,isInHierarchy:()=>i.lhE,isLookupAttrType:()=>i.CwH,isMatchRuleAttrType:()=>i.pzC,isMultiValueOption:()=>i.ymH,isNested:()=>i.QZu,isNumericRangeFacet:()=>i.rYH,isNumericType:()=>i.FVt,isObject:()=>i.Kn2,isOrOperator:()=>i.jgw,isOutdatedDateRangeValue:()=>i.Qgr,isOv:()=>i.OXP,isPartOfErrorAttributeTypeUri:()=>i.nsY,isPartOfErrorParentUri:()=>i.vyG,isRDMLookupAttrType:()=>i.lS4,isRangeFacet:()=>i.g5f,isRangeFilterOption:()=>i.fp6,isReadableAttribute:()=>i.Uty,isReference:()=>i.YkG,isRelationAttrType:()=>i.xdS,isRelationCommandForUri:()=>i.kMF,isRelationTypeUri:()=>i.$NE,isRelationUri:()=>i.bC9,isRelationWithEntityType:()=>i.Ian,isReltioCrosswalk:()=>i.KVV,isRequired:()=>i.q9e,isResolvedLookupCode:()=>i.iIf,isRoleAttrType:()=>i.ian,isSSNType:()=>i.m6e,isSourceSystemAttrType:()=>i.OFd,isSpecialAttribute:()=>i.kqr,isSuggestMode:()=>i.fnZ,isTagAttrType:()=>i.VFZ,isTempUri:()=>i.ZiX,isTimestampBasedType:()=>i.j5n,isToday:()=>i.zkt,isTransitiveMatch:()=>i.Pcm,isTypeAttrType:()=>i.QDV,isTypeFacet:()=>i.M5u,isTypeSearchGroupAttribute:()=>i.laD,isTypeaheadAttrType:()=>i.mtq,isUnresolvedLookupCode:()=>i.CtB,isUrl:()=>i.CBv,isUrlType:()=>i.I0t,isValidRelationToAdd:()=>i.u1G,isValidSearchGroup:()=>i.gk1,isValidSearchGroupAttribute:()=>i.Bgb,isViewMode:()=>i.uzs,joinFilterStrings:()=>i.v0l,loadMetadata:()=>i.Zqp,localizeMetadata:()=>i.j0k,looseEquals:()=>i.l22,makeAttrTypeUri:()=>i.tCm,makeCompositeFilterOption:()=>i.gmx,mapFilterValue:()=>i.mOr,mapSearchTypeToFieldName:()=>i.TwZ,mapTree:()=>i.GyU,markAsNotMatch:()=>i.zGm,markDataTenantEntityAsNotMatch:()=>i.bMg,markEdited:()=>i.EyD,markIgnored:()=>i.FQA,markMixedEntitiesAsNotMatches:()=>i.fZN,markNew:()=>i.xsF,markRemoved:()=>i.Lxg,markSavedSearchAsFavorite:()=>i.O3l,markSavedSearchAsPublic:()=>i.Wni,marksJSONReplacer:()=>i.wRx,mergeCustomerTenantEntityWithMixedEntities:()=>i.OxG,mergeDataEntityWithCustomerEntity:()=>i.Jwg,mergeDataTenantEntity:()=>i.uJQ,mergeLookupsLists:()=>i.qWg,mergeSameEntities:()=>i.i96,multiValueFilter:()=>i.NPd,normalizeMetadata:()=>i.MrZ,omitMarks:()=>i.zhn,operatorOptions:()=>i.G8q,optimizeCommands:()=>i.Jct,orderByArrayComparator:()=>i.A9Y,parseAdvancedSearch:()=>i.Y5F,parseBoolean:()=>i.gxP,parseCompositeFilterOption:()=>i.c$P,parseCompositeFilters:()=>i.M7o,parseMetadata:()=>i.BBN,parseRelationsConfig:()=>i.fS6,parseTimestamp:()=>i.ZBU,partitionByMlMatch:()=>i.UkJ,pinAttribute:()=>i.xkv,populateDependentLookupsFromEntity:()=>i.z$M,postGraphExport:()=>i.KAm,prepareAttrDiff:()=>i.lCl,prepareEntityForValidation:()=>i.rkF,processDefinitions:()=>i.IU6,promiseAllSettled:()=>i.RGr,promisifyCallback:()=>i.aYu,promisifyProvider:()=>i.ije,rateRelation:()=>i.Buf,rawRequest:()=>i.YLu,referencedEntityAttributeTypesSelectionStrategy:()=>i.ct9,reinstateDataTenantEntityMatch:()=>i.XkY,reinstateMatch:()=>i.T5R,reinstateMixedEntitiesMatches:()=>i.uQS,relationEditorAttributeTypesSelectionStrategy:()=>i.wcJ,removeAttribute:()=>i.d$I,removeDtssPrefixFromEntityUri:()=>i.rSp,removeEntity:()=>i.Sx,removeEntityAttribute:()=>i.Ilm,removeEntitySpecialAttribute:()=>i.Ki6,removeRelation:()=>i.VGk,removeUnsupportedLayoutItems:()=>i.sFD,removeValuesFromDependentLookups:()=>i.eWN,replacePlaceholdersInQuery:()=>i.dWE,replaceTempUriInCommands:()=>i.Lkd,replaceTemporaryRefEntityURI:()=>i.aDL,requestForDataTenant:()=>i.yaA,resetUserPreference:()=>i.lOh,resolve:()=>i.DBr,resolveLookupsList:()=>i.hK$,revertPresentationStrategyForValue:()=>i.uKH,runTaskAction:()=>i.TZ_,sanitizeTypesInSearchGroups:()=>i.CMB,saveEntity:()=>i.FU8,saveTemporaryEntities:()=>i.J$p,saveTemporaryEntity:()=>i.b5s,searchUriToAttrUri:()=>i.h2W,sendRequestFromCustomSandbox:()=>i.SL_,sendWorkflowRequest:()=>i.oUH,setAsMatch:()=>i.ck9,setGlobalContextValue:()=>i.RAb,setLookupStrategy:()=>i.nL,setMinHeightForDashboardWidgets:()=>i.k$p,setRequestProvider:()=>i.Xs0,setUserPreference:()=>i.u7I,shiftDownOperators:()=>i.rxg,shiftUpOperators:()=>i.bji,shouldUseValidationService:()=>i.oCZ,sortTreeChildren:()=>i.MjG,startProcessFromQuery:()=>i.FuV,startProcessInstance:()=>i.$ju,startProcessInstanceByPairs:()=>i.t6d,svg2Url:()=>i.m5F,syncAttributeTypeWithDependentLookups:()=>i.sx,theme:()=>i.rSc,typeAheadSearch:()=>i.U10,unmergeContributor:()=>i.L8n,unsubscribeEntityFromDataTenantEntity:()=>i.R9X,updateActivenessAttribute:()=>i.rj2,updateAssigneeForTask:()=>i._C4,updateAttribute:()=>i.tCj,updateComment:()=>i.uAg,updateConnectionEntityLabel:()=>i.wx9,updateDueDateForTask:()=>i.KF3,updatePriorityForTask:()=>i.ax9,updateRelation:()=>i.HH7,updateReply:()=>i.ufV,updateSavedSearch:()=>i._6y,updateTreesWithNewEntity:()=>i.XTh,uploadFileForSearch:()=>i.AJo,uploadImage:()=>i.Ixr,userPreferencesComparator:()=>i.oss,utils:()=>i.P6Y,validateComplexAttribute:()=>i.q5j,validateConnection:()=>i.Bd_,validateConnectionRelation:()=>i.xkB,validateEntity:()=>i.W41,validateEntityChanges:()=>i.WkI,validateEntityLocally:()=>i.sSE,validateFilter:()=>i.GMd,validateFilterValue:()=>i.jtL,validateHierarchyConnection:()=>i.Bxm,validateRequiredAttributes:()=>i.FVh,walkTree:()=>i.inb,withDtssPotentialItems:()=>i.U_T,wrapInArray:()=>i.FTe,wrapInArrayIfNeeded:()=>i.VGB,wrapInBrackets:()=>i.tM8,wrapInDoubleQuotes:()=>i.Wfe,wrapInQuotes:()=>i.Ls5,wrapQueryWithBrackets:()=>i.$bd});var i=r(88832)}}]);
package/4957.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[4957],{8598:(e,t,n)=>{n.d(t,{Z:()=>o});var a=n(95038),r=n.n(a);const o=function(){function e(e){var t=void 0===e?{}:e,n=t.locale,a=t.instance,o=t.moment;this.yearFormat="YYYY",this.yearMonthFormat="MMMM YYYY",this.dateTime12hFormat="MMMM Do hh:mm a",this.dateTime24hFormat="MMMM Do HH:mm",this.time12hFormat="hh:mm A",this.time24hFormat="HH:mm",this.dateFormat="MMMM Do",this.moment=a||o||r(),this.locale=n}return e.prototype.parse=function(e,t){return""===e?null:this.moment(e,t,!0)},e.prototype.date=function(e){if(null===e)return null;var t=this.moment(e);return t.locale(this.locale),t},e.prototype.isValid=function(e){return this.moment(e).isValid()},e.prototype.isNull=function(e){return null===e},e.prototype.getDiff=function(e,t){return e.diff(t)},e.prototype.isAfter=function(e,t){return e.isAfter(t)},e.prototype.isBefore=function(e,t){return e.isBefore(t)},e.prototype.isAfterDay=function(e,t){return e.isAfter(t,"day")},e.prototype.isBeforeDay=function(e,t){return e.isBefore(t,"day")},e.prototype.isBeforeYear=function(e,t){return e.isBefore(t,"year")},e.prototype.isAfterYear=function(e,t){return e.isAfter(t,"year")},e.prototype.startOfDay=function(e){return e.clone().startOf("day")},e.prototype.endOfDay=function(e){return e.clone().endOf("day")},e.prototype.format=function(e,t){return e.locale(this.locale),e.format(t)},e.prototype.formatNumber=function(e){return e},e.prototype.getHours=function(e){return e.get("hours")},e.prototype.addDays=function(e,t){return t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days")},e.prototype.setHours=function(e,t){return e.clone().hours(t)},e.prototype.getMinutes=function(e){return e.get("minutes")},e.prototype.setMinutes=function(e,t){return e.clone().minutes(t)},e.prototype.getSeconds=function(e){return e.get("seconds")},e.prototype.setSeconds=function(e,t){return e.clone().seconds(t)},e.prototype.getMonth=function(e){return e.get("month")},e.prototype.isSameDay=function(e,t){return e.isSame(t,"day")},e.prototype.isSameMonth=function(e,t){return e.isSame(t,"month")},e.prototype.isSameYear=function(e,t){return e.isSame(t,"year")},e.prototype.isSameHour=function(e,t){return e.isSame(t,"hour")},e.prototype.setMonth=function(e,t){return e.clone().month(t)},e.prototype.getMeridiemText=function(e){return"am"===e?"AM":"PM"},e.prototype.startOfMonth=function(e){return e.clone().startOf("month")},e.prototype.endOfMonth=function(e){return e.clone().endOf("month")},e.prototype.getNextMonth=function(e){return e.clone().add(1,"month")},e.prototype.getPreviousMonth=function(e){return e.clone().subtract(1,"month")},e.prototype.getMonthArray=function(e){for(var t=[e.clone().startOf("year")];t.length<12;){var n=t[t.length-1];t.push(this.getNextMonth(n))}return t},e.prototype.getYear=function(e){return e.get("year")},e.prototype.setYear=function(e,t){return e.clone().set("year",t)},e.prototype.mergeDateAndTime=function(e,t){return this.setMinutes(this.setHours(e,this.getHours(t)),this.getMinutes(t))},e.prototype.getWeekdays=function(){return this.moment.weekdaysShort(!0)},e.prototype.isEqual=function(e,t){return null===e&&null===t||this.moment(e).isSame(t)},e.prototype.getWeekArray=function(e){for(var t=e.clone().startOf("month").startOf("week"),n=e.clone().endOf("month").endOf("week"),a=0,r=t,o=[];r.isBefore(n);){var l=Math.floor(a/7);o[l]=o[l]||[],o[l].push(r),r=r.clone().add(1,"day"),a+=1}return o},e.prototype.getYearRange=function(e,t){for(var n=this.moment(e).startOf("year"),a=this.moment(t).endOf("year"),r=[],o=n;o.isBefore(a);)r.push(o),o=o.clone().add(1,"year");return r},e.prototype.getCalendarHeaderText=function(e){return this.format(e,this.yearMonthFormat)},e.prototype.getYearText=function(e){return this.format(e,"YYYY")},e.prototype.getDatePickerHeaderText=function(e){return this.format(e,"ddd, MMM D")},e.prototype.getDateTimePickerHeaderText=function(e){return this.format(e,"MMM D")},e.prototype.getMonthText=function(e){return this.format(e,"MMMM")},e.prototype.getDayText=function(e){return this.format(e,"D")},e.prototype.getHourText=function(e,t){return this.format(e,t?"hh":"HH")},e.prototype.getMinuteText=function(e){return this.format(e,"mm")},e.prototype.getSecondText=function(e){return this.format(e,"ss")},e}()},14940:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicator");t.Z=o},27604:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.Z=o},71519:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11z"}),"EventBusy");t.Z=o},99144:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");t.Z=o},67766:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"KeyboardArrowLeft");t.Z=o},42767:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");t.Z=o},47603:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement(r.default.Fragment,null,r.default.createElement("path",{transform:"scale(1.2, 1.2)",fill:"none",d:"M0 0h20v20H0V0z"}),r.default.createElement("path",{transform:"scale(1.2, 1.2)",d:"M15.95 10.78c.03-.25.05-.51.05-.78s-.02-.53-.06-.78l1.69-1.32c.15-.12.19-.34.1-.51l-1.6-2.77c-.1-.18-.31-.24-.49-.18l-1.99.8c-.42-.32-.86-.58-1.35-.78L12 2.34c-.03-.2-.2-.34-.4-.34H8.4c-.2 0-.36.14-.39.34l-.3 2.12c-.49.2-.94.47-1.35.78l-1.99-.8c-.18-.07-.39 0-.49.18l-1.6 2.77c-.1.18-.06.39.1.51l1.69 1.32c-.04.25-.07.52-.07.78s.02.53.06.78L2.37 12.1c-.15.12-.19.34-.1.51l1.6 2.77c.1.18.31.24.49.18l1.99-.8c.42.32.86.58 1.35.78l.3 2.12c.04.2.2.34.4.34h3.2c.2 0 .37-.14.39-.34l.3-2.12c.49-.2.94-.47 1.35-.78l1.99.8c.18.07.39 0 .49-.18l1.6-2.77c.1-.18.06-.39-.1-.51l-1.67-1.32zM10 13c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"})),"Settings");t.Z=o},72753:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.Z=o},1876:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(24328),r=n.n(a),o=n(13980),l=n.n(o),i=n(2507),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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},p.apply(this,arguments)}const d=e=>r().createElement("svg",p({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e),r().createElement("path",{d:"M18 2V0H0v2l7 8v8l4-2v-6z",fill:"currentColor",fillRule:"nonzero",stroke:"none",strokeWidth:1})),m=(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"}}))),f=e=>{let{enabled:t,onClick:n}=e;const a=m();return r().createElement(c.Tooltip,{title:t?s().text("Clear all filters"):s().text("Filter")},r().createElement(c.IconButton,{onClick:n,classes:{root:a.button}},t?r().createElement(r().Fragment,null,r().createElement(d,{className:a["filterIcon--enabled"]}),r().createElement(u.default,{color:"primary",className:a.closeIcon})):r().createElement(d,null)))};f.propTypes={enabled:l().bool,onClick:l().func};const g=f},58662:(e,t,n)=>{n.d(t,{Z:()=>h});var a=n(13980),r=n.n(a),o=n(24328),l=n.n(o),i=n(71153),s=n.n(i),c=n(94079),u=n(2507),p=n.n(u),d=n(31276),m=n(50914);const f=(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){b(e,t,n[t])}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=e=>{let{classes:t={},count:n,rowsPerPageOptions:a,page:r,onChangePage:i,rowsPerPage:u,onChangeRowsPerPage:b,basicTableRef:y,labelRowsPerPage:h}=e;const v=f(),x=(0,o.useCallback)((()=>{(0,m.pathOr)(m.identity,["current","resetScrollbarPosition"],y)()}),[y]),E=(0,o.useCallback)((e=>{i(e),x()}),[i,x]),w=(0,o.useCallback)((e=>{i(0),b(e),x()}),[i,b,x]);return l().createElement(c.TablePagination,{classes:g({},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:h||p().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:a}=e;return p().text("${fromRow}-${toRow} of ${countRows}",{fromRow:p().number(t,"0,0"),toRow:p().number(n,"0,0"),countRows:p().number(a,"0,0")})},count:n,rowsPerPageOptions:a,page:r,onChangePage:(0,m.pipe)((0,m.nthArg)(1),E),rowsPerPage:u,onChangeRowsPerPage:(0,m.pipe)(d.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 h=l().memo(y)},26180:(e,t,n)=>{n.d(t,{ZP:()=>g});var a=n(50914),r=n(31276);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.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",d="CHANGE_ROWS_PER_PAGE",m={changeColumns:(0,r.zD)(i),toggleFilters:(0,r.zD)(s),changeFilter:(0,r.zD)(c),toggleSort:(0,r.zD)(u),changePage:(0,r.zD)(p),changeRowsPerPage:(0,r.zD)(d)},f=(e,t)=>{const n=(0,a.difference)(e.visibleColumns,t),r=e=>n.includes(e);return(0,a.evolve)({visibleColumns:(0,a.always)(t),sorting:(0,a.when)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r(e.field)}),(()=>{const[e]=t;return{field:e,order:"asc"}})),filters:e=>(0,a.keys)(e).reduce(((e,t)=>r(t)?(0,a.dissoc)(t,e):e),e)},e)},g={reducer:(e,t)=>{switch(t.type){case i:{const n=t.payload;return f(e,n)}case s:{const t=!e.filters;return o({},e,{filters:t?{}:null,page:t?e.page:0})}case c:{const{columnId:n,filter:r}=t.payload;return(0,a.evolve)({filters:r?(0,a.assoc)(n,r):(0,a.dissoc)(n),page:(0,a.always)(0)},e)}case u:{const n=t.payload,l=(0,a.path)(["sorting","field"],e),i=(0,a.path)(["sorting","order"],e);return o({},e,{sorting:{field:n,order:(0,r.Dh)(n===l?i:null)},page:0})}case p:return o({},e,{page:t.payload});case d:return o({},e,{rowsPerPage:t.payload});default:return e}},actions:m,changeVisibleColumns:f}},10237:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(27556),r=n(13980),o=n.n(r),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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},p.apply(this,arguments)}const d=(0,l.forwardRef)(((e,t)=>{let{children:n,className:r}=e,o=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["children","className"]);const l=u();return i().createElement(a.Z,p({ref:t,className:r,classes:{root:l["basic-view__paper"]}},o),n)}));d.displayName="BasicView",d.propTypes={children:o().node,className:o().string};const m=d},81137:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(24328),r=n.n(a),o=n(2507),l=n.n(o),i=n(94079);const s=(0,n(79692).Z)({paper:{minHeight:"180px"},title:{padding:"16px 16px 10px 16px",fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px"},content:{padding:"0 16px"},contentText:{marginBottom:0,fontSize:"16px",letterSpacing:"0.15px",lineHeight:"24px"},actionButtons:{display:"flex",paddingTop:"4px",fontSize:"14px",fontWeight:500,letterSpacing:0,lineHeight:"16px","& > div":{marginLeft:"auto"}},discardButton:{marginRight:"8px"}}),c=e=>{let{open:t,title:n,content:a,onCancel:o,cancelCaption:c=l().text("Cancel"),onDiscard:u,discardCaption:p="",onSave:d,saveCaption:m=l().text("Save"),disabledSave:f=!1}=e;const g=s();return r().createElement(i.Dialog,{open:t,onClose:o,classes:{paperScrollPaper:g.paper}},r().createElement(i.DialogTitle,{classes:{root:g.title}},n),r().createElement(i.DialogContent,{classes:{root:g.content}},r().createElement(i.DialogContentText,{classes:{root:g.contentText}},a)),r().createElement(i.DialogActions,{className:g.actionButtons,disableSpacing:!0},o&&r().createElement(i.Button,{onClick:o},c),r().createElement("div",null,u&&r().createElement(i.Button,{onClick:u,classes:{root:g.discardButton}},p),r().createElement(i.Button,{onClick:d,color:"primary",disabled:f,autoFocus:!0},m))))}},14377:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(24328),r=n.n(a),o=n(47603),l=n(2507),i=n.n(l),s=n(8818),c=n(55847),u=n(50914),p=n(94079);const d=(0,n(79692).Z)((e=>({menuItem:{height:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px"},checkbox:{padding:0,marginRight:"15px"}}))),m=(0,a.forwardRef)(((e,t)=>{let{item:n,onMenuClose:a=u.identity}=e;const o=d(),{text:l,onClick:i,id:s,selected:c}=n;return r().createElement(p.MenuItem,{classes:{root:o.menuItem},onClick:e=>{a(e),i(e)},ref:t,"data-modal":!0,"data-reltio-id":`reltio-settings-menu-item${s}`},r().createElement(p.Checkbox,{checked:c,className:o.checkbox,color:"primary"}),r().createElement(p.Typography,{classes:{root:o.menuText}},l))}));m.displayName="SettingsMenuItemRenderer";const f=m,g=e=>{let{items:t,menuId:n}=e;return r().createElement(c.Z,{buttonComponent:s.k,buttonProps:{icon:o.Z,tooltipTitle:i().text("Settings"),size:"L"},menuId:n,menuItems:t,MenuItemRenderer:f})}},30553:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(13980),r=n.n(a),o=n(24328),l=n.n(o);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:r().number,margin:r().number};const s=i},86361:(e,t,n)=>{n.d(t,{o:()=>l});var a=n(24328),r=n(50914);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 l=e=>{let{actions:t,dispatch:n}=e;return(0,a.useMemo)((()=>Object.entries(t).reduce(((e,t)=>{let[a,l]=t;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){o(e,t,n[t])}))}return e}({},e,{[a]:(0,r.pipe)(l,n)})}),{})),[n,t])}},37152:(e,t,n)=>{n.d(t,{a:()=>m});var a=n(24328),r=n(52730),o=n(50914),l=n(86051),i=n(81559),s=n(85229),c=n(8783);function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){p(e,t,n[t])}))}return e}function p(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=(0,o.when)(o.identity,(0,o.pipe)(i.VGB,o.length,(0,o.times)((e=>e+1)))),m=e=>{let{sorting:t,filter:n,page:p,rowsPerPage:m,config:f,entity:g,relationActivityFilter:b,mode:y,searchByOv:h=!1}=e;const[v,x]=(0,a.useState)(!1),E=(0,r.useDispatch)(),w=(0,r.useSelector)(l.ZP.selectors.getTenant),C=(0,r.useSelector)(l.ZP.selectors.getMetadata),S=(0,r.useSelector)(l.ZP.selectors.getDtssPath),{activityFilter:O,globalFilter:T}=(0,r.useSelector)(l.ZP.selectors.getGlobalSearchRequestOptions)||{},P=(0,r.useSelector)(l.ZP.selectors.getProfileLastLoadedTime),k=(0,s._)(),D=e=>{const t=(0,o.when)(i.Kn2,(0,o.prop)("uri")),n=(0,o.pipe)(t,(0,i.pQZ)(C));return(0,o.evolve)({entityTypes:(0,o.filter)((0,i.kuw)(C)),inRelations:(0,o.filter)(n),outRelations:(0,o.filter)(n),nextEntry:D})(e)},R=f.suggested,Z=(0,a.useMemo)((()=>({searchByOv:h})),[h]),N=(0,a.useCallback)((()=>{if(null!=g&&g.uri){const e=u({},D(f.content),{sortBy:null==t?void 0:t.field,order:null==t?void 0:t.order,returnDates:!0,returnObjects:!0,activeness:{relation:b||i.Ng6.ALL,entity:O},max:m,offset:p*m,filter:(0,i.vyX)(T,n)||void 0,suggested:d(R)}),a=[e].concat((0,o.ifElse)(o.identity,(0,o.pipe)(i.VGB,(t=>t.map(((t,n)=>u({},t,{id:e.suggested[n]}))))),(0,o.always)([]))(R)),r=(0,o.cond)([[(0,o.pipe)((0,o.prop)("uri"),i.ZiX),()=>Promise.resolve([{total:0}])],[i.biM,e=>(0,i.n_1)({entityUri:e.uri,configs:a,customerTenant:w,dataTenant:e.dataTenant,dtssPath:S,options:Z})],[o.T,e=>(0,i.N6e)(e.uri,a,Z)]]);x(!0),k(r(g)).then((e=>{let[{connections:t,total:n}]=e;E(l.N5.relations.actions.relationsLoaded({id:f.id,connections:t,total:n}))})).finally((()=>{x(!1)}))}}),[O,C,f,E,S,null==g?void 0:g.uri,null==g?void 0:g.dataTenant,n,T,p,b,m,k,t,w,Z,P]),M=(0,a.useRef)(!1);M.current=!1,(0,a.useEffect)((()=>{M.current=!0,N()}),[N]);const j=(0,c.D)(y);return(0,a.useEffect)((()=>{y!==i.ARY.Viewing||M.current||j===y||(M.current=!0,N())}),[N,y,j]),{isLoading:v,reload:N}}},58475:(e,t,n)=>{n.r(t),n.d(t,{default:()=>$t});var a=n(24328),r=n.n(a),o=n(52730),l=n(8598),i=n(36138),s=n(44443),c=n(22664),u=n(87451),p=n(47898),d=n(585),m=n(86051),f=n(50914),g=n(81559),b=n(20562),y=n(37152),h=n(7718),v=n(41564),x=n(31274),E=n(40715),w=n(99136),C=n(58662);function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.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 T={relationsTable:{},attributesTable:{}};var P=n(26180),k=n(31276),D=n(86361),R=n(2507),Z=n.n(R);const N="relation.type",M="relation.attributes",j=[{id:"entity.label",get label(){return Z().text("Profile")},dataTypeDefinition:{type:g.oS0.TYPE_STRING},hideable:!1,filterable:!1,initialWidth:280,autoResize:!1},{id:N,get label(){return Z().text("Type")}},{id:"relation.label",get label(){return Z().text("Directional Label")},filterable:!1,dataTypeDefinition:{type:g.oS0.TYPE_STRING}},{id:"relation.activeness.startDate",get label(){return Z().text("Start Date")},dataTypeDefinition:{type:g.oS0.TYPE_ACTIVENESS_DATE}},{id:"relation.activeness.endDate",get label(){return Z().text("End Date")},dataTypeDefinition:{type:g.oS0.TYPE_ACTIVENESS_DATE}},{id:M,get label(){return Z().text("Attributes")},sortable:!1,filterable:!1,maxAttrsToShow:7}],A=(0,f.pluck)("id",j),L=[N,M],z=[20,50,100],I=(0,f.pipe)(g.Tde,(0,f.concat)("relation.")),B=(0,f.pipe)((0,f.map)((e=>({id:I(e.uri),label:e.label,description:null==e?void 0:e.description,dataTypeDefinition:(0,g.PFL)(e)}))),(0,f.uniqBy)((0,f.prop)("id")));function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){H(e,t,n[t])}))}return e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const V="CHANGE_RELATION_TYPE",_="APPLY_SAVED_STATE",U="SAVE_CURRENT_STATE",Y=F({},P.ZP.actions,{changeRelationType:(0,k.zD)(V),applySavedState:(0,k.zD)(_),saveCurrentState:(0,k.zD)(U)}),W=(0,f.assoc)("page",0),G=e=>(0,f.pipe)((0,f.prop)("visibleColumns"),(0,f.ifElse)((0,f.always)(e.currentRelationType),(0,f.without)(L),(0,f.concat)(L)),(0,f.intersection)(A))(e),$=e=>(0,f.path)(["visibleColumnsForRelationTypes",`${e.currentRelationType}`],e),q=e=>{const t=(0,f.either)($,G)(e);return P.ZP.changeVisibleColumns(e,t)},X=(0,f.pipe)((0,f.propOr)(null,"filters"),(0,f.unless)(f.isNil,(0,f.filter)((e=>{let{filter:t,value:n}=e;return(0,g.jtL)(t,n)})))),K=e=>{const{currentRelationType:t,visibleColumns:n}=e;return(0,f.evolve)({visibleColumnsForRelationTypes:(0,f.assoc)(`${t}`,n)},e)},J=(0,f.pipe)(K,(0,f.pick)(["currentRelationType","visibleColumnsForRelationTypes","filters","sorting"]));var Q=n(37754),ee=n(94079),te=n(92778),ne=n(30553),ae=n(51229),re=n(14377),oe=n(1876),le=n(60894),ie=n(79026),se=n(79692);const ce=(0,se.Z)({select:{fontSize:"13px",color:"rgba(0,0,0,.6)",paddingLeft:"15px","&&":{paddingRight:"35px"}},selectMenu:{"& li":{fontSize:"13px",height:"32px"}},textField:{maxWidth:"100%"}}),ue=e=>{let{value:t,onChange:n,relationTypes:o,className:l}=e;const i=ce(),s=(0,a.useMemo)((()=>(0,f.pipe)((0,f.map)((e=>{let{label:t,uri:n}=e;return{label:t,value:n}})),(0,f.concat)([{value:"",label:Z().text("All types")}]))(o)),[o]);return r().createElement("div",{className:l},r().createElement(ie.Z,{displayEmpty:!0,disableUnderline:!0,classes:{select:i.select},TextFieldProps:{classes:{root:i.textField}},MenuProps:{classes:{list:i.selectMenu}},value:t||"",entries:s,onChange:e=>n(e||null)}))},pe=(0,se.Z)((e=>({header:{height:"56px",boxSizing:"border-box",paddingRight:"10px"},title:{fontSize:"16px"},total:{fontSize:"14px",color:e.palette.text.secondary,flexShrink:0,marginRight:"5px"},relationTypeSelector:{margin:"0px 10px 0 30px",overflow:"hidden"}}))),de=(0,a.memo)((e=>{let{total:t,filteringEnabled:n,onToggleFilters:o,columnsData:l,selectedColumns:i,currentRelationType:s,onRelationTypeChange:c,relationTypes:u,onChangeColumns:p,searchByOv:d,onToggleSearchByOv:m,showInactive:f,onToggleShowInactive:g}=e;const b=pe(),y=(0,a.useMemo)((()=>[{selected:d,text:Z().text("Search by OV only"),onClick:m,id:"showNonOv"},{selected:f,text:Z().text("Show inactive relationships"),onClick:g,id:"showInactive"}]),[m,d,g,f]);return r().createElement(te.Z,{title:Z().text("Relationships"),classes:{root:b.header,title:b.title}},u.length>0&&r().createElement(ue,{className:b.relationTypeSelector,value:s,onChange:c,relationTypes:u}),r().createElement(ne.Z,{height:28,margin:20}),r().createElement(ee.Typography,{variant:"caption",className:b.total},1===t?Z().text("${count} record",{count:t}):Z().text("${count} records",{count:t})),r().createElement(ae.Z,null),r().createElement(re.Z,{items:y,menuId:"relationships-view-settings"}),r().createElement(oe.Z,{enabled:n,onClick:o}),r().createElement(ne.Z,{height:28,margin:8}),r().createElement(le.Z,{columnsData:l,selectedColumns:i,onChangeColumns:p}))}));var me=n(42846),fe=n(78458),ge=n(85709);const be=e=>!(0,g.Fn9)(null==e?void 0:e.relation)||!(0,g.Fn9)(null==e?void 0:e.entity);var ye=n(25461),he=n(92332),ve=n(98448),xe=n(67353);const Ee=(0,se.Z)((e=>({headCell:{display:"flex",alignItems:"center",height:"100%",width:"100%",fontSize:"12px",color:e.palette.text.secondary,background:"linear-gradient(0deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)), #FFFFFF"},rowCell:{fontSize:"13px",overflow:"hidden",overflowWrap:"break-word"},inactiveRowCell:{opacity:.6},defaultWrapper:{padding:"15px 25px 0 25px","&:last-child":{paddingBottom:"15px"}},entityCell:{display:"flex",alignItems:"flex-start",padding:"15px"},entityAvatar:{transform:"scale(0.5)",margin:"-10px 0 -10px -10px"},inactiveEntityAvatar:{overflow:"initial","&:after":{content:'""',position:"absolute",backgroundColor:"rgb(209, 206, 206)",border:"1px solid rgba(0, 0, 0, 1)",borderRadius:"2px",width:"12px",right:0,bottom:0,height:"12px"},"& > img":{borderRadius:"50%",overflow:"hidden"}},entityLabel:{color:e.palette.primary.main,textDecoration:"none",fontWeight:500},attributesWrapper:{padding:"15px 25px 10px 25px",color:"rgba(0,0,0,0.87)"},commentsContainer:{marginLeft:"auto"},description:{marginLeft:"-22px"}}))),we=(0,xe.Z)((e=>{const t=Ee(),{description:n}=null==e?void 0:e.headCellData;return r().createElement("div",{className:t.headCell},r().createElement(he.default,e),r().createElement(ve.Z,{description:n,className:t.description}))}));var Ce=n(71153),Se=n.n(Ce),Oe=n(19603),Te=n(34e3),Pe=n(31039),ke=n(94646);const De=e=>{let{value:{entity:t,entityType:n,relation:a},isInactiveRelation:l}=e;const i=Ee(),s=(0,o.useSelector)(m.ZP.selectors.getEntityUri);return r().createElement("div",{className:Se()(i.entityCell,Oe.U)},r().createElement(Te.Z,{className:Se()(i.entityAvatar,{[i.inactiveEntityAvatar]:l}),entityType:n}),r().createElement(Pe.Z,{value:(0,g.wwR)({uri:t.entityUri,dataTenant:t.dataTenant}),className:i.entityLabel},(0,g.idV)(t.entityLabel)),r().createElement("div",{className:i.commentsContainer,onClick:e=>e.stopPropagation()},r().createElement(ke.Z,{uri:a.relationUri,relatedObjectUris:(0,g.wp9)(g.q7e.RELATION,{entityUri:s,connection:{relation:a,entity:t}}),objectType:g.q7e.RELATION,allowOnlyOneComment:!0})))};var Re=n(80931);const Ze=e=>{let{columnData:t,value:{attributes:n,attributeTypes:a}}=e;const o=Ee();return r().createElement("div",{className:o.attributesWrapper,onClick:e=>e.stopPropagation()},r().createElement(Re.Z,{max:t.maxAttrsToShow,entity:{attributes:n},attrTypes:a,drawLines:!1}))};var Ne=n(72768);const Me=e=>{let{value:t,columnData:{dataTypeDefinition:n}}=e;const a=Ee();return r().createElement("div",{className:a.defaultWrapper},r().createElement(Ne.Z,{value:t,dataTypeDefinition:n}))};function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ae=(0,f.pipe)((0,f.split)("."),(0,f.slice)(2,1/0)),Le=e=>{if(e.startsWith("relation.attributes")){const t=Ae(e);return t.length>1?t.slice(0,-1):null}return null},ze=e=>{switch(e){case"entity.label":return De;case"relation.attributes":return Ze;default:return Me}},Ie=(0,f.map)((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){je(e,t,n[t])}))}return e}({sortable:!0,resizable:!0},e,{headCellRenderer:we,nestedPath:Le(e.id),rowCellValueRenderer:ze(e.id)}))),Be=(0,f.cond)([[(0,f.pathEq)(["columnData","id"],"relation.attributes"),e=>{let{columnData:t,cell:n}=e;const a=(0,f.pipe)((0,f.path)(["values",0,"attributes"]),f.values,f.length)(n);return a>t.maxAttrsToShow?26*t.maxAttrsToShow+49:26*a+25}],[f.T,ye.Z]]);function Fe(){return Fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Fe.apply(this,arguments)}const He=e=>{let{cell:t,CellValueRenderer:n}=e,a=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["cell","CellValueRenderer"]);const o=Ee();return r().createElement("div",{className:Se()(o.rowCell,{[o.inactiveRowCell]:a.isInactiveRelation})},t.values.map(((e,t)=>r().createElement(n,Fe({key:t,value:e},a)))))};var Ve=n(22983),_e=n(43054),Ue=n(55847),Ye=n(22385),We=n(81137),Ge=n(83348);const $e=(0,se.Z)((e=>({menuItem:{minHeight:"32px",color:e.palette.text.secondary},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"16px"},buttons:{display:"flex",alignItems:"center",paddingRight:"5px"}}))),qe=(0,Ge.Z)(ee.MenuItem),Xe=(0,a.forwardRef)(((e,t)=>{let{item:n,onMenuClose:a=k.ZT}=e;const o=$e(),{icon:l,disabled:i,text:s,tooltip:c,onClick:u}=n;return r().createElement(qe,{tooltipTitle:c,showForDisabled:!0,classes:{root:o.menuItem},onClick:e=>{a(),u(e)},disabled:i,ref:t},l,r().createElement(ee.Typography,{classes:{root:o.menuText}},s))}));Xe.displayName="MenuItemRenderer";const Ke=Xe,Je=e=>{let{disableDelete:t,connection:{entity:n,relation:l},onMenuOpen:i=k.ZT,onMenuClose:s=k.ZT,onDelete:c}=e;const u=$e(),p=(0,o.useSelector)(m.ZP.selectors.getMetadata),d=(0,f.pipe)((0,f.prop)("relationType"),(0,g.V3K)(p),(0,g.uGe)(g.BDP.DELETE))(l),b=!t&&d,[y,h]=(0,a.useState)(!1),v=()=>h(!1),x=[{disabled:!b,text:Z().text("Delete"),icon:r().createElement(Ve.Z,null),tooltip:b?null:Z().text("You don't have permissions to delete"),onClick:()=>h(!0)}],E=(0,a.useCallback)((()=>{y||s()}),[y,s]);return r().createElement("div",{className:u.buttons},r().createElement(Ue.Z,{MenuItemRenderer:Ke,menuId:"relationships-table-actions",buttonComponent:Ye.Z,buttonProps:{icon:_e.Z,size:"S"},menuItems:x,onMenuOpen:i,onMenuClose:E}),r().createElement(We.Z,{open:y,title:Z().text('Do you want to delete relationship "${label}"?',{label:(w=(0,g.idV)(n.entityLabel),w.length>17?`${w.substring(0,17)}...`:w)}),content:Z().text("This relationship will be removed and all the values in the relationship will be permanently deleted. Are you sure you want to delete this relationship?"),onSave:(0,f.pipe)(v,s,c),onDiscard:(0,f.pipe)(v,s),saveCaption:Z().text("Delete"),discardCaption:Z().text("Cancel")}));var w},Qe=(0,se.Z)({tableContainer:{flex:1,overflow:"hidden",display:"flex",zIndex:0},hoveredRowRightContentWrapper:{width:"100%",pointerEvents:"none!important"},menuButtonContainer:{position:"absolute",top:"calc(50% - 12px)",right:0,pointerEvents:"all"},tooltipAnchor:{width:"100%",height:"1px"}});function et(){return et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},et.apply(this,arguments)}const tt=(0,a.memo)((e=>{let{metadata:t,connections:n,columnsData:o,sorting:l,onSort:i,filters:s,onFilter:c,onRowClick:u,tableRef:p,onDelete:d,readOnly:m}=e;const b=Qe(),y=(0,a.useMemo)((()=>((e,t,n)=>(n||[]).map((n=>(0,f.pipe)((0,f.reduce)(((t,a)=>{let{id:r}=a;return(0,f.assoc)(r,((e,t,n)=>{let{entity:a,relation:r}=t;switch(n){case"entity.label":return{entity:a,entityType:(0,g.nt9)(e,a.entityType),relation:r};case"relation.type":return r.relationType;case"relation.label":return r.relationLabel;case"relation.activeness.startDate":return r.startDate;case"relation.activeness.endDate":return r.endDate;case"relation.attributes":return{attributes:r.object.attributes,attributeTypes:(0,g.V3K)(e,r.relationType).attributes};default:return((e,t)=>(0,f.pipe)((0,f.path)(["object","attributes"]),(0,g.tT_)(e))(t))(Ae(n),r)}})(e,n,r),t)}),{}),(0,f.assoc)("rawValue",n))(t))))(t,o,n)),[t,n,o]),h=(0,a.useMemo)((()=>Ie(o)),[o]),{getDynamicRowCellHeight:v,changeRowCellHeight:x}=(0,me.Z)(),E=(0,a.useCallback)((0,f.either)(v,Be),[v,Be]),[w,C]=(0,a.useState)(null),S=(0,a.useCallback)((e=>{const t=be(e.rowValue.rawValue);return r().createElement(fe.Z,et({onChangeHeight:x},e),r().createElement(He,et({},e,{isInactiveRelation:t})))}),[x]),[O,T]=(0,a.useState)(!1),P=(0,a.useCallback)((()=>T(!0)),[]),k=(0,a.useCallback)((()=>{C(null),T(!1)}),[]),D=(0,a.useCallback)((e=>C((t=>O?t:e))),[O]),R=(0,a.useMemo)((()=>{const e=null!=w?y[w].rawValue:null,t=be(e);return e&&r().createElement(r().Fragment,null,r().createElement(ee.Tooltip,{key:e.relation.relationUri,open:t,title:Z().text("Inactive")},r().createElement("div",{className:b.tooltipAnchor})),r().createElement("div",{className:b.menuButtonContainer},r().createElement(Je,{disableDelete:m,connection:e,onMenuOpen:P,onMenuClose:k,onDelete:()=>d(e.relation.relationUri)})))}),[d,y,w]);return r().createElement("div",{className:b.tableContainer},r().createElement(ge.Z,{fixFirstColumn:!0,columnsData:h,rowsData:y,sorting:l,onSort:i,filters:s,onFilter:c,defaultColumnWidth:250,defaultColumnMinWidth:200,headRowHeight:48,getRowCellHeight:E,renderRowCell:S,onRowClick:u,ref:p,hoverStateEnabled:!0,hoverRowIndex:w,onRowHover:D,hoveredRowRightContent:R,classes:{hoveredRowRightContentWrapper:b.hoveredRowRightContentWrapper}}))}));var nt=n(85229),at=n(85965),rt=n(39417),ot=n(10237),lt=n(63149),it=n(48017),st=n(18798),ct=n(66095),ut=n(17432),pt=n(99144),dt=n(65549),mt=n(52017),ft=n(90186);const gt=(0,se.Z)((()=>({tableRow:{"& + &":{marginTop:"4px"},margin:"auto",maxWidth:"448px"}})));function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yt=(0,a.memo)((e=>{let{readOnly:t,relation:n,metadata:o,selectedAttributeTypes:l,onDeleteCrosswalk:i,onEditCrosswalk:s}=e;const c=gt(),u=(0,g.V3K)(o,n.type),p=(0,a.useMemo)((()=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,f.pipe)((0,f.propOr)([],"crosswalks"),(0,f.map)((0,f.assoc)("ownerType","entity")),(0,ft.o)(e.type,t))(e)}(n,l)),[n,l]),[d,m]=(0,a.useState)([]),b=(0,a.useCallback)((e=>{i({entityUri:n.uri,crosswalkId:e})}),[i,n.uri]),y=(0,a.useCallback)((e=>{s(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){bt(e,t,n[t])}))}return e}({entityUri:n.uri},e))}),[s,n.uri]);return r().createElement("div",null,p.map((e=>{let{source:n,crosswalksByTypes:a}=e;return r().createElement("div",{key:n,className:c.tableRow},r().createElement(mt.Z,{source:n,crosswalksByTypes:a,expanded:d.includes(n),disableEditCrosswalk:!(0,g.Zm0)(u)||t,disableDeleteCrosswalk:!(0,g.a14)(u)||t,onEdit:y,onDelete:b,onToggleExpanded:()=>{m((0,f.ifElse)((0,f.includes)(n),(0,f.without)([n]),(0,f.append)(n)))}}))})))}));var ht=n(79769);const vt=(0,se.Z)((e=>({header:{display:"flex",flexDirection:"row",alignItems:"center",padding:"20px 12px",borderBottom:"1px solid rgba(0, 0, 0, 0.12)"},title:{fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px",color:e.palette.text.primary,marginLeft:"12px"},hint:{color:e.palette.text.secondary,display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"flex-start",margin:"4px 14px 10px"},hintText:{marginLeft:"8px",fontSize:"12px",lineHeight:"16px"},buttons:{display:"flex",padding:"8px 6px 4px"},buttonLabel:{fontSize:"14px",fontWeight:500,lineHeight:"16px"},icon:{fontSize:"18px",marginRight:"8px"},editor:{paddingLeft:25,margin:"auto",maxWidth:"448px",boxSizing:"border-box",marginBottom:"4px"},tableContainer:{overflowY:"auto",overflowX:"hidden",paddingLeft:"16px",paddingRight:"6px"}}))),xt=(0,Ge.Z)(ee.Button),Et=(0,a.memo)((e=>{let{className:t,readOnly:n,relation:l,selectedAttributeTypes:i,onAddCrosswalk:s,onDeleteCrosswalk:c,onEditCrosswalk:u}=e;const p=vt(),d=(0,o.useSelector)(m.ZP.selectors.getMetadata),f=(0,g.V3K)(d,l.type),[b,y]=(0,a.useState)(!1),h=(0,g.mkC)(f)&&!n;return r().createElement("div",{className:t},r().createElement("div",{className:p.header},r().createElement("span",{className:p.title},Z().text("Legend"))),r().createElement("div",{className:p.buttons},r().createElement(xt,{color:"primary",showForDisabled:!0,disabled:!h,tooltipTitle:h?null:Z().text("You don't have permissions to add crosswalk"),onClick:()=>y(!0)},r().createElement(dt.Z,{className:p.icon}),r().createElement("div",{className:p.buttonLabel},Z().text("Crosswalk")))),r().createElement("div",{className:p.hint},r().createElement(pt.Z,{className:p.icon}),r().createElement("span",{className:p.hintText},Z().text("You can drag a crosswalk to add values to attributes swimlanes"))),r().createElement("div",{className:p.tableContainer},b&&r().createElement(ht.Z,{className:p.editor,onAdd:e=>s({entity:l,crosswalk:e}),onClose:()=>y(!1)}),r().createElement(yt,{readOnly:n,metadata:d,relation:l,selectedAttributeTypes:i,onDeleteCrosswalk:c,onEditCrosswalk:u})))}));var wt=n(95613),Ct=n(23147),St=n(94111),Ot=n(64459),Tt=n(68439);const Pt=(0,se.Z)((e=>({entityInfo:{flex:"0 1 auto",overflow:"hidden",minWidth:"100px"},entityLabelContainer:{display:"flex",alignItems:"center",overflow:"hidden"},entityLabel:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary},infoIcon:{fontSize:"16px",color:e.palette.text.secondary,marginLeft:"5px"},profileBand:{margin:"-10px",maxWidth:"500px"},entityTypeBadge:{marginTop:"7px"}}))),kt=e=>{let{entity:t}=e;const n=Pt(),a=(0,g.idV)(t.label);return r().createElement("div",{className:n.entityInfo},r().createElement("div",{className:n.entityLabelContainer},r().createElement(wt.Z,{value:a},r().createElement(ee.Typography,{variant:"h6",className:n.entityLabel,noWrap:!0},a)),r().createElement(St.Z,{title:r().createElement(Ot.Z,{className:n.profileBand,entity:t}),placement:"right"},r().createElement(pt.Z,{className:n.infoIcon}))),r().createElement(Tt.Z,{className:n.entityTypeBadge,entity:t,size:"medium"}))},Dt=(0,se.Z)((e=>({root:{flexShrink:0,overflow:"hidden",width:"110px"},label:{color:e.palette.text.secondary,fontSize:"13px"}}))),Rt=e=>{let{relation:t}=e;const n=Dt(),{direction:a,relationLabel:o}=t;return r().createElement("div",{className:n.root},r().createElement(wt.Z,{value:o},r().createElement(ee.Typography,{variant:"subtitle2",className:n.label,align:"center",noWrap:!0},o)),r().createElement("svg",{width:"110",height:"12",fill:"black",fillOpacity:"0.3"},"out"===a&&r().createElement("polygon",{points:"94 0, 110 6, 94 12, 94 9, 0 9, 0 3, 94 3"}),"bidirectional"===a&&r().createElement("polygon",{points:"94 0, 110 6, 94 12, 94 9, 16 9, 16 12, 0 6, 16 0, 16 3, 94 3"}),"in"===a&&r().createElement("polygon",{points:"16 12, 0 6, 16 0, 16 3, 110 3, 110 9, 16 9"})))};var Zt=n(8459),Nt=n(27604);const Mt=(0,se.Z)((()=>({root:{"&:hover $editButton":{visibility:"visible"}},editButton:{visibility:"hidden",marginLeft:"4px",marginBottom:"4px"},paper:{width:"150px",border:"3px solid rgba(0, 0, 0, 0.3)",borderRadius:"4px",boxSizing:"border-box",overflow:"hidden"}}))),jt=e=>{let{value:t=null,onChange:n,readOnly:o}=e;const l=Mt(),i=(0,a.useRef)(),[s,c]=(0,a.useState)(!1),u=()=>c(!1),[p,d]=(0,a.useState)(t),m=()=>{p!==t&&n(p),u()};return r().createElement("span",{ref:i,className:l.root},t&&(0,g.p6d)(t),r().createElement(Ye.Z,{disabled:o,icon:Nt.Z,size:"XXS",className:l.editButton,onClick:()=>c(!0)}),r().createElement(ee.Popover,{classes:{paper:l.paper},open:s,anchorEl:i.current,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:14,horizontal:20},onKeyUp:e=>{"Enter"===e.key?m():"Escape"===e.key&&u()},onBackdropClick:m},r().createElement(Zt.Z,{InputProps:{autoFocus:!0,disableUnderline:!0,fullWidth:!0},size:"small",hiddenLabel:!0,label:void 0,value:p&&new Date(p),onChange:e=>d(e&&e.valueOf())})))},At=(0,se.Z)((e=>({relationBand:{flexShrink:0,boxShadow:"inset 0px -1px 0px rgba(0,0,0,0.06)",padding:"16px 19px"},inactiveRelationBand:{opacity:.6,background:"rgba(185, 188, 197, 0.18)"},toolbar:{display:"flex",alignItems:"center",gap:"16px",marginBottom:"10px"},mainInfo:{display:"flex",gap:"16px",marginLeft:"40px"},detailsInfo:{display:"flex",gap:"34px",marginLeft:"40px",marginTop:"17px",color:e.palette.text.secondary,fontSize:"13px"},detailTitle:{color:e.palette.text.primary,flexShrink:0,marginRight:"4px"},directionalLabel:{display:"flex",overflow:"hidden","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},relationDate:{flexShrink:0},commentsContainer:{marginRight:"18px"}})));function Lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){zt(e,t,n[t])}))}return e}function zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const It=(0,a.memo)((e=>{let{readOnly:t,entity:n,connection:a,onNavigateBack:o,onDelete:l,onChangeActivenessDate:i}=e;const s=be(a),c=At();return r().createElement("div",{className:Se()(c.relationBand,Oe.U,{[c.inactiveRelationBand]:s}),"data-reltio-id":"relationship-band-wrapper"},r().createElement("div",{className:c.toolbar},r().createElement(Ye.Z,{icon:Ct.Z,size:"S",onClick:()=>o()}),r().createElement(ee.Typography,{variant:"subtitle2",display:"inline"},Z().text("Back to relationships")),r().createElement(ae.Z,null),r().createElement("div",{className:c.commentsContainer},r().createElement(ke.Z,{uri:a.relation.relationUri,relatedObjectUris:(0,g.wp9)(g.q7e.RELATION,{entityUri:null==n?void 0:n.uri,connection:a}),objectType:g.q7e.RELATION,allowOnlyOneComment:!0})),r().createElement(Je,{connection:a,onDelete:l,disableDelete:t})),r().createElement("div",{className:c.mainInfo},r().createElement(kt,{entity:n}),r().createElement(Rt,{relation:a.relation}),r().createElement(kt,{entity:Lt({},a.entity.object,{dataTenant:a.entity.dataTenant})})),r().createElement("div",{className:c.detailsInfo},r().createElement("div",{className:c.directionalLabel},r().createElement("span",{className:c.detailTitle},Z().text("Directional label:")),r().createElement(wt.Z,{value:a.relation.relationLabel},r().createElement("span",null,a.relation.relationLabel))),r().createElement("div",{className:c.relationDate},r().createElement("span",{className:c.detailTitle},Z().text("Start date:")),r().createElement(jt,{value:a.relation.startDate,onChange:e=>i("startDate",e),readOnly:t})),r().createElement("div",{className:c.relationDate},r().createElement("span",{className:c.detailTitle},Z().text("End date:")),r().createElement(jt,{value:a.relation.endDate,onChange:e=>i("endDate",e),readOnly:t}))))})),Bt=e=>{console.error(e),d.Z.addError({title:Z().text("Error"),message:(0,g.xU7)(e,Z().text("Something went wrong"))})};var Ft=n(58651),Ht=n(13896);const Vt=(0,se.Z)({detailsView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},locked:{pointerEvents:"none"},resizablePanesWrapper:{flexGrow:1},pane:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",overflow:"hidden"}}),_t=(0,a.memo)((e=>{let{entity:t,connection:n,visibleColumns:o,onClose:l,onDeleteConnection:i,onChangeConnection:s,onChangeVisibleColumns:c,readOnly:u}=e;const p=Vt(),d=(()=>{const[e,t]=(0,a.useState)([]),n=(0,a.useRef)([]),r=(0,a.useCallback)((0,g.DsO)((()=>{t([...n.current])}),50),[]),o=(0,a.useCallback)((e=>{n.current=e,r(e)}),[r]),l=(0,a.useCallback)(((e,t)=>{e&&o(t?[e]:[])}),[o]),[i,s]=(0,a.useState)([]),c=(0,a.useCallback)((e=>{e&&s((t=>{return n=[e],a=t,(0,f.concat)(n.filter((e=>!(0,f.any)((0,g.aFF)(e),a))),a.filter((e=>!(0,f.any)((0,g.aFF)(e),n))));var n,a}))}),[]);return{highlightedCrosswalks:(0,a.useMemo)((()=>[...e,...i]),[e,i]),focusedCrosswalks:i,toggleCrosswalkFocus:c,setCrosswalkHighlighted:l}})(),[m,b]=(0,a.useState)(-480),y=(0,a.useCallback)((e=>{let{percentageSize:t}=e;return b(t)}),[]),[h,v]=(0,a.useState)(),[x,E]=(0,a.useState)(!1),w=n.relation.relationUri,C=(0,nt._)(),S=(0,a.useCallback)((()=>E(!0)),[]),O=(0,a.useCallback)((()=>E(!1)),[]),T=(0,a.useCallback)((0,f.pipe)(i,S),[]),[P,k]=(0,a.useMemo)((()=>{const e=e=>{e.errorCode===g.Xt7.CROSSWALK_NOT_FOUND?(Bt(e),t()):e.errorCode===g.Xt7.OBJECT_NOT_FOUND?l(e):(Bt(e),O())},t=()=>{C((0,g._vs)(w)).then((e=>{s((0,f.assocPath)(["relation","object"],e,n)),O()})).catch(e)};return[e,t]}),[n,O,s,l]),{modifiedEntity:D,crosswalksMap:R,newlyCreatedAttributes:Z,onPinAttribute:N,onIgnoreAttribute:M,onAddAttribute:j,onEditAttribute:A,onDeleteAttribute:L}=(0,at.Q)({entity:n.relation.object,onModify:k,onError:P,onLoad:S}),{addCrosswalk:z,deleteCrosswalk:I,editCrosswalk:B}=(0,rt.P)({onSuccess:k,onError:P,onLoad:S}),F=(0,a.useCallback)(((e,t)=>{S(),(t?(0,g.rj2)({entityUri:w,attributeName:e,value:t}).then((()=>s((0,f.assocPath)(["relation",e],t,n)))):(0,g.X78)({entityUri:w,attributeName:e}).then((()=>s((0,f.dissocPath)(["relation",e],n))))).then(O).catch(P)}),[n,S,O,P]);return r().createElement(ot.Z,{className:p.detailsView},r().createElement(lt.hR,d,r().createElement(Ht.DndProvider,{backend:Ft.default},r().createElement(it.Z,null),r().createElement(st.u,{className:Se()(p.resizablePanesWrapper,{[p.locked]:x}),orientation:"vertical",size:m,minSize:600,maxSize:-480,allowResize:!0,onChange:y},r().createElement("div",{className:p.pane},r().createElement(It,{readOnly:u,entity:t,connection:n,onNavigateBack:l,onDelete:T,onChangeActivenessDate:F}),r().createElement(ct.R,{attributeUris:Z},r().createElement(ut.Z,{readOnly:u,entity:D,crosswalksMap:R,isLoading:x,onPin:N,onIgnore:M,onEdit:A,onAdd:j,onDelete:L,selectedAttributeTypes:h,onSelectAttributeTypes:v,visibleColumns:o,onChangeVisibleColumns:c}))),r().createElement(Et,{readOnly:u,className:p.pane,relation:n.relation.object,selectedAttributeTypes:h,onAddCrosswalk:z,onDeleteCrosswalk:I,onEditCrosswalk:B})))))})),Ut=(0,se.Z)({relationshipsView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex",flexDirection:"column"},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},pane:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",position:"relative"}}),Yt=(0,o.connect)(((e,t)=>{let{config:{id:n}}=t;return{entity:m.ZP.selectors.getEntity(e),metadata:m.ZP.selectors.getMetadata(e),connections:m.ZP.selectors.getConnectionsByViewId(e,n),total:m.ZP.selectors.getTotalByViewId(e,n)}}))((e=>{let{config:t,entity:n,metadata:o,connections:l,total:i,saveState:s,getSavedState:c,dispatch:u}=e;const p=Ut(),d=(0,a.useRef)(),O=(0,g.biM)(n),[k,R]=(0,a.useState)(!1),[Z,N]=(0,a.useState)(!1),{type:M}=n||{},[{visibleColumns:I,filters:H,page:G,rowsPerPage:ee,sorting:te,currentRelationType:ne,stateToSave:ae,entityTypeOfAppliedSavedState:re},{changeColumns:oe,toggleFilters:le,changeFilter:ie,changePage:se,changeRowsPerPage:ce,toggleSort:ue,changeRelationType:pe,saveCurrentState:me,applySavedState:fe}]=(e=>{let{defaultColumns:t,defaultSorting:n,defaultRowsPerPage:r}=e;const o={visibleColumns:t,filters:null,sorting:n,page:0,rowsPerPage:r,currentRelationType:null,stateToSave:null,visibleColumnsForRelationTypes:{},entityTypeOfAppliedSavedState:null},[l,i]=(0,a.useReducer)(((e,t)=>{switch(t.type){case V:{const n=t.payload;return(0,f.pipe)(K,(0,f.assoc)("currentRelationType",n),q,W)(e)}case _:{const{savedState:n,entityTypeUri:a}=t.payload,r=n?$(n):e.visibleColumns;return F({},e,n,{filters:n?X(n):e.filters,visibleColumns:r,entityTypeOfAppliedSavedState:a})}case U:return F({},e,{stateToSave:J(e)});default:return P.ZP.reducer(e,t)}}),o);return[l,(0,D.o)({actions:Y,dispatch:i})]})({defaultColumns:A,defaultRowsPerPage:z[0],defaultSorting:{field:A[0],order:"asc"}}),ge=re===M,{isLoading:be,relationsTableSavedState:ye,attributesTableSavedState:he,updateRelationsTableSavedState:ve,updateAttributesTableSavedState:xe}=(e=>{var t;let{getSavedState:n,saveState:r,entityTypeUri:o}=e;const[l,i]=(0,a.useState)(T),[s,c]=(0,a.useState)(null);(0,b.D)((()=>{s&&(i(S({},l,{relationsTable:s})),c(null))}),[o]);const[u,p]=(0,a.useState)(!0);return(0,a.useEffect)((()=>{n().then((e=>{i(e||T)})).then((e=>p(!1))).catch((e=>p(!1)))}),[]),{isLoading:u,relationsTableSavedState:null===(t=l.relationsTable)||void 0===t?void 0:t[o],attributesTableSavedState:l.attributesTable,updateRelationsTableSavedState:e=>{const t=S({},l.relationsTable,{[o]:e});c(t),r(S({},l,{relationsTable:t}))},updateAttributesTableSavedState:e=>{r(S({},l,{attributesTable:e}))}}})({getSavedState:c,saveState:s,entityTypeUri:M}),[Ee,we]=(0,a.useState)();(0,a.useEffect)((()=>{be||fe({savedState:ye,entityTypeUri:M})}),[be,M]),(0,a.useEffect)((()=>{be||we(null==he?void 0:he.visibleColumns)}),[be]),(0,b.D)((()=>{ge&&ve(ae)}),[ae]),(0,b.D)((()=>{se(0)}),[n]);const[Ce,Se]=(0,a.useState)(),Oe=(0,a.useCallback)((()=>{Se(null)}),[]),Te=(0,a.useMemo)((()=>{const e=(0,g.io3)(o,M);return o.relationTypes.filter((0,f.both)((0,g.uGe)(g.BDP.READ),(t=>{let{startObject:n,endObject:a}=t;return e.some((0,f.either)((0,f.equals)(n.objectTypeURI),(0,f.equals)(a.objectTypeURI)))})))}),[o,M]),Pe=(0,a.useMemo)((()=>((e,t)=>t?(0,f.pipe)((0,f.find)((e=>e.uri===t)),g.DK$,B,(0,f.concat)(j),(0,f.reject)((e=>{let{id:t}=e;return L.includes(t)})))(e):(e=>{return t=(0,f.assoc)("dataTypeDefinition",(e=>({type:g.oS0.TYPE_SELECT,options:e.map((e=>{let{uri:t,label:n}=e;return{value:t,label:n}}))}))(e)),e=>(0,f.adjust)(e.findIndex((0,f.propEq)("id","relation.type")),t,e);var t})(e)(j))(Te,ne)),[Te,ne]),ke=(0,a.useMemo)((()=>I.map((e=>Pe.find((0,f.propEq)("id",e)))).filter(f.identity)),[I,Pe]),De=(0,a.useMemo)((()=>{const e=(0,f.pipe)((0,f.when)((0,f.always)(ne),(0,f.filter)((0,f.propEq)("uri",ne))),(0,f.map)((0,f.prop)("uri")))(Te);return{id:t.id,content:{inRelations:e,outRelations:e}}}),[t.id,ne,Te]),Re=(0,a.useMemo)((()=>((e,t)=>{const n=(0,Q.Tz)(t,e);return(new g.MEy).addClause(n).build()})(H,ke)),[H,ke]),{isLoading:Ze,reload:Ne}=(0,y.a)({page:G,rowsPerPage:ee,config:De,entity:ge?n:null,filter:Re,mode:g.ARY.Viewing,sorting:te,searchByOv:k,relationActivityFilter:Z?g.Ng6.ALL:g.Ng6.ACTIVE_ONLY}),Me=!ge||Ze,je=(0,a.useCallback)((0,f.pipe)(ue,me),[ue,me]),Ae=(0,a.useCallback)((0,f.pipe)(ie,me),[ie,me]),Le=(0,a.useCallback)((0,f.pipe)(le,me),[le,me]),ze=(0,a.useCallback)((0,f.pipe)(oe,me),[oe,me]),Ie=(0,a.useCallback)((0,f.pipe)(pe,me),[pe,me]),Be=(0,a.useCallback)((e=>{we(e),xe({visibleColumns:e})}),[xe]),Fe=null==l?void 0:l[Ce],He=(0,a.useCallback)((e=>{u(m.N5.relations.actions.relationsLoaded({id:t.id,connections:(0,f.update)(Ce,e,l),total:i}))}),[Fe]),[Ve,_e]=(0,a.useMemo)((()=>[(0,g.w3p)(l),[g.q7e.RELATION]]),[l]),Ue=(0,h.C)({objectIds:Ve,objectTypes:_e,enabled:!O}),Ye=(0,a.useMemo)((()=>(0,g.Px$)(l)),[l]),We=(0,a.useCallback)((e=>{Bt(e),e.errorCode===g.Xt7.OBJECT_NOT_FOUND&&Ne()}),[Ne]),Ge=(0,a.useCallback)((e=>{(0,f.pipe)(g.VGk,(0,f.andThen)(Ne),(0,f.otherwise)(We))(e)}),[Ne,We]),$e=(0,a.useCallback)((()=>{(0,f.pipe)(g.VGk,(0,f.andThen)((0,f.pipe)(Oe,Ne)),(0,f.otherwise)((e=>{e.errorCode===g.Xt7.OBJECT_NOT_FOUND&&Oe(),We(e)})))(Fe.relation.relationUri)}),[Fe,Ne,Oe,We]),qe=(0,a.useCallback)((e=>{e&&We(e),Oe()}),[We,Oe]),Xe=(0,a.useCallback)((()=>{R(f.not)}),[]),Ke=(0,a.useCallback)((()=>{N(f.not)}),[]);return r().createElement(v.e,{collaboration:Ue},r().createElement(x.X.Provider,{value:Ye},r().createElement("div",{className:p.relationshipsView},r().createElement(E.n,{entity:n}),r().createElement(de,{total:i,filteringEnabled:!!H,onToggleFilters:Le,columnsData:Pe,selectedColumns:I,onChangeColumns:ze,relationTypes:Te,currentRelationType:ne,onRelationTypeChange:Ie,searchByOv:k,onToggleSearchByOv:Xe,showInactive:Z,onToggleShowInactive:Ke}),r().createElement("div",{className:p.pane},Me&&r().createElement(w.Z,null),r().createElement(tt,{readOnly:O,metadata:o,connections:l,columnsData:ke,sorting:te,onSort:je,filters:H,onFilter:Ae,onRowClick:Se,tableRef:d,onDelete:Ge}),r().createElement(C.Z,{count:i,rowsPerPageOptions:z,page:G,onChangePage:se,rowsPerPage:ee,onChangeRowsPerPage:ce,basicTableRef:d})),Fe&&r().createElement(_t,{readOnly:O,entity:n,visibleColumns:Ee,onChangeVisibleColumns:Be,connection:Fe,onClose:qe,onDeleteConnection:$e,onChangeConnection:He}))))}));function Wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gt=(0,i.createGenerateClassName)({productionPrefix:"relationshipsPerspective",disableGlobal:!0}),$t=e=>{let{config:t,store:n,onResize:f,saveState:b,getSavedState:y}=e;const h=(0,a.useCallback)((0,g.aYu)(y),[y]),v=(0,a.useContext)(u.Y),x=m.ZP.selectors.getShowAttributeDescription(n.getState()),E=(0,a.useMemo)((()=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){Wt(e,t,n[t])}))}return e}({},v,{showDescription:x})),[v,x]);return r().createElement(o.Provider,{store:n},r().createElement(p.m.Provider,{value:t.id},r().createElement(u.Y.Provider,{value:E},r().createElement(i.StylesProvider,{generateClassName:Gt},r().createElement(c.MuiPickersUtilsProvider,{utils:l.Z},r().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>null==f?void 0:f(Math.floor(e),Math.floor(t))}),t&&r().createElement(Yt,{config:t,saveState:b,getSavedState:h}),r().createElement(d.Z,null))))))}}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[4957],{8598:(e,t,n)=>{n.d(t,{Z:()=>o});var a=n(95038),r=n.n(a);const o=function(){function e(e){var t=void 0===e?{}:e,n=t.locale,a=t.instance,o=t.moment;this.yearFormat="YYYY",this.yearMonthFormat="MMMM YYYY",this.dateTime12hFormat="MMMM Do hh:mm a",this.dateTime24hFormat="MMMM Do HH:mm",this.time12hFormat="hh:mm A",this.time24hFormat="HH:mm",this.dateFormat="MMMM Do",this.moment=a||o||r(),this.locale=n}return e.prototype.parse=function(e,t){return""===e?null:this.moment(e,t,!0)},e.prototype.date=function(e){if(null===e)return null;var t=this.moment(e);return t.locale(this.locale),t},e.prototype.isValid=function(e){return this.moment(e).isValid()},e.prototype.isNull=function(e){return null===e},e.prototype.getDiff=function(e,t){return e.diff(t)},e.prototype.isAfter=function(e,t){return e.isAfter(t)},e.prototype.isBefore=function(e,t){return e.isBefore(t)},e.prototype.isAfterDay=function(e,t){return e.isAfter(t,"day")},e.prototype.isBeforeDay=function(e,t){return e.isBefore(t,"day")},e.prototype.isBeforeYear=function(e,t){return e.isBefore(t,"year")},e.prototype.isAfterYear=function(e,t){return e.isAfter(t,"year")},e.prototype.startOfDay=function(e){return e.clone().startOf("day")},e.prototype.endOfDay=function(e){return e.clone().endOf("day")},e.prototype.format=function(e,t){return e.locale(this.locale),e.format(t)},e.prototype.formatNumber=function(e){return e},e.prototype.getHours=function(e){return e.get("hours")},e.prototype.addDays=function(e,t){return t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days")},e.prototype.setHours=function(e,t){return e.clone().hours(t)},e.prototype.getMinutes=function(e){return e.get("minutes")},e.prototype.setMinutes=function(e,t){return e.clone().minutes(t)},e.prototype.getSeconds=function(e){return e.get("seconds")},e.prototype.setSeconds=function(e,t){return e.clone().seconds(t)},e.prototype.getMonth=function(e){return e.get("month")},e.prototype.isSameDay=function(e,t){return e.isSame(t,"day")},e.prototype.isSameMonth=function(e,t){return e.isSame(t,"month")},e.prototype.isSameYear=function(e,t){return e.isSame(t,"year")},e.prototype.isSameHour=function(e,t){return e.isSame(t,"hour")},e.prototype.setMonth=function(e,t){return e.clone().month(t)},e.prototype.getMeridiemText=function(e){return"am"===e?"AM":"PM"},e.prototype.startOfMonth=function(e){return e.clone().startOf("month")},e.prototype.endOfMonth=function(e){return e.clone().endOf("month")},e.prototype.getNextMonth=function(e){return e.clone().add(1,"month")},e.prototype.getPreviousMonth=function(e){return e.clone().subtract(1,"month")},e.prototype.getMonthArray=function(e){for(var t=[e.clone().startOf("year")];t.length<12;){var n=t[t.length-1];t.push(this.getNextMonth(n))}return t},e.prototype.getYear=function(e){return e.get("year")},e.prototype.setYear=function(e,t){return e.clone().set("year",t)},e.prototype.mergeDateAndTime=function(e,t){return this.setMinutes(this.setHours(e,this.getHours(t)),this.getMinutes(t))},e.prototype.getWeekdays=function(){return this.moment.weekdaysShort(!0)},e.prototype.isEqual=function(e,t){return null===e&&null===t||this.moment(e).isSame(t)},e.prototype.getWeekArray=function(e){for(var t=e.clone().startOf("month").startOf("week"),n=e.clone().endOf("month").endOf("week"),a=0,r=t,o=[];r.isBefore(n);){var l=Math.floor(a/7);o[l]=o[l]||[],o[l].push(r),r=r.clone().add(1,"day"),a+=1}return o},e.prototype.getYearRange=function(e,t){for(var n=this.moment(e).startOf("year"),a=this.moment(t).endOf("year"),r=[],o=n;o.isBefore(a);)r.push(o),o=o.clone().add(1,"year");return r},e.prototype.getCalendarHeaderText=function(e){return this.format(e,this.yearMonthFormat)},e.prototype.getYearText=function(e){return this.format(e,"YYYY")},e.prototype.getDatePickerHeaderText=function(e){return this.format(e,"ddd, MMM D")},e.prototype.getDateTimePickerHeaderText=function(e){return this.format(e,"MMM D")},e.prototype.getMonthText=function(e){return this.format(e,"MMMM")},e.prototype.getDayText=function(e){return this.format(e,"D")},e.prototype.getHourText=function(e,t){return this.format(e,t?"hh":"HH")},e.prototype.getMinuteText=function(e){return this.format(e,"mm")},e.prototype.getSecondText=function(e){return this.format(e,"ss")},e}()},14940:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicator");t.Z=o},27604:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.Z=o},71519:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11z"}),"EventBusy");t.Z=o},99144:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");t.Z=o},67766:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"KeyboardArrowLeft");t.Z=o},42767:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");t.Z=o},47603:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement(r.default.Fragment,null,r.default.createElement("path",{transform:"scale(1.2, 1.2)",fill:"none",d:"M0 0h20v20H0V0z"}),r.default.createElement("path",{transform:"scale(1.2, 1.2)",d:"M15.95 10.78c.03-.25.05-.51.05-.78s-.02-.53-.06-.78l1.69-1.32c.15-.12.19-.34.1-.51l-1.6-2.77c-.1-.18-.31-.24-.49-.18l-1.99.8c-.42-.32-.86-.58-1.35-.78L12 2.34c-.03-.2-.2-.34-.4-.34H8.4c-.2 0-.36.14-.39.34l-.3 2.12c-.49.2-.94.47-1.35.78l-1.99-.8c-.18-.07-.39 0-.49.18l-1.6 2.77c-.1.18-.06.39.1.51l1.69 1.32c-.04.25-.07.52-.07.78s.02.53.06.78L2.37 12.1c-.15.12-.19.34-.1.51l1.6 2.77c.1.18.31.24.49.18l1.99-.8c.42.32.86.58 1.35.78l.3 2.12c.04.2.2.34.4.34h3.2c.2 0 .37-.14.39-.34l.3-2.12c.49-.2.94-.47 1.35-.78l1.99.8c.18.07.39 0 .49-.18l1.6-2.77c.1-.18.06-.39-.1-.51l-1.67-1.32zM10 13c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"})),"Settings");t.Z=o},72753:(e,t,n)=>{var a=n(71600);t.Z=void 0;var r=a(n(24328)),o=(0,a(n(50175)).default)(r.default.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.Z=o},1876:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(24328),r=n.n(a),o=n(13980),l=n.n(o),i=n(2507),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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},p.apply(this,arguments)}const d=e=>r().createElement("svg",p({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e),r().createElement("path",{d:"M18 2V0H0v2l7 8v8l4-2v-6z",fill:"currentColor",fillRule:"nonzero",stroke:"none",strokeWidth:1})),m=(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"}}))),f=e=>{let{enabled:t,onClick:n}=e;const a=m();return r().createElement(c.Tooltip,{title:t?s().text("Clear all filters"):s().text("Filter")},r().createElement(c.IconButton,{onClick:n,classes:{root:a.button}},t?r().createElement(r().Fragment,null,r().createElement(d,{className:a["filterIcon--enabled"]}),r().createElement(u.default,{color:"primary",className:a.closeIcon})):r().createElement(d,null)))};f.propTypes={enabled:l().bool,onClick:l().func};const g=f},58662:(e,t,n)=>{n.d(t,{Z:()=>h});var a=n(13980),r=n.n(a),o=n(24328),l=n.n(o),i=n(71153),s=n.n(i),c=n(94079),u=n(2507),p=n.n(u),d=n(31276),m=n(50914);const f=(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){b(e,t,n[t])}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=e=>{let{classes:t={},count:n,rowsPerPageOptions:a,page:r,onChangePage:i,rowsPerPage:u,onChangeRowsPerPage:b,basicTableRef:y,labelRowsPerPage:h}=e;const v=f(),x=(0,o.useCallback)((()=>{(0,m.pathOr)(m.identity,["current","resetScrollbarPosition"],y)()}),[y]),E=(0,o.useCallback)((e=>{i(e),x()}),[i,x]),w=(0,o.useCallback)((e=>{i(0),b(e),x()}),[i,b,x]);return l().createElement(c.TablePagination,{classes:g({},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:h||p().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:a}=e;return p().text("${fromRow}-${toRow} of ${countRows}",{fromRow:p().number(t,"0,0"),toRow:p().number(n,"0,0"),countRows:p().number(a,"0,0")})},count:n,rowsPerPageOptions:a,page:r,onChangePage:(0,m.pipe)((0,m.nthArg)(1),E),rowsPerPage:u,onChangeRowsPerPage:(0,m.pipe)(d.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 h=l().memo(y)},26180:(e,t,n)=>{n.d(t,{ZP:()=>g});var a=n(50914),r=n(31276);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.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",d="CHANGE_ROWS_PER_PAGE",m={changeColumns:(0,r.zD)(i),toggleFilters:(0,r.zD)(s),changeFilter:(0,r.zD)(c),toggleSort:(0,r.zD)(u),changePage:(0,r.zD)(p),changeRowsPerPage:(0,r.zD)(d)},f=(e,t)=>{const n=(0,a.difference)(e.visibleColumns,t),r=e=>n.includes(e);return(0,a.evolve)({visibleColumns:(0,a.always)(t),sorting:(0,a.when)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r(e.field)}),(()=>{const[e]=t;return{field:e,order:"asc"}})),filters:e=>(0,a.keys)(e).reduce(((e,t)=>r(t)?(0,a.dissoc)(t,e):e),e)},e)},g={reducer:(e,t)=>{switch(t.type){case i:{const n=t.payload;return f(e,n)}case s:{const t=!e.filters;return o({},e,{filters:t?{}:null,page:t?e.page:0})}case c:{const{columnId:n,filter:r}=t.payload;return(0,a.evolve)({filters:r?(0,a.assoc)(n,r):(0,a.dissoc)(n),page:(0,a.always)(0)},e)}case u:{const n=t.payload,l=(0,a.path)(["sorting","field"],e),i=(0,a.path)(["sorting","order"],e);return o({},e,{sorting:{field:n,order:(0,r.Dh)(n===l?i:null)},page:0})}case p:return o({},e,{page:t.payload});case d:return o({},e,{rowsPerPage:t.payload});default:return e}},actions:m,changeVisibleColumns:f}},10237:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(27556),r=n(13980),o=n.n(r),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]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},p.apply(this,arguments)}const d=(0,l.forwardRef)(((e,t)=>{let{children:n,className:r}=e,o=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["children","className"]);const l=u();return i().createElement(a.Z,p({ref:t,className:r,classes:{root:l["basic-view__paper"]}},o),n)}));d.displayName="BasicView",d.propTypes={children:o().node,className:o().string};const m=d},81137:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(24328),r=n.n(a),o=n(2507),l=n.n(o),i=n(94079);const s=(0,n(79692).Z)({paper:{minHeight:"180px"},title:{padding:"16px 16px 10px 16px",fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px"},content:{padding:"0 16px"},contentText:{marginBottom:0,fontSize:"16px",letterSpacing:"0.15px",lineHeight:"24px"},actionButtons:{display:"flex",paddingTop:"4px",fontSize:"14px",fontWeight:500,letterSpacing:0,lineHeight:"16px","& > div":{marginLeft:"auto"}},discardButton:{marginRight:"8px"}}),c=e=>{let{open:t,title:n,content:a,onCancel:o,cancelCaption:c=l().text("Cancel"),onDiscard:u,discardCaption:p="",onSave:d,saveCaption:m=l().text("Save"),disabledSave:f=!1}=e;const g=s();return r().createElement(i.Dialog,{open:t,onClose:o,classes:{paperScrollPaper:g.paper}},r().createElement(i.DialogTitle,{classes:{root:g.title}},n),r().createElement(i.DialogContent,{classes:{root:g.content}},r().createElement(i.DialogContentText,{classes:{root:g.contentText}},a)),r().createElement(i.DialogActions,{className:g.actionButtons,disableSpacing:!0},o&&r().createElement(i.Button,{onClick:o},c),r().createElement("div",null,u&&r().createElement(i.Button,{onClick:u,classes:{root:g.discardButton}},p),r().createElement(i.Button,{onClick:d,color:"primary",disabled:f,autoFocus:!0},m))))}},14377:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(24328),r=n.n(a),o=n(47603),l=n(2507),i=n.n(l),s=n(8818),c=n(55847),u=n(50914),p=n(94079);const d=(0,n(79692).Z)((e=>({menuItem:{height:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px"},checkbox:{padding:0,marginRight:"15px"}}))),m=(0,a.forwardRef)(((e,t)=>{let{item:n,onMenuClose:a=u.identity}=e;const o=d(),{text:l,onClick:i,id:s,selected:c}=n;return r().createElement(p.MenuItem,{classes:{root:o.menuItem},onClick:e=>{a(e),i(e)},ref:t,"data-modal":!0,"data-reltio-id":`reltio-settings-menu-item${s}`},r().createElement(p.Checkbox,{checked:c,className:o.checkbox,color:"primary"}),r().createElement(p.Typography,{classes:{root:o.menuText}},l))}));m.displayName="SettingsMenuItemRenderer";const f=m,g=e=>{let{items:t,menuId:n}=e;return r().createElement(c.Z,{buttonComponent:s.k,buttonProps:{icon:o.Z,tooltipTitle:i().text("Settings"),size:"L"},menuId:n,menuItems:t,MenuItemRenderer:f})}},30553:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(13980),r=n.n(a),o=n(24328),l=n.n(o);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:r().number,margin:r().number};const s=i},86361:(e,t,n)=>{n.d(t,{o:()=>l});var a=n(24328),r=n(50914);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 l=e=>{let{actions:t,dispatch:n}=e;return(0,a.useMemo)((()=>Object.entries(t).reduce(((e,t)=>{let[a,l]=t;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){o(e,t,n[t])}))}return e}({},e,{[a]:(0,r.pipe)(l,n)})}),{})),[n,t])}},37152:(e,t,n)=>{n.d(t,{a:()=>m});var a=n(24328),r=n(52730),o=n(50914),l=n(86051),i=n(88832),s=n(85229),c=n(8783);function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){p(e,t,n[t])}))}return e}function p(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=(0,o.when)(o.identity,(0,o.pipe)(i.VGB,o.length,(0,o.times)((e=>e+1)))),m=e=>{let{sorting:t,filter:n,page:p,rowsPerPage:m,config:f,entity:g,relationActivityFilter:b,mode:y,searchByOv:h=!1}=e;const[v,x]=(0,a.useState)(!1),E=(0,r.useDispatch)(),w=(0,r.useSelector)(l.ZP.selectors.getTenant),C=(0,r.useSelector)(l.ZP.selectors.getMetadata),S=(0,r.useSelector)(l.ZP.selectors.getDtssPath),{activityFilter:O,globalFilter:T}=(0,r.useSelector)(l.ZP.selectors.getGlobalSearchRequestOptions)||{},P=(0,r.useSelector)(l.ZP.selectors.getProfileLastLoadedTime),k=(0,s._)(),D=e=>{const t=(0,o.when)(i.Kn2,(0,o.prop)("uri")),n=(0,o.pipe)(t,(0,i.pQZ)(C));return(0,o.evolve)({entityTypes:(0,o.filter)((0,i.kuw)(C)),inRelations:(0,o.filter)(n),outRelations:(0,o.filter)(n),nextEntry:D})(e)},R=f.suggested,Z=(0,a.useMemo)((()=>({searchByOv:h})),[h]),N=(0,a.useCallback)((()=>{if(null!=g&&g.uri){const e=u({},D(f.content),{sortBy:null==t?void 0:t.field,order:null==t?void 0:t.order,returnDates:!0,returnObjects:!0,activeness:{relation:b||i.Ng6.ALL,entity:O},max:m,offset:p*m,filter:(0,i.vyX)(T,n)||void 0,suggested:d(R)}),a=[e].concat((0,o.ifElse)(o.identity,(0,o.pipe)(i.VGB,(t=>t.map(((t,n)=>u({},t,{id:e.suggested[n]}))))),(0,o.always)([]))(R)),r=(0,o.cond)([[(0,o.pipe)((0,o.prop)("uri"),i.ZiX),()=>Promise.resolve([{total:0}])],[i.biM,e=>(0,i.n_1)({entityUri:e.uri,configs:a,customerTenant:w,dataTenant:e.dataTenant,dtssPath:S,options:Z})],[o.T,e=>(0,i.N6e)(e.uri,a,Z)]]);x(!0),k(r(g)).then((e=>{let[{connections:t,total:n}]=e;E(l.N5.relations.actions.relationsLoaded({id:f.id,connections:t,total:n}))})).finally((()=>{x(!1)}))}}),[O,C,f,E,S,null==g?void 0:g.uri,null==g?void 0:g.dataTenant,n,T,p,b,m,k,t,w,Z,P]),M=(0,a.useRef)(!1);M.current=!1,(0,a.useEffect)((()=>{M.current=!0,N()}),[N]);const j=(0,c.D)(y);return(0,a.useEffect)((()=>{y!==i.ARY.Viewing||M.current||j===y||(M.current=!0,N())}),[N,y,j]),{isLoading:v,reload:N}}},58475:(e,t,n)=>{n.r(t),n.d(t,{default:()=>$t});var a=n(24328),r=n.n(a),o=n(52730),l=n(8598),i=n(36138),s=n(44443),c=n(22664),u=n(87451),p=n(47898),d=n(585),m=n(86051),f=n(50914),g=n(88832),b=n(20562),y=n(37152),h=n(7718),v=n(41564),x=n(31274),E=n(40715),w=n(99136),C=n(58662);function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.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 T={relationsTable:{},attributesTable:{}};var P=n(26180),k=n(31276),D=n(86361),R=n(2507),Z=n.n(R);const N="relation.type",M="relation.attributes",j=[{id:"entity.label",get label(){return Z().text("Profile")},dataTypeDefinition:{type:g.oS0.TYPE_STRING},hideable:!1,filterable:!1,initialWidth:280,autoResize:!1},{id:N,get label(){return Z().text("Type")}},{id:"relation.label",get label(){return Z().text("Directional Label")},filterable:!1,dataTypeDefinition:{type:g.oS0.TYPE_STRING}},{id:"relation.activeness.startDate",get label(){return Z().text("Start Date")},dataTypeDefinition:{type:g.oS0.TYPE_ACTIVENESS_DATE}},{id:"relation.activeness.endDate",get label(){return Z().text("End Date")},dataTypeDefinition:{type:g.oS0.TYPE_ACTIVENESS_DATE}},{id:M,get label(){return Z().text("Attributes")},sortable:!1,filterable:!1,maxAttrsToShow:7}],A=(0,f.pluck)("id",j),L=[N,M],z=[20,50,100],I=(0,f.pipe)(g.Tde,(0,f.concat)("relation.")),B=(0,f.pipe)((0,f.map)((e=>({id:I(e.uri),label:e.label,description:null==e?void 0:e.description,dataTypeDefinition:(0,g.PFL)(e)}))),(0,f.uniqBy)((0,f.prop)("id")));function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){H(e,t,n[t])}))}return e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const V="CHANGE_RELATION_TYPE",_="APPLY_SAVED_STATE",U="SAVE_CURRENT_STATE",Y=F({},P.ZP.actions,{changeRelationType:(0,k.zD)(V),applySavedState:(0,k.zD)(_),saveCurrentState:(0,k.zD)(U)}),W=(0,f.assoc)("page",0),G=e=>(0,f.pipe)((0,f.prop)("visibleColumns"),(0,f.ifElse)((0,f.always)(e.currentRelationType),(0,f.without)(L),(0,f.concat)(L)),(0,f.intersection)(A))(e),$=e=>(0,f.path)(["visibleColumnsForRelationTypes",`${e.currentRelationType}`],e),q=e=>{const t=(0,f.either)($,G)(e);return P.ZP.changeVisibleColumns(e,t)},X=(0,f.pipe)((0,f.propOr)(null,"filters"),(0,f.unless)(f.isNil,(0,f.filter)((e=>{let{filter:t,value:n}=e;return(0,g.jtL)(t,n)})))),K=e=>{const{currentRelationType:t,visibleColumns:n}=e;return(0,f.evolve)({visibleColumnsForRelationTypes:(0,f.assoc)(`${t}`,n)},e)},J=(0,f.pipe)(K,(0,f.pick)(["currentRelationType","visibleColumnsForRelationTypes","filters","sorting"]));var Q=n(37754),ee=n(94079),te=n(92778),ne=n(30553),ae=n(51229),re=n(14377),oe=n(1876),le=n(60894),ie=n(79026),se=n(79692);const ce=(0,se.Z)({select:{fontSize:"13px",color:"rgba(0,0,0,.6)",paddingLeft:"15px","&&":{paddingRight:"35px"}},selectMenu:{"& li":{fontSize:"13px",height:"32px"}},textField:{maxWidth:"100%"}}),ue=e=>{let{value:t,onChange:n,relationTypes:o,className:l}=e;const i=ce(),s=(0,a.useMemo)((()=>(0,f.pipe)((0,f.map)((e=>{let{label:t,uri:n}=e;return{label:t,value:n}})),(0,f.concat)([{value:"",label:Z().text("All types")}]))(o)),[o]);return r().createElement("div",{className:l},r().createElement(ie.Z,{displayEmpty:!0,disableUnderline:!0,classes:{select:i.select},TextFieldProps:{classes:{root:i.textField}},MenuProps:{classes:{list:i.selectMenu}},value:t||"",entries:s,onChange:e=>n(e||null)}))},pe=(0,se.Z)((e=>({header:{height:"56px",boxSizing:"border-box",paddingRight:"10px"},title:{fontSize:"16px"},total:{fontSize:"14px",color:e.palette.text.secondary,flexShrink:0,marginRight:"5px"},relationTypeSelector:{margin:"0px 10px 0 30px",overflow:"hidden"}}))),de=(0,a.memo)((e=>{let{total:t,filteringEnabled:n,onToggleFilters:o,columnsData:l,selectedColumns:i,currentRelationType:s,onRelationTypeChange:c,relationTypes:u,onChangeColumns:p,searchByOv:d,onToggleSearchByOv:m,showInactive:f,onToggleShowInactive:g}=e;const b=pe(),y=(0,a.useMemo)((()=>[{selected:d,text:Z().text("Search by OV only"),onClick:m,id:"showNonOv"},{selected:f,text:Z().text("Show inactive relationships"),onClick:g,id:"showInactive"}]),[m,d,g,f]);return r().createElement(te.Z,{title:Z().text("Relationships"),classes:{root:b.header,title:b.title}},u.length>0&&r().createElement(ue,{className:b.relationTypeSelector,value:s,onChange:c,relationTypes:u}),r().createElement(ne.Z,{height:28,margin:20}),r().createElement(ee.Typography,{variant:"caption",className:b.total},1===t?Z().text("${count} record",{count:t}):Z().text("${count} records",{count:t})),r().createElement(ae.Z,null),r().createElement(re.Z,{items:y,menuId:"relationships-view-settings"}),r().createElement(oe.Z,{enabled:n,onClick:o}),r().createElement(ne.Z,{height:28,margin:8}),r().createElement(le.Z,{columnsData:l,selectedColumns:i,onChangeColumns:p}))}));var me=n(42846),fe=n(78458),ge=n(85709);const be=e=>!(0,g.Fn9)(null==e?void 0:e.relation)||!(0,g.Fn9)(null==e?void 0:e.entity);var ye=n(25461),he=n(92332),ve=n(98448),xe=n(67353);const Ee=(0,se.Z)((e=>({headCell:{display:"flex",alignItems:"center",height:"100%",width:"100%",fontSize:"12px",color:e.palette.text.secondary,background:"linear-gradient(0deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)), #FFFFFF"},rowCell:{fontSize:"13px",overflow:"hidden",overflowWrap:"break-word"},inactiveRowCell:{opacity:.6},defaultWrapper:{padding:"15px 25px 0 25px","&:last-child":{paddingBottom:"15px"}},entityCell:{display:"flex",alignItems:"flex-start",padding:"15px"},entityAvatar:{transform:"scale(0.5)",margin:"-10px 0 -10px -10px"},inactiveEntityAvatar:{overflow:"initial","&:after":{content:'""',position:"absolute",backgroundColor:"rgb(209, 206, 206)",border:"1px solid rgba(0, 0, 0, 1)",borderRadius:"2px",width:"12px",right:0,bottom:0,height:"12px"},"& > img":{borderRadius:"50%",overflow:"hidden"}},entityLabel:{color:e.palette.primary.main,textDecoration:"none",fontWeight:500},attributesWrapper:{padding:"15px 25px 10px 25px",color:"rgba(0,0,0,0.87)"},commentsContainer:{marginLeft:"auto"},description:{marginLeft:"-22px"}}))),we=(0,xe.Z)((e=>{const t=Ee(),{description:n}=null==e?void 0:e.headCellData;return r().createElement("div",{className:t.headCell},r().createElement(he.default,e),r().createElement(ve.Z,{description:n,className:t.description}))}));var Ce=n(71153),Se=n.n(Ce),Oe=n(19603),Te=n(34e3),Pe=n(31039),ke=n(94646);const De=e=>{let{value:{entity:t,entityType:n,relation:a},isInactiveRelation:l}=e;const i=Ee(),s=(0,o.useSelector)(m.ZP.selectors.getEntityUri);return r().createElement("div",{className:Se()(i.entityCell,Oe.U)},r().createElement(Te.Z,{className:Se()(i.entityAvatar,{[i.inactiveEntityAvatar]:l}),entityType:n}),r().createElement(Pe.Z,{value:(0,g.wwR)({uri:t.entityUri,dataTenant:t.dataTenant}),className:i.entityLabel},(0,g.idV)(t.entityLabel)),r().createElement("div",{className:i.commentsContainer,onClick:e=>e.stopPropagation()},r().createElement(ke.Z,{uri:a.relationUri,relatedObjectUris:(0,g.wp9)(g.q7e.RELATION,{entityUri:s,connection:{relation:a,entity:t}}),objectType:g.q7e.RELATION,allowOnlyOneComment:!0})))};var Re=n(80931);const Ze=e=>{let{columnData:t,value:{attributes:n,attributeTypes:a}}=e;const o=Ee();return r().createElement("div",{className:o.attributesWrapper,onClick:e=>e.stopPropagation()},r().createElement(Re.Z,{max:t.maxAttrsToShow,entity:{attributes:n},attrTypes:a,drawLines:!1}))};var Ne=n(72768);const Me=e=>{let{value:t,columnData:{dataTypeDefinition:n}}=e;const a=Ee();return r().createElement("div",{className:a.defaultWrapper},r().createElement(Ne.Z,{value:t,dataTypeDefinition:n}))};function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ae=(0,f.pipe)((0,f.split)("."),(0,f.slice)(2,1/0)),Le=e=>{if(e.startsWith("relation.attributes")){const t=Ae(e);return t.length>1?t.slice(0,-1):null}return null},ze=e=>{switch(e){case"entity.label":return De;case"relation.attributes":return Ze;default:return Me}},Ie=(0,f.map)((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){je(e,t,n[t])}))}return e}({sortable:!0,resizable:!0},e,{headCellRenderer:we,nestedPath:Le(e.id),rowCellValueRenderer:ze(e.id)}))),Be=(0,f.cond)([[(0,f.pathEq)(["columnData","id"],"relation.attributes"),e=>{let{columnData:t,cell:n}=e;const a=(0,f.pipe)((0,f.path)(["values",0,"attributes"]),f.values,f.length)(n);return a>t.maxAttrsToShow?26*t.maxAttrsToShow+49:26*a+25}],[f.T,ye.Z]]);function Fe(){return Fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Fe.apply(this,arguments)}const He=e=>{let{cell:t,CellValueRenderer:n}=e,a=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["cell","CellValueRenderer"]);const o=Ee();return r().createElement("div",{className:Se()(o.rowCell,{[o.inactiveRowCell]:a.isInactiveRelation})},t.values.map(((e,t)=>r().createElement(n,Fe({key:t,value:e},a)))))};var Ve=n(22983),_e=n(43054),Ue=n(55847),Ye=n(22385),We=n(81137),Ge=n(83348);const $e=(0,se.Z)((e=>({menuItem:{minHeight:"32px",color:e.palette.text.secondary},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"16px"},buttons:{display:"flex",alignItems:"center",paddingRight:"5px"}}))),qe=(0,Ge.Z)(ee.MenuItem),Xe=(0,a.forwardRef)(((e,t)=>{let{item:n,onMenuClose:a=k.ZT}=e;const o=$e(),{icon:l,disabled:i,text:s,tooltip:c,onClick:u}=n;return r().createElement(qe,{tooltipTitle:c,showForDisabled:!0,classes:{root:o.menuItem},onClick:e=>{a(),u(e)},disabled:i,ref:t},l,r().createElement(ee.Typography,{classes:{root:o.menuText}},s))}));Xe.displayName="MenuItemRenderer";const Ke=Xe,Je=e=>{let{disableDelete:t,connection:{entity:n,relation:l},onMenuOpen:i=k.ZT,onMenuClose:s=k.ZT,onDelete:c}=e;const u=$e(),p=(0,o.useSelector)(m.ZP.selectors.getMetadata),d=(0,f.pipe)((0,f.prop)("relationType"),(0,g.V3K)(p),(0,g.uGe)(g.BDP.DELETE))(l),b=!t&&d,[y,h]=(0,a.useState)(!1),v=()=>h(!1),x=[{disabled:!b,text:Z().text("Delete"),icon:r().createElement(Ve.Z,null),tooltip:b?null:Z().text("You don't have permissions to delete"),onClick:()=>h(!0)}],E=(0,a.useCallback)((()=>{y||s()}),[y,s]);return r().createElement("div",{className:u.buttons},r().createElement(Ue.Z,{MenuItemRenderer:Ke,menuId:"relationships-table-actions",buttonComponent:Ye.Z,buttonProps:{icon:_e.Z,size:"S"},menuItems:x,onMenuOpen:i,onMenuClose:E}),r().createElement(We.Z,{open:y,title:Z().text('Do you want to delete relationship "${label}"?',{label:(w=(0,g.idV)(n.entityLabel),w.length>17?`${w.substring(0,17)}...`:w)}),content:Z().text("This relationship will be removed and all the values in the relationship will be permanently deleted. Are you sure you want to delete this relationship?"),onSave:(0,f.pipe)(v,s,c),onDiscard:(0,f.pipe)(v,s),saveCaption:Z().text("Delete"),discardCaption:Z().text("Cancel")}));var w},Qe=(0,se.Z)({tableContainer:{flex:1,overflow:"hidden",display:"flex",zIndex:0},hoveredRowRightContentWrapper:{width:"100%",pointerEvents:"none!important"},menuButtonContainer:{position:"absolute",top:"calc(50% - 12px)",right:0,pointerEvents:"all"},tooltipAnchor:{width:"100%",height:"1px"}});function et(){return et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},et.apply(this,arguments)}const tt=(0,a.memo)((e=>{let{metadata:t,connections:n,columnsData:o,sorting:l,onSort:i,filters:s,onFilter:c,onRowClick:u,tableRef:p,onDelete:d,readOnly:m}=e;const b=Qe(),y=(0,a.useMemo)((()=>((e,t,n)=>(n||[]).map((n=>(0,f.pipe)((0,f.reduce)(((t,a)=>{let{id:r}=a;return(0,f.assoc)(r,((e,t,n)=>{let{entity:a,relation:r}=t;switch(n){case"entity.label":return{entity:a,entityType:(0,g.nt9)(e,a.entityType),relation:r};case"relation.type":return r.relationType;case"relation.label":return r.relationLabel;case"relation.activeness.startDate":return r.startDate;case"relation.activeness.endDate":return r.endDate;case"relation.attributes":return{attributes:r.object.attributes,attributeTypes:(0,g.V3K)(e,r.relationType).attributes};default:return((e,t)=>(0,f.pipe)((0,f.path)(["object","attributes"]),(0,g.tT_)(e))(t))(Ae(n),r)}})(e,n,r),t)}),{}),(0,f.assoc)("rawValue",n))(t))))(t,o,n)),[t,n,o]),h=(0,a.useMemo)((()=>Ie(o)),[o]),{getDynamicRowCellHeight:v,changeRowCellHeight:x}=(0,me.Z)(),E=(0,a.useCallback)((0,f.either)(v,Be),[v,Be]),[w,C]=(0,a.useState)(null),S=(0,a.useCallback)((e=>{const t=be(e.rowValue.rawValue);return r().createElement(fe.Z,et({onChangeHeight:x},e),r().createElement(He,et({},e,{isInactiveRelation:t})))}),[x]),[O,T]=(0,a.useState)(!1),P=(0,a.useCallback)((()=>T(!0)),[]),k=(0,a.useCallback)((()=>{C(null),T(!1)}),[]),D=(0,a.useCallback)((e=>C((t=>O?t:e))),[O]),R=(0,a.useMemo)((()=>{const e=null!=w?y[w].rawValue:null,t=be(e);return e&&r().createElement(r().Fragment,null,r().createElement(ee.Tooltip,{key:e.relation.relationUri,open:t,title:Z().text("Inactive")},r().createElement("div",{className:b.tooltipAnchor})),r().createElement("div",{className:b.menuButtonContainer},r().createElement(Je,{disableDelete:m,connection:e,onMenuOpen:P,onMenuClose:k,onDelete:()=>d(e.relation.relationUri)})))}),[d,y,w]);return r().createElement("div",{className:b.tableContainer},r().createElement(ge.Z,{fixFirstColumn:!0,columnsData:h,rowsData:y,sorting:l,onSort:i,filters:s,onFilter:c,defaultColumnWidth:250,defaultColumnMinWidth:200,headRowHeight:48,getRowCellHeight:E,renderRowCell:S,onRowClick:u,ref:p,hoverStateEnabled:!0,hoverRowIndex:w,onRowHover:D,hoveredRowRightContent:R,classes:{hoveredRowRightContentWrapper:b.hoveredRowRightContentWrapper}}))}));var nt=n(85229),at=n(85965),rt=n(39417),ot=n(10237),lt=n(63149),it=n(48017),st=n(18798),ct=n(66095),ut=n(17432),pt=n(99144),dt=n(65549),mt=n(52017),ft=n(90186);const gt=(0,se.Z)((()=>({tableRow:{"& + &":{marginTop:"4px"},margin:"auto",maxWidth:"448px"}})));function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yt=(0,a.memo)((e=>{let{readOnly:t,relation:n,metadata:o,selectedAttributeTypes:l,onDeleteCrosswalk:i,onEditCrosswalk:s}=e;const c=gt(),u=(0,g.V3K)(o,n.type),p=(0,a.useMemo)((()=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,f.pipe)((0,f.propOr)([],"crosswalks"),(0,f.map)((0,f.assoc)("ownerType","entity")),(0,ft.o)(e.type,t))(e)}(n,l)),[n,l]),[d,m]=(0,a.useState)([]),b=(0,a.useCallback)((e=>{i({entityUri:n.uri,crosswalkId:e})}),[i,n.uri]),y=(0,a.useCallback)((e=>{s(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){bt(e,t,n[t])}))}return e}({entityUri:n.uri},e))}),[s,n.uri]);return r().createElement("div",null,p.map((e=>{let{source:n,crosswalksByTypes:a}=e;return r().createElement("div",{key:n,className:c.tableRow},r().createElement(mt.Z,{source:n,crosswalksByTypes:a,expanded:d.includes(n),disableEditCrosswalk:!(0,g.Zm0)(u)||t,disableDeleteCrosswalk:!(0,g.a14)(u)||t,onEdit:y,onDelete:b,onToggleExpanded:()=>{m((0,f.ifElse)((0,f.includes)(n),(0,f.without)([n]),(0,f.append)(n)))}}))})))}));var ht=n(79769);const vt=(0,se.Z)((e=>({header:{display:"flex",flexDirection:"row",alignItems:"center",padding:"20px 12px",borderBottom:"1px solid rgba(0, 0, 0, 0.12)"},title:{fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px",color:e.palette.text.primary,marginLeft:"12px"},hint:{color:e.palette.text.secondary,display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"flex-start",margin:"4px 14px 10px"},hintText:{marginLeft:"8px",fontSize:"12px",lineHeight:"16px"},buttons:{display:"flex",padding:"8px 6px 4px"},buttonLabel:{fontSize:"14px",fontWeight:500,lineHeight:"16px"},icon:{fontSize:"18px",marginRight:"8px"},editor:{paddingLeft:25,margin:"auto",maxWidth:"448px",boxSizing:"border-box",marginBottom:"4px"},tableContainer:{overflowY:"auto",overflowX:"hidden",paddingLeft:"16px",paddingRight:"6px"}}))),xt=(0,Ge.Z)(ee.Button),Et=(0,a.memo)((e=>{let{className:t,readOnly:n,relation:l,selectedAttributeTypes:i,onAddCrosswalk:s,onDeleteCrosswalk:c,onEditCrosswalk:u}=e;const p=vt(),d=(0,o.useSelector)(m.ZP.selectors.getMetadata),f=(0,g.V3K)(d,l.type),[b,y]=(0,a.useState)(!1),h=(0,g.mkC)(f)&&!n;return r().createElement("div",{className:t},r().createElement("div",{className:p.header},r().createElement("span",{className:p.title},Z().text("Legend"))),r().createElement("div",{className:p.buttons},r().createElement(xt,{color:"primary",showForDisabled:!0,disabled:!h,tooltipTitle:h?null:Z().text("You don't have permissions to add crosswalk"),onClick:()=>y(!0)},r().createElement(dt.Z,{className:p.icon}),r().createElement("div",{className:p.buttonLabel},Z().text("Crosswalk")))),r().createElement("div",{className:p.hint},r().createElement(pt.Z,{className:p.icon}),r().createElement("span",{className:p.hintText},Z().text("You can drag a crosswalk to add values to attributes swimlanes"))),r().createElement("div",{className:p.tableContainer},b&&r().createElement(ht.Z,{className:p.editor,onAdd:e=>s({entity:l,crosswalk:e}),onClose:()=>y(!1)}),r().createElement(yt,{readOnly:n,metadata:d,relation:l,selectedAttributeTypes:i,onDeleteCrosswalk:c,onEditCrosswalk:u})))}));var wt=n(95613),Ct=n(23147),St=n(94111),Ot=n(64459),Tt=n(68439);const Pt=(0,se.Z)((e=>({entityInfo:{flex:"0 1 auto",overflow:"hidden",minWidth:"100px"},entityLabelContainer:{display:"flex",alignItems:"center",overflow:"hidden"},entityLabel:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary},infoIcon:{fontSize:"16px",color:e.palette.text.secondary,marginLeft:"5px"},profileBand:{margin:"-10px",maxWidth:"500px"},entityTypeBadge:{marginTop:"7px"}}))),kt=e=>{let{entity:t}=e;const n=Pt(),a=(0,g.idV)(t.label);return r().createElement("div",{className:n.entityInfo},r().createElement("div",{className:n.entityLabelContainer},r().createElement(wt.Z,{value:a},r().createElement(ee.Typography,{variant:"h6",className:n.entityLabel,noWrap:!0},a)),r().createElement(St.Z,{title:r().createElement(Ot.Z,{className:n.profileBand,entity:t}),placement:"right"},r().createElement(pt.Z,{className:n.infoIcon}))),r().createElement(Tt.Z,{className:n.entityTypeBadge,entity:t,size:"medium"}))},Dt=(0,se.Z)((e=>({root:{flexShrink:0,overflow:"hidden",width:"110px"},label:{color:e.palette.text.secondary,fontSize:"13px"}}))),Rt=e=>{let{relation:t}=e;const n=Dt(),{direction:a,relationLabel:o}=t;return r().createElement("div",{className:n.root},r().createElement(wt.Z,{value:o},r().createElement(ee.Typography,{variant:"subtitle2",className:n.label,align:"center",noWrap:!0},o)),r().createElement("svg",{width:"110",height:"12",fill:"black",fillOpacity:"0.3"},"out"===a&&r().createElement("polygon",{points:"94 0, 110 6, 94 12, 94 9, 0 9, 0 3, 94 3"}),"bidirectional"===a&&r().createElement("polygon",{points:"94 0, 110 6, 94 12, 94 9, 16 9, 16 12, 0 6, 16 0, 16 3, 94 3"}),"in"===a&&r().createElement("polygon",{points:"16 12, 0 6, 16 0, 16 3, 110 3, 110 9, 16 9"})))};var Zt=n(8459),Nt=n(27604);const Mt=(0,se.Z)((()=>({root:{"&:hover $editButton":{visibility:"visible"}},editButton:{visibility:"hidden",marginLeft:"4px",marginBottom:"4px"},paper:{width:"150px",border:"3px solid rgba(0, 0, 0, 0.3)",borderRadius:"4px",boxSizing:"border-box",overflow:"hidden"}}))),jt=e=>{let{value:t=null,onChange:n,readOnly:o}=e;const l=Mt(),i=(0,a.useRef)(),[s,c]=(0,a.useState)(!1),u=()=>c(!1),[p,d]=(0,a.useState)(t),m=()=>{p!==t&&n(p),u()};return r().createElement("span",{ref:i,className:l.root},t&&(0,g.p6d)(t),r().createElement(Ye.Z,{disabled:o,icon:Nt.Z,size:"XXS",className:l.editButton,onClick:()=>c(!0)}),r().createElement(ee.Popover,{classes:{paper:l.paper},open:s,anchorEl:i.current,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:14,horizontal:20},onKeyUp:e=>{"Enter"===e.key?m():"Escape"===e.key&&u()},onBackdropClick:m},r().createElement(Zt.Z,{InputProps:{autoFocus:!0,disableUnderline:!0,fullWidth:!0},size:"small",hiddenLabel:!0,label:void 0,value:p&&new Date(p),onChange:e=>d(e&&e.valueOf())})))},At=(0,se.Z)((e=>({relationBand:{flexShrink:0,boxShadow:"inset 0px -1px 0px rgba(0,0,0,0.06)",padding:"16px 19px"},inactiveRelationBand:{opacity:.6,background:"rgba(185, 188, 197, 0.18)"},toolbar:{display:"flex",alignItems:"center",gap:"16px",marginBottom:"10px"},mainInfo:{display:"flex",gap:"16px",marginLeft:"40px"},detailsInfo:{display:"flex",gap:"34px",marginLeft:"40px",marginTop:"17px",color:e.palette.text.secondary,fontSize:"13px"},detailTitle:{color:e.palette.text.primary,flexShrink:0,marginRight:"4px"},directionalLabel:{display:"flex",overflow:"hidden","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},relationDate:{flexShrink:0},commentsContainer:{marginRight:"18px"}})));function Lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){zt(e,t,n[t])}))}return e}function zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const It=(0,a.memo)((e=>{let{readOnly:t,entity:n,connection:a,onNavigateBack:o,onDelete:l,onChangeActivenessDate:i}=e;const s=be(a),c=At();return r().createElement("div",{className:Se()(c.relationBand,Oe.U,{[c.inactiveRelationBand]:s}),"data-reltio-id":"relationship-band-wrapper"},r().createElement("div",{className:c.toolbar},r().createElement(Ye.Z,{icon:Ct.Z,size:"S",onClick:()=>o()}),r().createElement(ee.Typography,{variant:"subtitle2",display:"inline"},Z().text("Back to relationships")),r().createElement(ae.Z,null),r().createElement("div",{className:c.commentsContainer},r().createElement(ke.Z,{uri:a.relation.relationUri,relatedObjectUris:(0,g.wp9)(g.q7e.RELATION,{entityUri:null==n?void 0:n.uri,connection:a}),objectType:g.q7e.RELATION,allowOnlyOneComment:!0})),r().createElement(Je,{connection:a,onDelete:l,disableDelete:t})),r().createElement("div",{className:c.mainInfo},r().createElement(kt,{entity:n}),r().createElement(Rt,{relation:a.relation}),r().createElement(kt,{entity:Lt({},a.entity.object,{dataTenant:a.entity.dataTenant})})),r().createElement("div",{className:c.detailsInfo},r().createElement("div",{className:c.directionalLabel},r().createElement("span",{className:c.detailTitle},Z().text("Directional label:")),r().createElement(wt.Z,{value:a.relation.relationLabel},r().createElement("span",null,a.relation.relationLabel))),r().createElement("div",{className:c.relationDate},r().createElement("span",{className:c.detailTitle},Z().text("Start date:")),r().createElement(jt,{value:a.relation.startDate,onChange:e=>i("startDate",e),readOnly:t})),r().createElement("div",{className:c.relationDate},r().createElement("span",{className:c.detailTitle},Z().text("End date:")),r().createElement(jt,{value:a.relation.endDate,onChange:e=>i("endDate",e),readOnly:t}))))})),Bt=e=>{console.error(e),d.Z.addError({title:Z().text("Error"),message:(0,g.xU7)(e,Z().text("Something went wrong"))})};var Ft=n(58651),Ht=n(13896);const Vt=(0,se.Z)({detailsView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},locked:{pointerEvents:"none"},resizablePanesWrapper:{flexGrow:1},pane:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",overflow:"hidden"}}),_t=(0,a.memo)((e=>{let{entity:t,connection:n,visibleColumns:o,onClose:l,onDeleteConnection:i,onChangeConnection:s,onChangeVisibleColumns:c,readOnly:u}=e;const p=Vt(),d=(()=>{const[e,t]=(0,a.useState)([]),n=(0,a.useRef)([]),r=(0,a.useCallback)((0,g.DsO)((()=>{t([...n.current])}),50),[]),o=(0,a.useCallback)((e=>{n.current=e,r(e)}),[r]),l=(0,a.useCallback)(((e,t)=>{e&&o(t?[e]:[])}),[o]),[i,s]=(0,a.useState)([]),c=(0,a.useCallback)((e=>{e&&s((t=>{return n=[e],a=t,(0,f.concat)(n.filter((e=>!(0,f.any)((0,g.aFF)(e),a))),a.filter((e=>!(0,f.any)((0,g.aFF)(e),n))));var n,a}))}),[]);return{highlightedCrosswalks:(0,a.useMemo)((()=>[...e,...i]),[e,i]),focusedCrosswalks:i,toggleCrosswalkFocus:c,setCrosswalkHighlighted:l}})(),[m,b]=(0,a.useState)(-480),y=(0,a.useCallback)((e=>{let{percentageSize:t}=e;return b(t)}),[]),[h,v]=(0,a.useState)(),[x,E]=(0,a.useState)(!1),w=n.relation.relationUri,C=(0,nt._)(),S=(0,a.useCallback)((()=>E(!0)),[]),O=(0,a.useCallback)((()=>E(!1)),[]),T=(0,a.useCallback)((0,f.pipe)(i,S),[]),[P,k]=(0,a.useMemo)((()=>{const e=e=>{e.errorCode===g.Xt7.CROSSWALK_NOT_FOUND?(Bt(e),t()):e.errorCode===g.Xt7.OBJECT_NOT_FOUND?l(e):(Bt(e),O())},t=()=>{C((0,g._vs)(w)).then((e=>{s((0,f.assocPath)(["relation","object"],e,n)),O()})).catch(e)};return[e,t]}),[n,O,s,l]),{modifiedEntity:D,crosswalksMap:R,newlyCreatedAttributes:Z,onPinAttribute:N,onIgnoreAttribute:M,onAddAttribute:j,onEditAttribute:A,onDeleteAttribute:L}=(0,at.Q)({entity:n.relation.object,onModify:k,onError:P,onLoad:S}),{addCrosswalk:z,deleteCrosswalk:I,editCrosswalk:B}=(0,rt.P)({onSuccess:k,onError:P,onLoad:S}),F=(0,a.useCallback)(((e,t)=>{S(),(t?(0,g.rj2)({entityUri:w,attributeName:e,value:t}).then((()=>s((0,f.assocPath)(["relation",e],t,n)))):(0,g.X78)({entityUri:w,attributeName:e}).then((()=>s((0,f.dissocPath)(["relation",e],n))))).then(O).catch(P)}),[n,S,O,P]);return r().createElement(ot.Z,{className:p.detailsView},r().createElement(lt.hR,d,r().createElement(Ht.DndProvider,{backend:Ft.default},r().createElement(it.Z,null),r().createElement(st.u,{className:Se()(p.resizablePanesWrapper,{[p.locked]:x}),orientation:"vertical",size:m,minSize:600,maxSize:-480,allowResize:!0,onChange:y},r().createElement("div",{className:p.pane},r().createElement(It,{readOnly:u,entity:t,connection:n,onNavigateBack:l,onDelete:T,onChangeActivenessDate:F}),r().createElement(ct.R,{attributeUris:Z},r().createElement(ut.Z,{readOnly:u,entity:D,crosswalksMap:R,isLoading:x,onPin:N,onIgnore:M,onEdit:A,onAdd:j,onDelete:L,selectedAttributeTypes:h,onSelectAttributeTypes:v,visibleColumns:o,onChangeVisibleColumns:c}))),r().createElement(Et,{readOnly:u,className:p.pane,relation:n.relation.object,selectedAttributeTypes:h,onAddCrosswalk:z,onDeleteCrosswalk:I,onEditCrosswalk:B})))))})),Ut=(0,se.Z)({relationshipsView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex",flexDirection:"column"},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},pane:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",position:"relative"}}),Yt=(0,o.connect)(((e,t)=>{let{config:{id:n}}=t;return{entity:m.ZP.selectors.getEntity(e),metadata:m.ZP.selectors.getMetadata(e),connections:m.ZP.selectors.getConnectionsByViewId(e,n),total:m.ZP.selectors.getTotalByViewId(e,n)}}))((e=>{let{config:t,entity:n,metadata:o,connections:l,total:i,saveState:s,getSavedState:c,dispatch:u}=e;const p=Ut(),d=(0,a.useRef)(),O=(0,g.biM)(n),[k,R]=(0,a.useState)(!1),[Z,N]=(0,a.useState)(!1),{type:M}=n||{},[{visibleColumns:I,filters:H,page:G,rowsPerPage:ee,sorting:te,currentRelationType:ne,stateToSave:ae,entityTypeOfAppliedSavedState:re},{changeColumns:oe,toggleFilters:le,changeFilter:ie,changePage:se,changeRowsPerPage:ce,toggleSort:ue,changeRelationType:pe,saveCurrentState:me,applySavedState:fe}]=(e=>{let{defaultColumns:t,defaultSorting:n,defaultRowsPerPage:r}=e;const o={visibleColumns:t,filters:null,sorting:n,page:0,rowsPerPage:r,currentRelationType:null,stateToSave:null,visibleColumnsForRelationTypes:{},entityTypeOfAppliedSavedState:null},[l,i]=(0,a.useReducer)(((e,t)=>{switch(t.type){case V:{const n=t.payload;return(0,f.pipe)(K,(0,f.assoc)("currentRelationType",n),q,W)(e)}case _:{const{savedState:n,entityTypeUri:a}=t.payload,r=n?$(n):e.visibleColumns;return F({},e,n,{filters:n?X(n):e.filters,visibleColumns:r,entityTypeOfAppliedSavedState:a})}case U:return F({},e,{stateToSave:J(e)});default:return P.ZP.reducer(e,t)}}),o);return[l,(0,D.o)({actions:Y,dispatch:i})]})({defaultColumns:A,defaultRowsPerPage:z[0],defaultSorting:{field:A[0],order:"asc"}}),ge=re===M,{isLoading:be,relationsTableSavedState:ye,attributesTableSavedState:he,updateRelationsTableSavedState:ve,updateAttributesTableSavedState:xe}=(e=>{var t;let{getSavedState:n,saveState:r,entityTypeUri:o}=e;const[l,i]=(0,a.useState)(T),[s,c]=(0,a.useState)(null);(0,b.D)((()=>{s&&(i(S({},l,{relationsTable:s})),c(null))}),[o]);const[u,p]=(0,a.useState)(!0);return(0,a.useEffect)((()=>{n().then((e=>{i(e||T)})).then((e=>p(!1))).catch((e=>p(!1)))}),[]),{isLoading:u,relationsTableSavedState:null===(t=l.relationsTable)||void 0===t?void 0:t[o],attributesTableSavedState:l.attributesTable,updateRelationsTableSavedState:e=>{const t=S({},l.relationsTable,{[o]:e});c(t),r(S({},l,{relationsTable:t}))},updateAttributesTableSavedState:e=>{r(S({},l,{attributesTable:e}))}}})({getSavedState:c,saveState:s,entityTypeUri:M}),[Ee,we]=(0,a.useState)();(0,a.useEffect)((()=>{be||fe({savedState:ye,entityTypeUri:M})}),[be,M]),(0,a.useEffect)((()=>{be||we(null==he?void 0:he.visibleColumns)}),[be]),(0,b.D)((()=>{ge&&ve(ae)}),[ae]),(0,b.D)((()=>{se(0)}),[n]);const[Ce,Se]=(0,a.useState)(),Oe=(0,a.useCallback)((()=>{Se(null)}),[]),Te=(0,a.useMemo)((()=>{const e=(0,g.io3)(o,M);return o.relationTypes.filter((0,f.both)((0,g.uGe)(g.BDP.READ),(t=>{let{startObject:n,endObject:a}=t;return e.some((0,f.either)((0,f.equals)(n.objectTypeURI),(0,f.equals)(a.objectTypeURI)))})))}),[o,M]),Pe=(0,a.useMemo)((()=>((e,t)=>t?(0,f.pipe)((0,f.find)((e=>e.uri===t)),g.DK$,B,(0,f.concat)(j),(0,f.reject)((e=>{let{id:t}=e;return L.includes(t)})))(e):(e=>{return t=(0,f.assoc)("dataTypeDefinition",(e=>({type:g.oS0.TYPE_SELECT,options:e.map((e=>{let{uri:t,label:n}=e;return{value:t,label:n}}))}))(e)),e=>(0,f.adjust)(e.findIndex((0,f.propEq)("id","relation.type")),t,e);var t})(e)(j))(Te,ne)),[Te,ne]),ke=(0,a.useMemo)((()=>I.map((e=>Pe.find((0,f.propEq)("id",e)))).filter(f.identity)),[I,Pe]),De=(0,a.useMemo)((()=>{const e=(0,f.pipe)((0,f.when)((0,f.always)(ne),(0,f.filter)((0,f.propEq)("uri",ne))),(0,f.map)((0,f.prop)("uri")))(Te);return{id:t.id,content:{inRelations:e,outRelations:e}}}),[t.id,ne,Te]),Re=(0,a.useMemo)((()=>((e,t)=>{const n=(0,Q.Tz)(t,e);return(new g.MEy).addClause(n).build()})(H,ke)),[H,ke]),{isLoading:Ze,reload:Ne}=(0,y.a)({page:G,rowsPerPage:ee,config:De,entity:ge?n:null,filter:Re,mode:g.ARY.Viewing,sorting:te,searchByOv:k,relationActivityFilter:Z?g.Ng6.ALL:g.Ng6.ACTIVE_ONLY}),Me=!ge||Ze,je=(0,a.useCallback)((0,f.pipe)(ue,me),[ue,me]),Ae=(0,a.useCallback)((0,f.pipe)(ie,me),[ie,me]),Le=(0,a.useCallback)((0,f.pipe)(le,me),[le,me]),ze=(0,a.useCallback)((0,f.pipe)(oe,me),[oe,me]),Ie=(0,a.useCallback)((0,f.pipe)(pe,me),[pe,me]),Be=(0,a.useCallback)((e=>{we(e),xe({visibleColumns:e})}),[xe]),Fe=null==l?void 0:l[Ce],He=(0,a.useCallback)((e=>{u(m.N5.relations.actions.relationsLoaded({id:t.id,connections:(0,f.update)(Ce,e,l),total:i}))}),[Fe]),[Ve,_e]=(0,a.useMemo)((()=>[(0,g.w3p)(l),[g.q7e.RELATION]]),[l]),Ue=(0,h.C)({objectIds:Ve,objectTypes:_e,enabled:!O}),Ye=(0,a.useMemo)((()=>(0,g.Px$)(l)),[l]),We=(0,a.useCallback)((e=>{Bt(e),e.errorCode===g.Xt7.OBJECT_NOT_FOUND&&Ne()}),[Ne]),Ge=(0,a.useCallback)((e=>{(0,f.pipe)(g.VGk,(0,f.andThen)(Ne),(0,f.otherwise)(We))(e)}),[Ne,We]),$e=(0,a.useCallback)((()=>{(0,f.pipe)(g.VGk,(0,f.andThen)((0,f.pipe)(Oe,Ne)),(0,f.otherwise)((e=>{e.errorCode===g.Xt7.OBJECT_NOT_FOUND&&Oe(),We(e)})))(Fe.relation.relationUri)}),[Fe,Ne,Oe,We]),qe=(0,a.useCallback)((e=>{e&&We(e),Oe()}),[We,Oe]),Xe=(0,a.useCallback)((()=>{R(f.not)}),[]),Ke=(0,a.useCallback)((()=>{N(f.not)}),[]);return r().createElement(v.e,{collaboration:Ue},r().createElement(x.X.Provider,{value:Ye},r().createElement("div",{className:p.relationshipsView},r().createElement(E.n,{entity:n}),r().createElement(de,{total:i,filteringEnabled:!!H,onToggleFilters:Le,columnsData:Pe,selectedColumns:I,onChangeColumns:ze,relationTypes:Te,currentRelationType:ne,onRelationTypeChange:Ie,searchByOv:k,onToggleSearchByOv:Xe,showInactive:Z,onToggleShowInactive:Ke}),r().createElement("div",{className:p.pane},Me&&r().createElement(w.Z,null),r().createElement(tt,{readOnly:O,metadata:o,connections:l,columnsData:ke,sorting:te,onSort:je,filters:H,onFilter:Ae,onRowClick:Se,tableRef:d,onDelete:Ge}),r().createElement(C.Z,{count:i,rowsPerPageOptions:z,page:G,onChangePage:se,rowsPerPage:ee,onChangeRowsPerPage:ce,basicTableRef:d})),Fe&&r().createElement(_t,{readOnly:O,entity:n,visibleColumns:Ee,onChangeVisibleColumns:Be,connection:Fe,onClose:qe,onDeleteConnection:$e,onChangeConnection:He}))))}));function Wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gt=(0,i.createGenerateClassName)({productionPrefix:"relationshipsPerspective",disableGlobal:!0}),$t=e=>{let{config:t,store:n,onResize:f,saveState:b,getSavedState:y}=e;const h=(0,a.useCallback)((0,g.aYu)(y),[y]),v=(0,a.useContext)(u.Y),x=m.ZP.selectors.getShowAttributeDescription(n.getState()),E=(0,a.useMemo)((()=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){Wt(e,t,n[t])}))}return e}({},v,{showDescription:x})),[v,x]);return r().createElement(o.Provider,{store:n},r().createElement(p.m.Provider,{value:t.id},r().createElement(u.Y.Provider,{value:E},r().createElement(i.StylesProvider,{generateClassName:Gt},r().createElement(c.MuiPickersUtilsProvider,{utils:l.Z},r().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>null==f?void 0:f(Math.floor(e),Math.floor(t))}),t&&r().createElement(Yt,{config:t,saveState:b,getSavedState:h}),r().createElement(d.Z,null))))))}}}]);
2
2
  //# sourceMappingURL=4957.js.map