@reltio/remotes 1.4.1548 → 1.4.1549
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/1032.js +1 -1
- package/122.js +1 -1
- package/1852.js +1 -1
- package/2114.js +1 -1
- package/2125.js +1 -1
- package/2890.js +1 -1
- package/3118.js +1 -1
- package/3346.js +1 -1
- package/3396.js +1 -1
- package/3468.js +1 -1
- package/3469.js +1 -1
- package/3515.js +1 -1
- package/3540.js +1 -1
- package/3726.js +1 -1
- package/4120.js +1 -1
- package/4183.js +1 -1
- package/4217.js +1 -1
- package/4456.js +2 -0
- package/4456.js.map +1 -0
- package/4469.js +1 -1
- package/4701.js +1 -1
- package/4843.js +1 -1
- package/514.js +1 -1
- package/5400.js +1 -1
- package/5605.js +1 -1
- package/5706.js +1 -1
- package/5709.js +1 -1
- package/5756.js +1 -1
- package/5991.js +1 -1
- package/6396.js +1 -1
- package/705.js +1 -1
- package/7416.js +1 -1
- package/7594.js +1 -1
- package/769.js +1 -1
- package/8061.js +1 -1
- package/8467.js +1 -1
- package/8768.js +1 -1
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/remoteEntry.js.map +1 -1
- package/8340.js +0 -2
- package/8340.js.map +0 -1
package/4120.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[4120],{74402:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(24328),a=r(17440),l=r(94815);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const i=e=>{let{rowIndex:t,columnData:{id:r},cellIndex:n}=e;return`${r}[${t}][${n}]`},s=()=>{const[e,t]=(0,n.useState)({}),r=(0,n.useRef)({}),s=(0,n.useCallback)((0,l.DsO)((()=>{t(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){o(e,t,r[t])}))}return e}({},r.current))})),[]),c=(0,n.useCallback)((()=>{r.current={}}),[]);return{getDynamicRowCellHeight:(0,n.useCallback)((0,a.pipe)(i,(0,a.prop)(a.__,e)),[e]),changeRowCellHeight:(0,n.useCallback)((0,a.curry)((0,a.useWith)((0,a.pipe)(((e,t)=>{r.current[e]=t}),s),[i,a.identity])),[]),clearHeightsCache:c}}},97946:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24328),a=r.n(n),l=r(13980),o=r.n(l),i=r(44443),s=r(94079),c=r(20562);const u=e=>{let{onChangeHeight:t,children:r}=e,l=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["onChangeHeight","children"]);const o=(0,n.useRef)(null),{rowValue:u,rowIndex:p,columnData:d,cellIndex:m}=l,b=t({rowIndex:p,cellIndex:m,columnData:d}),y=()=>o.current&&b(o.current.clientHeight);return(0,c.D)(y,[u.rawValue]),a().createElement("div",null,a().createElement(i.Z,{handleHeight:!0,onResize:y}),a().createElement(s.RootRef,{rootRef:o},r))};u.propTypes={onChangeHeight:o().func,children:o().node};const p=u},85209:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(24328),a=r.n(n),l=r(87918),o=r.n(l),i=r(94079);const s=e=>{let{open:t,onClose:r,onConfirm:n}=e;return a().createElement(i.Dialog,{open:t},a().createElement(i.DialogContent,null,a().createElement(i.DialogContentText,null,o().text("Are you sure you want to delete this?"))),a().createElement(i.DialogActions,null,a().createElement(i.Button,{onClick:r,color:"primary"},o().text("No")),a().createElement(i.Button,{onClick:()=>{n(),r()},color:"primary"},o().text("Yes"))))}},94111:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(24328),a=r.n(n),l=r(80030);const o=(0,r(79692).Z)((e=>({tooltip:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,filter:"drop-shadow(0px 1px 5px #00000033) drop-shadow(0px 3px 1px #0000001F) drop-shadow(0px 2px 2px #00000024)",padding:"10px",maxWidth:"none"},arrow:{color:e.palette.background.paper}})));function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=e=>{const t=o();return a().createElement(l.ZP,i({},e,{classes:t,arrow:!0}))}},40715:(e,t,r)=>{r.d(t,{n:()=>f});var n=r(24328),a=r.n(n),l=r(71153),o=r.n(l),i=r(94815),s=r(64459),c=r(79618),u=r(94646),p=r(41564),d=r(19603),m=r(7718),b=r(3409);const y=(0,r(79692).Z)({profileBandNavigation:{marginBottom:"10px"},comments:{display:"flex",justifyContent:"flex-end"}}),f=(0,n.memo)((e=>{let{entity:t,className:r,historySlice:l}=e;const f=y(),g=(0,n.useMemo)((()=>(0,i.L5S)(t)),[t]),v=(0,m.C)({objectIds:g}),h=(0,i.wwR)(t);return a().createElement(p.e,{collaboration:v},a().createElement(s.Z,{className:o()(r,d.U),entity:(null==l?void 0:l.aEntity)||t},l?a().createElement(b.Z,null):a().createElement(a().Fragment,null,a().createElement(c.a,{className:f.profileBandNavigation}),a().createElement(u.Z,{className:f.comments,uri:h,relatedObjectUris:(0,i.wp9)(i.q7e.ENTITY,{entityUri:h}),objectType:i.q7e.ENTITY}))))}));f.displayName="ScreenProfileBand"},4073:(e,t,r)=>{r.d(t,{Z:()=>ne});var n=r(24328),a=r.n(n),l=r(94815),o=r(48554),i=r(12437),s=r(22983),c=r(27604),u=r(43054),p=r(71153),d=r.n(p),m=r(87918),b=r.n(m),y=r(72768),f=r(55847),g=r(94079),v=r(17440),h=r(28117),E=r(40879),w=r(79692);const x=(0,w.Z)((()=>({textField:{margin:0},input:{borderRadius:0},inputMultiline:{"&$input":{paddingTop:0,paddingBottom:0}},booleanEditor:{paddingLeft:"10px"},timestampEditor:{"&$paper":{minWidth:"255px"}},paper:e=>{let{color:t,containerWidth:r}=e;return{border:`3px solid ${t}`,borderRadius:"4px",width:r,minWidth:"160px"}},popoverRoot:{zIndex:"10!important"}})));function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const k=[l.oS0.TYPE_TEXT,l.oS0.TYPE_BLOB],T=e=>{let{attributeType:t,attributeValue:r,color:o,containerRef:i,onClose:s,onEdit:c}=e;const u=x({color:o,containerWidth:i.current?i.current.getBoundingClientRect().width:0}),p=(0,l.PFL)(t),m=(0,E.AG)(r,p),[b,y]=(0,n.useState)(m),f={className:u.textField,InputProps:{disableUnderline:!0,classes:{root:u.input,multiline:u.inputMultiline}}},w=()=>{const e=(0,E.Ho)(t,b);if(!(0,v.isNil)(b)&&!(0,v.equals)(b,m)){const n=(0,l.CwH)(t)?{value:e.value,lookupCode:e.lookupCode}:{value:""===b&&(0,l.FVt)(p.type)?null:e};c(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){O(e,t,r[t])}))}return e}({},r,n))}s()};return a().createElement(g.Popover,{open:!!i,anchorEl:i.current,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},classes:{paper:d()(u.paper,{[u.booleanEditor]:(0,l.T6Y)(p.type),[u.timestampEditor]:(0,l.j5n)(p.type)}),root:u.popoverRoot},onKeyUp:e=>{"Enter"!==e.key||k.includes(p.type)?"Escape"===e.key&&s():w()},onBackdropClick:w},a().createElement(h.Z,{autoFocus:!0,dataTypeDefinition:p,fieldName:(0,l.Tde)(t.uri),onChange:y,TextFieldProps:f,value:b,fullWidth:!0}))};var C=r(8818),S=r(57507),I=r(35315),A=r(83348),j=r(77585);const Z=(0,w.Z)((e=>({menuItem:{minHeight:"32px",color:e.palette.text.secondary},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"16px"},sourceItem:{borderBottom:"1px solid rgba(0, 0, 0, 0.12)",paddingBottom:"8px",paddingLeft:"16px",maxWidth:"200px"}}))),N=(0,A.Z)(g.MenuItem),P=e=>{let{styles:t,icon:r,text:n}=e;return a().createElement(a().Fragment,null,r,a().createElement(g.Typography,{classes:{root:t.menuText}},n))},D=(0,n.forwardRef)(((e,t)=>{let{item:r,onMenuClose:n=(()=>{})}=e;const l=Z(),{disabled:o,text:i,tooltip:s,onClick:c,id:u="",icon:p,crosswalk:d,color:m}=r;return d?a().createElement(j.Z,{className:l.sourceItem,color:m,crosswalk:d,focusable:!0}):a().createElement(N,{tooltipTitle:s,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{n(e),c(e)},disabled:o,ref:t,"data-reltio-id":`crosswalk-menu-item${u}`},a().createElement(P,{icon:p,text:i,styles:l}))}));D.displayName="CrosswalkMenuItem";const V=D;var R=r(26905),M=r(63149);function U(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const L=(0,w.Z)((()=>({root:e=>{let{fullyColored:t,opaque:r,color:n,variant:a}=e;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){U(e,t,r[t])}))}return e}({minHeight:"28px",wordBreak:"break-word"},"filled"===a&&{borderRadius:"4px",background:t?n:`linear-gradient(to right, ${n} 8px, rgba(0,0,0,0.05) 8px)`},"outlined"===a&&{"&::after":{content:'""',position:"absolute",background:n,borderRadius:"4px 0px 0px 4px",width:"8px",height:"100%",pointerEvents:"none"},"&::before":{content:'""',position:"absolute",boxSizing:"border-box",borderRadius:"4px",border:t?`${n} solid 2px`:"rgba(0,0,0,0.12) solid 1px",width:"100%",height:"100%",pointerEvents:"none"}},{display:"flex",alignItems:"center",opacity:r?1:.38,transition:"opacity 0.3s",position:"relative"})},attributeValue:{marginLeft:"16px",padding:"6px 0",lineHeight:"14px",width:"calc(100% - 71px)"},actions:{display:"flex",width:"71px",justifyContent:"flex-end",marginRight:"4px"}}))),W=e=>{let{className:t,dataReltioId:r,attributeType:o=null,attributeValue:i,crosswalk:p,disableEdit:m,disableDelete:g,onIgnore:v,onEdit:h,onPin:E,onDelete:w}=e;const{isReadingMode:x,isEditingMode:O,isHovered:k,onMouseEnter:A,onMouseLeave:j,setReadingMode:Z,setEditingMode:N}=(0,R.p)(),P=(0,n.useRef)(),D=(0,l.nIW)(i.uri),U=(0,l.x_)(p),W=!o.system&&!U,B=W&&!m&&(0,l.Z5t)(l.fO_.EDITING,o),z=W&&!g&&(0,l.Edd)(l.fO_.EDITING,o),F=(0,l.ZiX)(i.uri),H=!F&&(!x&&B||i.pin),Y=!F&&(!x&&B||i.ignored),G=(0,M.nX)(p),{isHighlighted:_,isDimmed:q,highlightCrosswalk:X,removeHighlight:$}=(0,M.pu)(p),Q=L({variant:U?"outlined":"filled",opaque:!q,fullyColored:_,color:q?"rgba(0, 0, 0, 0.12)":G}),J=[{crosswalk:p,color:G},{disabled:!B,text:b().text("Edit"),icon:a().createElement(c.Z,null),tooltip:B?null:b().text("You don't have permissions to edit"),onClick:()=>N(),id:"edit"},{disabled:!z,text:b().text("Delete"),icon:a().createElement(s.Z,null),tooltip:z?null:b().text("You don't have permissions to delete"),onClick:()=>w({attributeType:o,attributeValue:i,crosswalks:[p]}),id:"delete"}],K=()=>{$(),Z()};return a().createElement("div",{ref:P,className:d()(t,Q.root),onMouseEnter:()=>{X(),A()},onMouseLeave:()=>{$(),j()},"data-reltio-id":r},a().createElement("div",{className:Q.attributeValue},a().createElement(y.Z,{value:(0,l.kDl)(i),dataTypeDefinition:(0,l.PFL)(o)})),a().createElement("div",{className:Q.actions},H&&a().createElement(I.Z,{isPinned:i.pin,onClick:()=>E({attributeValue:i}),disabled:!B}),Y&&a().createElement(S.Z,{isIgnored:i.ignored,onClick:()=>v({attributeValue:i}),disabled:!B}),k&&a().createElement(f.Z,{MenuItemRenderer:V,menuId:`simple-attribute-additional-actions-${D}`,buttonComponent:C.k,buttonProps:{icon:u.Z,size:"XS",tooltipTitle:b().text("More actions")},onMenuClose:K,menuItems:J})),O&&a().createElement(T,{attributeType:o,attributeValue:i,color:G,onClose:K,onEdit:e=>h({attributeType:o,attributeValue:e,crosswalk:p}),containerRef:P}))};var B=r(13896);const z=(0,w.Z)((()=>({simpleAttributesWrapper:{display:"flex",flexWrap:"wrap",gap:"4px",width:"100%",minHeight:"28px"},dropIndicator:{height:"28px",color:"#828282",fontSize:"13px",lineHeight:"28px",background:"rgba(0, 0, 0, 0.04)",border:"1px dashed #828282",borderRadius:"4px",boxSizing:"border-box",padding:"0 12px"}})));function F(){return F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},F.apply(this,arguments)}const H=e=>{let{attributeValues:t,attributeType:r,parentUri:n,disableEdit:o,crosswalksMap:i,onAdd:s}=e,c=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValues","attributeType","parentUri","disableEdit","crosswalksMap","onAdd"]);const u=z(),[{isDragItemOver:p},d]=(0,B.useDrop)({accept:"Crosswalk",canDrop:e=>{let{crosswalk:t}=e;const n=(0,l.bC9)(t.uri)||"relation"===t.ownerType,a=(0,l.WgC)(t.uri)&&"entity"===t.ownerType;return(0,l.d89)(l.fO_.EDITING,r)&&!o&&(n&&(0,l.$NE)(r.uri)||a&&(0,l.EdS)(r.uri))},collect:e=>({isDragItemOver:e.isOver()&&e.canDrop()}),drop:(e,a)=>{let{crosswalk:l}=e;s({attributeType:r,crosswalk:l,parentUri:n,index:t.length})}});let m=0;return a().createElement("div",{ref:d,className:u.simpleAttributesWrapper},t.map((e=>{var t;return null===(t=i[e.uri])||void 0===t?void 0:t.map((t=>a().createElement(W,F({key:e.uri+t.uri,attributeType:r,attributeValue:e,crosswalk:t,disableEdit:o,dataReltioId:"value-index-"+m++},c))))})),p&&a().createElement("div",{className:u.dropIndicator},b().text("Drop here")))};var Y=r(58896);function G(){return G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},G.apply(this,arguments)}const _=e=>{let{className:t,attributeValues:r,attributeType:n,onAdd:o,parentUri:i,disableEdit:s}=e,c=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["className","attributeValues","attributeType","onAdd","parentUri","disableEdit"]);const u=!s&&(0,l.d89)(l.fO_.EDITING,n);return 0===r.length&&u?a().createElement(g.Button,{variant:"text",color:"primary",onClick:()=>o({parentUri:i,attributeType:n,index:0})},b().text("Create attribute")):a().createElement("div",{className:t},r.map((e=>a().createElement(Y.Z,G({key:e.uri,attributeValue:e,attributeType:n,onAdd:o,disableEdit:s},c)))))};var q=r(85592);function X(){return X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},X.apply(this,arguments)}const $=e=>{let{className:t,attributeValues:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["className","attributeValues"]);return a().createElement("div",{className:t},r.map((e=>a().createElement(q.Z,X({key:e.uri,attributeValue:e},n)))))};var Q=r(22246);function J(){return J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},J.apply(this,arguments)}const K=e=>{let{className:t,attributeValues:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["className","attributeValues"]);return a().createElement("div",{className:t},r.map((e=>a().createElement(Q.Z,J({key:e.uri,attributeValue:e},n)))))},ee=(0,w.Z)((()=>({wrapper:{display:"flex",flexDirection:"column",alignItems:"flex-start"},complexAttributesWrapper:{width:"100%"}})));function te(){return te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},te.apply(this,arguments)}function re(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}const ne=e=>{let{attributeType:t,attributeValues:r=[],paging:s={},max:c=1/0,requestNextPage:u}=e,p=re(e,["attributeType","attributeValues","paging","max","requestNextPage"]);const d=ee(),[m,b]=(0,n.useState)(c),y=(0,v.propOr)(r.length,"totalValues",s),f=c<y,g=f&&m<y,h=f&&m>=y,E=r.slice(0,m),w=y-m;return a().createElement("div",{className:d.wrapper},(e=>{switch(t.type){case l.oS0.TYPE_NESTED:return a().createElement(_,te({className:d.complexAttributesWrapper,attributeValues:e,attributeType:t},p));case l.oS0.TYPE_REFERENCE:{const{crosswalksMap:r}=p,n=re(p,["crosswalksMap"]);return a().createElement($,te({className:d.complexAttributesWrapper,attributeValues:e,attributeType:t,crosswalksMap:r},n))}case l.oS0.TYPE_IMAGE:return a().createElement(K,te({className:d.complexAttributesWrapper,attributeValues:e,attributeType:t},p));default:return a().createElement(H,te({attributeValues:e,attributeType:t},p))}})(E),g&&a().createElement(o.Z,{moreNumber:Math.min(c,w),valueNumber:w,onClick:()=>{r.length<y&&u(),b(m+c)}}),h&&a().createElement(i.Z,{onClick:()=>{b(c)}}))}},8148:(e,t,r)=>{r.d(t,{Z:()=>D});var n=r(24328),a=r.n(n),l=r(94815),o=r(26905),i=r(51229),s=r(63149),c=r(77585),u=r(94111),p=r(71153),d=r.n(p),m=r(32625);const b=e=>{let{crosswalk:t,className:r}=e;const n=(0,s.nX)(t),o=(0,l.x_)(t),{isDimmed:i,highlightCrosswalk:p,removeHighlight:b}=(0,s.pu)(t),y=(0,m.y)({isOpaque:!i,color:i?"rgba(0, 0, 0, 0.12)":n,isDisabled:o});return a().createElement(u.Z,{title:a().createElement(c.Z,{crosswalk:t,color:n}),placement:"top"},a().createElement("div",{"data-reltio-id":"crosswalk-icon",className:d()(y.crosswalkIcon,r),onMouseEnter:()=>p(),onMouseLeave:()=>b()}))};var y=r(17440),f=r(19592),g=r(4073),v=r(95629),h=r(95974),E=r(79692);const w=(0,E.Z)((e=>({title:{fontSize:"12px",lineHeight:"14px",paddingBottom:"4px",display:"inline-block",color:e.palette.text.secondary}})));function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},x.apply(this,arguments)}const O=e=>{let{attributeTypes:t,attributes:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeTypes","attributes"]);const o=w();return a().createElement(a().Fragment,null,t.filter(l.Uty).map((e=>a().createElement(h.Z,{key:e.uri,enabled:!0},a().createElement(v.Z,{className:o.title,label:e.label}),a().createElement(g.Z,x({attributeType:e,attributeValues:r[e.name],paging:(0,y.path)(["paging",e.uri],r)},n))))))};var k=r(35315),T=r(57507),C=r(8818),S=r(22983),I=r(87918),A=r.n(I);const j=e=>{let{onClick:t}=e;return a().createElement(C.k,{icon:S.Z,tooltipTitle:A().text("Delete"),onClick:t,size:"XS",disableRipple:!0})};var Z=r(20562),N=r(66095);const P=(0,E.Z)((()=>({root:{display:"flex",minHeight:"20px"},actions:{display:"flex",width:"65px",justifyContent:"flex-end",flexShrink:0,alignSelf:"center"},crosswalkIcon:{display:"inline-block",verticalAlign:"middle","& + &":{marginLeft:"4px"}}}))),D=e=>{let{attributeType:t,attributeValue:r,attributeTypesList:s,label:c,crosswalksMap:u,disableEdit:p,disableDelete:d,onPin:m,onIgnore:g,onDelete:v,onEdit:h,onAdd:E}=e;const w=P(),{isReadingMode:x,onMouseEnter:C,onMouseLeave:S}=(0,o.p)(),I=!p&&(0,l.Z5t)(l.fO_.EDITING,t),A=!d&&(0,l.Edd)(l.fO_.EDITING,t),D=(0,l.ZiX)(r.uri),V=!D&&(!x&&I||r.pin),R=!D&&(!x&&I||r.ignored),M=!x&&A,U=(0,N.Q)(r.uri),[L,W]=(0,n.useState)(U||D);(0,Z.D)((()=>{U&&W(U)}),[U]);const B=(0,y.pipe)((0,y.pickBy)(((e,t)=>(0,l.sOy)(t,null==r?void 0:r.uri))),y.values,y.flatten,(0,y.uniqBy)((0,y.prop)("uri")))(u);return a().createElement(a().Fragment,null,a().createElement("div",{className:w.root,onMouseEnter:C,onMouseLeave:S},a().createElement(f.Z,{onClick:()=>W((e=>!e)),expanded:L}),a().createElement("span",null,c,B.map((e=>a().createElement(b,{key:(0,l.uKF)(e),crosswalk:e,className:w.crosswalkIcon})))),a().createElement(i.Z,null),a().createElement("div",{className:w.actions},V&&a().createElement(k.Z,{disabled:!I,isPinned:r.pin,onClick:()=>m({attributeValue:r})}),R&&a().createElement(T.Z,{disabled:!I,isIgnored:r.ignored,onClick:()=>g({attributeValue:r})}),M&&a().createElement(j,{onClick:()=>v({attributeType:t,attributeValue:r,crosswalks:u[r.uri]})}))),L&&a().createElement(O,{attributeTypes:s,attributes:r.value,parentUri:r.uri,crosswalksMap:u,disableEdit:!I,disableDelete:!A,onPin:m,onIgnore:g,onDelete:v,onEdit:h,onAdd:E}))}},22246:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24328),a=r.n(n),l=r(94815),o=r(27952),i=r(8148);const s=(0,r(79692).Z)((()=>({image:{borderRadius:"4px",background:"white",display:"inline-block",verticalAlign:"middle"},imageContainer:{display:"inline",lineHeight:"45px",paddingRight:"8px"}})));function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}const u={imageWidth:55,imageHeight:45},p=e=>{let{attributeValue:t,attributeType:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValue","attributeType"]);const p=s();return a().createElement(i.Z,c({attributeValue:t,attributeType:r,attributeTypesList:r.attributes,label:a().createElement(o.Z,{containerClassName:p.imageContainer,className:p.image,src:(0,l.Ysv)(t),size:u})},n))}},58896:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(24328),a=r.n(n),l=r(94815),o=r(8148),i=r(10174);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const c=e=>{let{attributeValue:t,attributeType:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValue","attributeType"]);const c=a().createElement(i.x,null,(0,l.idV)(null==t?void 0:t.label));return a().createElement(o.Z,s({attributeValue:t,attributeType:r,attributeTypesList:r.attributes,label:c},n))}},85592:(e,t,r)=>{r.d(t,{Z:()=>y});var n=r(24328),a=r.n(n),l=r(52730),o=r(49885),i=r(94815),s=r(8148),c=r(17440),u=r(10174),p=r(95470),d=r(72383);const m=(0,r(79692).Z)((e=>({relationshipLabel:{marginLeft:"4px",color:e.palette.text.primary}})));function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}const y=e=>{let{attributeValue:t,attributeType:r}=e,y=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValue","attributeType"]);const f=m(),{generateEntityUrl:g}=(0,n.useContext)(d.v),v=(0,l.useSelector)(o.ZP.selectors.getMetadata),h=(0,l.useSelector)(o.ZP.selectors.getUIPath),E=a().createElement(u.x,null,a().createElement(p.Z,{href:g({uiPath:h,uri:(0,i.bwT)(t)})},(0,i.idV)(t.label),t.relationshipLabel&&a().createElement("span",{className:f.relationshipLabel},t.relationshipLabel))),w=(0,c.pipe)(i.tF$,(0,c.map)((e=>(0,i.zeJ)(v,e))),(0,c.reject)(c.isNil))(r);return a().createElement(s.Z,b({attributeValue:t,attributeType:r,attributeTypesList:w,label:E},y))}},10174:(e,t,r)=>{r.d(t,{x:()=>i});var n=r(24328),a=r.n(n),l=r(94079),o=r(32625);const i=e=>{let{children:t}=e;const r=(0,o.q)();return a().createElement(l.Typography,{component:"span",variant:"body2",classes:{body2:r.label}},t)}},57507:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),a=r.n(n),l=r(8818);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}const i=e=>a().createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5A8.503 8.503 0 003.5 12c0 4.692 3.808 8.5 8.5 8.5s8.5-3.808 8.5-8.5-3.808-8.5-8.5-8.5zM6.1 12c0-3.26 2.64-5.9 5.9-5.9 1.161 0 2.24.336 3.149.917L7.017 15.15A5.821 5.821 0 016.101 12zm5.9 5.9c-1.16 0-2.24-.336-3.148-.917l8.131-8.131c.581.908.917 1.987.917 3.148 0 3.26-2.64 5.9-5.9 5.9z",fill:"#000",fillOpacity:.54}));function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const c=e=>a().createElement("svg",s({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.847 9.402a6.34 6.34 0 00-.8-1.322L8.08 17.048A6.34 6.34 0 0012 18.4a6.398 6.398 0 005.847-8.998zm-7.283 7.283l6.121-6.121a4.898 4.898 0 01-6.121 6.121zm1.437-11.084a6.334 6.334 0 013.92 1.352L6.953 15.92A6.334 6.334 0 015.6 12c0-3.536 2.864-6.4 6.4-6.4zm0 1.5c.5 0 .982.075 1.436.215l-6.121 6.12A4.898 4.898 0 0112 7.1zM6.6 17.903A7.967 7.967 0 0012 20c4.417-.001 8.001-3.585 8.001-8.001a7.967 7.967 0 00-2.601-5.902A7.988 7.988 0 0012 4c-4.416 0-8 3.584-8 8a7.967 7.967 0 002.602 5.902zM12 2.5c-5.244 0-9.5 4.256-9.5 9.5s4.256 9.5 9.5 9.5 9.5-4.256 9.5-9.5-4.256-9.5-9.5-9.5z",fill:"#000",fillOpacity:.54}));var u=r(87918),p=r.n(u);const d=e=>{let{isIgnored:t,onClick:r,disabled:n}=e;return a().createElement(l.k,{disabled:n,showForDisabled:!0,icon:t?i:c,tooltipTitle:n?p().text("You don't have permissions to ignore"):p().text("Ignore"),onClick:r,size:"XS",disableRipple:!0})}},35315:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),a=r.n(n),l=r(8818);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}const i=e=>a().createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 4v6l2 2v2h-5v7l-.992 1L11 21v-7H6v-2l2-2V4H7V2h10v2h-1z",fill:"#000",fillOpacity:.54}));function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const c=e=>a().createElement("svg",s({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 10V4h1V2H7v2h1v6l-2 2v2h5v7l1.008 1L13 21v-7h5v-2l-2-2zm-6-6h4v7l1 1H9l1-1V4z",fill:"#000",fillOpacity:.54}));var u=r(87918),p=r.n(u);const d=e=>{let{isPinned:t,onClick:r,disabled:n}=e;return a().createElement(l.k,{disabled:n,showForDisabled:!0,onClick:r,icon:t?i:c,tooltipTitle:n?"You don't have permissions to pin":p().text("Pin"),size:"XS",disableRipple:!0})}},77585:(e,t,r)=>{r.d(t,{Z:()=>g});var n=r(24328),a=r.n(n),l=r(87918),o=r.n(l),i=r(49885),s=r(94815),c=r(52730),u=r(72753),p=r(94175),d=r(71153),m=r.n(d),b=r(63149),y=r(8818),f=r(32625);const g=e=>{let{crosswalk:t,color:r,className:n,focusable:l=!1}=e;const{toggleCrosswalkFocus:d,isFocused:g}=(0,b.BF)(t),v=(0,f.y)({color:r,isFocused:g}),h=(0,c.useSelector)(i.ZP.selectors.getMetadata),{label:E}=(0,s.PWK)(h,t.type);return a().createElement("div",{className:m()(v.sourceItem,n)},a().createElement(p.Z,{className:v.sourceIcon,sourceType:t.type}),a().createElement("div",{className:v.sourceInfo},a().createElement("div",null,a().createElement("span",{className:v.label},E),l&&a().createElement(y.k,{icon:u.Z,className:v.eyeIcon,size:"XXS",tooltipTitle:o().text("Focus"),onClick:()=>d()})),a().createElement("div",{className:v.crosswalkValue},t.value)))}},32625:(e,t,r)=>{r.d(t,{y:()=>a,q:()=>l});var n=r(79692);const a=(0,n.Z)({sourceItem:{display:"flex",overflow:"hidden"},eyeIcon:e=>{let{isFocused:t}=e;return{marginLeft:"10px",color:t?"#000":"rgba(0, 0, 0, 0.54)"}},label:{color:"rgba(0, 0, 0, 0.87)",verticalAlign:"top",fontSize:"13px",lineHeight:"16px"},sourceInfo:{overflow:"hidden"},crosswalkValue:{color:"rgba(0, 0, 0, 0.54)",fontSize:"12px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},sourceIcon:e=>{let{color:t}=e;return{height:"16px",width:"16px",marginRight:"9px",fontSize:"14px",backgroundColor:t}},crosswalkIcon:e=>{let{color:t,isOpaque:r,isDisabled:n}=e;return{backgroundColor:n?"#fff":t,border:n?`2px solid ${t}`:null,height:"12px",width:"12px",boxSizing:"border-box",borderRadius:"30px",opacity:r?1:.38,transition:"opacity 0.3s"}}}),l=(0,n.Z)((()=>({label:{fontSize:"13px",lineHeight:"15px",letterSpacing:"normal",marginLeft:"2px",marginRight:"8px"}})))},26905:(e,t,r)=>{r.d(t,{p:()=>o});var n,a=r(94815),l=r(24328);!function(e){e.READING="READING",e.HOVERED="HOVERED",e.EDITING="EDITING"}(n||(n={}));const o=()=>{const[e,t]=(0,l.useState)(null),r=e===n.READING,o=e===n.EDITING,i=e===n.HOVERED;(0,l.useEffect)((()=>{t(n.READING)}),[]);const s=(0,l.useCallback)((0,a.DsO)(t,50),[]),c=(0,l.useCallback)((()=>{o||s(n.HOVERED)}),[s,o]),u=(0,l.useCallback)((()=>{o||s(n.READING)}),[s,o]);return{setReadingMode:(0,l.useCallback)((()=>t(n.READING)),[t]),setEditingMode:(0,l.useCallback)((()=>t(n.EDITING)),[t]),onMouseLeave:u,onMouseEnter:c,isReadingMode:r,isEditingMode:o,isHovered:i}}},87760:(e,t,r)=>{r.d(t,{Z:()=>m});var n=r(94815),a=r(24328),l=r.n(a),o=r(81303),i=r(13074);function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}const d=e=>{let{values:t,valueContainerClassName:r}=e,n=p(e,["values","valueContainerClassName"]);return l().createElement(l().Fragment,null,(t||[]).map((e=>l().createElement("div",{key:e.uri,className:r},l().createElement(o.Z,u({attributeValue:e},n))))))},m=(0,a.memo)((e=>{let{expanded:t,LabelRenderer:r,RightSlot:a}=e,o=p(e,["expanded","LabelRenderer","RightSlot"]);const{attributeType:c,values:u,valueContainerClassName:m}=o;switch(c.type){case n.oS0.TYPE_NESTED:case n.oS0.TYPE_REFERENCE:return d(s({expanded:t,LabelRenderer:r,RightSlot:a},o));case n.oS0.TYPE_IMAGE:return l().createElement("div",{className:m},l().createElement(i.Z,{attributeType:c,attributeValues:u,imageSize:{imageHeight:40,imageWidth:40,imageMargin:2}}));default:return d(s({},o))}}))},20982:(e,t,r)=>{r.d(t,{Z:()=>Ce});var n=r(24328),a=r.n(n),l=r(52730),o=r(71153),i=r.n(o),s=r(87918),c=r.n(s),u=r(49885),p=r(94815),d=r(74402),m=r(97946),b=r(60894),y=r(85709),f=r(92778),g=r(17440),v=r(92332),h=r(79692);const E=(0,h.Z)((e=>({coloredCell:{"&::before":{content:'""',position:"absolute",right:0,top:0,width:"100%",height:"100%",background:"rgba(0,0,0,0.06)",pointerEvents:"none"}},headCell:{display:"flex",alignItems:"center",fontSize:"12px",height:"100%",color:e.palette.text.secondary},rowCell:{fontSize:"13px",overflow:"hidden"},cellValueWrapper:{padding:"15px 15px 0 15px","&:last-child":{paddingBottom:"15px"}},attributeTitle:{display:"block",marginLeft:"3px","&:not(:last-child)":{marginBottom:"5px"}},ovValue:{"& + &":{marginTop:"4px"}},count:{textAlign:"center"},ruleType:{display:"flex",alignItems:"center"},ruleTypeLabel:{marginRight:"5px"},rulePopup:{width:"270px",overflowY:"hidden"},popupItem:{paddingBottom:"5px",paddingTop:"5px"},sourceIcon:{height:"16px",width:"16px",marginRight:"9px",fontSize:"14px"},closeButton:{height:24,width:24},popupTitle:{fontWeight:500,marginLeft:"12px"},popupTitleWrapper:{display:"flex",paddingLeft:16,paddingTop:16},popupItemsWrapper:{overflowY:"auto",maxHeight:"280px"},winnerSourceItemWrapper:{paddingBottom:"2px",paddingTop:"2px"},winnerSourceItem:{display:"flex",alignItems:"center",width:"100%",paddingLeft:"8px"},winnerSourceItemLabel:{fontSize:13}}))),w=e=>{const t=E();return a().createElement("div",{className:i()(t.headCell,t.coloredCell)},a().createElement(v.default,e),e.children)};var x=r(90473),O=r(32528);const k=(0,h.Z)({root:{marginBottom:"-6px"}}),T=(0,O.Z)((0,g.pick)(["parentUri","parentTypeUri","onAdd","selectedAttributeTypes","onSelectAttributeTypes"]))((e=>{let{parentTypeUri:t,parentUri:r,selectedAttributeTypes:n,onSelectAttributeTypes:o,onAdd:i}=e;const s=k(),d=(0,l.useSelector)(u.ZP.selectors.getMetadata),m=[...d.entityTypes,...d.relationTypes||[]].find((0,g.propEq)("uri",t)),b=e=>!(null!=n&&n.find((0,g.propEq)("uri",e.uri))),y=(0,g.pipe)((0,g.propOr)([],"attributes"),(0,g.reject)((0,g.either)(p.YkG,p.Or$)),(0,g.filter)((0,g.either)(p.QZu,b)),(0,g.filter)((0,g.both)(p.Uty,(e=>(0,p.Vg3)({attributeType:e,mode:p.fO_.EDITING})))))(m);return a().createElement("div",{className:s.root},a().createElement(x.Z,{label:c().text("Attribute"),popupTitle:c().text("Add attributes"),data:y,onApply:e=>{const t=e.filter(b);t.length>0&&o([...t,...n]),e.filter(p.QZu).forEach((e=>{i({attributeType:e,parentUri:r})}))}}))}));var C=r(51229);const S=(0,O.Z)((0,g.pick)(["readOnly"]))((e=>{let{readOnly:t}=e,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["readOnly"]);return t?a().createElement(w,r):a().createElement(w,r,a().createElement(C.Z,null),a().createElement(T,null))})),I=e=>{let{value:t}=e;const r=E();return a().createElement("div",{className:r.cellValueWrapper},t)};var A=r(4073);const j=(0,h.Z)((()=>({simpleAttributeWrapper:{padding:"15px"},complexAttributeWrapper:{padding:"15px","& + &":{borderTop:"1px solid rgba(0,0,0,.1)"}}})));function Z(){return Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Z.apply(this,arguments)}const N=e=>{let{attributeValues:t}=e,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValues"]);const n=j();return a().createElement("div",{className:n.simpleAttributeWrapper},a().createElement(A.Z,Z({attributeValues:t},r)))};var P=r(58896);function D(){return D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},D.apply(this,arguments)}const V=e=>{let{attributeValues:t}=e,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValues"]);const n=j(),l=null==t?void 0:t.map(((e,t)=>a().createElement("div",{key:null==e?void 0:e.uri,className:n.complexAttributeWrapper,"data-reltio-id":`value-index-${t}`},a().createElement(P.Z,D({attributeValue:e},r)))));return a().createElement(a().Fragment,null,l)};var R=r(85592);function M(){return M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},M.apply(this,arguments)}const U=e=>{let{attributeValues:t,crosswalksMap:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValues","crosswalksMap"]);const l=j(),o=null==t?void 0:t.map(((e,t)=>a().createElement("div",{key:null==e?void 0:e.uri,className:l.complexAttributeWrapper,"data-reltio-id":`value-index-${t}`},a().createElement(R.Z,M({attributeValue:e,crosswalksMap:r},n)))));return a().createElement(a().Fragment,null,o)};var L=r(22246);function W(){return W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},W.apply(this,arguments)}const B=e=>{let{attributeValues:t}=e,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValues"]);const n=j();return a().createElement(a().Fragment,null,null==t?void 0:t.map(((e,t)=>a().createElement("div",{key:null==e?void 0:e.uri,className:n.complexAttributeWrapper,"data-reltio-id":`value-index-${t}`},a().createElement(L.Z,W({attributeValue:e},r))))))};function z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const F=(0,O.Z)((0,g.pick)(["onDelete","onPin","onIgnore","onEdit","onAdd","parentUri","readOnly"]))((e=>{let{value:t,onDelete:r,onEdit:n,onPin:l,onIgnore:o,onAdd:i,parentUri:s,readOnly:c}=e;return class{static build(e,t){switch(e){case p.oS0.TYPE_NESTED:return a().createElement(V,t);case p.oS0.TYPE_REFERENCE:return a().createElement(U,t);case p.oS0.TYPE_IMAGE:return a().createElement(B,t);default:return a().createElement(N,t)}}}.build(t.attributeType.type,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){z(e,t,r[t])}))}return e}({},t,{parentUri:s,onDelete:r,onEdit:n,onPin:l,onIgnore:o,onAdd:i,disableEdit:c,disableDelete:c}))}));var H=r(95629),Y=r(87760);const G=e=>{let{value:{values:t,attributeType:r}}=e;const n=E();return a().createElement("div",{className:n.cellValueWrapper},a().createElement(H.Z,{className:n.attributeTitle,label:r.label}),a().createElement(Y.Z,{values:t,attributeType:r,valueContainerClassName:n.ovValue}))},_=e=>{let{value:t}=e;const r=E();return a().createElement("div",{className:i()(r.cellValueWrapper,r.count)},t)};var q=r(94079),X=r(87685),$=r(99144),Q=r(8818),J=r(94175);const K=e=>{let{sourcesUriOrder:t}=e;const r=E(),n=(0,l.useSelector)(u.ZP.selectors.getMetadata);return a().createElement(a().Fragment,null,t.map((e=>a().createElement(q.ListItem,{key:e,className:r.popupItem},a().createElement(J.Z,{className:r.sourceIcon,sourceType:e}),a().createElement(q.ListItemText,{primary:(0,p.tH7)(n,e),primaryTypographyProps:{variant:"body2"}})))))},ee=e=>{let{attributeUri:t}=e;const r=E(),n=(0,l.useSelector)(u.ZP.selectors.getMetadata),o=(0,p.zeJ)(n,t);return a().createElement(q.ListItem,{key:o.uri,className:r.popupItem},a().createElement(q.ListItemText,{primary:(0,p.idV)(o.label),primaryTypographyProps:{variant:"body2"}}))},te=(0,g.cond)([[(0,g.prop)("sourcesUriOrder"),()=>c().text("Source sequence")],[(0,g.prop)("primaryAttributeUri"),()=>c().text("Attribute winner")],[(0,g.prop)("comparisonAttributeUri"),()=>c().text("Comparison attribute")]]),re=(0,g.cond)([[(0,g.prop)("sourcesUriOrder"),e=>{let{sourcesUriOrder:t}=e;return a().createElement(K,{sourcesUriOrder:t})}],[(0,g.prop)("primaryAttributeUri"),e=>{let{primaryAttributeUri:t}=e;return a().createElement(ee,{attributeUri:t})}],[(0,g.prop)("comparisonAttributeUri"),e=>{let{comparisonAttributeUri:t}=e;return a().createElement(ee,{attributeUri:t})}]]),ne=e=>{let{info:t}=e;const r=E(),[l,o]=(0,n.useState)(null),i=()=>o(null);return a().createElement(a().Fragment,null,a().createElement(Q.k,{icon:$.Z,tooltipTitle:c().text("View details"),size:"XS",onClick:e=>o(e.currentTarget)}),a().createElement(q.Popover,{classes:{paper:r.rulePopup},open:!!l,anchorEl:l,onClose:i,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},a().createElement("div",{className:r.popupTitleWrapper},a().createElement(q.IconButton,{className:r.closeButton,onClick:i},a().createElement(X.default,null)),a().createElement(q.Typography,{variant:"subtitle1",className:r.popupTitle},te(t))),a().createElement(q.List,{component:"div",className:r.popupItemsWrapper},re(t))))},ae=e=>{let{value:{ruleType:t,sourcesUriOrder:r,primaryAttributeUri:n,comparisonAttributeUri:l}}=e;const o=E(),s=r||n||l;return a().createElement("div",{className:i()(o.cellValueWrapper,o.ruleType)},a().createElement("div",{className:o.ruleTypeLabel},t.label),s&&a().createElement(ne,{info:{sourcesUriOrder:r,primaryAttributeUri:n,comparisonAttributeUri:l}}))};var le=r(63149),oe=r(40625);const ie=e=>{let{crosswalk:t}=e;const r=E(),n=(0,l.useSelector)(u.ZP.selectors.getMetadata),{isDimmed:o,highlightCrosswalk:i,removeHighlight:s}=(0,le.pu)(t);return a().createElement(oe.Z,{className:r.winnerSourceItem,color:o?"rgba(0, 0, 0, 0.12)":(0,p.CJp)((0,p.uKF)(t)),opacity:o?.38:1,onMouseEnter:()=>i(),onMouseLeave:()=>s()},a().createElement(J.Z,{className:r.sourceIcon,sourceType:t.type}),a().createElement(q.ListItemText,{primary:(0,p.tH7)(n,t.type),primaryTypographyProps:{variant:"body2"},classes:{primary:r.winnerSourceItemLabel}}))},se=e=>{let{value:{crosswalks:t}}=e;const r=E();return a().createElement(q.List,{component:"div"},t.map((e=>a().createElement(q.ListItem,{key:e.uri,className:r.winnerSourceItemWrapper},a().createElement(ie,{crosswalk:e})))))},ce=[{id:"ovValues",get label(){return c().text("Attributes & OV")},hideable:!1,initialWidth:360,minWidth:250},{id:"winnerSources",get label(){return c().text("Winner source systems")},initialWidth:220},{id:"ruleType",get label(){return c().text("Rule type")},initialWidth:200},{id:"count",get label(){return c().text("Count")},initialWidth:80,minWidth:80},{id:"values",get label(){return c().text("Attribute values")},hideable:!1}],ue=e=>(0,p.OXP)(e)&&!(0,p.ZiX)(e.uri),pe=["ovValues","ruleType","values"],de=e=>{switch(e){case"ovValues":return G;case"values":return F;case"count":return _;case"ruleType":return ae;case"winnerSources":return se;default:return I}},me=(0,g.pipe)(p.cwx,(0,g.sortWith)([(0,g.descend)((0,g.propOr)(-1,"priority"))]),(0,g.map)((0,g.prop)("uri"))),be=(0,g.curry)(((e,t)=>(0,p.YkG)(e)&&t&&(0,g.pipe)(p.c31,(0,g.find)((r=>r.slice((0,p.u5q)(r).length)===t.slice(e.uri.length))))(e)||t)),ye=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return(0,g.pipe)((0,g.filter)(ue),(0,g.chain)((e=>(0,g.pipe)((0,g.pickBy)(((t,r)=>{const n=(0,p.sOy)(r,e.uri),a=n?r.slice(e.uri.length+1):"",l=a&&(0,p.IM5)(e.value,a);return n&&(!l||ue(l))})),g.values,g.flatten)(t))),(0,g.uniqBy)((0,g.prop)("uri")))(e)},fe=(0,g.map)((e=>{let{id:t,label:r,initialWidth:n,minWidth:a}=e;return{id:t,label:r,initialWidth:n,minWidth:a,autoResize:!n,resizable:!0,sortable:!1,headCellRenderer:"ovValues"===t?S:w,rowCellValueRenderer:de(t)}})),ge=(e,t,r,n,a,l,o)=>{switch(e){case"ovValues":return{attributeType:n,values:null==l?void 0:l.filter(ue)};case"values":return{attributeType:n,attributeValues:l,crosswalksMap:a};case"count":return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;switch(e){case p.oS0.TYPE_REFERENCE:case p.oS0.TYPE_NESTED:case p.oS0.TYPE_IMAGE:return t.length;default:return t.reduce(((e,t)=>e+r[t.uri].length),0)}}(n.type,l,a);case"ruleType":return((e,t,r,n)=>{var a,l;const o=[...e.entityTypes,...e.relationTypes||[]].find((0,g.propEq)("uri",r)),i=null!==(a=null==o?void 0:o.survivorshipGroups)&&void 0!==a?a:[],s=n&&i.find((0,g.propEq)("uri",n))||i.find((0,g.propEq)("default",!0)),c=null==s||null===(l=s.mapping)||void 0===l?void 0:l.find((0,g.propEq)("attribute",t.uri)),u=(0,p.o_J)(e,null==c?void 0:c.survivorshipStrategy)||(0,p.Xaq)(e),d=(e=>"configuration/survivorshipStrategies/SRC_SYS"===(null==e?void 0:e.uri))(u)?(0,g.uniq)([...(null==c?void 0:c.sourcesUriOrder)||[],...(null==s?void 0:s.sourcesUriOrder)||[],...me(e)]):void 0,m=be(t),b=(e=>"configuration/survivorshipStrategies/OtherAttributeWinnerCrosswalk"===(null==e?void 0:e.uri))(u)?m(null==c?void 0:c.primaryAttributeUri):void 0,y=(0,p.YkM)(t)&&(e=>"configuration/survivorshipStrategies/MinValue"===(null==e?void 0:e.uri)||"configuration/survivorshipStrategies/MaxValue"===(null==e?void 0:e.uri))(u)?m(null==c?void 0:c.comparisonAttributeUri):void 0;return{ruleType:u,sourcesUriOrder:d,primaryAttributeUri:b,comparisonAttributeUri:y}})(t,n,r,o);case"winnerSources":return{crosswalks:ye(l,a)};default:return null}};function ve(){return ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ve.apply(this,arguments)}const he=e=>{let{cell:t,CellValueRenderer:r,columnIndex:n,columnData:l}=e,o=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["cell","CellValueRenderer","columnIndex","columnData"]);const s=E(),c=0===n;return a().createElement("div",{className:i()(s.rowCell,c&&s.coloredCell),"data-reltio-id":`column-name-${l.id}`},t.values.map(((e,t)=>a().createElement(r,ve({key:t,value:e},o)))))};var Ee=r(99136),we=r(85209),xe=r(31276);const Oe=e=>{let{open:t,onClose:r,onConfirmEditWithoutIgnore:l,onConfirmEditWithIgnore:o}=e;const[i,s]=(0,n.useState)("without");return a().createElement(q.Dialog,{open:t,onEnter:()=>s("without")},a().createElement(q.DialogContent,null,a().createElement(q.DialogContentText,null,c().text("You are attempting to change a value that is presently ignored.")),a().createElement(q.FormControl,{component:"fieldset"},a().createElement(q.FormLabel,{component:"legend"},c().text("Please choose an option:")),a().createElement(q.RadioGroup,{value:i,onChange:(0,g.pipe)(xe.NA,s)},a().createElement(q.FormControlLabel,{value:"without",control:a().createElement(q.Radio,null),label:c().text("Save without Ignore")}),a().createElement(q.FormControlLabel,{value:"with",control:a().createElement(q.Radio,null),label:c().text("Save and apply Ignore to new value")})))),a().createElement(q.DialogActions,null,a().createElement(q.Button,{onClick:r,color:"primary"},c().text("Cancel")),a().createElement(q.Button,{onClick:()=>{"with"===i?o():l(),r()},color:"primary"},c().text("Ok"))))},ke=(0,h.Z)({tableContainer:{height:"100%",overflow:"hidden",display:"flex",flexDirection:"column"},tableHeader:{display:"flex",flexDirection:"row"},tableTitle:{marginRight:"auto"},tableContent:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",position:"relative"}});function Te(){return Te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Te.apply(this,arguments)}const Ce=(0,n.memo)((e=>{let{entity:t,isLoading:r,crosswalksMap:o,visibleColumns:s=pe,onChangeVisibleColumns:v,readOnly:h,onDelete:E=xe.ZT,onPin:w=xe.ZT,onIgnore:x=xe.ZT,onEdit:O=xe.ZT,onAdd:k=xe.ZT,selectedAttributeTypes:T,onSelectAttributeTypes:C=xe.ZT,additionalHeaderItems:S,className:I,activeSurvivorshipGroupUri:A}=e;const j=ke(),Z=(0,n.useMemo)((()=>(0,g.pipe)((0,g.filter)((e=>{let{id:t}=e;return s.includes(t)})),fe)(ce)),[s]),{type:N,uri:P,attributes:D={}}=t||{},V=(0,l.useSelector)(u.ZP.selectors.getMetadata);(0,n.useEffect)((()=>{if(t&&(0,g.isNil)(T)){const e=(0,g.pipe)(g.keys,(0,g.without)(["paging"]),(0,g.map)((0,p.tCm)(N)),(0,g.map)((e=>(0,p.zeJ)(V,e,N))),(0,g.filter)((0,g.both)(g.identity,p.Uty)))(D);C(e)}}),[t,T]);const R=(0,n.useMemo)((()=>N?function(e,t){let r=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).map((o=>{const i=(0,p.nIW)(o.uri),s=a[i],c=(0,p.YkG)(o)?n.relation:n.entity;return(0,g.pipe)((0,g.reduce)(((r,n)=>(0,g.assoc)(n,ge(n,e,t,o,c,s,l),r)),{}),(0,g.assoc)("rawValue",s))(r)}))}(V,N,T,s,o,D,A):[]),[V,N,T,s,D,o,A]),{getDynamicRowCellHeight:M,changeRowCellHeight:U}=(0,d.Z)(),L=(0,n.useCallback)((e=>a().createElement(m.Z,Te({onChangeHeight:U},e),a().createElement(he,e))),[U]),W=(0,n.useCallback)((0,g.either)(M,(0,g.always)(68)),[M]),[B,z]=(0,n.useState)(null),[F,H]=(0,n.useState)(null),Y=(0,n.useCallback)((e=>{e.attributeValue.ignored?H(e):O(e)}),[O,H]),G=(0,n.useMemo)((()=>({onDelete:z,onPin:w,onIgnore:x,onEdit:Y,onAdd:k,parentUri:P,parentTypeUri:N,selectedAttributeTypes:T,onSelectAttributeTypes:C,readOnly:h})),[z,w,x,Y,k,P,N,T,C,h]);return a().createElement("div",{className:i()(j.tableContainer,I)},a().createElement(f.Z,{classes:{root:j.tableHeader,title:j.tableTitle},title:c().text("Sources")},S,a().createElement(b.Z,{columnsData:ce,selectedColumns:s,onChangeColumns:v})),a().createElement("div",{className:j.tableContent},r&&a().createElement(Ee.Z,null),a().createElement(y.Z,{fixFirstColumn:!0,headRowHeight:48,defaultColumnWidth:250,defaultColumnMinWidth:200,columnsData:Z,rowsData:R,renderRowCell:L,getRowCellHeight:W,context:G})),a().createElement(we.Z,{open:!!B,onClose:()=>z(null),onConfirm:()=>E(B)}),a().createElement(Oe,{open:!!F,onClose:()=>H(null),onConfirmEditWithIgnore:()=>O(F),onConfirmEditWithoutIgnore:()=>{x({attributeValue:F.attributeValue}),O(F)}}))}))},40625:(e,t,r)=>{r.d(t,{Z:()=>b});var n=r(24328),a=r.n(n),l=r(87918),o=r.n(l),i=r(71153),s=r.n(i),c=r(71519),u=r(94079);function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const d=(0,r(79692).Z)({item:e=>{let{color:t,opacity:r,variant:n}=e;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){p(e,t,r[t])}))}return e}({},"standart"===n&&{backgroundColor:t,paddingRight:"29px"},"disabled"===n&&{border:`${t} solid 2px`},{opacity:r,filter:r&&1!==r?"saturate(20%)":null,transition:"opacity 0.3s",boxSizing:"border-box"})},endDatedCrosswalkIcon:{margin:"0 4px",width:"20px",height:"20px",color:"#ff1744"}});function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}const b=(0,n.forwardRef)(((e,t)=>{let{color:r,opacity:n,variant:l="standart",children:i,className:p}=e,b=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["color","opacity","variant","children","className"]);const y=d({color:r,opacity:n,variant:l});return a().createElement("div",m({ref:t,"data-reltio-id":"cw-colored-block",className:s()(y.item,p)},b),i,"disabled"===l&&a().createElement(u.Tooltip,{title:o().text("End-dated crosswalk")},a().createElement(c.Z,{className:y.endDatedCrosswalkIcon})))}))},61305:(e,t,r)=>{r.d(t,{Z:()=>P});var n=r(24328),a=r.n(n),l=r(52730),o=r(85209),i=r(90473),s=r(31517),c=r(8818),u=r(94175),p=r(81174),d=r(94079),m=r(22983),b=r(94815),y=r(17440),f=r(87918),g=r.n(f),v=r(49885),h=r(22385);function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},E.apply(this,arguments)}const w=e=>a().createElement("svg",E({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),a().createElement("defs",null,a().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.444zM20 8H8v12h12V8zM4 18H2V4c0-1.1.9-2 2-2h14v2H4v14z",id:"Copy_svg__a"})),a().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},a().createElement("mask",{id:"Copy_svg__b",fill:"#fff"},a().createElement("use",{xlinkHref:"#Copy_svg__a"})),a().createElement("path",{fillOpacity:.54,fill:"#000",mask:"url(#Copy_svg__b)",d:"M0 0h24v24H0z"})));var x=r(79692);const O=(0,x.Z)((()=>({root:{display:"flex",justifyContent:"space-between",alignItems:"center",overflowWrap:"anywhere"},text:{fontSize:13},button:{flexShrink:0,marginLeft:8,padding:0,textTransform:"none"}}))),k=e=>{let{value:t}=e;const r=O();return a().createElement("div",{className:r.root},a().createElement(d.Typography,{className:r.text,variant:"body2"},t),a().createElement(h.Z,{size:"XXS",icon:w,color:"primary",className:r.button,onClick:()=>navigator.clipboard.writeText(t)}))};var T=r(71153),C=r.n(T),S=r(43305);const I=(0,x.Z)((()=>({timestampEditorInput:{paddingTop:15,paddingBottom:15,fontSize:13},timestampEditor:{height:38}}))),A=e=>{let{value:t,classes:r={},disabled:l=!1,onChange:o}=e;const i=I(),[s,c]=(0,n.useState)(!1),u=e=>o(null==e?void 0:e.valueOf());return a().createElement(S.Z,{variant:"filled",value:t||null,disabled:l,onChange:(0,y.unless)((0,y.always)(s),u),onAccept:u,onOpen:()=>c(!0),onClose:()=>c(!1),InputProps:{disableUnderline:!0,classes:{input:i.timestampEditorInput,root:C()(i.timestampEditor,r.root)}}})};var j=r(95038),Z=r.n(j);const N=(0,x.Z)((e=>({text:{fontSize:13},attributeWrapper:{display:"flex",alignItems:"center",paddingTop:5,paddingBottom:5,marginLeft:12},attributeTitle:{fontSize:13,width:135,color:e.palette.text.secondary},attributeValue:{paddingLeft:10,display:"flex",alignItems:"center",flexGrow:1},input:{paddingTop:14,paddingBottom:14,fontSize:13},editor:{flexGrow:1},moreButton:{marginLeft:24},sourceIcon:{height:"16px",width:"16px",marginRight:"9px",fontSize:"14px"}}))),P=e=>{let{crosswalk:t,canEditAttribute:r=!0,onEditAttribute:f,onDeleteAttribute:h}=e;const E=N(),w=!("uri"in t),x=(0,l.useSelector)(v.ZP.selectors.getMetadata),[O,T]=(0,n.useState)([]),[C,S]=(0,n.useState)(null),I=(0,n.useMemo)((()=>[{label:b.G39.sourceSystems.label,uri:"type"},{label:b.G39.value.label,uri:"value"},{label:b.G39.sourceTable.label,uri:"sourceTable",canBeAdded:w,canBeDeleted:w},{label:b.G39.createDate.label,uri:"createDate"},{label:b.G39.updateDate.label,uri:"updateDate"},{label:b.G39.deleteDate.label,uri:"deleteDate",canBeAdded:!0,canBeDeleted:!0},{label:b.G39.reltioLoadDate.label,uri:"reltioLoadDate"},{label:b.G39.publishDate.label,uri:"sourcePublishDate"}]),[]),j=(0,y.pipe)((0,y.filter)((0,y.propEq)("canBeAdded",!0)),(0,y.filter)((e=>!(0,y.has)(e.uri,t))),(0,y.filter)((e=>!O.includes(e.uri))))(I);return a().createElement(a().Fragment,null,j.length>0&&r&&a().createElement(i.Z,{label:g().text("Add attributes"),onApply:e=>{e.length>0&&T((t=>t.concat((0,y.map)((0,y.prop)("uri"),e))))},data:j}),I.map((e=>e.uri in t||O.includes(e.uri)?a().createElement("div",{key:e.uri,className:E.attributeWrapper},a().createElement(d.Typography,{variant:"body2",className:E.attributeTitle},`${e.label}:`),a().createElement("div",{className:E.attributeValue},((e,t)=>{switch(e){case"type":{const r=(0,b.tH7)(x,t);return w?a().createElement(s.Z,{label:"",placeholder:t,className:E.editor,value:{value:t,label:r},options:(0,b.cwx)(x).sort((0,y.ascend)((0,y.prop)("label"))).map((e=>{let{uri:t,label:r}=e;return{value:t,label:r}})),onChange:t=>{let{value:r}=t;return f(e,r)},TextFieldProps:{InputProps:{disableUnderline:!0}}}):a().createElement(a().Fragment,null,a().createElement(u.Z,{className:E.sourceIcon,sourceType:t}),a().createElement(d.Typography,{className:E.text,variant:"body2"},r))}case"sourceTable":return w?a().createElement(p.Z,{multiple:!1,multiline:!1,getValueLabel:void 0,classes:{root:E.editor},required:!0,variant:"filled",value:t,onInput:t=>f(e,t.target.value),margin:"dense",InputProps:{disableUnderline:!0,classes:{input:E.input}}}):a().createElement(d.Typography,{className:E.text,variant:"body2"},t);case"value":return w?a().createElement(p.Z,{multiple:!1,multiline:!1,getValueLabel:void 0,classes:{root:E.editor},required:!0,variant:"filled",value:t,onInput:t=>f(e,t.target.value),margin:"dense",InputProps:{disableUnderline:!0,classes:{input:E.input}}}):a().createElement(k,{value:t});case"deleteDate":return a().createElement(A,{value:t&&Z().utc((0,b.ZBU)(t)).valueOf(),onChange:t=>f(e,null==t?void 0:t.toString()),classes:{root:E.editor},disabled:!r});case"sourcePublishDate":case"createDate":case"updateDate":case"reltioLoadDate":return a().createElement(d.Typography,{className:E.text,variant:"body2"},(0,b.o0x)(t));default:return null}})(e.uri,t[e.uri]),e.canBeDeleted&&a().createElement(c.k,{icon:m.Z,disabled:!r,onClick:()=>S(e.uri),size:"XS",tooltipTitle:g().text("Delete attribute"),showForDisabled:!0}))):null)),a().createElement(o.Z,{open:!!C,onClose:()=>S(null),onConfirm:()=>{return e=C,T((t=>(0,y.without)([e],t))),void((0,y.isNil)(t[e])||h(e));var e}}))}},48017:(e,t,r)=>{r.d(t,{Z:()=>y});var n=r(24328),a=r.n(n),l=r(13896),o=r(52730),i=r(94815),s=r(40625),c=r(63149),u=r(94175),p=r(94079),d=r(49885);const m=(0,r(79692).Z)({dragLayer:{position:"fixed",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",zIndex:1300,pointerEvents:"none"},crosswalkPreview:{height:"28px",maxWidth:"394px",display:"flex",overflow:"hidden",padding:"6px",alignItems:"center",boxSizing:"border-box"},sourceLabel:{fontSize:"13px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},sourceIcon:{width:"16px",height:"16px",marginRight:"9px"}}),b=e=>{let{crosswalk:t}=e;const r=m(),n=(0,c.nX)(t),l=(0,o.useSelector)(d.ZP.selectors.getMetadata),b=(0,i.tH7)(l,t.type);return a().createElement(s.Z,{color:n,className:r.crosswalkPreview},a().createElement(u.Z,{className:r.sourceIcon,sourceType:t.type}),a().createElement(p.Typography,{className:r.sourceLabel,variant:"body2"},b))},y=(0,n.memo)((()=>{var e;const t=m(),{isDragging:r,clientOffset:o,item:i}=(0,l.useDragLayer)((e=>({isDragging:e.isDragging(),clientOffset:e.getClientOffset(),item:e.getItem()}))),s=(0,n.useRef)(),c=(null===(e=s.current)||void 0===e?void 0:e.getBoundingClientRect())||{x:0,y:0},u=`translate(${(null==o?void 0:o.x)-(null==c?void 0:c.x)}px, ${(null==o?void 0:o.y)-(null==c?void 0:c.y)}px`;return r&&a().createElement("div",{ref:s,className:t.dragLayer},a().createElement("div",{style:{display:"flex",transform:u,WebkitTransform:u}},"Crosswalk"===i.type&&a().createElement(b,{crosswalk:i.crosswalk})))}))},79769:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24328),a=r.n(n),l=r(87918),o=r.n(l),i=r(94079),s=r(61305),c=r(17440);const u=(0,r(79692).Z)({caption:{paddingLeft:15,paddingTop:16,paddingBottom:8},controlButtons:{display:"flex",justifyContent:"flex-end",paddingBottom:10,paddingTop:20},cancelButton:{marginRight:20}}),p=e=>{let{className:t,onAdd:r,onClose:l}=e;const p=u(),[d,m]=(0,n.useState)({type:"",value:""});return a().createElement("div",{className:t},a().createElement(i.Typography,{variant:"body1",className:p.caption},o().text("Add crosswalk")),a().createElement(s.Z,{crosswalk:d,onDeleteAttribute:e=>{m((0,c.dissoc)(e))},onEditAttribute:(e,t)=>{m((0,c.assoc)(e,t))}}),a().createElement("div",{className:p.controlButtons},a().createElement(i.Button,{className:p.cancelButton,onClick:l},o().text("Cancel")),a().createElement(i.Button,{color:"primary",onClick:()=>{r(d),l()},disabled:!d.type||!d.value},o().text("Add"))))}},52017:(e,t,r)=>{r.d(t,{Z:()=>D});var n=r(24328),a=r.n(n),l=r(63149),o=r(77243),i=r(94815),s=r(52730),c=r(94079),u=r(72753),p=r(94175),d=r(22385),m=r(49885),b=r(79692);const y=(0,b.Z)((()=>({root:e=>{let{isOpaque:t}=e;return{display:"flex",opacity:t?1:.38,transition:"opacity 0.3s"}},wrapper:e=>{let{isOpaque:t}=e;return{width:"100%",display:"flex",alignItems:"center",height:28,filter:t?null:"saturate(0%)",backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDcvMjYvMTMEw7WpAAAAeElEQVQ4ja3VuwrAIBBE0aup0uX/v9ImCCGSdIL4WF136+EwxcC6+3k/hAsxSREArvPAW2LAGFzFhqAG64JarAnuYBW4ixWgBZZBKwzAW2Ig7HAVCzHJ4AoGQsNVbAhqsC6oxZrgDlaBu1gBWmAZtMIA3MwLmMUAfmyqQ9/LD+oDAAAAAElFTkSuQmCC)"}},focusedIcon:{width:28,height:28,backgroundColor:"rgba(0, 0, 0, 0.12)",borderRadius:0,borderRight:"1px solid #fff"},sourceIcon:{height:"16px",width:"16px",marginLeft:"16px",marginRight:"9px",fontSize:"14px"}}))),f=(0,n.memo)((e=>{let{crosswalkType:t,focusable:r=!0}=e;const{isDimmed:n}=(0,l.pu)(),o=y({isOpaque:!n}),b=(0,s.useSelector)(m.ZP.selectors.getMetadata),f=(0,i.tH7)(b,t);return a().createElement("div",{className:o.root},a().createElement(d.Z,{size:"XXS",className:o.focusedIcon,icon:r&&u.Z,disabled:!0}),a().createElement("div",{className:o.wrapper},a().createElement(p.Z,{className:o.sourceIcon,sourceType:t}),a().createElement(c.Typography,{variant:"body2"},f)))}));var g=r(87918),v=r.n(g),h=r(22983),E=r(19592),w=r(95613),x=r(40625),O=r(85209),k=r(8818),T=r(51229),C=r(71543),S=r(13896),I=r(42484),A=r(61305);const j=(0,b.Z)({root:e=>{let{isOpaque:t}=e;return{display:"flex",opacity:t?1:.19,transition:"opacity 0.3s"}},header:{width:"100%",display:"flex",alignItems:"center",height:"28px"},focusedIcon:e=>{let{isFocused:t}=e;return{width:"26px","&:not([disabled])":{border:"1px solid rgba(0, 0, 0, 0.12)"},height:"28px",color:t?"#000":"rgba(0, 0, 0, 0.54)",borderRadius:0,margin:"0px 1px"}},crosswalkWrapper:{width:"100%",overflow:"hidden"},sourceIcon:{height:"16px",width:"16px",marginRight:"9px",fontSize:"14px"},attributesWrapper:e=>{let{color:t}=e;return{border:"1px solid",borderColor:t,position:"relative"}},deleteCrosswalkButton:{position:"absolute",top:5,right:5},labelValue:{marginLeft:5},dependentIcon:{width:"16px",height:"16px",fillOpacity:.38}}),Z=(0,n.memo)((e=>{let{crosswalk:t,isDependent:r,isEmpty:o=!1,isColored:d=!0,focusable:b=!0,disableEdit:y,disableDelete:f,onDelete:g,onEdit:Z}=e;const N=(0,n.useRef)(null),P=(0,l.nX)(t),{toggleCrosswalkFocus:D,isFocused:V}=(0,l.BF)(t),{isDimmed:R,highlightCrosswalk:M,removeHighlight:U}=(0,l.pu)(t),L=o?"#FFF":d?R?"rgba(0, 0, 0, 0.12)":P:"#CACCD1",[W]=(0,l.RT)(),B=j({color:L,isOpaque:!R,isFocused:V}),[z,F]=(0,n.useState)(!1),[H,Y]=(0,n.useState)(!1),G=(0,s.useSelector)(m.ZP.selectors.getMetadata),_=(0,i.tH7)(G,t.type),q=(0,i.nIW)(t.uri),X=(0,i.x_)(t),[,$,Q]=(0,S.useDrag)({item:{type:"Crosswalk",crosswalk:t},canDrag:!X}),J=!X&&"relation"!==t.ownerType;return(0,n.useEffect)((()=>{Q((0,I.r)(),{captureDraggingState:!0})}),[]),(0,n.useEffect)((()=>{var e;b&&W&&(0,i.aFF)(W,t)&&W!==t&&(null==N||null===(e=N.current)||void 0===e||e.scrollIntoView({behavior:"smooth"}))}),[W]),a().createElement("div",{className:B.root,ref:N},a().createElement(k.k,{size:"XXS",className:B.focusedIcon,icon:b&&u.Z,onClick:()=>D(),disabled:!b,tooltipTitle:b&&v().text("Focus")}),a().createElement("div",{className:B.crosswalkWrapper},a().createElement(x.Z,{ref:$,className:B.header,color:L,variant:X?"disabled":"standart",onMouseEnter:()=>M(),onMouseLeave:()=>U()},r&&a().createElement(C.Z,{className:B.dependentIcon}),a().createElement(E.Z,{onClick:()=>F((e=>!e)),expanded:z}),a().createElement(p.Z,{className:B.sourceIcon,sourceType:t.type}),a().createElement(w.Z,{value:_},a().createElement(c.Typography,{variant:"body2",noWrap:!0},_)),a().createElement(T.Z,null),a().createElement(w.Z,{value:t.value},a().createElement(c.Typography,{variant:"body2",className:B.labelValue,noWrap:!0},t.value))),z&&a().createElement("div",{className:B.attributesWrapper},J&&a().createElement("div",{className:B.deleteCrosswalkButton},a().createElement(k.k,{icon:h.Z,disabled:f,onClick:()=>Y(!0),size:"XS",tooltipTitle:f?v().text("You don't have permissions to delete"):v().text("Delete crosswalk"),showForDisabled:!0}),a().createElement(O.Z,{open:H,onConfirm:()=>{V&&D(),g(q)},onClose:()=>Y(!1)})),a().createElement(A.Z,{crosswalk:t,canEditAttribute:!y,onEditAttribute:(e,t)=>{Z({crosswalkId:q,attributeName:e,value:t})},onDeleteAttribute:e=>{Z({crosswalkId:q,attributeName:e})}}))))})),N=(0,b.Z)((()=>({root:{display:"flex",alignItems:"center",height:"28px",paddingLeft:"37px"}}))),P=e=>{let{showMore:t,onClick:r}=e;const n=N();return a().createElement(c.Link,{className:n.root,component:"button",variant:"caption",underline:"none",onClick:r},a().createElement("span",null,t?v().text("View dependent crosswalks"):v().text("Hide dependent crosswalks")))},D=e=>{let{source:t,crosswalksByTypes:r,showCrosswalkColors:s=!0,crosswalksFocusEnabled:c=!0,expanded:u,disableEditCrosswalk:p,disableDeleteCrosswalk:d,onEdit:m,onDelete:b,onToggleExpanded:y}=e;const g=(0,l.RT)();return(0,n.useEffect)((()=>{!u&&c&&r[o.Y.Dependent].some((e=>g.some((0,i.aFF)(e))))&&y()}),[g]),a().createElement(a().Fragment,null,0===r[o.Y.Simple].length&&0===r[o.Y.Empty].length&&a().createElement(f,{crosswalkType:t,focusable:c}),r[o.Y.Simple].map((e=>a().createElement(Z,{key:e.uri,crosswalk:e,focusable:c,disableEdit:p,disableDelete:d,onDelete:b,onEdit:m,isColored:s}))),r[o.Y.Empty].map((e=>a().createElement(Z,{key:e.uri,crosswalk:e,focusable:c,isEmpty:!0,disableEdit:p,disableDelete:d,onDelete:b,onEdit:m,isColored:s}))),u&&r[o.Y.Dependent].map((e=>a().createElement(Z,{key:e.uri,crosswalk:e,isDependent:!0,disableEdit:p,disableDelete:d,onDelete:b,onEdit:m,focusable:c,isColored:s}))),r[o.Y.Dependent].length>0&&a().createElement(P,{showMore:!u,onClick:()=>y()}))}},39417:(e,t,r)=>{r.d(t,{P:()=>i});var n=r(24328),a=r(17440),l=r(94815),o=r(31276);const i=e=>{let{onLoad:t=o.ZT,onSuccess:r=o.ZT,onError:i=o.ZT}=e;const s=(0,n.useCallback)((e=>{t(),e.then((e=>{let{errors:t}=e;if(t)throw t;r()})).catch(i)}),[t,i,r]);return{addCrosswalk:(0,n.useCallback)((e=>{let{entity:t,contributorCrosswalk:r,crosswalk:n}=e;const o=r?(0,l.psB)({entityTypeUri:t.type,contributorCrosswalkType:r.type,contributorCrosswalkValue:r.value,contributorCrosswalkSourceTable:r.sourceTable,crosswalkType:n.type,crosswalkValue:n.value,crosswalkSourceTable:n.sourceTable,crosswalkDeleteDate:n.deleteDate}):(0,l.kRE)({entityUri:t.uri,crosswalk:n});(0,a.pipe)((0,a.andThen)((e=>{let[t]=e;return t})),s)(o)}),[s]),editCrosswalk:(0,n.useCallback)((e=>{let{entityUri:t,crosswalkId:r,attributeName:n,value:o}=e;(0,a.pipe)((0,a.ifElse)((e=>{let{value:t}=e;return(0,a.isNil)(t)}),l.K$w,l.WVU),(0,a.andThen)((e=>{let[t]=e;return t})),s)({entityUri:t,crosswalkId:r,attributeName:n,value:o})}),[s]),deleteCrosswalk:(0,n.useCallback)((e=>{let{entityUri:t,crosswalkId:r}=e;(0,a.pipe)(l.Gmt,s)({entityUri:t,crosswalkId:r})}),[s])}}},85965:(e,t,r)=>{r.d(t,{Q:()=>u});var n=r(24328),a=r(94815),l=r(17440),o=r(31276);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){s(e,t,r[t])}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=[],u=e=>{let{entity:t,onLoad:r=o.ZT,onModify:s=o.ZT,onError:u=o.ZT}=e;const[p,d]=(0,n.useState)(null),[m,b]=(0,n.useState)(null),y=(0,n.useRef)([]),f=(0,n.useRef)(null),g=(0,n.useCallback)((()=>{f.current=null}),[]),[v,h]=(0,n.useState)(c),E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(((e,t)=>((0,a.sJj)(t).forEach((r=>{e[r]=[...e[r]||[],t]})),e)),{})};(0,n.useEffect)((()=>{const e={entity:E(null==t?void 0:t.crosswalks),relation:(0,l.pipe)(a.PUO,E)(t)};if((null==p?void 0:p.uri)===(null==t?void 0:t.uri)&&f.current){const{ownerType:t}=f.current,r=Object.keys(e[t]),n=Object.keys(m[t]);h((0,l.difference)(r,n))}else h(c);g(),d(t),b(e),y.current=[]}),[t]);const w=(0,n.useCallback)((0,l.pipe)(u,g),[u,g]),{deleteAttribute:x,ignoreAttribute:O,pinAttribute:k,createAttribute:T,updateAttribute:C}=(e=>{let{onSuccess:t=o.ZT,onError:r=o.ZT,onLoad:i=o.ZT}=e;const s=(0,n.useCallback)((e=>{i(),e.then((()=>{t()})).catch(r)}),[r,t,i]),c=(0,n.useCallback)((e=>e.then((e=>{if("error"in e)throw e.error;return e}))),[]);return{deleteAttribute:(0,n.useCallback)((e=>{let{attributeValue:t,attributeType:r,crosswalks:n}=e;const o=(0,a.YkG)(r)?(0,l.pipe)(a.o96,(0,l.prop)("objectURI"),a.VGk,c)(t):Promise.all((n||[]).map((e=>{let{type:r,value:n,sourceTable:l}=e;return c((0,a.xZs)({attributeUri:t.uri,sourceUri:r,crosswalkValue:n,crosswalkSourceTable:l}))})));s(o)}),[s,c]),pinAttribute:(0,n.useCallback)((e=>{let{attributeValue:t}=e;(0,l.pipe)(a.xkv,c,s)({attributeUri:t.uri,value:!t.pin})}),[s,c]),ignoreAttribute:(0,n.useCallback)((e=>{let{attributeValue:t}=e;(0,l.pipe)(a.P8_,c,s)({attributeUri:t.uri,value:!t.ignored})}),[s,c]),updateAttribute:(0,n.useCallback)((e=>{let{attributeValue:t,attributeType:r,crosswalk:n}=e;(0,a.YkM)(r)||(0,a.Or$)(r)||(0,l.pipe)(a.tCj,c,s)({attributeUri:t.uri,sourceUri:n.type,crosswalkValue:n.value,crosswalkSourceTable:n.sourceTable,value:(0,a.CwH)(r)?t.lookupCode:t.value})}),[s,c]),createAttribute:(0,n.useCallback)((e=>{let{attributeValue:t,crosswalk:r}=e;(0,l.pipe)(a.JV_,(0,l.andThen)((e=>{let[{errors:t}]=e;if(t)throw t})),s)({attributeUri:t.uri,sourceUri:r.type,crosswalkValue:r.value,crosswalkSourceTable:r.sourceTable,value:t.value})}),[s])}})({onLoad:r,onSuccess:s,onError:w}),S=(0,n.useCallback)((e=>{let{attributeType:t,parentUri:r,crosswalk:n,index:o}=e;const s=(0,a.gjI)({parentUri:r,attributeType:t}),{uri:c}=s;if(n){const{ownerType:e}=n;b((t=>i({},t,{[e]:i({},t[e],{[c]:[n]})})))}d((e=>{var n;return(0,l.isNil)(o)&&(o=null===(n=(0,a.JQy)(e,r,t.name))||void 0===n?void 0:n.length),(0,a.wLZ)({entity:e,attributeType:t,newAttribute:s,index:o})})),y.current.some((e=>(0,a.sOy)(c,e)))||y.current.push(c)}),[]),I=(0,n.useCallback)((e=>{const{attributeValue:{uri:t},attributeType:r}=e;(0,a.ZiX)(t)?(d((e=>(0,a.d$I)({entity:e,attributeType:r,uri:t}))),b((0,l.evolve)({entity:(0,l.dissoc)(t),relation:(0,l.dissoc)(t)})),y.current=(0,l.without)([t],y.current)):x(e)}),[x]),A=(0,n.useCallback)((e=>{if((0,a.ZiX)(e.attributeValue.uri)){const{attributeValue:t,attributeType:r,crosswalk:n}=e;if(!(0,l.isNil)(t.value)){const{uri:e}=t,l=y.current.find((t=>(0,a.sOy)(e,t))),o=(0,a.ww$)({entity:p,attributeType:r,uri:e,value:(0,a.kDl)(t)});T({attributeValue:(0,a.dLR)(o,l),crosswalk:n}),f.current=n}}else C(e)}),[T,C,p]);return{modifiedEntity:p,crosswalksMap:m,onAddAttribute:S,onDeleteAttribute:I,onPinAttribute:k,onIgnoreAttribute:O,onEditAttribute:A,newlyCreatedAttributes:v}}},77243:(e,t,r)=>{let n;r.d(t,{Y:()=>n}),function(e){e.Simple="simple",e.Empty="empty",e.Dependent="dependent"}(n||(n={}))},90186:(e,t,r)=>{r.d(t,{o:()=>s});var n=r(94815),a=r(17440),l=r(77243);const o=e=>e[l.Y.Simple].length>0?1:e[l.Y.Dependent].length>0?e[l.Y.Empty].length>0?2:3:4,i=(0,a.evolve)({[l.Y.Dependent]:(0,a.sort)(((e,t)=>{const r=e.sourceTable||"",n=t.sourceTable||"";return r===n?0:r?n?r<n?-1:1:-1:1}))}),s=(0,a.curry)(((e,t,r)=>{const s=(r||[]).reduce(((r,o)=>(r[o.type]||(r[o.type]={[l.Y.Simple]:[],[l.Y.Empty]:[],[l.Y.Dependent]:[]}),"relation"===o.ownerType?r[o.type][l.Y.Dependent].push(o):((e,t,r)=>0===(0,n.sJj)(r).filter((r=>{const l=(0,n.AFK)(r,e);return t.some((0,a.propEq)("uri",l))})).length)(e,t,o)?r[o.type][l.Y.Empty].push(o):((e,t,r)=>!(0,n.sJj)(r).some((r=>{const l=(0,n.AFK)(r,e),o=t.find((0,a.propEq)("uri",l));return o&&!(0,n.YkM)(o)})))(e,t,o)?r[o.type][l.Y.Dependent].push(o):r[o.type][l.Y.Simple].push(o),r)),{});return Object.keys(s).sort(((e,t)=>o(s[e])-o(s[t])||(e<t?-1:1))).map((e=>({source:e,crosswalksByTypes:i(s[e])})))}))},66095:(e,t,r)=>{r.d(t,{R:()=>i,Q:()=>s});var n=r(24328),a=r.n(n),l=r(94815);const o=(0,n.createContext)(null),i=e=>{let{children:t,attributeUris:r}=e;return a().createElement(o.Provider,{value:r},t)},s=e=>((0,n.useContext)(o)||[]).some((t=>(0,l.sOy)(t,e)))}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[4120],{74402:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(24328),a=r(17440),l=r(65503);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const i=e=>{let{rowIndex:t,columnData:{id:r},cellIndex:n}=e;return`${r}[${t}][${n}]`},s=()=>{const[e,t]=(0,n.useState)({}),r=(0,n.useRef)({}),s=(0,n.useCallback)((0,l.DsO)((()=>{t(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){o(e,t,r[t])}))}return e}({},r.current))})),[]),c=(0,n.useCallback)((()=>{r.current={}}),[]);return{getDynamicRowCellHeight:(0,n.useCallback)((0,a.pipe)(i,(0,a.prop)(a.__,e)),[e]),changeRowCellHeight:(0,n.useCallback)((0,a.curry)((0,a.useWith)((0,a.pipe)(((e,t)=>{r.current[e]=t}),s),[i,a.identity])),[]),clearHeightsCache:c}}},97946:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24328),a=r.n(n),l=r(13980),o=r.n(l),i=r(44443),s=r(94079),c=r(20562);const u=e=>{let{onChangeHeight:t,children:r}=e,l=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["onChangeHeight","children"]);const o=(0,n.useRef)(null),{rowValue:u,rowIndex:p,columnData:d,cellIndex:m}=l,b=t({rowIndex:p,cellIndex:m,columnData:d}),y=()=>o.current&&b(o.current.clientHeight);return(0,c.D)(y,[u.rawValue]),a().createElement("div",null,a().createElement(i.Z,{handleHeight:!0,onResize:y}),a().createElement(s.RootRef,{rootRef:o},r))};u.propTypes={onChangeHeight:o().func,children:o().node};const p=u},85209:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(24328),a=r.n(n),l=r(87918),o=r.n(l),i=r(94079);const s=e=>{let{open:t,onClose:r,onConfirm:n}=e;return a().createElement(i.Dialog,{open:t},a().createElement(i.DialogContent,null,a().createElement(i.DialogContentText,null,o().text("Are you sure you want to delete this?"))),a().createElement(i.DialogActions,null,a().createElement(i.Button,{onClick:r,color:"primary"},o().text("No")),a().createElement(i.Button,{onClick:()=>{n(),r()},color:"primary"},o().text("Yes"))))}},94111:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(24328),a=r.n(n),l=r(80030);const o=(0,r(79692).Z)((e=>({tooltip:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,filter:"drop-shadow(0px 1px 5px #00000033) drop-shadow(0px 3px 1px #0000001F) drop-shadow(0px 2px 2px #00000024)",padding:"10px",maxWidth:"none"},arrow:{color:e.palette.background.paper}})));function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=e=>{const t=o();return a().createElement(l.ZP,i({},e,{classes:t,arrow:!0}))}},40715:(e,t,r)=>{r.d(t,{n:()=>f});var n=r(24328),a=r.n(n),l=r(71153),o=r.n(l),i=r(65503),s=r(64459),c=r(79618),u=r(94646),p=r(41564),d=r(19603),m=r(7718),b=r(3409);const y=(0,r(79692).Z)({profileBandNavigation:{marginBottom:"10px"},comments:{display:"flex",justifyContent:"flex-end"}}),f=(0,n.memo)((e=>{let{entity:t,className:r,historySlice:l}=e;const f=y(),g=(0,n.useMemo)((()=>(0,i.L5S)(t)),[t]),v=(0,m.C)({objectIds:g}),h=(0,i.wwR)(t);return a().createElement(p.e,{collaboration:v},a().createElement(s.Z,{className:o()(r,d.U),entity:(null==l?void 0:l.aEntity)||t},l?a().createElement(b.Z,null):a().createElement(a().Fragment,null,a().createElement(c.a,{className:f.profileBandNavigation}),a().createElement(u.Z,{className:f.comments,uri:h,relatedObjectUris:(0,i.wp9)(i.q7e.ENTITY,{entityUri:h}),objectType:i.q7e.ENTITY}))))}));f.displayName="ScreenProfileBand"},4073:(e,t,r)=>{r.d(t,{Z:()=>ne});var n=r(24328),a=r.n(n),l=r(65503),o=r(48554),i=r(12437),s=r(22983),c=r(27604),u=r(43054),p=r(71153),d=r.n(p),m=r(87918),b=r.n(m),y=r(72768),f=r(55847),g=r(94079),v=r(17440),h=r(28117),E=r(40879),w=r(79692);const x=(0,w.Z)((()=>({textField:{margin:0},input:{borderRadius:0},inputMultiline:{"&$input":{paddingTop:0,paddingBottom:0}},booleanEditor:{paddingLeft:"10px"},timestampEditor:{"&$paper":{minWidth:"255px"}},paper:e=>{let{color:t,containerWidth:r}=e;return{border:`3px solid ${t}`,borderRadius:"4px",width:r,minWidth:"160px"}},popoverRoot:{zIndex:"10!important"}})));function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const k=[l.oS0.TYPE_TEXT,l.oS0.TYPE_BLOB],T=e=>{let{attributeType:t,attributeValue:r,color:o,containerRef:i,onClose:s,onEdit:c}=e;const u=x({color:o,containerWidth:i.current?i.current.getBoundingClientRect().width:0}),p=(0,l.PFL)(t),m=(0,E.AG)(r,p),[b,y]=(0,n.useState)(m),f={className:u.textField,InputProps:{disableUnderline:!0,classes:{root:u.input,multiline:u.inputMultiline}}},w=()=>{const e=(0,E.Ho)(t,b);if(!(0,v.isNil)(b)&&!(0,v.equals)(b,m)){const n=(0,l.CwH)(t)?{value:e.value,lookupCode:e.lookupCode}:{value:""===b&&(0,l.FVt)(p.type)?null:e};c(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){O(e,t,r[t])}))}return e}({},r,n))}s()};return a().createElement(g.Popover,{open:!!i,anchorEl:i.current,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},classes:{paper:d()(u.paper,{[u.booleanEditor]:(0,l.T6Y)(p.type),[u.timestampEditor]:(0,l.j5n)(p.type)}),root:u.popoverRoot},onKeyUp:e=>{"Enter"!==e.key||k.includes(p.type)?"Escape"===e.key&&s():w()},onBackdropClick:w},a().createElement(h.Z,{autoFocus:!0,dataTypeDefinition:p,fieldName:(0,l.Tde)(t.uri),onChange:y,TextFieldProps:f,value:b,fullWidth:!0}))};var C=r(8818),S=r(57507),I=r(35315),A=r(83348),j=r(77585);const Z=(0,w.Z)((e=>({menuItem:{minHeight:"32px",color:e.palette.text.secondary},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"16px"},sourceItem:{borderBottom:"1px solid rgba(0, 0, 0, 0.12)",paddingBottom:"8px",paddingLeft:"16px",maxWidth:"200px"}}))),N=(0,A.Z)(g.MenuItem),P=e=>{let{styles:t,icon:r,text:n}=e;return a().createElement(a().Fragment,null,r,a().createElement(g.Typography,{classes:{root:t.menuText}},n))},D=(0,n.forwardRef)(((e,t)=>{let{item:r,onMenuClose:n=(()=>{})}=e;const l=Z(),{disabled:o,text:i,tooltip:s,onClick:c,id:u="",icon:p,crosswalk:d,color:m}=r;return d?a().createElement(j.Z,{className:l.sourceItem,color:m,crosswalk:d,focusable:!0}):a().createElement(N,{tooltipTitle:s,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{n(e),c(e)},disabled:o,ref:t,"data-reltio-id":`crosswalk-menu-item${u}`},a().createElement(P,{icon:p,text:i,styles:l}))}));D.displayName="CrosswalkMenuItem";const V=D;var R=r(26905),M=r(63149);function U(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const L=(0,w.Z)((()=>({root:e=>{let{fullyColored:t,opaque:r,color:n,variant:a}=e;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){U(e,t,r[t])}))}return e}({minHeight:"28px",wordBreak:"break-word"},"filled"===a&&{borderRadius:"4px",background:t?n:`linear-gradient(to right, ${n} 8px, rgba(0,0,0,0.05) 8px)`},"outlined"===a&&{"&::after":{content:'""',position:"absolute",background:n,borderRadius:"4px 0px 0px 4px",width:"8px",height:"100%",pointerEvents:"none"},"&::before":{content:'""',position:"absolute",boxSizing:"border-box",borderRadius:"4px",border:t?`${n} solid 2px`:"rgba(0,0,0,0.12) solid 1px",width:"100%",height:"100%",pointerEvents:"none"}},{display:"flex",alignItems:"center",opacity:r?1:.38,transition:"opacity 0.3s",position:"relative"})},attributeValue:{marginLeft:"16px",padding:"6px 0",lineHeight:"14px",width:"calc(100% - 71px)"},actions:{display:"flex",width:"71px",justifyContent:"flex-end",marginRight:"4px"}}))),W=e=>{let{className:t,dataReltioId:r,attributeType:o=null,attributeValue:i,crosswalk:p,disableEdit:m,disableDelete:g,onIgnore:v,onEdit:h,onPin:E,onDelete:w}=e;const{isReadingMode:x,isEditingMode:O,isHovered:k,onMouseEnter:A,onMouseLeave:j,setReadingMode:Z,setEditingMode:N}=(0,R.p)(),P=(0,n.useRef)(),D=(0,l.nIW)(i.uri),U=(0,l.x_)(p),W=!o.system&&!U,B=W&&!m&&(0,l.Z5t)(l.fO_.EDITING,o),z=W&&!g&&(0,l.Edd)(l.fO_.EDITING,o),F=(0,l.ZiX)(i.uri),H=!F&&(!x&&B||i.pin),Y=!F&&(!x&&B||i.ignored),G=(0,M.nX)(p),{isHighlighted:_,isDimmed:q,highlightCrosswalk:X,removeHighlight:$}=(0,M.pu)(p),Q=L({variant:U?"outlined":"filled",opaque:!q,fullyColored:_,color:q?"rgba(0, 0, 0, 0.12)":G}),J=[{crosswalk:p,color:G},{disabled:!B,text:b().text("Edit"),icon:a().createElement(c.Z,null),tooltip:B?null:b().text("You don't have permissions to edit"),onClick:()=>N(),id:"edit"},{disabled:!z,text:b().text("Delete"),icon:a().createElement(s.Z,null),tooltip:z?null:b().text("You don't have permissions to delete"),onClick:()=>w({attributeType:o,attributeValue:i,crosswalks:[p]}),id:"delete"}],K=()=>{$(),Z()};return a().createElement("div",{ref:P,className:d()(t,Q.root),onMouseEnter:()=>{X(),A()},onMouseLeave:()=>{$(),j()},"data-reltio-id":r},a().createElement("div",{className:Q.attributeValue},a().createElement(y.Z,{value:(0,l.kDl)(i),dataTypeDefinition:(0,l.PFL)(o)})),a().createElement("div",{className:Q.actions},H&&a().createElement(I.Z,{isPinned:i.pin,onClick:()=>E({attributeValue:i}),disabled:!B}),Y&&a().createElement(S.Z,{isIgnored:i.ignored,onClick:()=>v({attributeValue:i}),disabled:!B}),k&&a().createElement(f.Z,{MenuItemRenderer:V,menuId:`simple-attribute-additional-actions-${D}`,buttonComponent:C.k,buttonProps:{icon:u.Z,size:"XS",tooltipTitle:b().text("More actions")},onMenuClose:K,menuItems:J})),O&&a().createElement(T,{attributeType:o,attributeValue:i,color:G,onClose:K,onEdit:e=>h({attributeType:o,attributeValue:e,crosswalk:p}),containerRef:P}))};var B=r(13896);const z=(0,w.Z)((()=>({simpleAttributesWrapper:{display:"flex",flexWrap:"wrap",gap:"4px",width:"100%",minHeight:"28px"},dropIndicator:{height:"28px",color:"#828282",fontSize:"13px",lineHeight:"28px",background:"rgba(0, 0, 0, 0.04)",border:"1px dashed #828282",borderRadius:"4px",boxSizing:"border-box",padding:"0 12px"}})));function F(){return F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},F.apply(this,arguments)}const H=e=>{let{attributeValues:t,attributeType:r,parentUri:n,disableEdit:o,crosswalksMap:i,onAdd:s}=e,c=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValues","attributeType","parentUri","disableEdit","crosswalksMap","onAdd"]);const u=z(),[{isDragItemOver:p},d]=(0,B.useDrop)({accept:"Crosswalk",canDrop:e=>{let{crosswalk:t}=e;const n=(0,l.bC9)(t.uri)||"relation"===t.ownerType,a=(0,l.WgC)(t.uri)&&"entity"===t.ownerType;return(0,l.d89)(l.fO_.EDITING,r)&&!o&&(n&&(0,l.$NE)(r.uri)||a&&(0,l.EdS)(r.uri))},collect:e=>({isDragItemOver:e.isOver()&&e.canDrop()}),drop:(e,a)=>{let{crosswalk:l}=e;s({attributeType:r,crosswalk:l,parentUri:n,index:t.length})}});let m=0;return a().createElement("div",{ref:d,className:u.simpleAttributesWrapper},t.map((e=>{var t;return null===(t=i[e.uri])||void 0===t?void 0:t.map((t=>a().createElement(W,F({key:e.uri+t.uri,attributeType:r,attributeValue:e,crosswalk:t,disableEdit:o,dataReltioId:"value-index-"+m++},c))))})),p&&a().createElement("div",{className:u.dropIndicator},b().text("Drop here")))};var Y=r(58896);function G(){return G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},G.apply(this,arguments)}const _=e=>{let{className:t,attributeValues:r,attributeType:n,onAdd:o,parentUri:i,disableEdit:s}=e,c=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["className","attributeValues","attributeType","onAdd","parentUri","disableEdit"]);const u=!s&&(0,l.d89)(l.fO_.EDITING,n);return 0===r.length&&u?a().createElement(g.Button,{variant:"text",color:"primary",onClick:()=>o({parentUri:i,attributeType:n,index:0})},b().text("Create attribute")):a().createElement("div",{className:t},r.map((e=>a().createElement(Y.Z,G({key:e.uri,attributeValue:e,attributeType:n,onAdd:o,disableEdit:s},c)))))};var q=r(85592);function X(){return X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},X.apply(this,arguments)}const $=e=>{let{className:t,attributeValues:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["className","attributeValues"]);return a().createElement("div",{className:t},r.map((e=>a().createElement(q.Z,X({key:e.uri,attributeValue:e},n)))))};var Q=r(22246);function J(){return J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},J.apply(this,arguments)}const K=e=>{let{className:t,attributeValues:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["className","attributeValues"]);return a().createElement("div",{className:t},r.map((e=>a().createElement(Q.Z,J({key:e.uri,attributeValue:e},n)))))},ee=(0,w.Z)((()=>({wrapper:{display:"flex",flexDirection:"column",alignItems:"flex-start"},complexAttributesWrapper:{width:"100%"}})));function te(){return te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},te.apply(this,arguments)}function re(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}const ne=e=>{let{attributeType:t,attributeValues:r=[],paging:s={},max:c=1/0,requestNextPage:u}=e,p=re(e,["attributeType","attributeValues","paging","max","requestNextPage"]);const d=ee(),[m,b]=(0,n.useState)(c),y=(0,v.propOr)(r.length,"totalValues",s),f=c<y,g=f&&m<y,h=f&&m>=y,E=r.slice(0,m),w=y-m;return a().createElement("div",{className:d.wrapper},(e=>{switch(t.type){case l.oS0.TYPE_NESTED:return a().createElement(_,te({className:d.complexAttributesWrapper,attributeValues:e,attributeType:t},p));case l.oS0.TYPE_REFERENCE:{const{crosswalksMap:r}=p,n=re(p,["crosswalksMap"]);return a().createElement($,te({className:d.complexAttributesWrapper,attributeValues:e,attributeType:t,crosswalksMap:r},n))}case l.oS0.TYPE_IMAGE:return a().createElement(K,te({className:d.complexAttributesWrapper,attributeValues:e,attributeType:t},p));default:return a().createElement(H,te({attributeValues:e,attributeType:t},p))}})(E),g&&a().createElement(o.Z,{moreNumber:Math.min(c,w),valueNumber:w,onClick:()=>{r.length<y&&u(),b(m+c)}}),h&&a().createElement(i.Z,{onClick:()=>{b(c)}}))}},8148:(e,t,r)=>{r.d(t,{Z:()=>D});var n=r(24328),a=r.n(n),l=r(65503),o=r(26905),i=r(51229),s=r(63149),c=r(77585),u=r(94111),p=r(71153),d=r.n(p),m=r(32625);const b=e=>{let{crosswalk:t,className:r}=e;const n=(0,s.nX)(t),o=(0,l.x_)(t),{isDimmed:i,highlightCrosswalk:p,removeHighlight:b}=(0,s.pu)(t),y=(0,m.y)({isOpaque:!i,color:i?"rgba(0, 0, 0, 0.12)":n,isDisabled:o});return a().createElement(u.Z,{title:a().createElement(c.Z,{crosswalk:t,color:n}),placement:"top"},a().createElement("div",{"data-reltio-id":"crosswalk-icon",className:d()(y.crosswalkIcon,r),onMouseEnter:()=>p(),onMouseLeave:()=>b()}))};var y=r(17440),f=r(19592),g=r(4073),v=r(95629),h=r(95974),E=r(79692);const w=(0,E.Z)((e=>({title:{fontSize:"12px",lineHeight:"14px",paddingBottom:"4px",display:"inline-block",color:e.palette.text.secondary}})));function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},x.apply(this,arguments)}const O=e=>{let{attributeTypes:t,attributes:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeTypes","attributes"]);const o=w();return a().createElement(a().Fragment,null,t.filter(l.Uty).map((e=>a().createElement(h.Z,{key:e.uri,enabled:!0},a().createElement(v.Z,{className:o.title,label:e.label}),a().createElement(g.Z,x({attributeType:e,attributeValues:r[e.name],paging:(0,y.path)(["paging",e.uri],r)},n))))))};var k=r(35315),T=r(57507),C=r(8818),S=r(22983),I=r(87918),A=r.n(I);const j=e=>{let{onClick:t}=e;return a().createElement(C.k,{icon:S.Z,tooltipTitle:A().text("Delete"),onClick:t,size:"XS",disableRipple:!0})};var Z=r(20562),N=r(66095);const P=(0,E.Z)((()=>({root:{display:"flex",minHeight:"20px"},actions:{display:"flex",width:"65px",justifyContent:"flex-end",flexShrink:0,alignSelf:"center"},crosswalkIcon:{display:"inline-block",verticalAlign:"middle","& + &":{marginLeft:"4px"}}}))),D=e=>{let{attributeType:t,attributeValue:r,attributeTypesList:s,label:c,crosswalksMap:u,disableEdit:p,disableDelete:d,onPin:m,onIgnore:g,onDelete:v,onEdit:h,onAdd:E}=e;const w=P(),{isReadingMode:x,onMouseEnter:C,onMouseLeave:S}=(0,o.p)(),I=!p&&(0,l.Z5t)(l.fO_.EDITING,t),A=!d&&(0,l.Edd)(l.fO_.EDITING,t),D=(0,l.ZiX)(r.uri),V=!D&&(!x&&I||r.pin),R=!D&&(!x&&I||r.ignored),M=!x&&A,U=(0,N.Q)(r.uri),[L,W]=(0,n.useState)(U||D);(0,Z.D)((()=>{U&&W(U)}),[U]);const B=(0,y.pipe)((0,y.pickBy)(((e,t)=>(0,l.sOy)(t,null==r?void 0:r.uri))),y.values,y.flatten,(0,y.uniqBy)((0,y.prop)("uri")))(u);return a().createElement(a().Fragment,null,a().createElement("div",{className:w.root,onMouseEnter:C,onMouseLeave:S},a().createElement(f.Z,{onClick:()=>W((e=>!e)),expanded:L}),a().createElement("span",null,c,B.map((e=>a().createElement(b,{key:(0,l.uKF)(e),crosswalk:e,className:w.crosswalkIcon})))),a().createElement(i.Z,null),a().createElement("div",{className:w.actions},V&&a().createElement(k.Z,{disabled:!I,isPinned:r.pin,onClick:()=>m({attributeValue:r})}),R&&a().createElement(T.Z,{disabled:!I,isIgnored:r.ignored,onClick:()=>g({attributeValue:r})}),M&&a().createElement(j,{onClick:()=>v({attributeType:t,attributeValue:r,crosswalks:u[r.uri]})}))),L&&a().createElement(O,{attributeTypes:s,attributes:r.value,parentUri:r.uri,crosswalksMap:u,disableEdit:!I,disableDelete:!A,onPin:m,onIgnore:g,onDelete:v,onEdit:h,onAdd:E}))}},22246:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24328),a=r.n(n),l=r(65503),o=r(27952),i=r(8148);const s=(0,r(79692).Z)((()=>({image:{borderRadius:"4px",background:"white",display:"inline-block",verticalAlign:"middle"},imageContainer:{display:"inline",lineHeight:"45px",paddingRight:"8px"}})));function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}const u={imageWidth:55,imageHeight:45},p=e=>{let{attributeValue:t,attributeType:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValue","attributeType"]);const p=s();return a().createElement(i.Z,c({attributeValue:t,attributeType:r,attributeTypesList:r.attributes,label:a().createElement(o.Z,{containerClassName:p.imageContainer,className:p.image,src:(0,l.Ysv)(t),size:u})},n))}},58896:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(24328),a=r.n(n),l=r(65503),o=r(8148),i=r(10174);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const c=e=>{let{attributeValue:t,attributeType:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValue","attributeType"]);const c=a().createElement(i.x,null,(0,l.idV)(null==t?void 0:t.label));return a().createElement(o.Z,s({attributeValue:t,attributeType:r,attributeTypesList:r.attributes,label:c},n))}},85592:(e,t,r)=>{r.d(t,{Z:()=>y});var n=r(24328),a=r.n(n),l=r(52730),o=r(49885),i=r(65503),s=r(8148),c=r(17440),u=r(10174),p=r(95470),d=r(72383);const m=(0,r(79692).Z)((e=>({relationshipLabel:{marginLeft:"4px",color:e.palette.text.primary}})));function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}const y=e=>{let{attributeValue:t,attributeType:r}=e,y=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValue","attributeType"]);const f=m(),{generateEntityUrl:g}=(0,n.useContext)(d.v),v=(0,l.useSelector)(o.ZP.selectors.getMetadata),h=(0,l.useSelector)(o.ZP.selectors.getUIPath),E=a().createElement(u.x,null,a().createElement(p.Z,{href:g({uiPath:h,uri:(0,i.bwT)(t)})},(0,i.idV)(t.label),t.relationshipLabel&&a().createElement("span",{className:f.relationshipLabel},t.relationshipLabel))),w=(0,c.pipe)(i.tF$,(0,c.map)((e=>(0,i.zeJ)(v,e))),(0,c.reject)(c.isNil))(r);return a().createElement(s.Z,b({attributeValue:t,attributeType:r,attributeTypesList:w,label:E},y))}},10174:(e,t,r)=>{r.d(t,{x:()=>i});var n=r(24328),a=r.n(n),l=r(94079),o=r(32625);const i=e=>{let{children:t}=e;const r=(0,o.q)();return a().createElement(l.Typography,{component:"span",variant:"body2",classes:{body2:r.label}},t)}},57507:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),a=r.n(n),l=r(8818);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}const i=e=>a().createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5A8.503 8.503 0 003.5 12c0 4.692 3.808 8.5 8.5 8.5s8.5-3.808 8.5-8.5-3.808-8.5-8.5-8.5zM6.1 12c0-3.26 2.64-5.9 5.9-5.9 1.161 0 2.24.336 3.149.917L7.017 15.15A5.821 5.821 0 016.101 12zm5.9 5.9c-1.16 0-2.24-.336-3.148-.917l8.131-8.131c.581.908.917 1.987.917 3.148 0 3.26-2.64 5.9-5.9 5.9z",fill:"#000",fillOpacity:.54}));function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const c=e=>a().createElement("svg",s({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.847 9.402a6.34 6.34 0 00-.8-1.322L8.08 17.048A6.34 6.34 0 0012 18.4a6.398 6.398 0 005.847-8.998zm-7.283 7.283l6.121-6.121a4.898 4.898 0 01-6.121 6.121zm1.437-11.084a6.334 6.334 0 013.92 1.352L6.953 15.92A6.334 6.334 0 015.6 12c0-3.536 2.864-6.4 6.4-6.4zm0 1.5c.5 0 .982.075 1.436.215l-6.121 6.12A4.898 4.898 0 0112 7.1zM6.6 17.903A7.967 7.967 0 0012 20c4.417-.001 8.001-3.585 8.001-8.001a7.967 7.967 0 00-2.601-5.902A7.988 7.988 0 0012 4c-4.416 0-8 3.584-8 8a7.967 7.967 0 002.602 5.902zM12 2.5c-5.244 0-9.5 4.256-9.5 9.5s4.256 9.5 9.5 9.5 9.5-4.256 9.5-9.5-4.256-9.5-9.5-9.5z",fill:"#000",fillOpacity:.54}));var u=r(87918),p=r.n(u);const d=e=>{let{isIgnored:t,onClick:r,disabled:n}=e;return a().createElement(l.k,{disabled:n,showForDisabled:!0,icon:t?i:c,tooltipTitle:n?p().text("You don't have permissions to ignore"):p().text("Ignore"),onClick:r,size:"XS",disableRipple:!0})}},35315:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),a=r.n(n),l=r(8818);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}const i=e=>a().createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 4v6l2 2v2h-5v7l-.992 1L11 21v-7H6v-2l2-2V4H7V2h10v2h-1z",fill:"#000",fillOpacity:.54}));function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const c=e=>a().createElement("svg",s({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 10V4h1V2H7v2h1v6l-2 2v2h5v7l1.008 1L13 21v-7h5v-2l-2-2zm-6-6h4v7l1 1H9l1-1V4z",fill:"#000",fillOpacity:.54}));var u=r(87918),p=r.n(u);const d=e=>{let{isPinned:t,onClick:r,disabled:n}=e;return a().createElement(l.k,{disabled:n,showForDisabled:!0,onClick:r,icon:t?i:c,tooltipTitle:n?"You don't have permissions to pin":p().text("Pin"),size:"XS",disableRipple:!0})}},77585:(e,t,r)=>{r.d(t,{Z:()=>g});var n=r(24328),a=r.n(n),l=r(87918),o=r.n(l),i=r(49885),s=r(65503),c=r(52730),u=r(72753),p=r(94175),d=r(71153),m=r.n(d),b=r(63149),y=r(8818),f=r(32625);const g=e=>{let{crosswalk:t,color:r,className:n,focusable:l=!1}=e;const{toggleCrosswalkFocus:d,isFocused:g}=(0,b.BF)(t),v=(0,f.y)({color:r,isFocused:g}),h=(0,c.useSelector)(i.ZP.selectors.getMetadata),{label:E}=(0,s.PWK)(h,t.type);return a().createElement("div",{className:m()(v.sourceItem,n)},a().createElement(p.Z,{className:v.sourceIcon,sourceType:t.type}),a().createElement("div",{className:v.sourceInfo},a().createElement("div",null,a().createElement("span",{className:v.label},E),l&&a().createElement(y.k,{icon:u.Z,className:v.eyeIcon,size:"XXS",tooltipTitle:o().text("Focus"),onClick:()=>d()})),a().createElement("div",{className:v.crosswalkValue},t.value)))}},32625:(e,t,r)=>{r.d(t,{y:()=>a,q:()=>l});var n=r(79692);const a=(0,n.Z)({sourceItem:{display:"flex",overflow:"hidden"},eyeIcon:e=>{let{isFocused:t}=e;return{marginLeft:"10px",color:t?"#000":"rgba(0, 0, 0, 0.54)"}},label:{color:"rgba(0, 0, 0, 0.87)",verticalAlign:"top",fontSize:"13px",lineHeight:"16px"},sourceInfo:{overflow:"hidden"},crosswalkValue:{color:"rgba(0, 0, 0, 0.54)",fontSize:"12px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},sourceIcon:e=>{let{color:t}=e;return{height:"16px",width:"16px",marginRight:"9px",fontSize:"14px",backgroundColor:t}},crosswalkIcon:e=>{let{color:t,isOpaque:r,isDisabled:n}=e;return{backgroundColor:n?"#fff":t,border:n?`2px solid ${t}`:null,height:"12px",width:"12px",boxSizing:"border-box",borderRadius:"30px",opacity:r?1:.38,transition:"opacity 0.3s"}}}),l=(0,n.Z)((()=>({label:{fontSize:"13px",lineHeight:"15px",letterSpacing:"normal",marginLeft:"2px",marginRight:"8px"}})))},26905:(e,t,r)=>{r.d(t,{p:()=>o});var n,a=r(65503),l=r(24328);!function(e){e.READING="READING",e.HOVERED="HOVERED",e.EDITING="EDITING"}(n||(n={}));const o=()=>{const[e,t]=(0,l.useState)(null),r=e===n.READING,o=e===n.EDITING,i=e===n.HOVERED;(0,l.useEffect)((()=>{t(n.READING)}),[]);const s=(0,l.useCallback)((0,a.DsO)(t,50),[]),c=(0,l.useCallback)((()=>{o||s(n.HOVERED)}),[s,o]),u=(0,l.useCallback)((()=>{o||s(n.READING)}),[s,o]);return{setReadingMode:(0,l.useCallback)((()=>t(n.READING)),[t]),setEditingMode:(0,l.useCallback)((()=>t(n.EDITING)),[t]),onMouseLeave:u,onMouseEnter:c,isReadingMode:r,isEditingMode:o,isHovered:i}}},87760:(e,t,r)=>{r.d(t,{Z:()=>m});var n=r(65503),a=r(24328),l=r.n(a),o=r(81303),i=r(13074);function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}const d=e=>{let{values:t,valueContainerClassName:r}=e,n=p(e,["values","valueContainerClassName"]);return l().createElement(l().Fragment,null,(t||[]).map((e=>l().createElement("div",{key:e.uri,className:r},l().createElement(o.Z,u({attributeValue:e},n))))))},m=(0,a.memo)((e=>{let{expanded:t,LabelRenderer:r,RightSlot:a}=e,o=p(e,["expanded","LabelRenderer","RightSlot"]);const{attributeType:c,values:u,valueContainerClassName:m}=o;switch(c.type){case n.oS0.TYPE_NESTED:case n.oS0.TYPE_REFERENCE:return d(s({expanded:t,LabelRenderer:r,RightSlot:a},o));case n.oS0.TYPE_IMAGE:return l().createElement("div",{className:m},l().createElement(i.Z,{attributeType:c,attributeValues:u,imageSize:{imageHeight:40,imageWidth:40,imageMargin:2}}));default:return d(s({},o))}}))},20982:(e,t,r)=>{r.d(t,{Z:()=>Ce});var n=r(24328),a=r.n(n),l=r(52730),o=r(71153),i=r.n(o),s=r(87918),c=r.n(s),u=r(49885),p=r(65503),d=r(74402),m=r(97946),b=r(60894),y=r(85709),f=r(92778),g=r(17440),v=r(92332),h=r(79692);const E=(0,h.Z)((e=>({coloredCell:{"&::before":{content:'""',position:"absolute",right:0,top:0,width:"100%",height:"100%",background:"rgba(0,0,0,0.06)",pointerEvents:"none"}},headCell:{display:"flex",alignItems:"center",fontSize:"12px",height:"100%",color:e.palette.text.secondary},rowCell:{fontSize:"13px",overflow:"hidden"},cellValueWrapper:{padding:"15px 15px 0 15px","&:last-child":{paddingBottom:"15px"}},attributeTitle:{display:"block",marginLeft:"3px","&:not(:last-child)":{marginBottom:"5px"}},ovValue:{"& + &":{marginTop:"4px"}},count:{textAlign:"center"},ruleType:{display:"flex",alignItems:"center"},ruleTypeLabel:{marginRight:"5px"},rulePopup:{width:"270px",overflowY:"hidden"},popupItem:{paddingBottom:"5px",paddingTop:"5px"},sourceIcon:{height:"16px",width:"16px",marginRight:"9px",fontSize:"14px"},closeButton:{height:24,width:24},popupTitle:{fontWeight:500,marginLeft:"12px"},popupTitleWrapper:{display:"flex",paddingLeft:16,paddingTop:16},popupItemsWrapper:{overflowY:"auto",maxHeight:"280px"},winnerSourceItemWrapper:{paddingBottom:"2px",paddingTop:"2px"},winnerSourceItem:{display:"flex",alignItems:"center",width:"100%",paddingLeft:"8px"},winnerSourceItemLabel:{fontSize:13}}))),w=e=>{const t=E();return a().createElement("div",{className:i()(t.headCell,t.coloredCell)},a().createElement(v.default,e),e.children)};var x=r(90473),O=r(32528);const k=(0,h.Z)({root:{marginBottom:"-6px"}}),T=(0,O.Z)((0,g.pick)(["parentUri","parentTypeUri","onAdd","selectedAttributeTypes","onSelectAttributeTypes"]))((e=>{let{parentTypeUri:t,parentUri:r,selectedAttributeTypes:n,onSelectAttributeTypes:o,onAdd:i}=e;const s=k(),d=(0,l.useSelector)(u.ZP.selectors.getMetadata),m=[...d.entityTypes,...d.relationTypes||[]].find((0,g.propEq)("uri",t)),b=e=>!(null!=n&&n.find((0,g.propEq)("uri",e.uri))),y=(0,g.pipe)((0,g.propOr)([],"attributes"),(0,g.reject)((0,g.either)(p.YkG,p.Or$)),(0,g.filter)((0,g.either)(p.QZu,b)),(0,g.filter)((0,g.both)(p.Uty,(e=>(0,p.Vg3)({attributeType:e,mode:p.fO_.EDITING})))))(m);return a().createElement("div",{className:s.root},a().createElement(x.Z,{label:c().text("Attribute"),popupTitle:c().text("Add attributes"),data:y,onApply:e=>{const t=e.filter(b);t.length>0&&o([...t,...n]),e.filter(p.QZu).forEach((e=>{i({attributeType:e,parentUri:r})}))}}))}));var C=r(51229);const S=(0,O.Z)((0,g.pick)(["readOnly"]))((e=>{let{readOnly:t}=e,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["readOnly"]);return t?a().createElement(w,r):a().createElement(w,r,a().createElement(C.Z,null),a().createElement(T,null))})),I=e=>{let{value:t}=e;const r=E();return a().createElement("div",{className:r.cellValueWrapper},t)};var A=r(4073);const j=(0,h.Z)((()=>({simpleAttributeWrapper:{padding:"15px"},complexAttributeWrapper:{padding:"15px","& + &":{borderTop:"1px solid rgba(0,0,0,.1)"}}})));function Z(){return Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Z.apply(this,arguments)}const N=e=>{let{attributeValues:t}=e,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValues"]);const n=j();return a().createElement("div",{className:n.simpleAttributeWrapper},a().createElement(A.Z,Z({attributeValues:t},r)))};var P=r(58896);function D(){return D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},D.apply(this,arguments)}const V=e=>{let{attributeValues:t}=e,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValues"]);const n=j(),l=null==t?void 0:t.map(((e,t)=>a().createElement("div",{key:null==e?void 0:e.uri,className:n.complexAttributeWrapper,"data-reltio-id":`value-index-${t}`},a().createElement(P.Z,D({attributeValue:e},r)))));return a().createElement(a().Fragment,null,l)};var R=r(85592);function M(){return M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},M.apply(this,arguments)}const U=e=>{let{attributeValues:t,crosswalksMap:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValues","crosswalksMap"]);const l=j(),o=null==t?void 0:t.map(((e,t)=>a().createElement("div",{key:null==e?void 0:e.uri,className:l.complexAttributeWrapper,"data-reltio-id":`value-index-${t}`},a().createElement(R.Z,M({attributeValue:e,crosswalksMap:r},n)))));return a().createElement(a().Fragment,null,o)};var L=r(22246);function W(){return W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},W.apply(this,arguments)}const B=e=>{let{attributeValues:t}=e,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValues"]);const n=j();return a().createElement(a().Fragment,null,null==t?void 0:t.map(((e,t)=>a().createElement("div",{key:null==e?void 0:e.uri,className:n.complexAttributeWrapper,"data-reltio-id":`value-index-${t}`},a().createElement(L.Z,W({attributeValue:e},r))))))};function z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const F=(0,O.Z)((0,g.pick)(["onDelete","onPin","onIgnore","onEdit","onAdd","parentUri","readOnly"]))((e=>{let{value:t,onDelete:r,onEdit:n,onPin:l,onIgnore:o,onAdd:i,parentUri:s,readOnly:c}=e;return class{static build(e,t){switch(e){case p.oS0.TYPE_NESTED:return a().createElement(V,t);case p.oS0.TYPE_REFERENCE:return a().createElement(U,t);case p.oS0.TYPE_IMAGE:return a().createElement(B,t);default:return a().createElement(N,t)}}}.build(t.attributeType.type,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){z(e,t,r[t])}))}return e}({},t,{parentUri:s,onDelete:r,onEdit:n,onPin:l,onIgnore:o,onAdd:i,disableEdit:c,disableDelete:c}))}));var H=r(95629),Y=r(87760);const G=e=>{let{value:{values:t,attributeType:r}}=e;const n=E();return a().createElement("div",{className:n.cellValueWrapper},a().createElement(H.Z,{className:n.attributeTitle,label:r.label}),a().createElement(Y.Z,{values:t,attributeType:r,valueContainerClassName:n.ovValue}))},_=e=>{let{value:t}=e;const r=E();return a().createElement("div",{className:i()(r.cellValueWrapper,r.count)},t)};var q=r(94079),X=r(87685),$=r(99144),Q=r(8818),J=r(94175);const K=e=>{let{sourcesUriOrder:t}=e;const r=E(),n=(0,l.useSelector)(u.ZP.selectors.getMetadata);return a().createElement(a().Fragment,null,t.map((e=>a().createElement(q.ListItem,{key:e,className:r.popupItem},a().createElement(J.Z,{className:r.sourceIcon,sourceType:e}),a().createElement(q.ListItemText,{primary:(0,p.tH7)(n,e),primaryTypographyProps:{variant:"body2"}})))))},ee=e=>{let{attributeUri:t}=e;const r=E(),n=(0,l.useSelector)(u.ZP.selectors.getMetadata),o=(0,p.zeJ)(n,t);return a().createElement(q.ListItem,{key:o.uri,className:r.popupItem},a().createElement(q.ListItemText,{primary:(0,p.idV)(o.label),primaryTypographyProps:{variant:"body2"}}))},te=(0,g.cond)([[(0,g.prop)("sourcesUriOrder"),()=>c().text("Source sequence")],[(0,g.prop)("primaryAttributeUri"),()=>c().text("Attribute winner")],[(0,g.prop)("comparisonAttributeUri"),()=>c().text("Comparison attribute")]]),re=(0,g.cond)([[(0,g.prop)("sourcesUriOrder"),e=>{let{sourcesUriOrder:t}=e;return a().createElement(K,{sourcesUriOrder:t})}],[(0,g.prop)("primaryAttributeUri"),e=>{let{primaryAttributeUri:t}=e;return a().createElement(ee,{attributeUri:t})}],[(0,g.prop)("comparisonAttributeUri"),e=>{let{comparisonAttributeUri:t}=e;return a().createElement(ee,{attributeUri:t})}]]),ne=e=>{let{info:t}=e;const r=E(),[l,o]=(0,n.useState)(null),i=()=>o(null);return a().createElement(a().Fragment,null,a().createElement(Q.k,{icon:$.Z,tooltipTitle:c().text("View details"),size:"XS",onClick:e=>o(e.currentTarget)}),a().createElement(q.Popover,{classes:{paper:r.rulePopup},open:!!l,anchorEl:l,onClose:i,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},a().createElement("div",{className:r.popupTitleWrapper},a().createElement(q.IconButton,{className:r.closeButton,onClick:i},a().createElement(X.default,null)),a().createElement(q.Typography,{variant:"subtitle1",className:r.popupTitle},te(t))),a().createElement(q.List,{component:"div",className:r.popupItemsWrapper},re(t))))},ae=e=>{let{value:{ruleType:t,sourcesUriOrder:r,primaryAttributeUri:n,comparisonAttributeUri:l}}=e;const o=E(),s=r||n||l;return a().createElement("div",{className:i()(o.cellValueWrapper,o.ruleType)},a().createElement("div",{className:o.ruleTypeLabel},t.label),s&&a().createElement(ne,{info:{sourcesUriOrder:r,primaryAttributeUri:n,comparisonAttributeUri:l}}))};var le=r(63149),oe=r(40625);const ie=e=>{let{crosswalk:t}=e;const r=E(),n=(0,l.useSelector)(u.ZP.selectors.getMetadata),{isDimmed:o,highlightCrosswalk:i,removeHighlight:s}=(0,le.pu)(t);return a().createElement(oe.Z,{className:r.winnerSourceItem,color:o?"rgba(0, 0, 0, 0.12)":(0,p.CJp)((0,p.uKF)(t)),opacity:o?.38:1,onMouseEnter:()=>i(),onMouseLeave:()=>s()},a().createElement(J.Z,{className:r.sourceIcon,sourceType:t.type}),a().createElement(q.ListItemText,{primary:(0,p.tH7)(n,t.type),primaryTypographyProps:{variant:"body2"},classes:{primary:r.winnerSourceItemLabel}}))},se=e=>{let{value:{crosswalks:t}}=e;const r=E();return a().createElement(q.List,{component:"div"},t.map((e=>a().createElement(q.ListItem,{key:e.uri,className:r.winnerSourceItemWrapper},a().createElement(ie,{crosswalk:e})))))},ce=[{id:"ovValues",get label(){return c().text("Attributes & OV")},hideable:!1,initialWidth:360,minWidth:250},{id:"winnerSources",get label(){return c().text("Winner source systems")},initialWidth:220},{id:"ruleType",get label(){return c().text("Rule type")},initialWidth:200},{id:"count",get label(){return c().text("Count")},initialWidth:80,minWidth:80},{id:"values",get label(){return c().text("Attribute values")},hideable:!1}],ue=e=>(0,p.OXP)(e)&&!(0,p.ZiX)(e.uri),pe=["ovValues","ruleType","values"],de=e=>{switch(e){case"ovValues":return G;case"values":return F;case"count":return _;case"ruleType":return ae;case"winnerSources":return se;default:return I}},me=(0,g.pipe)(p.cwx,(0,g.sortWith)([(0,g.descend)((0,g.propOr)(-1,"priority"))]),(0,g.map)((0,g.prop)("uri"))),be=(0,g.curry)(((e,t)=>(0,p.YkG)(e)&&t&&(0,g.pipe)(p.c31,(0,g.find)((r=>r.slice((0,p.u5q)(r).length)===t.slice(e.uri.length))))(e)||t)),ye=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return(0,g.pipe)((0,g.filter)(ue),(0,g.chain)((e=>(0,g.pipe)((0,g.pickBy)(((t,r)=>{const n=(0,p.sOy)(r,e.uri),a=n?r.slice(e.uri.length+1):"",l=a&&(0,p.IM5)(e.value,a);return n&&(!l||ue(l))})),g.values,g.flatten)(t))),(0,g.uniqBy)((0,g.prop)("uri")))(e)},fe=(0,g.map)((e=>{let{id:t,label:r,initialWidth:n,minWidth:a}=e;return{id:t,label:r,initialWidth:n,minWidth:a,autoResize:!n,resizable:!0,sortable:!1,headCellRenderer:"ovValues"===t?S:w,rowCellValueRenderer:de(t)}})),ge=(e,t,r,n,a,l,o)=>{switch(e){case"ovValues":return{attributeType:n,values:null==l?void 0:l.filter(ue)};case"values":return{attributeType:n,attributeValues:l,crosswalksMap:a};case"count":return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;switch(e){case p.oS0.TYPE_REFERENCE:case p.oS0.TYPE_NESTED:case p.oS0.TYPE_IMAGE:return t.length;default:return t.reduce(((e,t)=>e+r[t.uri].length),0)}}(n.type,l,a);case"ruleType":return((e,t,r,n)=>{var a,l;const o=[...e.entityTypes,...e.relationTypes||[]].find((0,g.propEq)("uri",r)),i=null!==(a=null==o?void 0:o.survivorshipGroups)&&void 0!==a?a:[],s=n&&i.find((0,g.propEq)("uri",n))||i.find((0,g.propEq)("default",!0)),c=null==s||null===(l=s.mapping)||void 0===l?void 0:l.find((0,g.propEq)("attribute",t.uri)),u=(0,p.o_J)(e,null==c?void 0:c.survivorshipStrategy)||(0,p.Xaq)(e),d=(e=>"configuration/survivorshipStrategies/SRC_SYS"===(null==e?void 0:e.uri))(u)?(0,g.uniq)([...(null==c?void 0:c.sourcesUriOrder)||[],...(null==s?void 0:s.sourcesUriOrder)||[],...me(e)]):void 0,m=be(t),b=(e=>"configuration/survivorshipStrategies/OtherAttributeWinnerCrosswalk"===(null==e?void 0:e.uri))(u)?m(null==c?void 0:c.primaryAttributeUri):void 0,y=(0,p.YkM)(t)&&(e=>"configuration/survivorshipStrategies/MinValue"===(null==e?void 0:e.uri)||"configuration/survivorshipStrategies/MaxValue"===(null==e?void 0:e.uri))(u)?m(null==c?void 0:c.comparisonAttributeUri):void 0;return{ruleType:u,sourcesUriOrder:d,primaryAttributeUri:b,comparisonAttributeUri:y}})(t,n,r,o);case"winnerSources":return{crosswalks:ye(l,a)};default:return null}};function ve(){return ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ve.apply(this,arguments)}const he=e=>{let{cell:t,CellValueRenderer:r,columnIndex:n,columnData:l}=e,o=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["cell","CellValueRenderer","columnIndex","columnData"]);const s=E(),c=0===n;return a().createElement("div",{className:i()(s.rowCell,c&&s.coloredCell),"data-reltio-id":`column-name-${l.id}`},t.values.map(((e,t)=>a().createElement(r,ve({key:t,value:e},o)))))};var Ee=r(99136),we=r(85209),xe=r(31276);const Oe=e=>{let{open:t,onClose:r,onConfirmEditWithoutIgnore:l,onConfirmEditWithIgnore:o}=e;const[i,s]=(0,n.useState)("without");return a().createElement(q.Dialog,{open:t,onEnter:()=>s("without")},a().createElement(q.DialogContent,null,a().createElement(q.DialogContentText,null,c().text("You are attempting to change a value that is presently ignored.")),a().createElement(q.FormControl,{component:"fieldset"},a().createElement(q.FormLabel,{component:"legend"},c().text("Please choose an option:")),a().createElement(q.RadioGroup,{value:i,onChange:(0,g.pipe)(xe.NA,s)},a().createElement(q.FormControlLabel,{value:"without",control:a().createElement(q.Radio,null),label:c().text("Save without Ignore")}),a().createElement(q.FormControlLabel,{value:"with",control:a().createElement(q.Radio,null),label:c().text("Save and apply Ignore to new value")})))),a().createElement(q.DialogActions,null,a().createElement(q.Button,{onClick:r,color:"primary"},c().text("Cancel")),a().createElement(q.Button,{onClick:()=>{"with"===i?o():l(),r()},color:"primary"},c().text("Ok"))))},ke=(0,h.Z)({tableContainer:{height:"100%",overflow:"hidden",display:"flex",flexDirection:"column"},tableHeader:{display:"flex",flexDirection:"row"},tableTitle:{marginRight:"auto"},tableContent:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",position:"relative"}});function Te(){return Te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Te.apply(this,arguments)}const Ce=(0,n.memo)((e=>{let{entity:t,isLoading:r,crosswalksMap:o,visibleColumns:s=pe,onChangeVisibleColumns:v,readOnly:h,onDelete:E=xe.ZT,onPin:w=xe.ZT,onIgnore:x=xe.ZT,onEdit:O=xe.ZT,onAdd:k=xe.ZT,selectedAttributeTypes:T,onSelectAttributeTypes:C=xe.ZT,additionalHeaderItems:S,className:I,activeSurvivorshipGroupUri:A}=e;const j=ke(),Z=(0,n.useMemo)((()=>(0,g.pipe)((0,g.filter)((e=>{let{id:t}=e;return s.includes(t)})),fe)(ce)),[s]),{type:N,uri:P,attributes:D={}}=t||{},V=(0,l.useSelector)(u.ZP.selectors.getMetadata);(0,n.useEffect)((()=>{if(t&&(0,g.isNil)(T)){const e=(0,g.pipe)(g.keys,(0,g.without)(["paging"]),(0,g.map)((0,p.tCm)(N)),(0,g.map)((e=>(0,p.zeJ)(V,e,N))),(0,g.filter)((0,g.both)(g.identity,p.Uty)))(D);C(e)}}),[t,T]);const R=(0,n.useMemo)((()=>N?function(e,t){let r=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).map((o=>{const i=(0,p.nIW)(o.uri),s=a[i],c=(0,p.YkG)(o)?n.relation:n.entity;return(0,g.pipe)((0,g.reduce)(((r,n)=>(0,g.assoc)(n,ge(n,e,t,o,c,s,l),r)),{}),(0,g.assoc)("rawValue",s))(r)}))}(V,N,T,s,o,D,A):[]),[V,N,T,s,D,o,A]),{getDynamicRowCellHeight:M,changeRowCellHeight:U}=(0,d.Z)(),L=(0,n.useCallback)((e=>a().createElement(m.Z,Te({onChangeHeight:U},e),a().createElement(he,e))),[U]),W=(0,n.useCallback)((0,g.either)(M,(0,g.always)(68)),[M]),[B,z]=(0,n.useState)(null),[F,H]=(0,n.useState)(null),Y=(0,n.useCallback)((e=>{e.attributeValue.ignored?H(e):O(e)}),[O,H]),G=(0,n.useMemo)((()=>({onDelete:z,onPin:w,onIgnore:x,onEdit:Y,onAdd:k,parentUri:P,parentTypeUri:N,selectedAttributeTypes:T,onSelectAttributeTypes:C,readOnly:h})),[z,w,x,Y,k,P,N,T,C,h]);return a().createElement("div",{className:i()(j.tableContainer,I)},a().createElement(f.Z,{classes:{root:j.tableHeader,title:j.tableTitle},title:c().text("Sources")},S,a().createElement(b.Z,{columnsData:ce,selectedColumns:s,onChangeColumns:v})),a().createElement("div",{className:j.tableContent},r&&a().createElement(Ee.Z,null),a().createElement(y.Z,{fixFirstColumn:!0,headRowHeight:48,defaultColumnWidth:250,defaultColumnMinWidth:200,columnsData:Z,rowsData:R,renderRowCell:L,getRowCellHeight:W,context:G})),a().createElement(we.Z,{open:!!B,onClose:()=>z(null),onConfirm:()=>E(B)}),a().createElement(Oe,{open:!!F,onClose:()=>H(null),onConfirmEditWithIgnore:()=>O(F),onConfirmEditWithoutIgnore:()=>{x({attributeValue:F.attributeValue}),O(F)}}))}))},40625:(e,t,r)=>{r.d(t,{Z:()=>b});var n=r(24328),a=r.n(n),l=r(87918),o=r.n(l),i=r(71153),s=r.n(i),c=r(71519),u=r(94079);function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const d=(0,r(79692).Z)({item:e=>{let{color:t,opacity:r,variant:n}=e;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){p(e,t,r[t])}))}return e}({},"standart"===n&&{backgroundColor:t,paddingRight:"29px"},"disabled"===n&&{border:`${t} solid 2px`},{opacity:r,filter:r&&1!==r?"saturate(20%)":null,transition:"opacity 0.3s",boxSizing:"border-box"})},endDatedCrosswalkIcon:{margin:"0 4px",width:"20px",height:"20px",color:"#ff1744"}});function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}const b=(0,n.forwardRef)(((e,t)=>{let{color:r,opacity:n,variant:l="standart",children:i,className:p}=e,b=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["color","opacity","variant","children","className"]);const y=d({color:r,opacity:n,variant:l});return a().createElement("div",m({ref:t,"data-reltio-id":"cw-colored-block",className:s()(y.item,p)},b),i,"disabled"===l&&a().createElement(u.Tooltip,{title:o().text("End-dated crosswalk")},a().createElement(c.Z,{className:y.endDatedCrosswalkIcon})))}))},61305:(e,t,r)=>{r.d(t,{Z:()=>P});var n=r(24328),a=r.n(n),l=r(52730),o=r(85209),i=r(90473),s=r(31517),c=r(8818),u=r(94175),p=r(81174),d=r(94079),m=r(22983),b=r(65503),y=r(17440),f=r(87918),g=r.n(f),v=r(49885),h=r(22385);function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},E.apply(this,arguments)}const w=e=>a().createElement("svg",E({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),a().createElement("defs",null,a().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.444zM20 8H8v12h12V8zM4 18H2V4c0-1.1.9-2 2-2h14v2H4v14z",id:"Copy_svg__a"})),a().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},a().createElement("mask",{id:"Copy_svg__b",fill:"#fff"},a().createElement("use",{xlinkHref:"#Copy_svg__a"})),a().createElement("path",{fillOpacity:.54,fill:"#000",mask:"url(#Copy_svg__b)",d:"M0 0h24v24H0z"})));var x=r(79692);const O=(0,x.Z)((()=>({root:{display:"flex",justifyContent:"space-between",alignItems:"center",overflowWrap:"anywhere"},text:{fontSize:13},button:{flexShrink:0,marginLeft:8,padding:0,textTransform:"none"}}))),k=e=>{let{value:t}=e;const r=O();return a().createElement("div",{className:r.root},a().createElement(d.Typography,{className:r.text,variant:"body2"},t),a().createElement(h.Z,{size:"XXS",icon:w,color:"primary",className:r.button,onClick:()=>navigator.clipboard.writeText(t)}))};var T=r(71153),C=r.n(T),S=r(43305);const I=(0,x.Z)((()=>({timestampEditorInput:{paddingTop:15,paddingBottom:15,fontSize:13},timestampEditor:{height:38}}))),A=e=>{let{value:t,classes:r={},disabled:l=!1,onChange:o}=e;const i=I(),[s,c]=(0,n.useState)(!1),u=e=>o(null==e?void 0:e.valueOf());return a().createElement(S.Z,{variant:"filled",value:t||null,disabled:l,onChange:(0,y.unless)((0,y.always)(s),u),onAccept:u,onOpen:()=>c(!0),onClose:()=>c(!1),InputProps:{disableUnderline:!0,classes:{input:i.timestampEditorInput,root:C()(i.timestampEditor,r.root)}}})};var j=r(95038),Z=r.n(j);const N=(0,x.Z)((e=>({text:{fontSize:13},attributeWrapper:{display:"flex",alignItems:"center",paddingTop:5,paddingBottom:5,marginLeft:12},attributeTitle:{fontSize:13,width:135,color:e.palette.text.secondary},attributeValue:{paddingLeft:10,display:"flex",alignItems:"center",flexGrow:1},input:{paddingTop:14,paddingBottom:14,fontSize:13},editor:{flexGrow:1},moreButton:{marginLeft:24},sourceIcon:{height:"16px",width:"16px",marginRight:"9px",fontSize:"14px"}}))),P=e=>{let{crosswalk:t,canEditAttribute:r=!0,onEditAttribute:f,onDeleteAttribute:h}=e;const E=N(),w=!("uri"in t),x=(0,l.useSelector)(v.ZP.selectors.getMetadata),[O,T]=(0,n.useState)([]),[C,S]=(0,n.useState)(null),I=(0,n.useMemo)((()=>[{label:b.G39.sourceSystems.label,uri:"type"},{label:b.G39.value.label,uri:"value"},{label:b.G39.sourceTable.label,uri:"sourceTable",canBeAdded:w,canBeDeleted:w},{label:b.G39.createDate.label,uri:"createDate"},{label:b.G39.updateDate.label,uri:"updateDate"},{label:b.G39.deleteDate.label,uri:"deleteDate",canBeAdded:!0,canBeDeleted:!0},{label:b.G39.reltioLoadDate.label,uri:"reltioLoadDate"},{label:b.G39.publishDate.label,uri:"sourcePublishDate"}]),[]),j=(0,y.pipe)((0,y.filter)((0,y.propEq)("canBeAdded",!0)),(0,y.filter)((e=>!(0,y.has)(e.uri,t))),(0,y.filter)((e=>!O.includes(e.uri))))(I);return a().createElement(a().Fragment,null,j.length>0&&r&&a().createElement(i.Z,{label:g().text("Add attributes"),onApply:e=>{e.length>0&&T((t=>t.concat((0,y.map)((0,y.prop)("uri"),e))))},data:j}),I.map((e=>e.uri in t||O.includes(e.uri)?a().createElement("div",{key:e.uri,className:E.attributeWrapper},a().createElement(d.Typography,{variant:"body2",className:E.attributeTitle},`${e.label}:`),a().createElement("div",{className:E.attributeValue},((e,t)=>{switch(e){case"type":{const r=(0,b.tH7)(x,t);return w?a().createElement(s.Z,{label:"",placeholder:t,className:E.editor,value:{value:t,label:r},options:(0,b.cwx)(x).sort((0,y.ascend)((0,y.prop)("label"))).map((e=>{let{uri:t,label:r}=e;return{value:t,label:r}})),onChange:t=>{let{value:r}=t;return f(e,r)},TextFieldProps:{InputProps:{disableUnderline:!0}}}):a().createElement(a().Fragment,null,a().createElement(u.Z,{className:E.sourceIcon,sourceType:t}),a().createElement(d.Typography,{className:E.text,variant:"body2"},r))}case"sourceTable":return w?a().createElement(p.Z,{multiple:!1,multiline:!1,getValueLabel:void 0,classes:{root:E.editor},required:!0,variant:"filled",value:t,onInput:t=>f(e,t.target.value),margin:"dense",InputProps:{disableUnderline:!0,classes:{input:E.input}}}):a().createElement(d.Typography,{className:E.text,variant:"body2"},t);case"value":return w?a().createElement(p.Z,{multiple:!1,multiline:!1,getValueLabel:void 0,classes:{root:E.editor},required:!0,variant:"filled",value:t,onInput:t=>f(e,t.target.value),margin:"dense",InputProps:{disableUnderline:!0,classes:{input:E.input}}}):a().createElement(k,{value:t});case"deleteDate":return a().createElement(A,{value:t&&Z().utc((0,b.ZBU)(t)).valueOf(),onChange:t=>f(e,null==t?void 0:t.toString()),classes:{root:E.editor},disabled:!r});case"sourcePublishDate":case"createDate":case"updateDate":case"reltioLoadDate":return a().createElement(d.Typography,{className:E.text,variant:"body2"},(0,b.o0x)(t));default:return null}})(e.uri,t[e.uri]),e.canBeDeleted&&a().createElement(c.k,{icon:m.Z,disabled:!r,onClick:()=>S(e.uri),size:"XS",tooltipTitle:g().text("Delete attribute"),showForDisabled:!0}))):null)),a().createElement(o.Z,{open:!!C,onClose:()=>S(null),onConfirm:()=>{return e=C,T((t=>(0,y.without)([e],t))),void((0,y.isNil)(t[e])||h(e));var e}}))}},48017:(e,t,r)=>{r.d(t,{Z:()=>y});var n=r(24328),a=r.n(n),l=r(13896),o=r(52730),i=r(65503),s=r(40625),c=r(63149),u=r(94175),p=r(94079),d=r(49885);const m=(0,r(79692).Z)({dragLayer:{position:"fixed",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",zIndex:1300,pointerEvents:"none"},crosswalkPreview:{height:"28px",maxWidth:"394px",display:"flex",overflow:"hidden",padding:"6px",alignItems:"center",boxSizing:"border-box"},sourceLabel:{fontSize:"13px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},sourceIcon:{width:"16px",height:"16px",marginRight:"9px"}}),b=e=>{let{crosswalk:t}=e;const r=m(),n=(0,c.nX)(t),l=(0,o.useSelector)(d.ZP.selectors.getMetadata),b=(0,i.tH7)(l,t.type);return a().createElement(s.Z,{color:n,className:r.crosswalkPreview},a().createElement(u.Z,{className:r.sourceIcon,sourceType:t.type}),a().createElement(p.Typography,{className:r.sourceLabel,variant:"body2"},b))},y=(0,n.memo)((()=>{var e;const t=m(),{isDragging:r,clientOffset:o,item:i}=(0,l.useDragLayer)((e=>({isDragging:e.isDragging(),clientOffset:e.getClientOffset(),item:e.getItem()}))),s=(0,n.useRef)(),c=(null===(e=s.current)||void 0===e?void 0:e.getBoundingClientRect())||{x:0,y:0},u=`translate(${(null==o?void 0:o.x)-(null==c?void 0:c.x)}px, ${(null==o?void 0:o.y)-(null==c?void 0:c.y)}px`;return r&&a().createElement("div",{ref:s,className:t.dragLayer},a().createElement("div",{style:{display:"flex",transform:u,WebkitTransform:u}},"Crosswalk"===i.type&&a().createElement(b,{crosswalk:i.crosswalk})))}))},79769:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24328),a=r.n(n),l=r(87918),o=r.n(l),i=r(94079),s=r(61305),c=r(17440);const u=(0,r(79692).Z)({caption:{paddingLeft:15,paddingTop:16,paddingBottom:8},controlButtons:{display:"flex",justifyContent:"flex-end",paddingBottom:10,paddingTop:20},cancelButton:{marginRight:20}}),p=e=>{let{className:t,onAdd:r,onClose:l}=e;const p=u(),[d,m]=(0,n.useState)({type:"",value:""});return a().createElement("div",{className:t},a().createElement(i.Typography,{variant:"body1",className:p.caption},o().text("Add crosswalk")),a().createElement(s.Z,{crosswalk:d,onDeleteAttribute:e=>{m((0,c.dissoc)(e))},onEditAttribute:(e,t)=>{m((0,c.assoc)(e,t))}}),a().createElement("div",{className:p.controlButtons},a().createElement(i.Button,{className:p.cancelButton,onClick:l},o().text("Cancel")),a().createElement(i.Button,{color:"primary",onClick:()=>{r(d),l()},disabled:!d.type||!d.value},o().text("Add"))))}},52017:(e,t,r)=>{r.d(t,{Z:()=>D});var n=r(24328),a=r.n(n),l=r(63149),o=r(77243),i=r(65503),s=r(52730),c=r(94079),u=r(72753),p=r(94175),d=r(22385),m=r(49885),b=r(79692);const y=(0,b.Z)((()=>({root:e=>{let{isOpaque:t}=e;return{display:"flex",opacity:t?1:.38,transition:"opacity 0.3s"}},wrapper:e=>{let{isOpaque:t}=e;return{width:"100%",display:"flex",alignItems:"center",height:28,filter:t?null:"saturate(0%)",backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDcvMjYvMTMEw7WpAAAAeElEQVQ4ja3VuwrAIBBE0aup0uX/v9ImCCGSdIL4WF136+EwxcC6+3k/hAsxSREArvPAW2LAGFzFhqAG64JarAnuYBW4ixWgBZZBKwzAW2Ig7HAVCzHJ4AoGQsNVbAhqsC6oxZrgDlaBu1gBWmAZtMIA3MwLmMUAfmyqQ9/LD+oDAAAAAElFTkSuQmCC)"}},focusedIcon:{width:28,height:28,backgroundColor:"rgba(0, 0, 0, 0.12)",borderRadius:0,borderRight:"1px solid #fff"},sourceIcon:{height:"16px",width:"16px",marginLeft:"16px",marginRight:"9px",fontSize:"14px"}}))),f=(0,n.memo)((e=>{let{crosswalkType:t,focusable:r=!0}=e;const{isDimmed:n}=(0,l.pu)(),o=y({isOpaque:!n}),b=(0,s.useSelector)(m.ZP.selectors.getMetadata),f=(0,i.tH7)(b,t);return a().createElement("div",{className:o.root},a().createElement(d.Z,{size:"XXS",className:o.focusedIcon,icon:r&&u.Z,disabled:!0}),a().createElement("div",{className:o.wrapper},a().createElement(p.Z,{className:o.sourceIcon,sourceType:t}),a().createElement(c.Typography,{variant:"body2"},f)))}));var g=r(87918),v=r.n(g),h=r(22983),E=r(19592),w=r(95613),x=r(40625),O=r(85209),k=r(8818),T=r(51229),C=r(71543),S=r(13896),I=r(42484),A=r(61305);const j=(0,b.Z)({root:e=>{let{isOpaque:t}=e;return{display:"flex",opacity:t?1:.19,transition:"opacity 0.3s"}},header:{width:"100%",display:"flex",alignItems:"center",height:"28px"},focusedIcon:e=>{let{isFocused:t}=e;return{width:"26px","&:not([disabled])":{border:"1px solid rgba(0, 0, 0, 0.12)"},height:"28px",color:t?"#000":"rgba(0, 0, 0, 0.54)",borderRadius:0,margin:"0px 1px"}},crosswalkWrapper:{width:"100%",overflow:"hidden"},sourceIcon:{height:"16px",width:"16px",marginRight:"9px",fontSize:"14px"},attributesWrapper:e=>{let{color:t}=e;return{border:"1px solid",borderColor:t,position:"relative"}},deleteCrosswalkButton:{position:"absolute",top:5,right:5},labelValue:{marginLeft:5},dependentIcon:{width:"16px",height:"16px",fillOpacity:.38}}),Z=(0,n.memo)((e=>{let{crosswalk:t,isDependent:r,isEmpty:o=!1,isColored:d=!0,focusable:b=!0,disableEdit:y,disableDelete:f,onDelete:g,onEdit:Z}=e;const N=(0,n.useRef)(null),P=(0,l.nX)(t),{toggleCrosswalkFocus:D,isFocused:V}=(0,l.BF)(t),{isDimmed:R,highlightCrosswalk:M,removeHighlight:U}=(0,l.pu)(t),L=o?"#FFF":d?R?"rgba(0, 0, 0, 0.12)":P:"#CACCD1",[W]=(0,l.RT)(),B=j({color:L,isOpaque:!R,isFocused:V}),[z,F]=(0,n.useState)(!1),[H,Y]=(0,n.useState)(!1),G=(0,s.useSelector)(m.ZP.selectors.getMetadata),_=(0,i.tH7)(G,t.type),q=(0,i.nIW)(t.uri),X=(0,i.x_)(t),[,$,Q]=(0,S.useDrag)({item:{type:"Crosswalk",crosswalk:t},canDrag:!X}),J=!X&&"relation"!==t.ownerType;return(0,n.useEffect)((()=>{Q((0,I.r)(),{captureDraggingState:!0})}),[]),(0,n.useEffect)((()=>{var e;b&&W&&(0,i.aFF)(W,t)&&W!==t&&(null==N||null===(e=N.current)||void 0===e||e.scrollIntoView({behavior:"smooth"}))}),[W]),a().createElement("div",{className:B.root,ref:N},a().createElement(k.k,{size:"XXS",className:B.focusedIcon,icon:b&&u.Z,onClick:()=>D(),disabled:!b,tooltipTitle:b&&v().text("Focus")}),a().createElement("div",{className:B.crosswalkWrapper},a().createElement(x.Z,{ref:$,className:B.header,color:L,variant:X?"disabled":"standart",onMouseEnter:()=>M(),onMouseLeave:()=>U()},r&&a().createElement(C.Z,{className:B.dependentIcon}),a().createElement(E.Z,{onClick:()=>F((e=>!e)),expanded:z}),a().createElement(p.Z,{className:B.sourceIcon,sourceType:t.type}),a().createElement(w.Z,{value:_},a().createElement(c.Typography,{variant:"body2",noWrap:!0},_)),a().createElement(T.Z,null),a().createElement(w.Z,{value:t.value},a().createElement(c.Typography,{variant:"body2",className:B.labelValue,noWrap:!0},t.value))),z&&a().createElement("div",{className:B.attributesWrapper},J&&a().createElement("div",{className:B.deleteCrosswalkButton},a().createElement(k.k,{icon:h.Z,disabled:f,onClick:()=>Y(!0),size:"XS",tooltipTitle:f?v().text("You don't have permissions to delete"):v().text("Delete crosswalk"),showForDisabled:!0}),a().createElement(O.Z,{open:H,onConfirm:()=>{V&&D(),g(q)},onClose:()=>Y(!1)})),a().createElement(A.Z,{crosswalk:t,canEditAttribute:!y,onEditAttribute:(e,t)=>{Z({crosswalkId:q,attributeName:e,value:t})},onDeleteAttribute:e=>{Z({crosswalkId:q,attributeName:e})}}))))})),N=(0,b.Z)((()=>({root:{display:"flex",alignItems:"center",height:"28px",paddingLeft:"37px"}}))),P=e=>{let{showMore:t,onClick:r}=e;const n=N();return a().createElement(c.Link,{className:n.root,component:"button",variant:"caption",underline:"none",onClick:r},a().createElement("span",null,t?v().text("View dependent crosswalks"):v().text("Hide dependent crosswalks")))},D=e=>{let{source:t,crosswalksByTypes:r,showCrosswalkColors:s=!0,crosswalksFocusEnabled:c=!0,expanded:u,disableEditCrosswalk:p,disableDeleteCrosswalk:d,onEdit:m,onDelete:b,onToggleExpanded:y}=e;const g=(0,l.RT)();return(0,n.useEffect)((()=>{!u&&c&&r[o.Y.Dependent].some((e=>g.some((0,i.aFF)(e))))&&y()}),[g]),a().createElement(a().Fragment,null,0===r[o.Y.Simple].length&&0===r[o.Y.Empty].length&&a().createElement(f,{crosswalkType:t,focusable:c}),r[o.Y.Simple].map((e=>a().createElement(Z,{key:e.uri,crosswalk:e,focusable:c,disableEdit:p,disableDelete:d,onDelete:b,onEdit:m,isColored:s}))),r[o.Y.Empty].map((e=>a().createElement(Z,{key:e.uri,crosswalk:e,focusable:c,isEmpty:!0,disableEdit:p,disableDelete:d,onDelete:b,onEdit:m,isColored:s}))),u&&r[o.Y.Dependent].map((e=>a().createElement(Z,{key:e.uri,crosswalk:e,isDependent:!0,disableEdit:p,disableDelete:d,onDelete:b,onEdit:m,focusable:c,isColored:s}))),r[o.Y.Dependent].length>0&&a().createElement(P,{showMore:!u,onClick:()=>y()}))}},39417:(e,t,r)=>{r.d(t,{P:()=>i});var n=r(24328),a=r(17440),l=r(65503),o=r(31276);const i=e=>{let{onLoad:t=o.ZT,onSuccess:r=o.ZT,onError:i=o.ZT}=e;const s=(0,n.useCallback)((e=>{t(),e.then((e=>{let{errors:t}=e;if(t)throw t;r()})).catch(i)}),[t,i,r]);return{addCrosswalk:(0,n.useCallback)((e=>{let{entity:t,contributorCrosswalk:r,crosswalk:n}=e;const o=r?(0,l.psB)({entityTypeUri:t.type,contributorCrosswalkType:r.type,contributorCrosswalkValue:r.value,contributorCrosswalkSourceTable:r.sourceTable,crosswalkType:n.type,crosswalkValue:n.value,crosswalkSourceTable:n.sourceTable,crosswalkDeleteDate:n.deleteDate}):(0,l.kRE)({entityUri:t.uri,crosswalk:n});(0,a.pipe)((0,a.andThen)((e=>{let[t]=e;return t})),s)(o)}),[s]),editCrosswalk:(0,n.useCallback)((e=>{let{entityUri:t,crosswalkId:r,attributeName:n,value:o}=e;(0,a.pipe)((0,a.ifElse)((e=>{let{value:t}=e;return(0,a.isNil)(t)}),l.K$w,l.WVU),(0,a.andThen)((e=>{let[t]=e;return t})),s)({entityUri:t,crosswalkId:r,attributeName:n,value:o})}),[s]),deleteCrosswalk:(0,n.useCallback)((e=>{let{entityUri:t,crosswalkId:r}=e;(0,a.pipe)(l.Gmt,s)({entityUri:t,crosswalkId:r})}),[s])}}},85965:(e,t,r)=>{r.d(t,{Q:()=>u});var n=r(24328),a=r(65503),l=r(17440),o=r(31276);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){s(e,t,r[t])}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=[],u=e=>{let{entity:t,onLoad:r=o.ZT,onModify:s=o.ZT,onError:u=o.ZT}=e;const[p,d]=(0,n.useState)(null),[m,b]=(0,n.useState)(null),y=(0,n.useRef)([]),f=(0,n.useRef)(null),g=(0,n.useCallback)((()=>{f.current=null}),[]),[v,h]=(0,n.useState)(c),E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(((e,t)=>((0,a.sJj)(t).forEach((r=>{e[r]=[...e[r]||[],t]})),e)),{})};(0,n.useEffect)((()=>{const e={entity:E(null==t?void 0:t.crosswalks),relation:(0,l.pipe)(a.PUO,E)(t)};if((null==p?void 0:p.uri)===(null==t?void 0:t.uri)&&f.current){const{ownerType:t}=f.current,r=Object.keys(e[t]),n=Object.keys(m[t]);h((0,l.difference)(r,n))}else h(c);g(),d(t),b(e),y.current=[]}),[t]);const w=(0,n.useCallback)((0,l.pipe)(u,g),[u,g]),{deleteAttribute:x,ignoreAttribute:O,pinAttribute:k,createAttribute:T,updateAttribute:C}=(e=>{let{onSuccess:t=o.ZT,onError:r=o.ZT,onLoad:i=o.ZT}=e;const s=(0,n.useCallback)((e=>{i(),e.then((()=>{t()})).catch(r)}),[r,t,i]),c=(0,n.useCallback)((e=>e.then((e=>{if("error"in e)throw e.error;return e}))),[]);return{deleteAttribute:(0,n.useCallback)((e=>{let{attributeValue:t,attributeType:r,crosswalks:n}=e;const o=(0,a.YkG)(r)?(0,l.pipe)(a.o96,(0,l.prop)("objectURI"),a.VGk,c)(t):Promise.all((n||[]).map((e=>{let{type:r,value:n,sourceTable:l}=e;return c((0,a.xZs)({attributeUri:t.uri,sourceUri:r,crosswalkValue:n,crosswalkSourceTable:l}))})));s(o)}),[s,c]),pinAttribute:(0,n.useCallback)((e=>{let{attributeValue:t}=e;(0,l.pipe)(a.xkv,c,s)({attributeUri:t.uri,value:!t.pin})}),[s,c]),ignoreAttribute:(0,n.useCallback)((e=>{let{attributeValue:t}=e;(0,l.pipe)(a.P8_,c,s)({attributeUri:t.uri,value:!t.ignored})}),[s,c]),updateAttribute:(0,n.useCallback)((e=>{let{attributeValue:t,attributeType:r,crosswalk:n}=e;(0,a.YkM)(r)||(0,a.Or$)(r)||(0,l.pipe)(a.tCj,c,s)({attributeUri:t.uri,sourceUri:n.type,crosswalkValue:n.value,crosswalkSourceTable:n.sourceTable,value:(0,a.CwH)(r)?t.lookupCode:t.value})}),[s,c]),createAttribute:(0,n.useCallback)((e=>{let{attributeValue:t,crosswalk:r}=e;(0,l.pipe)(a.JV_,(0,l.andThen)((e=>{let[{errors:t}]=e;if(t)throw t})),s)({attributeUri:t.uri,sourceUri:r.type,crosswalkValue:r.value,crosswalkSourceTable:r.sourceTable,value:t.value})}),[s])}})({onLoad:r,onSuccess:s,onError:w}),S=(0,n.useCallback)((e=>{let{attributeType:t,parentUri:r,crosswalk:n,index:o}=e;const s=(0,a.gjI)({parentUri:r,attributeType:t}),{uri:c}=s;if(n){const{ownerType:e}=n;b((t=>i({},t,{[e]:i({},t[e],{[c]:[n]})})))}d((e=>{var n;return(0,l.isNil)(o)&&(o=null===(n=(0,a.JQy)(e,r,t.name))||void 0===n?void 0:n.length),(0,a.wLZ)({entity:e,attributeType:t,newAttribute:s,index:o})})),y.current.some((e=>(0,a.sOy)(c,e)))||y.current.push(c)}),[]),I=(0,n.useCallback)((e=>{const{attributeValue:{uri:t},attributeType:r}=e;(0,a.ZiX)(t)?(d((e=>(0,a.d$I)({entity:e,attributeType:r,uri:t}))),b((0,l.evolve)({entity:(0,l.dissoc)(t),relation:(0,l.dissoc)(t)})),y.current=(0,l.without)([t],y.current)):x(e)}),[x]),A=(0,n.useCallback)((e=>{if((0,a.ZiX)(e.attributeValue.uri)){const{attributeValue:t,attributeType:r,crosswalk:n}=e;if(!(0,l.isNil)(t.value)){const{uri:e}=t,l=y.current.find((t=>(0,a.sOy)(e,t))),o=(0,a.ww$)({entity:p,attributeType:r,uri:e,value:(0,a.kDl)(t)});T({attributeValue:(0,a.dLR)(o,l),crosswalk:n}),f.current=n}}else C(e)}),[T,C,p]);return{modifiedEntity:p,crosswalksMap:m,onAddAttribute:S,onDeleteAttribute:I,onPinAttribute:k,onIgnoreAttribute:O,onEditAttribute:A,newlyCreatedAttributes:v}}},77243:(e,t,r)=>{let n;r.d(t,{Y:()=>n}),function(e){e.Simple="simple",e.Empty="empty",e.Dependent="dependent"}(n||(n={}))},90186:(e,t,r)=>{r.d(t,{o:()=>s});var n=r(65503),a=r(17440),l=r(77243);const o=e=>e[l.Y.Simple].length>0?1:e[l.Y.Dependent].length>0?e[l.Y.Empty].length>0?2:3:4,i=(0,a.evolve)({[l.Y.Dependent]:(0,a.sort)(((e,t)=>{const r=e.sourceTable||"",n=t.sourceTable||"";return r===n?0:r?n?r<n?-1:1:-1:1}))}),s=(0,a.curry)(((e,t,r)=>{const s=(r||[]).reduce(((r,o)=>(r[o.type]||(r[o.type]={[l.Y.Simple]:[],[l.Y.Empty]:[],[l.Y.Dependent]:[]}),"relation"===o.ownerType?r[o.type][l.Y.Dependent].push(o):((e,t,r)=>0===(0,n.sJj)(r).filter((r=>{const l=(0,n.AFK)(r,e);return t.some((0,a.propEq)("uri",l))})).length)(e,t,o)?r[o.type][l.Y.Empty].push(o):((e,t,r)=>!(0,n.sJj)(r).some((r=>{const l=(0,n.AFK)(r,e),o=t.find((0,a.propEq)("uri",l));return o&&!(0,n.YkM)(o)})))(e,t,o)?r[o.type][l.Y.Dependent].push(o):r[o.type][l.Y.Simple].push(o),r)),{});return Object.keys(s).sort(((e,t)=>o(s[e])-o(s[t])||(e<t?-1:1))).map((e=>({source:e,crosswalksByTypes:i(s[e])})))}))},66095:(e,t,r)=>{r.d(t,{R:()=>i,Q:()=>s});var n=r(24328),a=r.n(n),l=r(65503);const o=(0,n.createContext)(null),i=e=>{let{children:t,attributeUris:r}=e;return a().createElement(o.Provider,{value:r},t)},s=e=>((0,n.useContext)(o)||[]).some((t=>(0,l.sOy)(t,e)))}}]);
|
|
2
2
|
//# sourceMappingURL=4120.js.map
|
package/4183.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[4183],{14363:(e,t,r)=>{r.d(t,{n:()=>g});const n=(0,r(79692).Z)({item:{marginBottom:"16px"},dense:{marginBottom:0}});var o=r(20562),a=r(24328),i=r.n(a),l=r(52730),s=r(49885),c=r(94815),u=r(91262),p=r(71153),d=r.n(p),b=r(17440),y=r(7154),f=r(26579),m=r(81077);function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const g=e=>{let{connection:t,relatedEntity:r,inRelationTypes:p=[],outRelationTypes:g=[],showEmptyEditors:Z,entityErrorMessage:S,onChangeAttribute:v,onRemoveAttribute:E,onAddAttributes:P,onChangeRelationType:C,onChangeEntity:w}=e;const O=n(),{relation:A,entity:R}=t,{attributes:T,uri:k,type:x="",direction:I}=A||{},j=Boolean(x),M=(0,l.useSelector)(s.ZP.selectors.getMetadata),D=(0,a.useMemo)((()=>A&&function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){h(e,t,r[t])}))}return e}({attributes:T},(0,c.p2l)(A))),[A,T]),B=(0,a.useMemo)((()=>(0,c.xF8)(M,x)),[x,M]),L=(0,a.useMemo)((()=>j?(0,c.jWj)(I===c.Nsj.OUT,M,[(0,c.V3K)(M,x)]):(0,b.uniq)((0,c.jWj)(!0,M,g).concat((0,c.jWj)(!1,M,p)))),[j,x,M,p,g]),N=(0,l.useSelector)((e=>s.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),W=(0,a.useMemo)((()=>A&&{relationType:A.type,direction:A.direction}),[A]),V=(0,a.useMemo)((()=>R&&{entityUri:R.uri,entityType:R.type,entityLabel:(0,c.idV)(R.label)}),[R]),H=(0,a.useMemo)((()=>R&&R.uri?p.filter((0,c.eHk)(!1,R,r,M)):p),[R,p,r,M]),U=(0,a.useMemo)((()=>R&&R.uri?g.filter((0,c.eHk)(!0,R,r,M)):g),[R,g,r,M]);(0,a.useEffect)((()=>{const{type:e,direction:t}=(0,c.z7d)(p,g)||{};!x&&e&&C&&C({type:e.uri,direction:t})}),[x,p,g,C]),(0,o.D)((()=>{const{type:e,direction:t}=(0,c.z7d)(H,U)||{};!x&&e&&C({type:e.uri,direction:t})}),[x,R,H,U,w]);const F=(0,a.useCallback)((e=>{let{type:t,direction:r}=e;C({type:t.uri,direction:r})}),[C]);return i().createElement(i().Fragment,null,C&&i().createElement(y.Z,{className:O.item,relation:W,metadata:M,inRelationTypes:p,outRelationTypes:g,onChange:F}),w&&i().createElement(f.Z,{errorMessage:S,className:O.item},i().createElement(m.Z,{key:x,className:d()({[O.dense]:S}),entity:V||{},entityTypesUris:L,max:20,globalSearchRequestOptions:N,mode:c.fO_.EDITING,onChange:w,onCreate:void 0,metadata:M,attributeTypesSelectionStrategy:void 0})),x&&i().createElement(u.Z,{attrTypes:B,entity:D,showEmptyEditors:Z,mode:c.fO_.EDITING,parentUri:k,onAddAttributes:P,onChangeAttribute:v,onDeleteAttribute:E}))}},6230:(e,t,r)=>{r.d(t,{J:()=>c});var n=r(24328),o=r.n(n),a=r(87918),i=r.n(a),l=r(15689);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const c=e=>o().createElement(l.Z,s({message:i().text("No data available")},e))},46813:(e,t,r)=>{r.d(t,{Z:()=>b});var n=r(24328),o=r.n(n),a=r(17440),i=r(80030),l=r(79692);function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=(0,a.range)(2,10).reduce(((e,t)=>s({},e,{[`&:nth-child(${t})`]:{paddingLeft:`calc(1em * (${t} - 2))`,"&::before":{content:'"└"',display:"inline-block",fontSize:"1em",marginRight:"5px",color:"rgba(255, 255, 255, 0.28)"}}})),{}),p=(0,l.Z)((e=>({tooltip:e.tooltip,tooltipContent:{minWidth:"165px",padding:"4px 2px 2px","& p":{fontSize:"11px",lineHeight:"13px",fontWeight:500,margin:0,color:"white"},"& ul":{listStyleType:"none",padding:0,margin:0,"& li":s({fontSize:"10px",lineHeight:"11px",fontWeight:500,color:"rgba(255, 255, 255, 0.7)",marginTop:"4px"},u,{"&:last-child":{color:"white"}}),"& li + li":{marginTop:"2px"}}}})));function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}const b=e=>{let{pathToTitle:t,children:r}=e,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["pathToTitle","children"]);const l=p(),s=null!=t&&t.length?o().createElement("div",{className:l.tooltipContent},o().createElement("p",null,(0,a.last)(t)),t.length>2&&o().createElement("ul",null,t.map((e=>o().createElement("li",{key:e},e))))):"";return o().createElement(i.ZP,d({title:s,disableFocusListener:!0,classes:{tooltip:l.tooltip}},n),r)}},32371:(e,t,r)=>{r.d(t,{U:()=>c});var n=r(24328),o=r.n(n),a=r(87918),i=r.n(a),l=r(94815),s=r(42520);const c=(0,n.memo)((e=>{let{relationTypes:t,selectedRelationTypes:r,single:a,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d={},ListLabelProps:b={},disabled:y=!1}=e;const f=(0,n.useMemo)((()=>t.filter(l.Tt2)),[t]);return o().createElement(s.S,{items:f,selectedItemsUris:r,single:a,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d,ListLabelProps:b,disabled:y,label:i().text("Relation type"),dataReltioId:"relation-type-selector",selectionPopupTitle:i().text("Select relation types")})}));c.displayName="RelationTypesSelector"},32431:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24328),o=r.n(n),a=r(99152),i=r(6487),l=r(95613);const s=(0,r(79692).Z)({tabsRoot:{width:"100%"},tabsScrollButton:{flex:"0 0 24px"},tabRoot:{fontSize:"0.875rem",padding:"7px 18px 5px","@media (min-width: 960px)":{minWidth:"inherit"},"&$disabled":{pointerEvents:"auto"}},labelWrapper:{whiteSpace:"nowrap",letterSpacing:"normal",display:"flex",flexDirection:"row",width:"100%"},label:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",fontWeight:500},disabled:{}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const p=e=>{let{value:t,tabs:r=[],onChange:n,tabClasses:p}=e,d=u(e,["value","tabs","onChange","tabClasses"]);const b=s(),y=(e,t)=>o().createElement("span",{className:b.labelWrapper},o().createElement(l.Z,{value:e},o().createElement("span",{className:b.label},e)),t);return o().createElement(a.Z,c({value:t,onChange:(e,t)=>n(t),classes:{root:b.tabsRoot,scrollButtons:b.tabsScrollButton},indicatorColor:"primary",textColor:"primary",variant:"scrollable",scrollButtons:"on"},d),r.map((e=>{let{label:t,value:r,additionalLabel:n,dataReltioId:a}=e,l=u(e,["label","value","additionalLabel","dataReltioId"]);return o().createElement(i.Z,c({classes:p||{root:b.tabRoot,disabled:b.disabled},key:r,value:r,label:y(t,n),"data-reltio-id":a},l))})))}},16025:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(24328),o=r.n(n),a=r(94574),i=r(63015);function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=e=>{let{classes:t}=e,r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["classes"]);const n=(0,i.y)({});return o().createElement(a.Z,l({classes:s({},t,{focused:n.white})},r))}},77565:(e,t,r)=>{r.d(t,{Z:()=>f});var n=r(24328),o=r.n(n),a=r(13980),i=r.n(a),l=r(94079),s=r(83543);const c=(0,r(79692).Z)((()=>({viewMoreLessLink:{display:"flex",alignItems:"center",cursor:"pointer"},arrow:{marginRight:"8px",marginLeft:"-2px",transform:"rotate(0deg)",transition:"transform 0.35s ease"},rotated:{transform:"rotate(-180deg)"}})));var u=r(71153),p=r.n(u),d=r(87918),b=r.n(d);const y=e=>{let{active:t,onClick:r,className:n}=e;const a=c();return o().createElement(l.Link,{className:p()(a.viewMoreLessLink,n),onClick:r,underline:"none"},o().createElement(s.Z,{className:p()(a.arrow,{[a.rotated]:t})}),t?b().text("View less"):b().text("View more"))};y.propTypes={active:i().bool,onClick:i().func,className:i().string};const f=y},63072:(e,t,r)=>{r.d(t,{b:()=>i});var n=r(24328),o=r(94815),a=r(56764);const i=e=>{let{filter:t,max:r,offset:i,entityUri:l}=e;return(0,n.useCallback)((async()=>{const e=(0,a.U)(t),n=await(0,o.k6v)({filter:e,max:r,offset:i,entityUri:l}),{total:s}=await(0,o.FEC)({filter:e,entityUri:l});return{data:n,total:s}}),[t,r,i,l])}},78620:(e,t,r)=>{r.d(t,{R:()=>u});var n=r(24328),o=r(94815),a=r(17440),i=r(52730),l=r(49885);function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=e=>{let{connection:t,onConnectionChange:r,relatedEntity:c}=e;const u=(0,i.useSelector)(l.ZP.selectors.getMetadata),p=(0,n.useCallback)((e=>r(s({},t,{relation:e}))),[t,r]),d=(0,n.useCallback)((0,a.pipe)((0,o.zE1)(t.relation),p),[t.relation,p]),b=(0,n.useCallback)((0,a.pipe)((0,o.lIv)(t.relation),p),[t.relation,p]),y=(0,n.useCallback)((0,a.pipe)((0,o.Ilm)(t.relation),p),[t.relation,p]),f=(0,n.useCallback)((e=>{let{type:n,direction:a}=e;const i={entity:t.entity&&(0,o.eHk)(a===o.Nsj.OUT,t.entity,c,u,(0,o.V3K)(u,n))?t.entity:null,relation:s({},t.relation,{attributes:{},type:n,direction:a})};r(i)}),[t,r,c,u]);return{onAddAttributes:d,onChangeAttribute:b,onRemoveAttribute:y,onChangeEntity:(0,n.useCallback)((e=>r(s({},t,{entity:e}))),[t,r]),onChangeRelationType:f}}},2804:(e,t,r)=>{r.d(t,{a:()=>o});var n=r(24328);const o=e=>{const[t,r]=(0,n.useState)(!1),[o,a]=(0,n.useState)({});return(0,n.useEffect)((()=>{e().then((e=>{a(e||{})})).then((e=>r(!0))).catch((e=>r(!0)))}),[]),{isLoaded:t,savedState:o}}},4183:(e,t,r)=>{r.r(t),r.d(t,{ALWAYS_VISIBLE_TYPE_URIS:()=>Rn.S,ActionButton:()=>an.K,ActionButtonMode:()=>an.N,ActionsHookProvider:()=>Qo.G,ActivityLog:()=>n.Z,ActivityLogFilter:()=>o.Z,ActivityTypes:()=>a.I,AddWorkflowButton:()=>qr.G,ArrowExpandButton:()=>hr.Z,AssigneeSelector:()=>zr.Z,AsyncMountContext:()=>vo.g,AttributeGroupIcon:()=>cn.Z,AttributeListItem:()=>c.Z,AttributeTitle:()=>ir.Z,AttributesFilterSelector:()=>fn.Z,AttributesFiltersBuilder:()=>pn.Z,AttributesFiltersButton:()=>un.Z,AttributesList:()=>b.Z,AttributesPager:()=>v.ZP,AttributesTable:()=>Er.Z,AttributesValuesEditor:()=>yn.Z,AttributesView:()=>u.Z,AutoSizeList:()=>j.Z,AvatarWithFallback:()=>M.Z,BarChart:()=>ne.Z,BasicAttributeSelector:()=>sn.Z,BasicTable:()=>D.Z,BasicTableContext:()=>L.X,BasicTablePagination:()=>U.Z,BasicView:()=>ee.Z,BasicViewContent:()=>te.Z,BasicViewHeader:()=>re.Z,BlockImageGalleryDialogContext:()=>wo.P,BranchDecorator:()=>d.Z,COMMENTS_CONTAINER_VISIBILITY_AREA:()=>An.U,CardinalityMessage:()=>E.Z,ChartsFactory:()=>le.Z,ClickAwayProvider:()=>ye,CollaborationContext:()=>Oo.h,CollaborationContextProvider:()=>Oo.e,CollaborationItem:()=>fe.J,CollapseButton:()=>me.Z,CollapseRowButton:()=>Y.Z,ColorBar:()=>he.Z,ColoredSourceIcon:()=>or.Z,ColumnFilterType:()=>On.Dq,ColumnsDataType:()=>On.uz,ColumnsSettings:()=>W.Z,ColumnsSettingsPopup:()=>H.G,CommentsContainer:()=>ge.Z,ConfigureColumnsPopup:()=>Ce.Z,ConfirmDeleteDialog:()=>vr.Z,ConfirmationDialog:()=>Sr.Z,ConnectionEditor:()=>dn.n,ConnectionRelationTypeSelector:()=>we.Z,CrosswalkDragLayer:()=>wr.Z,CrosswalkEditor:()=>Ar.Z,CrosswalkType:()=>Rr.Y,CrosswalksDisplayProvider:()=>jo.hR,DEFAULT_GOOGLE_MAP_OPTIONS:()=>Tn.Q3,DEFAULT_OVERLAY_OPTIONS:()=>Tn.r,DataTenantBadge:()=>En.R,DataTypeValue:()=>Oe.Z,DataTypeValueEditor:()=>Le.Z,DateEditor:()=>Be.Z,DateRangeEditor:()=>De.Z,DefaultCellValueRenderer:()=>F.Z,DeltaTypes:()=>i.w,DependentLookupAutopopulationContext:()=>$o.m,DescriptionIcon:()=>p.Z,DragAndDrop:()=>bn.l,Drawer:()=>Ae.Z,DropDownEditor:()=>ke.Z,DropDownMenuButton:()=>Re.Z,DropDownSelector:()=>Te.Z,DropdownIndicator:()=>Ze.Z,DropdownIndicatorWithIconButton:()=>Se.Z,EMPTY_STATE_ICONS:()=>Ue.B9,EMPTY_STATE_VARIANTS:()=>Ue.tC,EditableAttribute:()=>C.Z,EditableImageAttributesLine:()=>R.Z,EmptyState:()=>Ue.ZP,EmptyStub:()=>kn.Vd,EntitiesMapContext:()=>Io.X,EntityAvatar:()=>Fe.Z,EntityContext:()=>Wo.u,EntityCreator:()=>y.Z,EntityLoadingIndicationProvider:()=>Bo.f,EntityMarkerContext:()=>Do.P,EntitySelector:()=>f.Z,EntityTypeBadge:()=>_e.Z,EntityTypeIcon:()=>qe.Z,EntityTypesSelector:()=>Ge.Q,EntityUriLink:()=>$e.Z,ErrorBoundary:()=>Ye.Z,ErrorMessage:()=>xr.Z,ErrorPopup:()=>Qe.Z,ErrorWrapper:()=>Xe.Z,ExpandableSearchInput:()=>pr.i,ExpandedAttributesProvider:()=>Mo.R,ExpandedValueTooltip:()=>Je.Z,FacetViewHeader:()=>Ke.Z,FeaturesContext:()=>zo.Y,FileTypeEditor:()=>We.Z,FilterButton:()=>V.Z,FilterValueEditor:()=>Ie.Z,FlipCard:()=>ct,HideOnShrink:()=>ut.Z,HierarchicalAttributeTooltip:()=>pt.Z,HierarchyNodeTitle:()=>Pn.Z,HighlightedValuesContext:()=>Uo.j,Highlighter:()=>dt.Z,HistoryActivityType:()=>Vr.M,HistoryChangeTypes:()=>Hr.b,HistoryDiffContext:()=>Eo.m,HistoryHeader:()=>Lr.Z,HistoryPanelEmptyState:()=>Wr.Z,HistoryView:()=>Br.Z,IdContext:()=>xo.B,ImageAttributesLine:()=>A.Z,ImageGalleryDialog:()=>bt.C,ImportButton:()=>yt.Z,ImportModes:()=>yt.E,InlineAttributesPager:()=>yr.Z,InlineImageAttribute:()=>mr.Z,InlineNestedAttribute:()=>br.Z,InlineReferenceAttribute:()=>fr.Z,InterceptHandlersContext:()=>lo.p,LabelsContext:()=>Go.T,LightArrowTooltip:()=>gr.Z,LinearLoadIndicator:()=>ft.Z,Link:()=>mt.Z,LoadMoreButton:()=>ve.Z,LoadingSpinner:()=>ht.Z,MAP_DRAWING_MODES:()=>Tn.vl,MAP_MINIMUM_SCALE_RADIUS:()=>Tn.Pi,Marginator:()=>Zr.Z,MatchRuleVariant:()=>Zt.g,MatchRulesBlock:()=>gt.Z,MatchRulesSelector:()=>hn.Z,MenuList:()=>Ee.Z,MenuWithPopper:()=>Pe.Z,MergeButton:()=>nn.H,ModeSwitcher:()=>Et.Z,ModeSwitcherSelect:()=>Pt.T,MoreAttributesButton:()=>m.Z,MultiSelect:()=>It.Z,MultiValueChip:()=>je.Z,MultiValueSelector:()=>mn.Z,MultipleInput:()=>Ct.Z,NestedAttribute:()=>T.Z,NestedAttributeEditor:()=>h.Z,NoData:()=>Ve.J,NoResults:()=>He.X,NotMatchButton:()=>on.i,NumberEditor:()=>Me.Z,OvIcon:()=>Ur.Z,PageRequestsAbortingContext:()=>Yo.F,PerspectivesSettingsContext:()=>To.n,PieChart:()=>oe.Z,PivotingAttributeContext:()=>Ro.J,Popper:()=>wt.Z,PopupBoundariesContext:()=>Po.p,PopupWithArrow:()=>Ot.Z,PotentialMatchReviewCard:()=>At.Z,ProfileBand:()=>Rt.Z,ProfileBandHistory:()=>Nr.Z,ProfileBandNavigation:()=>J.a,ProfileCard:()=>Tt.Z,ProfileMatchCard:()=>rn.M,ProfilePerspectiveViewContext:()=>ko.j,ProfileResizablePanes:()=>Wt.n,ProfilesList:()=>ln.Z,QueryBuilderAttributeDataType:()=>On.eB,QueryBuilderAttributeType:()=>On.Xw,QueryBuilderRow:()=>kt.Z,QueryBuilderRowsGroup:()=>xt.Z,ReactSelectOptionFilters:()=>jt.Z,ReactSortableTree:()=>Mt.ZP,ReactSortableTreeHandlers:()=>Dt.ZP,ReactSortableTreeUtils:()=>Bt.ZP,ReadOnlyAttribute:()=>P.Z,ReadOnlyAttributeValuesBlock:()=>w.Z,ReadOnlyAttributesList:()=>O.Z,ReadOnlyAttributesPager:()=>I.Z,ReferenceAttribute:()=>k.Z,ReferenceAttributeEditor:()=>g.Z,RelatedObjectUrisContext:()=>No.A,RelationEditor:()=>Fr.Z,RelationTypeSelector:()=>Z.Z,RelationTypesSelector:()=>ze.U,RelevanceScoreBadge:()=>wn.Z,ReloadFacetProvider:()=>Vo.DX,ReltioGridLayout:()=>Lt.Z,ReltioMap:()=>kr.Z,RequestStates:()=>Xo.o,RequiredMark:()=>Cn.Z,ResizablePanes:()=>Nt.u,RowCellAutoSizer:()=>$.Z,SandboxAPIContext:()=>so.Y,ScreenProfileBand:()=>K.n,ScrollToElementContext:()=>_o.NY,ScrollToElementProvider:()=>_o.fy,ScrollType:()=>_o.g4,ScrollableTabs:()=>dr.Z,SearchFiltersContext:()=>Ho.I,SearchInput:()=>Vt.Z,SearchValueContext:()=>Fo.l,SelectionPopup:()=>Ft.Z,SelectionPopupPopper:()=>$t,SelectorWithOnlyOptionAutoSelect:()=>Yt.Z,SettingsMenu:()=>vn.Z,SideButtonsPanel:()=>Qt.G,SidePanel:()=>Jt.h,SidePanelContentHeader:()=>Kt.P,SidePanelEmptyState:()=>Xt.Z,SimpleAttribute:()=>x.Z,SimpleAttributeEditor:()=>S.Z,SimpleDropDownSelector:()=>er.Z,SimpleMatchRulesBlock:()=>St.Z,SmallIconButton:()=>rr.Z,SmallIconButtonWithTooltip:()=>tr.k,SnackbarContext:()=>io.S,SortingType:()=>On.nI,SourceCrosswalksRow:()=>Or.Z,SourceIcon:()=>nr.Z,SourceSystemsSelector:()=>gn.Z,Spacer:()=>ar.Z,TableContext:()=>L.X,TableWithBars:()=>ae.Z,TaskActionButtons:()=>en.o,TaskActions:()=>Gr.Z,TenantIcon:()=>Zn.c,TenantsDropDownSelector:()=>Sn.H,TextEditor:()=>xe.Z,TimestampEditor:()=>Ne.Z,TransitiveMatchBlock:()=>vt.Z,TreeChart:()=>ie.Z,UrlGeneratorsContext:()=>qo.v,UsersContext:()=>Ao.s,VerticalDivider:()=>lr.Z,VerticalHeadingsTable:()=>sr.Z,ViewIdContext:()=>Co.m,ViewMoreToggle:()=>cr.Z,VirtualGroupedList:()=>ur.Z,WhiteSearchInput:()=>Ht.Z,WorkflowComments:()=>$r.V,WorkflowTaskCard:()=>_r.s,WorkflowTasksContext:()=>Lo.O,basicTableViewState:()=>z.ZP,buildColumnsFilter:()=>G.Tz,columnFilterToMdmFilter:()=>G.su,createStandardAction:()=>kn.zD,defaultGetRowCellHeight:()=>_.Z,defaultRenderRowCell:()=>q.Z,enrichDataWithPercents:()=>se.n,getChecked:()=>kn.IR,getValue:()=>kn.NA,groupCrosswalksByTypesAndSources:()=>Tr.o,isHighlightedAttributeType:()=>_o.St,isHighlightedErrorType:()=>_o.Ie,isIE:()=>kn.w1,mergeClasses:()=>kn.ze,noop:()=>kn.ZT,parseJSON:()=>kn.Rx,stopPropagation:()=>kn.UW,toggleSortOrder:()=>kn.Dh,useAPI:()=>Bn.E,useActions:()=>Dn.o,useActionsHook:()=>Qo.u,useActivitiesLoader:()=>l.d,useAsyncMount:()=>Ln.S,useAttributeExpanded:()=>Mo.Q,useBasicTableCellRenderer:()=>X.Z,useClickableStyle:()=>ce.d,useCollaboration:()=>Nn.C,useCommentsEntitiesMap:()=>Wn.Q,useConfigPermissions:()=>Qn.l,useCrosswalkActions:()=>Cr.P,useCrosswalkColor:()=>jo.nX,useCrosswalkFocus:()=>jo.BF,useCrosswalkHighlight:()=>jo.pu,useCustomScripts:()=>fo,useDidUpdateEffect:()=>Vn.D,useDynamicRowCellHeight:()=>Q.Z,useEditableConnection:()=>mo.R,useEntityLoadingIndication:()=>Bo.M,useHighlightedCrosswalks:()=>jo.RT,useHistory:()=>jr.k6,useHistoryDiff:()=>Mr.u,useHistoryEnabled:()=>Dr.C,useHistorySlice:()=>Ir.a,useIsMountedRef:()=>So.X,useKeyboardNavigation:()=>Ut.t,useMarkAsNotMatchRequest:()=>eo.m,useMatchesLoader:()=>Xn.s,useMergeAllRequest:()=>Kn._,useModifiedEntity:()=>Pr.Q,usePagingSimulator:()=>Jn.a,usePerspectivesSettings:()=>To._,usePrevious:()=>Hn.D,useProfileActivitiesLoader:()=>s.b,useReadableSearchState:()=>ho.v,useRelationTypeSelector:()=>Un.n,useRelationsLoader:()=>Fn.a,useReloadAllFacets:()=>Vo.Hc,useReloadFacet:()=>Vo.T,useRunOnceAfterValueInitialization:()=>_n.q,useSafePromise:()=>qn._,useSavedState:()=>Gn.a,useSavedStateForEntityType:()=>go.w,useScrollToAttributeError:()=>Mn.B,useSnackbar:()=>Zo.D,useUsers:()=>zn.U,useWhyDidYouUpdate:()=>Yn,useWorkflowActions:()=>Xr.t,useWorkflowAssignee:()=>Yr.r,useWorkflowCheckPermission:()=>Jr.Z,useWorkflowComments:()=>Qr.W,useWorkflowDefaultActionSuccessHandler:()=>tn.b,useWorkflowTasks:()=>Kr.v,withAsyncMount:()=>In.Z,withContext:()=>jn.l,withFilterAtBottom:()=>N.Z,withPercents:()=>se.Z,withTableContext:()=>B.Z,withTooltip:()=>xn.Z});var n=r(88234),o=r(46188),a=r(31537),i=r(99601),l=r(67486),s=r(63072),c=r(7785),u=r(8962),p=r(98448),d=r(95974),b=r(91262),y=r(31588),f=r(81077),m=r(90473),h=r(62630),g=r(2163),Z=r(27185),S=r(33889),v=r(72045),E=r(93140),P=r(81303),C=r(96811),w=r(87760),O=r(80931),A=r(13074),R=r(24338),T=r(28751),k=r(22544),x=r(12068),I=r(8683),j=r(30739),M=r(97991),D=r(85709),B=r(32528),L=r(13688),N=r(67353),W=r(60894),V=r(1876),H=r(47458),U=r(58662),F=r(64091),_=r(25461),q=r(14838),G=r(37754),z=r(26180),$=r(97946),Y=r(74566),Q=r(74402),X=r(46177),J=r(79618),K=r(40715),ee=r(10237),te=r(4094),re=r(92778),ne=r(40801),oe=r(79527),ae=r(83535),ie=r(3292),le=r(66675),se=r(84900),ce=r(99256),ue=r(24328),pe=r.n(ue),de=r(1292);function be(){return be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},be.apply(this,arguments)}const ye=e=>pe().createElement(de.Z,be({mouseEvent:"onMouseDown"},e));var fe=r(9371),me=r(58241),he=r(43290),ge=r(94646),Ze=r(94113),Se=r(96808),ve=r(6029),Ee=r(14952),Pe=r(36179),Ce=r(89119),we=r(7154),Oe=r(72768),Ae=r(27652),Re=r(55847),Te=r(24737),ke=r(79026),xe=r(81174),Ie=r(24754),je=r(82455),Me=r(31890),De=r(59983),Be=r(8459),Le=r(28117),Ne=r(43305),We=r(27113),Ve=r(6230),He=r(94889),Ue=r(21077),Fe=r(53180),_e=r(68439),qe=r(34e3),Ge=r(59725),ze=r(32371),$e=r(31039),Ye=r(2256),Qe=r(585),Xe=r(26579),Je=r(95613),Ke=r(93416),et=r(79692);const tt=e=>`rotateY(${e?180:0}deg)`,rt=e=>`rotateX(${e?180:0}deg)`,nt=e=>`rotateY(${e?0:-180}deg)`,ot=e=>`rotateX(${e?0:-180}deg)`,at=(0,et.Z)({back:e=>{let{isFlipped:t,direction:r}=e;return{WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden",height:"100%",left:"0",position:t?"relative":"absolute",top:"0",transform:"horizontal"===r?nt(t):ot(t),transformStyle:"preserve-3d",transition:"0.7s",width:"100%",display:"flex"}},container:e=>{let{cardZIndex:t}=e;return{perspective:"1000px",zIndex:t}},flipper:{height:"100%",position:"relative",width:"100%"},front:e=>{let{isFlipped:t,direction:r}=e;return{WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden",height:"100%",left:"0",position:t?"absolute":"relative",top:"0",transform:"horizontal"===r?tt(t):rt(t),transformStyle:"preserve-3d",transition:"0.7s",width:"100%",zIndex:2,display:"flex"}}});var it=r(71153),lt=r.n(it);const st=(0,ue.forwardRef)(((e,t)=>{let{cardZIndex:r="auto",direction:n="vertical",isCardFlipped:o=!1,children:a,className:i}=e;const[l,s]=(0,ue.useState)(o),c=at({cardZIndex:r,direction:n,isFlipped:l});return(0,ue.useEffect)((()=>{o!==l&&s(o)}),[o,l]),pe().createElement("div",{className:lt()(c.flipper,i),ref:t},pe().createElement("div",{"data-id":"front",className:c.front},a[0]),pe().createElement("div",{"data-id":"back",className:c.back},a[1]))})),ct=st;var ut=r(75512),pt=r(46813),dt=r(27239),bt=r(81853),yt=r(81727),ft=r(99136),mt=r(55400),ht=r(37014),gt=r(22071),Zt=r(77245),St=r(74615),vt=r(93301),Et=r(83401),Pt=r(22860),Ct=r(48809),wt=r(66130),Ot=r(59601),At=r(35071),Rt=r(64459),Tt=r(33310),kt=r(17349),xt=r(41315),It=r(92575),jt=r(50905),Mt=r(58600),Dt=r(65758),Bt=r(21113),Lt=r(63291),Nt=r(18798),Wt=r(97499),Vt=r(94574),Ht=r(16025),Ut=r(54763),Ft=r(97820),_t=r(25480),qt=r(94079),Gt=r(27556);function zt(){return zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zt.apply(this,arguments)}const $t=e=>{let{open:t,anchorEl:r,className:n,onClose:o,containerWidth:a,containerHeight:i,paperProps:l,listContent:s,externalInputField:c,classes:u={}}=e;const p=(0,_t.Z)({containerWidth:a,containerHeight:i});return pe().createElement("div",{className:u.root},c,pe().createElement(wt.Z,{open:t,onClose:o,anchorEl:r,placement:"bottom-start",transition:!0},(e=>{let{TransitionProps:t}=e;return pe().createElement(qt.Grow,t,pe().createElement(Gt.Z,zt({elevation:2},l),pe().createElement("div",{className:lt()(p.container,n),style:{width:a}},pe().createElement("div",{className:p.list},s))))})))};var Yt=r(43775),Qt=r(39827),Xt=r(10159),Jt=r(52043),Kt=r(17308),er=r(31517),tr=r(8818),rr=r(22385),nr=r(94175),or=r(58355),ar=r(51229),ir=r(95629),lr=r(30553),sr=r(34635),cr=r(77565),ur=r(44890),pr=r(32152),dr=r(32431),br=r(58896),yr=r(4073),fr=r(85592),mr=r(22246),hr=r(19592),gr=r(94111),Zr=r(31269),Sr=r(81137),vr=r(85209),Er=r(20982),Pr=r(85965),Cr=r(39417),wr=r(48017),Or=r(52017),Ar=r(79769),Rr=r(77243),Tr=r(90186),kr=r(95299),xr=r(76134),Ir=r(57730),jr=r(44021),Mr=r(76536),Dr=r(71820),Br=r(54362),Lr=r(91515),Nr=r(3409),Wr=r(6674),Vr=r(65942),Hr=r(55912),Ur=r(66410),Fr=r(11013),_r=r(46626),qr=r(26789),Gr=r(46628),zr=r(30078),$r=r(27194),Yr=r(5434),Qr=r(43477),Xr=r(10186),Jr=r(22994),Kr=r(61756),en=r(65321),tn=r(4109),rn=r(49734),nn=r(93428),on=r(30885),an=r(98808),ln=r(82842),sn=r(99757),cn=r(79821),un=r(63172),pn=r(12714),dn=r(14363),bn=r(6521),yn=r(70215),fn=r(64731),mn=r(52309),hn=r(58970),gn=r(54337),Zn=r(59651),Sn=r(95474),vn=r(14377),En=r(86776),Pn=r(5598),Cn=r(55299),wn=r(54562),On=r(94656),An=r(19603),Rn=r(78836),Tn=r(97090),kn=r(31276),xn=r(83348),In=r(49965),jn=r(48852),Mn=r(11564),Dn=r(86361),Bn=r(9757),Ln=r(96479),Nn=r(7718),Wn=r(26313),Vn=r(20562),Hn=r(30634),Un=r(89846),Fn=r(37152),_n=r(92898),qn=r(85229),Gn=r(2804),zn=r(17554);function $n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Yn=(e,t)=>{const r=(0,ue.useRef)();(0,ue.useEffect)((()=>{if(r.current){const n=Object.keys(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$n(e,t,r[t])}))}return e}({},r.current,t)),o={};n.forEach((e=>{r.current[e]!==t[e]&&(o[e]={from:r.current[e],to:t[e]})})),Object.keys(o).length&&console.log("[why-did-you-update]",e,o)}r.current=t}))};var Qn=r(52016),Xn=r(28741),Jn=r(20449),Kn=r(37432),eo=r(59119),to=r(52730),ro=r(49885),no=r(94815),oo=r(37164),ao=r(17440),io=r(97094),lo=r(47872),so=r(60115),co=r(26929),uo=r(53607);function po(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){bo(e,t,r[t])}))}return e}function bo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yo=(e,t)=>(e||[]).some((e=>{const r=new RegExp(`^${e}$`);return e.replace(/\/*$/,"")===t||e&&r.test(t)})),fo=e=>{var t;const r=e.reduce(((e,t)=>t.platform!==no.X1H.CLASSIC?[...e,po({},t,{actionId:(0,oo.x0)()})]:e),[]),n=(0,ue.useContext)(io.S),{addInternalRequestInterceptor:o,addInternalResponseInterceptor:a,removeInternalRequestInterceptor:i,removeInternalResponseInterceptor:l}=(0,ue.useContext)(lo.p),s=(0,ue.useContext)(so.Y),c=(0,to.useDispatch)(),u=null!==(t=(0,to.useSelector)(ro.ZP.selectors.getMetadata))&&void 0!==t?t:null,p=(0,to.useSelector)(ro.ZP.selectors.getEntity)||{},d=(0,to.useSelector)(ro.ZP.selectors.getUIPath),b=(0,to.useSelector)(ro.ZP.selectors.getServicesPath),y=(0,to.useSelector)(ro.ZP.selectors.getReltioPath),f=(0,to.useSelector)(ro.ZP.selectors.getTenant),m=(0,co.jm)(d,f),h=(0,to.useSelector)(ro.ZP.selectors.getApiPath),g=(0,to.useSelector)(ro.ZP.selectors.getWorkflowPath),Z=(0,to.useSelector)(ro.ZP.selectors.getUser),S=(0,to.useSelector)(ro.ZP.selectors.getEntityUri),v=(0,to.useSelector)(ro.ZP.selectors.getWorkflowEnvironmentUrl),E=(0,Jr.Z)(),{type:P,data:C}=(0,to.useSelector)(ro.ZP.selectors.getSearchProviderData)||{},w=e=>c(ro.ui.actions.openSearch(e)),O=(0,ue.useRef)({}),A=(0,ue.useRef)({}),R=(0,ue.useRef)({}),T=e=>{let{task:t,worker:r,config:o}=e;if(t)switch(t.action){case no.W0P.LOG:console.log(t.params);break;case no.W0P.MESSAGE:n(t.params);break;case no.W0P.REQUEST:{const e=(0,co.D)(b)?h:y,n=(0,ao.startsWith)("/",(0,ao.pathOr)("",["params","url"],t))&&!(0,ao.startsWith)(h,(0,ao.pathOr)("",["params","url"],t)),a=(0,ao.pathEq)(["params","name"],no.MVv.API,t),i=po({},t,{params:(0,ao.pipe)((0,ao.evolve)({url:(0,ao.ifElse)((0,ao.both)((0,ao.always)(n),(0,ao.always)(a)),(0,ao.concat)(`${e}/api/${f}`),(0,ao.replace)(y,h))}),(0,ao.when)((0,ao.has)("url"),(0,ao.assocPath)(["validationUrl"],t.params.url)))(t.params)});(0,uo.U)(po({name:i.params.name,paramObject:i,permissions:o.action.permissions,worker:r,metadata:u,config:o,user:Z,apiPath:y,servicesPath:b,tenant:f,workflowPath:g,entity:p,entityUri:S,environment:v,query:"search"===P?null==C?void 0:C.query:null,openSearch:w,workflowCheckPermission:E},s));break}case no.W0P.RETURN_PROCESSED_API_RESPONSE:{const{id:e,data:r}=t.params;A.current[e]&&(A.current[e].next(r),A.current=(0,ao.omit)([e],A.current));break}case no.W0P.RETURN_PROCESSED_API_REQUEST:{const{id:e,data:r}=t.params;O.current[e]&&(O.current[e].resolve(r),O.current=(0,ao.omit)([e],O.current));break}}};(0,ue.useEffect)((()=>{if(null!==u)return R.current=r.reduce(((e,t)=>{const r=(e=>{const{processApiResponse:t,processApiRequest:r,permissions:n,files:o}=e;return po({action:{processApiResponse:t,processApiRequest:r,permissions:n,files:o}},function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["processApiResponse","processApiRequest","permissions","files"]))})(t);return po({},e,{[t.actionId]:(0,no.QWZ)(m,T,r)})}),R.current),()=>{Object.keys(R.current).forEach((e=>{R.current[e].terminate()}))}}),[e,u]);const k=e=>{let{options:t={},url:n,next:o,resolve:a}=e;const i=n.startsWith("/")&&!n.startsWith(h)?`${y}/api/${f}${n}`:`${y}${n.replace(h,"")}`,l=(0,ao.pipe)((0,ao.map)((0,ao.pick)(["actionId","processApiRequest"])),(0,ao.find)((e=>{let{processApiRequest:t}=e;return yo(t,i)})),(0,ao.prop)("actionId"))(r);if(l){const e=(0,oo.x0)();O.current=po({},O.current,{[e]:{options:t,next:o,id:e,resolve:a}}),R.current[l].postMessage({action:"apiRequest",id:e,url:i,method:t.method,headers:po({},t.headers,{origin:"ui",requestId:e,actionId:l}),data:t.body||t.data})}else o(n,t)},x=e=>{var t;let{url:n,response:o,next:a,options:i,abort:l}=e;if("ui"===(null==i||null===(t=i.headers)||void 0===t?void 0:t.origin))o.json().then((e=>{var t,r,n;A.current=po({},A.current,{[i.headers.requestId]:{next:a}}),R.current[null===(t=i.headers)||void 0===t?void 0:t.actionId].postMessage({action:"response",result:{data:e,status:o.status},id:null==i?void 0:i.id,name:null==i||null===(r=i.task)||void 0===r||null===(n=r.params)||void 0===n?void 0:n.name})})).catch((e=>{l(e)}));else{const e=`${y}${n.replace(h,"")}`,t=(0,ao.pipe)((0,ao.map)((0,ao.pick)(["actionId","processApiResponse"])),(0,ao.find)((t=>{let{processApiResponse:r}=t;return yo(r,e)})),(0,ao.prop)("actionId"))(r);if(t){const r=(0,oo.x0)();o.json().then((n=>{A.current=po({},A.current,{[r]:{next:a}}),R.current[t].postMessage({action:"apiResponse",id:r,url:e,method:i.method,data:n})})).catch((e=>{l(e)}))}else a(o)}};(0,ue.useEffect)((()=>{if(!(0,no.O27)(r)&&u)return o(k),a(x),()=>{i(k),l(x)}}),[e,u])};var mo=r(78620),ho=r(41188),go=r(60641),Zo=r(24605),So=r(8159),vo=r(7142),Eo=r(26005),Po=r(30268),Co=r(47898),wo=r(69891),Oo=r(41564),Ao=r(49759),Ro=r(60995),To=r(19701),ko=r(26481),xo=r(52049),Io=r(31274),jo=r(63149),Mo=r(66095),Do=r(91676),Bo=r(94622),Lo=r(94150),No=r(78101),Wo=r(3185),Vo=r(98884),Ho=r(56259),Uo=r(43600),Fo=r(72249),_o=r(94773),qo=r(72383),Go=r(79468),zo=r(87451),$o=r(91186),Yo=r(75477),Qo=r(54198),Xo=r(67885)}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[4183],{14363:(e,t,r)=>{r.d(t,{n:()=>g});const n=(0,r(79692).Z)({item:{marginBottom:"16px"},dense:{marginBottom:0}});var o=r(20562),a=r(24328),i=r.n(a),l=r(52730),s=r(49885),c=r(65503),u=r(91262),p=r(71153),d=r.n(p),b=r(17440),y=r(7154),f=r(26579),m=r(81077);function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const g=e=>{let{connection:t,relatedEntity:r,inRelationTypes:p=[],outRelationTypes:g=[],showEmptyEditors:Z,entityErrorMessage:S,onChangeAttribute:v,onRemoveAttribute:E,onAddAttributes:P,onChangeRelationType:C,onChangeEntity:w}=e;const O=n(),{relation:A,entity:R}=t,{attributes:T,uri:k,type:x="",direction:I}=A||{},j=Boolean(x),M=(0,l.useSelector)(s.ZP.selectors.getMetadata),D=(0,a.useMemo)((()=>A&&function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){h(e,t,r[t])}))}return e}({attributes:T},(0,c.p2l)(A))),[A,T]),B=(0,a.useMemo)((()=>(0,c.xF8)(M,x)),[x,M]),L=(0,a.useMemo)((()=>j?(0,c.jWj)(I===c.Nsj.OUT,M,[(0,c.V3K)(M,x)]):(0,b.uniq)((0,c.jWj)(!0,M,g).concat((0,c.jWj)(!1,M,p)))),[j,x,M,p,g]),N=(0,l.useSelector)((e=>s.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),W=(0,a.useMemo)((()=>A&&{relationType:A.type,direction:A.direction}),[A]),V=(0,a.useMemo)((()=>R&&{entityUri:R.uri,entityType:R.type,entityLabel:(0,c.idV)(R.label)}),[R]),H=(0,a.useMemo)((()=>R&&R.uri?p.filter((0,c.eHk)(!1,R,r,M)):p),[R,p,r,M]),U=(0,a.useMemo)((()=>R&&R.uri?g.filter((0,c.eHk)(!0,R,r,M)):g),[R,g,r,M]);(0,a.useEffect)((()=>{const{type:e,direction:t}=(0,c.z7d)(p,g)||{};!x&&e&&C&&C({type:e.uri,direction:t})}),[x,p,g,C]),(0,o.D)((()=>{const{type:e,direction:t}=(0,c.z7d)(H,U)||{};!x&&e&&C({type:e.uri,direction:t})}),[x,R,H,U,w]);const F=(0,a.useCallback)((e=>{let{type:t,direction:r}=e;C({type:t.uri,direction:r})}),[C]);return i().createElement(i().Fragment,null,C&&i().createElement(y.Z,{className:O.item,relation:W,metadata:M,inRelationTypes:p,outRelationTypes:g,onChange:F}),w&&i().createElement(f.Z,{errorMessage:S,className:O.item},i().createElement(m.Z,{key:x,className:d()({[O.dense]:S}),entity:V||{},entityTypesUris:L,max:20,globalSearchRequestOptions:N,mode:c.fO_.EDITING,onChange:w,onCreate:void 0,metadata:M,attributeTypesSelectionStrategy:void 0})),x&&i().createElement(u.Z,{attrTypes:B,entity:D,showEmptyEditors:Z,mode:c.fO_.EDITING,parentUri:k,onAddAttributes:P,onChangeAttribute:v,onDeleteAttribute:E}))}},6230:(e,t,r)=>{r.d(t,{J:()=>c});var n=r(24328),o=r.n(n),a=r(87918),i=r.n(a),l=r(15689);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const c=e=>o().createElement(l.Z,s({message:i().text("No data available")},e))},46813:(e,t,r)=>{r.d(t,{Z:()=>b});var n=r(24328),o=r.n(n),a=r(17440),i=r(80030),l=r(79692);function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=(0,a.range)(2,10).reduce(((e,t)=>s({},e,{[`&:nth-child(${t})`]:{paddingLeft:`calc(1em * (${t} - 2))`,"&::before":{content:'"└"',display:"inline-block",fontSize:"1em",marginRight:"5px",color:"rgba(255, 255, 255, 0.28)"}}})),{}),p=(0,l.Z)((e=>({tooltip:e.tooltip,tooltipContent:{minWidth:"165px",padding:"4px 2px 2px","& p":{fontSize:"11px",lineHeight:"13px",fontWeight:500,margin:0,color:"white"},"& ul":{listStyleType:"none",padding:0,margin:0,"& li":s({fontSize:"10px",lineHeight:"11px",fontWeight:500,color:"rgba(255, 255, 255, 0.7)",marginTop:"4px"},u,{"&:last-child":{color:"white"}}),"& li + li":{marginTop:"2px"}}}})));function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}const b=e=>{let{pathToTitle:t,children:r}=e,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["pathToTitle","children"]);const l=p(),s=null!=t&&t.length?o().createElement("div",{className:l.tooltipContent},o().createElement("p",null,(0,a.last)(t)),t.length>2&&o().createElement("ul",null,t.map((e=>o().createElement("li",{key:e},e))))):"";return o().createElement(i.ZP,d({title:s,disableFocusListener:!0,classes:{tooltip:l.tooltip}},n),r)}},32371:(e,t,r)=>{r.d(t,{U:()=>c});var n=r(24328),o=r.n(n),a=r(87918),i=r.n(a),l=r(65503),s=r(42520);const c=(0,n.memo)((e=>{let{relationTypes:t,selectedRelationTypes:r,single:a,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d={},ListLabelProps:b={},disabled:y=!1}=e;const f=(0,n.useMemo)((()=>t.filter(l.Tt2)),[t]);return o().createElement(s.S,{items:f,selectedItemsUris:r,single:a,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d,ListLabelProps:b,disabled:y,label:i().text("Relation type"),dataReltioId:"relation-type-selector",selectionPopupTitle:i().text("Select relation types")})}));c.displayName="RelationTypesSelector"},32431:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24328),o=r.n(n),a=r(99152),i=r(6487),l=r(95613);const s=(0,r(79692).Z)({tabsRoot:{width:"100%"},tabsScrollButton:{flex:"0 0 24px"},tabRoot:{fontSize:"0.875rem",padding:"7px 18px 5px","@media (min-width: 960px)":{minWidth:"inherit"},"&$disabled":{pointerEvents:"auto"}},labelWrapper:{whiteSpace:"nowrap",letterSpacing:"normal",display:"flex",flexDirection:"row",width:"100%"},label:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",fontWeight:500},disabled:{}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const p=e=>{let{value:t,tabs:r=[],onChange:n,tabClasses:p}=e,d=u(e,["value","tabs","onChange","tabClasses"]);const b=s(),y=(e,t)=>o().createElement("span",{className:b.labelWrapper},o().createElement(l.Z,{value:e},o().createElement("span",{className:b.label},e)),t);return o().createElement(a.Z,c({value:t,onChange:(e,t)=>n(t),classes:{root:b.tabsRoot,scrollButtons:b.tabsScrollButton},indicatorColor:"primary",textColor:"primary",variant:"scrollable",scrollButtons:"on"},d),r.map((e=>{let{label:t,value:r,additionalLabel:n,dataReltioId:a}=e,l=u(e,["label","value","additionalLabel","dataReltioId"]);return o().createElement(i.Z,c({classes:p||{root:b.tabRoot,disabled:b.disabled},key:r,value:r,label:y(t,n),"data-reltio-id":a},l))})))}},16025:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(24328),o=r.n(n),a=r(94574),i=r(63015);function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=e=>{let{classes:t}=e,r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["classes"]);const n=(0,i.y)({});return o().createElement(a.Z,l({classes:s({},t,{focused:n.white})},r))}},77565:(e,t,r)=>{r.d(t,{Z:()=>f});var n=r(24328),o=r.n(n),a=r(13980),i=r.n(a),l=r(94079),s=r(83543);const c=(0,r(79692).Z)((()=>({viewMoreLessLink:{display:"flex",alignItems:"center",cursor:"pointer"},arrow:{marginRight:"8px",marginLeft:"-2px",transform:"rotate(0deg)",transition:"transform 0.35s ease"},rotated:{transform:"rotate(-180deg)"}})));var u=r(71153),p=r.n(u),d=r(87918),b=r.n(d);const y=e=>{let{active:t,onClick:r,className:n}=e;const a=c();return o().createElement(l.Link,{className:p()(a.viewMoreLessLink,n),onClick:r,underline:"none"},o().createElement(s.Z,{className:p()(a.arrow,{[a.rotated]:t})}),t?b().text("View less"):b().text("View more"))};y.propTypes={active:i().bool,onClick:i().func,className:i().string};const f=y},63072:(e,t,r)=>{r.d(t,{b:()=>i});var n=r(24328),o=r(65503),a=r(56764);const i=e=>{let{filter:t,max:r,offset:i,entityUri:l}=e;return(0,n.useCallback)((async()=>{const e=(0,a.U)(t),n=await(0,o.k6v)({filter:e,max:r,offset:i,entityUri:l}),{total:s}=await(0,o.FEC)({filter:e,entityUri:l});return{data:n,total:s}}),[t,r,i,l])}},78620:(e,t,r)=>{r.d(t,{R:()=>u});var n=r(24328),o=r(65503),a=r(17440),i=r(52730),l=r(49885);function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=e=>{let{connection:t,onConnectionChange:r,relatedEntity:c}=e;const u=(0,i.useSelector)(l.ZP.selectors.getMetadata),p=(0,n.useCallback)((e=>r(s({},t,{relation:e}))),[t,r]),d=(0,n.useCallback)((0,a.pipe)((0,o.zE1)(t.relation),p),[t.relation,p]),b=(0,n.useCallback)((0,a.pipe)((0,o.lIv)(t.relation),p),[t.relation,p]),y=(0,n.useCallback)((0,a.pipe)((0,o.Ilm)(t.relation),p),[t.relation,p]),f=(0,n.useCallback)((e=>{let{type:n,direction:a}=e;const i={entity:t.entity&&(0,o.eHk)(a===o.Nsj.OUT,t.entity,c,u,(0,o.V3K)(u,n))?t.entity:null,relation:s({},t.relation,{attributes:{},type:n,direction:a})};r(i)}),[t,r,c,u]);return{onAddAttributes:d,onChangeAttribute:b,onRemoveAttribute:y,onChangeEntity:(0,n.useCallback)((e=>r(s({},t,{entity:e}))),[t,r]),onChangeRelationType:f}}},2804:(e,t,r)=>{r.d(t,{a:()=>o});var n=r(24328);const o=e=>{const[t,r]=(0,n.useState)(!1),[o,a]=(0,n.useState)({});return(0,n.useEffect)((()=>{e().then((e=>{a(e||{})})).then((e=>r(!0))).catch((e=>r(!0)))}),[]),{isLoaded:t,savedState:o}}},4183:(e,t,r)=>{r.r(t),r.d(t,{ALWAYS_VISIBLE_TYPE_URIS:()=>Rn.S,ActionButton:()=>an.K,ActionButtonMode:()=>an.N,ActionsHookProvider:()=>Qo.G,ActivityLog:()=>n.Z,ActivityLogFilter:()=>o.Z,ActivityTypes:()=>a.I,AddWorkflowButton:()=>qr.G,ArrowExpandButton:()=>hr.Z,AssigneeSelector:()=>zr.Z,AsyncMountContext:()=>vo.g,AttributeGroupIcon:()=>cn.Z,AttributeListItem:()=>c.Z,AttributeTitle:()=>ir.Z,AttributesFilterSelector:()=>fn.Z,AttributesFiltersBuilder:()=>pn.Z,AttributesFiltersButton:()=>un.Z,AttributesList:()=>b.Z,AttributesPager:()=>v.ZP,AttributesTable:()=>Er.Z,AttributesValuesEditor:()=>yn.Z,AttributesView:()=>u.Z,AutoSizeList:()=>j.Z,AvatarWithFallback:()=>M.Z,BarChart:()=>ne.Z,BasicAttributeSelector:()=>sn.Z,BasicTable:()=>D.Z,BasicTableContext:()=>L.X,BasicTablePagination:()=>U.Z,BasicView:()=>ee.Z,BasicViewContent:()=>te.Z,BasicViewHeader:()=>re.Z,BlockImageGalleryDialogContext:()=>wo.P,BranchDecorator:()=>d.Z,COMMENTS_CONTAINER_VISIBILITY_AREA:()=>An.U,CardinalityMessage:()=>E.Z,ChartsFactory:()=>le.Z,ClickAwayProvider:()=>ye,CollaborationContext:()=>Oo.h,CollaborationContextProvider:()=>Oo.e,CollaborationItem:()=>fe.J,CollapseButton:()=>me.Z,CollapseRowButton:()=>Y.Z,ColorBar:()=>he.Z,ColoredSourceIcon:()=>or.Z,ColumnFilterType:()=>On.Dq,ColumnsDataType:()=>On.uz,ColumnsSettings:()=>W.Z,ColumnsSettingsPopup:()=>H.G,CommentsContainer:()=>ge.Z,ConfigureColumnsPopup:()=>Ce.Z,ConfirmDeleteDialog:()=>vr.Z,ConfirmationDialog:()=>Sr.Z,ConnectionEditor:()=>dn.n,ConnectionRelationTypeSelector:()=>we.Z,CrosswalkDragLayer:()=>wr.Z,CrosswalkEditor:()=>Ar.Z,CrosswalkType:()=>Rr.Y,CrosswalksDisplayProvider:()=>jo.hR,DEFAULT_GOOGLE_MAP_OPTIONS:()=>Tn.Q3,DEFAULT_OVERLAY_OPTIONS:()=>Tn.r,DataTenantBadge:()=>En.R,DataTypeValue:()=>Oe.Z,DataTypeValueEditor:()=>Le.Z,DateEditor:()=>Be.Z,DateRangeEditor:()=>De.Z,DefaultCellValueRenderer:()=>F.Z,DeltaTypes:()=>i.w,DependentLookupAutopopulationContext:()=>$o.m,DescriptionIcon:()=>p.Z,DragAndDrop:()=>bn.l,Drawer:()=>Ae.Z,DropDownEditor:()=>ke.Z,DropDownMenuButton:()=>Re.Z,DropDownSelector:()=>Te.Z,DropdownIndicator:()=>Ze.Z,DropdownIndicatorWithIconButton:()=>Se.Z,EMPTY_STATE_ICONS:()=>Ue.B9,EMPTY_STATE_VARIANTS:()=>Ue.tC,EditableAttribute:()=>C.Z,EditableImageAttributesLine:()=>R.Z,EmptyState:()=>Ue.ZP,EmptyStub:()=>kn.Vd,EntitiesMapContext:()=>Io.X,EntityAvatar:()=>Fe.Z,EntityContext:()=>Wo.u,EntityCreator:()=>y.Z,EntityLoadingIndicationProvider:()=>Bo.f,EntityMarkerContext:()=>Do.P,EntitySelector:()=>f.Z,EntityTypeBadge:()=>_e.Z,EntityTypeIcon:()=>qe.Z,EntityTypesSelector:()=>Ge.Q,EntityUriLink:()=>$e.Z,ErrorBoundary:()=>Ye.Z,ErrorMessage:()=>xr.Z,ErrorPopup:()=>Qe.Z,ErrorWrapper:()=>Xe.Z,ExpandableSearchInput:()=>pr.i,ExpandedAttributesProvider:()=>Mo.R,ExpandedValueTooltip:()=>Je.Z,FacetViewHeader:()=>Ke.Z,FeaturesContext:()=>zo.Y,FileTypeEditor:()=>We.Z,FilterButton:()=>V.Z,FilterValueEditor:()=>Ie.Z,FlipCard:()=>ct,HideOnShrink:()=>ut.Z,HierarchicalAttributeTooltip:()=>pt.Z,HierarchyNodeTitle:()=>Pn.Z,HighlightedValuesContext:()=>Uo.j,Highlighter:()=>dt.Z,HistoryActivityType:()=>Vr.M,HistoryChangeTypes:()=>Hr.b,HistoryDiffContext:()=>Eo.m,HistoryHeader:()=>Lr.Z,HistoryPanelEmptyState:()=>Wr.Z,HistoryView:()=>Br.Z,IdContext:()=>xo.B,ImageAttributesLine:()=>A.Z,ImageGalleryDialog:()=>bt.C,ImportButton:()=>yt.Z,ImportModes:()=>yt.E,InlineAttributesPager:()=>yr.Z,InlineImageAttribute:()=>mr.Z,InlineNestedAttribute:()=>br.Z,InlineReferenceAttribute:()=>fr.Z,InterceptHandlersContext:()=>lo.p,LabelsContext:()=>Go.T,LightArrowTooltip:()=>gr.Z,LinearLoadIndicator:()=>ft.Z,Link:()=>mt.Z,LoadMoreButton:()=>ve.Z,LoadingSpinner:()=>ht.Z,MAP_DRAWING_MODES:()=>Tn.vl,MAP_MINIMUM_SCALE_RADIUS:()=>Tn.Pi,Marginator:()=>Zr.Z,MatchRuleVariant:()=>Zt.g,MatchRulesBlock:()=>gt.Z,MatchRulesSelector:()=>hn.Z,MenuList:()=>Ee.Z,MenuWithPopper:()=>Pe.Z,MergeButton:()=>nn.H,ModeSwitcher:()=>Et.Z,ModeSwitcherSelect:()=>Pt.T,MoreAttributesButton:()=>m.Z,MultiSelect:()=>It.Z,MultiValueChip:()=>je.Z,MultiValueSelector:()=>mn.Z,MultipleInput:()=>Ct.Z,NestedAttribute:()=>T.Z,NestedAttributeEditor:()=>h.Z,NoData:()=>Ve.J,NoResults:()=>He.X,NotMatchButton:()=>on.i,NumberEditor:()=>Me.Z,OvIcon:()=>Ur.Z,PageRequestsAbortingContext:()=>Yo.F,PerspectivesSettingsContext:()=>To.n,PieChart:()=>oe.Z,PivotingAttributeContext:()=>Ro.J,Popper:()=>wt.Z,PopupBoundariesContext:()=>Po.p,PopupWithArrow:()=>Ot.Z,PotentialMatchReviewCard:()=>At.Z,ProfileBand:()=>Rt.Z,ProfileBandHistory:()=>Nr.Z,ProfileBandNavigation:()=>J.a,ProfileCard:()=>Tt.Z,ProfileMatchCard:()=>rn.M,ProfilePerspectiveViewContext:()=>ko.j,ProfileResizablePanes:()=>Wt.n,ProfilesList:()=>ln.Z,QueryBuilderAttributeDataType:()=>On.eB,QueryBuilderAttributeType:()=>On.Xw,QueryBuilderRow:()=>kt.Z,QueryBuilderRowsGroup:()=>xt.Z,ReactSelectOptionFilters:()=>jt.Z,ReactSortableTree:()=>Mt.ZP,ReactSortableTreeHandlers:()=>Dt.ZP,ReactSortableTreeUtils:()=>Bt.ZP,ReadOnlyAttribute:()=>P.Z,ReadOnlyAttributeValuesBlock:()=>w.Z,ReadOnlyAttributesList:()=>O.Z,ReadOnlyAttributesPager:()=>I.Z,ReferenceAttribute:()=>k.Z,ReferenceAttributeEditor:()=>g.Z,RelatedObjectUrisContext:()=>No.A,RelationEditor:()=>Fr.Z,RelationTypeSelector:()=>Z.Z,RelationTypesSelector:()=>ze.U,RelevanceScoreBadge:()=>wn.Z,ReloadFacetProvider:()=>Vo.DX,ReltioGridLayout:()=>Lt.Z,ReltioMap:()=>kr.Z,RequestStates:()=>Xo.o,RequiredMark:()=>Cn.Z,ResizablePanes:()=>Nt.u,RowCellAutoSizer:()=>$.Z,SandboxAPIContext:()=>so.Y,ScreenProfileBand:()=>K.n,ScrollToElementContext:()=>_o.NY,ScrollToElementProvider:()=>_o.fy,ScrollType:()=>_o.g4,ScrollableTabs:()=>dr.Z,SearchFiltersContext:()=>Ho.I,SearchInput:()=>Vt.Z,SearchValueContext:()=>Fo.l,SelectionPopup:()=>Ft.Z,SelectionPopupPopper:()=>$t,SelectorWithOnlyOptionAutoSelect:()=>Yt.Z,SettingsMenu:()=>vn.Z,SideButtonsPanel:()=>Qt.G,SidePanel:()=>Jt.h,SidePanelContentHeader:()=>Kt.P,SidePanelEmptyState:()=>Xt.Z,SimpleAttribute:()=>x.Z,SimpleAttributeEditor:()=>S.Z,SimpleDropDownSelector:()=>er.Z,SimpleMatchRulesBlock:()=>St.Z,SmallIconButton:()=>rr.Z,SmallIconButtonWithTooltip:()=>tr.k,SnackbarContext:()=>io.S,SortingType:()=>On.nI,SourceCrosswalksRow:()=>Or.Z,SourceIcon:()=>nr.Z,SourceSystemsSelector:()=>gn.Z,Spacer:()=>ar.Z,TableContext:()=>L.X,TableWithBars:()=>ae.Z,TaskActionButtons:()=>en.o,TaskActions:()=>Gr.Z,TenantIcon:()=>Zn.c,TenantsDropDownSelector:()=>Sn.H,TextEditor:()=>xe.Z,TimestampEditor:()=>Ne.Z,TransitiveMatchBlock:()=>vt.Z,TreeChart:()=>ie.Z,UrlGeneratorsContext:()=>qo.v,UsersContext:()=>Ao.s,VerticalDivider:()=>lr.Z,VerticalHeadingsTable:()=>sr.Z,ViewIdContext:()=>Co.m,ViewMoreToggle:()=>cr.Z,VirtualGroupedList:()=>ur.Z,WhiteSearchInput:()=>Ht.Z,WorkflowComments:()=>$r.V,WorkflowTaskCard:()=>_r.s,WorkflowTasksContext:()=>Lo.O,basicTableViewState:()=>z.ZP,buildColumnsFilter:()=>G.Tz,columnFilterToMdmFilter:()=>G.su,createStandardAction:()=>kn.zD,defaultGetRowCellHeight:()=>_.Z,defaultRenderRowCell:()=>q.Z,enrichDataWithPercents:()=>se.n,getChecked:()=>kn.IR,getValue:()=>kn.NA,groupCrosswalksByTypesAndSources:()=>Tr.o,isHighlightedAttributeType:()=>_o.St,isHighlightedErrorType:()=>_o.Ie,isIE:()=>kn.w1,mergeClasses:()=>kn.ze,noop:()=>kn.ZT,parseJSON:()=>kn.Rx,stopPropagation:()=>kn.UW,toggleSortOrder:()=>kn.Dh,useAPI:()=>Bn.E,useActions:()=>Dn.o,useActionsHook:()=>Qo.u,useActivitiesLoader:()=>l.d,useAsyncMount:()=>Ln.S,useAttributeExpanded:()=>Mo.Q,useBasicTableCellRenderer:()=>X.Z,useClickableStyle:()=>ce.d,useCollaboration:()=>Nn.C,useCommentsEntitiesMap:()=>Wn.Q,useConfigPermissions:()=>Qn.l,useCrosswalkActions:()=>Cr.P,useCrosswalkColor:()=>jo.nX,useCrosswalkFocus:()=>jo.BF,useCrosswalkHighlight:()=>jo.pu,useCustomScripts:()=>fo,useDidUpdateEffect:()=>Vn.D,useDynamicRowCellHeight:()=>Q.Z,useEditableConnection:()=>mo.R,useEntityLoadingIndication:()=>Bo.M,useHighlightedCrosswalks:()=>jo.RT,useHistory:()=>jr.k6,useHistoryDiff:()=>Mr.u,useHistoryEnabled:()=>Dr.C,useHistorySlice:()=>Ir.a,useIsMountedRef:()=>So.X,useKeyboardNavigation:()=>Ut.t,useMarkAsNotMatchRequest:()=>eo.m,useMatchesLoader:()=>Xn.s,useMergeAllRequest:()=>Kn._,useModifiedEntity:()=>Pr.Q,usePagingSimulator:()=>Jn.a,usePerspectivesSettings:()=>To._,usePrevious:()=>Hn.D,useProfileActivitiesLoader:()=>s.b,useReadableSearchState:()=>ho.v,useRelationTypeSelector:()=>Un.n,useRelationsLoader:()=>Fn.a,useReloadAllFacets:()=>Vo.Hc,useReloadFacet:()=>Vo.T,useRunOnceAfterValueInitialization:()=>_n.q,useSafePromise:()=>qn._,useSavedState:()=>Gn.a,useSavedStateForEntityType:()=>go.w,useScrollToAttributeError:()=>Mn.B,useSnackbar:()=>Zo.D,useUsers:()=>zn.U,useWhyDidYouUpdate:()=>Yn,useWorkflowActions:()=>Xr.t,useWorkflowAssignee:()=>Yr.r,useWorkflowCheckPermission:()=>Jr.Z,useWorkflowComments:()=>Qr.W,useWorkflowDefaultActionSuccessHandler:()=>tn.b,useWorkflowTasks:()=>Kr.v,withAsyncMount:()=>In.Z,withContext:()=>jn.l,withFilterAtBottom:()=>N.Z,withPercents:()=>se.Z,withTableContext:()=>B.Z,withTooltip:()=>xn.Z});var n=r(88234),o=r(46188),a=r(31537),i=r(99601),l=r(67486),s=r(63072),c=r(7785),u=r(8962),p=r(98448),d=r(95974),b=r(91262),y=r(31588),f=r(81077),m=r(90473),h=r(62630),g=r(2163),Z=r(27185),S=r(33889),v=r(72045),E=r(93140),P=r(81303),C=r(96811),w=r(87760),O=r(80931),A=r(13074),R=r(24338),T=r(28751),k=r(22544),x=r(12068),I=r(8683),j=r(30739),M=r(97991),D=r(85709),B=r(32528),L=r(13688),N=r(67353),W=r(60894),V=r(1876),H=r(47458),U=r(58662),F=r(64091),_=r(25461),q=r(14838),G=r(37754),z=r(26180),$=r(97946),Y=r(74566),Q=r(74402),X=r(46177),J=r(79618),K=r(40715),ee=r(10237),te=r(4094),re=r(92778),ne=r(40801),oe=r(79527),ae=r(83535),ie=r(3292),le=r(66675),se=r(84900),ce=r(99256),ue=r(24328),pe=r.n(ue),de=r(1292);function be(){return be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},be.apply(this,arguments)}const ye=e=>pe().createElement(de.Z,be({mouseEvent:"onMouseDown"},e));var fe=r(9371),me=r(58241),he=r(43290),ge=r(94646),Ze=r(94113),Se=r(96808),ve=r(6029),Ee=r(14952),Pe=r(36179),Ce=r(89119),we=r(7154),Oe=r(72768),Ae=r(27652),Re=r(55847),Te=r(24737),ke=r(79026),xe=r(81174),Ie=r(24754),je=r(82455),Me=r(31890),De=r(59983),Be=r(8459),Le=r(28117),Ne=r(43305),We=r(27113),Ve=r(6230),He=r(94889),Ue=r(21077),Fe=r(53180),_e=r(68439),qe=r(34e3),Ge=r(59725),ze=r(32371),$e=r(31039),Ye=r(2256),Qe=r(585),Xe=r(26579),Je=r(95613),Ke=r(93416),et=r(79692);const tt=e=>`rotateY(${e?180:0}deg)`,rt=e=>`rotateX(${e?180:0}deg)`,nt=e=>`rotateY(${e?0:-180}deg)`,ot=e=>`rotateX(${e?0:-180}deg)`,at=(0,et.Z)({back:e=>{let{isFlipped:t,direction:r}=e;return{WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden",height:"100%",left:"0",position:t?"relative":"absolute",top:"0",transform:"horizontal"===r?nt(t):ot(t),transformStyle:"preserve-3d",transition:"0.7s",width:"100%",display:"flex"}},container:e=>{let{cardZIndex:t}=e;return{perspective:"1000px",zIndex:t}},flipper:{height:"100%",position:"relative",width:"100%"},front:e=>{let{isFlipped:t,direction:r}=e;return{WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden",height:"100%",left:"0",position:t?"absolute":"relative",top:"0",transform:"horizontal"===r?tt(t):rt(t),transformStyle:"preserve-3d",transition:"0.7s",width:"100%",zIndex:2,display:"flex"}}});var it=r(71153),lt=r.n(it);const st=(0,ue.forwardRef)(((e,t)=>{let{cardZIndex:r="auto",direction:n="vertical",isCardFlipped:o=!1,children:a,className:i}=e;const[l,s]=(0,ue.useState)(o),c=at({cardZIndex:r,direction:n,isFlipped:l});return(0,ue.useEffect)((()=>{o!==l&&s(o)}),[o,l]),pe().createElement("div",{className:lt()(c.flipper,i),ref:t},pe().createElement("div",{"data-id":"front",className:c.front},a[0]),pe().createElement("div",{"data-id":"back",className:c.back},a[1]))})),ct=st;var ut=r(75512),pt=r(46813),dt=r(27239),bt=r(81853),yt=r(81727),ft=r(99136),mt=r(55400),ht=r(37014),gt=r(22071),Zt=r(77245),St=r(74615),vt=r(93301),Et=r(83401),Pt=r(22860),Ct=r(48809),wt=r(66130),Ot=r(59601),At=r(35071),Rt=r(64459),Tt=r(33310),kt=r(17349),xt=r(41315),It=r(92575),jt=r(50905),Mt=r(58600),Dt=r(65758),Bt=r(21113),Lt=r(63291),Nt=r(18798),Wt=r(97499),Vt=r(94574),Ht=r(16025),Ut=r(54763),Ft=r(97820),_t=r(25480),qt=r(94079),Gt=r(27556);function zt(){return zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zt.apply(this,arguments)}const $t=e=>{let{open:t,anchorEl:r,className:n,onClose:o,containerWidth:a,containerHeight:i,paperProps:l,listContent:s,externalInputField:c,classes:u={}}=e;const p=(0,_t.Z)({containerWidth:a,containerHeight:i});return pe().createElement("div",{className:u.root},c,pe().createElement(wt.Z,{open:t,onClose:o,anchorEl:r,placement:"bottom-start",transition:!0},(e=>{let{TransitionProps:t}=e;return pe().createElement(qt.Grow,t,pe().createElement(Gt.Z,zt({elevation:2},l),pe().createElement("div",{className:lt()(p.container,n),style:{width:a}},pe().createElement("div",{className:p.list},s))))})))};var Yt=r(43775),Qt=r(39827),Xt=r(10159),Jt=r(52043),Kt=r(17308),er=r(31517),tr=r(8818),rr=r(22385),nr=r(94175),or=r(58355),ar=r(51229),ir=r(95629),lr=r(30553),sr=r(34635),cr=r(77565),ur=r(44890),pr=r(32152),dr=r(32431),br=r(58896),yr=r(4073),fr=r(85592),mr=r(22246),hr=r(19592),gr=r(94111),Zr=r(31269),Sr=r(81137),vr=r(85209),Er=r(20982),Pr=r(85965),Cr=r(39417),wr=r(48017),Or=r(52017),Ar=r(79769),Rr=r(77243),Tr=r(90186),kr=r(95299),xr=r(76134),Ir=r(57730),jr=r(44021),Mr=r(76536),Dr=r(71820),Br=r(54362),Lr=r(91515),Nr=r(3409),Wr=r(6674),Vr=r(65942),Hr=r(55912),Ur=r(66410),Fr=r(11013),_r=r(46626),qr=r(26789),Gr=r(46628),zr=r(30078),$r=r(27194),Yr=r(5434),Qr=r(43477),Xr=r(10186),Jr=r(22994),Kr=r(61756),en=r(65321),tn=r(4109),rn=r(49734),nn=r(93428),on=r(30885),an=r(98808),ln=r(82842),sn=r(99757),cn=r(79821),un=r(63172),pn=r(12714),dn=r(14363),bn=r(6521),yn=r(70215),fn=r(64731),mn=r(52309),hn=r(58970),gn=r(54337),Zn=r(59651),Sn=r(95474),vn=r(14377),En=r(86776),Pn=r(5598),Cn=r(55299),wn=r(54562),On=r(94656),An=r(19603),Rn=r(78836),Tn=r(97090),kn=r(31276),xn=r(83348),In=r(49965),jn=r(48852),Mn=r(11564),Dn=r(86361),Bn=r(9757),Ln=r(96479),Nn=r(7718),Wn=r(26313),Vn=r(20562),Hn=r(30634),Un=r(89846),Fn=r(37152),_n=r(92898),qn=r(85229),Gn=r(2804),zn=r(17554);function $n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Yn=(e,t)=>{const r=(0,ue.useRef)();(0,ue.useEffect)((()=>{if(r.current){const n=Object.keys(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$n(e,t,r[t])}))}return e}({},r.current,t)),o={};n.forEach((e=>{r.current[e]!==t[e]&&(o[e]={from:r.current[e],to:t[e]})})),Object.keys(o).length&&console.log("[why-did-you-update]",e,o)}r.current=t}))};var Qn=r(52016),Xn=r(28741),Jn=r(20449),Kn=r(37432),eo=r(59119),to=r(52730),ro=r(49885),no=r(65503),oo=r(37164),ao=r(17440),io=r(97094),lo=r(47872),so=r(60115),co=r(26929),uo=r(53607);function po(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){bo(e,t,r[t])}))}return e}function bo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yo=(e,t)=>(e||[]).some((e=>{const r=new RegExp(`^${e}$`);return e.replace(/\/*$/,"")===t||e&&r.test(t)})),fo=e=>{var t;const r=e.reduce(((e,t)=>t.platform!==no.X1H.CLASSIC?[...e,po({},t,{actionId:(0,oo.x0)()})]:e),[]),n=(0,ue.useContext)(io.S),{addInternalRequestInterceptor:o,addInternalResponseInterceptor:a,removeInternalRequestInterceptor:i,removeInternalResponseInterceptor:l}=(0,ue.useContext)(lo.p),s=(0,ue.useContext)(so.Y),c=(0,to.useDispatch)(),u=null!==(t=(0,to.useSelector)(ro.ZP.selectors.getMetadata))&&void 0!==t?t:null,p=(0,to.useSelector)(ro.ZP.selectors.getEntity)||{},d=(0,to.useSelector)(ro.ZP.selectors.getUIPath),b=(0,to.useSelector)(ro.ZP.selectors.getServicesPath),y=(0,to.useSelector)(ro.ZP.selectors.getReltioPath),f=(0,to.useSelector)(ro.ZP.selectors.getTenant),m=(0,co.jm)(d,f),h=(0,to.useSelector)(ro.ZP.selectors.getApiPath),g=(0,to.useSelector)(ro.ZP.selectors.getWorkflowPath),Z=(0,to.useSelector)(ro.ZP.selectors.getUser),S=(0,to.useSelector)(ro.ZP.selectors.getEntityUri),v=(0,to.useSelector)(ro.ZP.selectors.getWorkflowEnvironmentUrl),E=(0,Jr.Z)(),{type:P,data:C}=(0,to.useSelector)(ro.ZP.selectors.getSearchProviderData)||{},w=e=>c(ro.ui.actions.openSearch(e)),O=(0,ue.useRef)({}),A=(0,ue.useRef)({}),R=(0,ue.useRef)({}),T=e=>{let{task:t,worker:r,config:o}=e;if(t)switch(t.action){case no.W0P.LOG:console.log(t.params);break;case no.W0P.MESSAGE:n(t.params);break;case no.W0P.REQUEST:{const e=(0,co.D)(b)?h:y,n=(0,ao.startsWith)("/",(0,ao.pathOr)("",["params","url"],t))&&!(0,ao.startsWith)(h,(0,ao.pathOr)("",["params","url"],t)),a=(0,ao.pathEq)(["params","name"],no.MVv.API,t),i=po({},t,{params:(0,ao.pipe)((0,ao.evolve)({url:(0,ao.ifElse)((0,ao.both)((0,ao.always)(n),(0,ao.always)(a)),(0,ao.concat)(`${e}/api/${f}`),(0,ao.replace)(y,h))}),(0,ao.when)((0,ao.has)("url"),(0,ao.assocPath)(["validationUrl"],t.params.url)))(t.params)});(0,uo.U)(po({name:i.params.name,paramObject:i,permissions:o.action.permissions,worker:r,metadata:u,config:o,user:Z,apiPath:y,servicesPath:b,tenant:f,workflowPath:g,entity:p,entityUri:S,environment:v,query:"search"===P?null==C?void 0:C.query:null,openSearch:w,workflowCheckPermission:E},s));break}case no.W0P.RETURN_PROCESSED_API_RESPONSE:{const{id:e,data:r}=t.params;A.current[e]&&(A.current[e].next(r),A.current=(0,ao.omit)([e],A.current));break}case no.W0P.RETURN_PROCESSED_API_REQUEST:{const{id:e,data:r}=t.params;O.current[e]&&(O.current[e].resolve(r),O.current=(0,ao.omit)([e],O.current));break}}};(0,ue.useEffect)((()=>{if(null!==u)return R.current=r.reduce(((e,t)=>{const r=(e=>{const{processApiResponse:t,processApiRequest:r,permissions:n,files:o}=e;return po({action:{processApiResponse:t,processApiRequest:r,permissions:n,files:o}},function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["processApiResponse","processApiRequest","permissions","files"]))})(t);return po({},e,{[t.actionId]:(0,no.QWZ)(m,T,r)})}),R.current),()=>{Object.keys(R.current).forEach((e=>{R.current[e].terminate()}))}}),[e,u]);const k=e=>{let{options:t={},url:n,next:o,resolve:a}=e;const i=n.startsWith("/")&&!n.startsWith(h)?`${y}/api/${f}${n}`:`${y}${n.replace(h,"")}`,l=(0,ao.pipe)((0,ao.map)((0,ao.pick)(["actionId","processApiRequest"])),(0,ao.find)((e=>{let{processApiRequest:t}=e;return yo(t,i)})),(0,ao.prop)("actionId"))(r);if(l){const e=(0,oo.x0)();O.current=po({},O.current,{[e]:{options:t,next:o,id:e,resolve:a}}),R.current[l].postMessage({action:"apiRequest",id:e,url:i,method:t.method,headers:po({},t.headers,{origin:"ui",requestId:e,actionId:l}),data:t.body||t.data})}else o(n,t)},x=e=>{var t;let{url:n,response:o,next:a,options:i,abort:l}=e;if("ui"===(null==i||null===(t=i.headers)||void 0===t?void 0:t.origin))o.json().then((e=>{var t,r,n;A.current=po({},A.current,{[i.headers.requestId]:{next:a}}),R.current[null===(t=i.headers)||void 0===t?void 0:t.actionId].postMessage({action:"response",result:{data:e,status:o.status},id:null==i?void 0:i.id,name:null==i||null===(r=i.task)||void 0===r||null===(n=r.params)||void 0===n?void 0:n.name})})).catch((e=>{l(e)}));else{const e=`${y}${n.replace(h,"")}`,t=(0,ao.pipe)((0,ao.map)((0,ao.pick)(["actionId","processApiResponse"])),(0,ao.find)((t=>{let{processApiResponse:r}=t;return yo(r,e)})),(0,ao.prop)("actionId"))(r);if(t){const r=(0,oo.x0)();o.json().then((n=>{A.current=po({},A.current,{[r]:{next:a}}),R.current[t].postMessage({action:"apiResponse",id:r,url:e,method:i.method,data:n})})).catch((e=>{l(e)}))}else a(o)}};(0,ue.useEffect)((()=>{if(!(0,no.O27)(r)&&u)return o(k),a(x),()=>{i(k),l(x)}}),[e,u])};var mo=r(78620),ho=r(41188),go=r(60641),Zo=r(24605),So=r(8159),vo=r(7142),Eo=r(26005),Po=r(30268),Co=r(47898),wo=r(69891),Oo=r(41564),Ao=r(49759),Ro=r(60995),To=r(19701),ko=r(26481),xo=r(52049),Io=r(31274),jo=r(63149),Mo=r(66095),Do=r(91676),Bo=r(94622),Lo=r(94150),No=r(78101),Wo=r(3185),Vo=r(98884),Ho=r(56259),Uo=r(43600),Fo=r(72249),_o=r(94773),qo=r(72383),Go=r(79468),zo=r(87451),$o=r(91186),Yo=r(75477),Qo=r(54198),Xo=r(67885)}}]);
|
|
2
2
|
//# sourceMappingURL=4183.js.map
|