@reltio/remotes 1.4.1048 → 1.4.1049
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/{9225.css → 1041.css} +0 -0
- package/1041.js +1 -0
- package/1242.js +1 -0
- package/1396.js +1 -0
- package/1707.js +1 -1
- package/2606.js +1 -0
- package/3124.js +1 -0
- package/3269.js +1 -0
- package/3431.js +1 -0
- package/39.js +1 -0
- package/4064.js +1 -0
- package/4589.js +1 -0
- package/4717.js +1 -0
- package/4887.js +1 -0
- package/5127.js +2 -0
- package/{7238.js.LICENSE.txt → 5127.js.LICENSE.txt} +0 -0
- package/5271a9e7b6651c852e93.png +0 -0
- package/546.js +1 -0
- package/590.css +633 -0
- package/590.js +1 -0
- package/6071.js +1 -0
- package/658.js +1 -0
- package/6784.js +1 -0
- package/6833.js +1 -0
- package/7478.js +2 -0
- package/{1135.js.LICENSE.txt → 7478.js.LICENSE.txt} +0 -0
- package/8684.js +1 -1
- package/8694.js +1 -0
- package/888.js +2 -0
- package/{7729.js.LICENSE.txt → 888.js.LICENSE.txt} +0 -0
- package/9147.js +1 -0
- package/9810.js +1 -1
- package/9945.js +1 -0
- package/main.js +1 -1
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/1135.js +0 -2
- package/3325.js +0 -1
- package/3349.js +0 -1
- package/4162.js +0 -1
- package/5264.js +0 -1
- package/5534.js +0 -1
- package/6215.js +0 -1
- package/6619.js +0 -1
- package/7238.js +0 -2
- package/7729.js +0 -2
- package/8482.js +0 -1
- package/9039.js +0 -1
- package/9078.js +0 -1
- package/9205.js +0 -1
- package/9225.js +0 -1
- package/9422.js +0 -1
- package/9519.js +0 -1
package/8482.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[8482],{50548:(e,t,l)=>{l.d(t,{l:()=>o});var a=l(24328),r=l.n(a);function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},n.apply(this,arguments)}const o=(e,t,l)=>{if(e&&t){const o=(0,a.memo)(l);return l=>r().createElement(e.Consumer,null,(e=>r().createElement(o,n({},l,t(e,l)))))}return l}},42639:(e,t,l)=>{l.d(t,{Z:()=>p});var a,r=l(43434),n=l(71153),o=l.n(n),i=l(24328),c=l.n(i);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},s.apply(this,arguments)}!function(e){e[e.ICON_MODE=0]="ICON_MODE",e[e.TEXT_MODE=1]="TEXT_MODE",e[e.ERROR_MODE=2]="ERROR_MODE"}(a||(a={}));const p=e=>{let{className:t,icon:l,avatarText:n,rootClasses:p}=e,d=function(e,t){if(null==e)return{};var l,a,r=function(e,t){if(null==e)return{};var l,a,r={},n=Object.keys(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||(r[l]=e[l]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(r[l]=e[l])}return r}(e,["className","icon","avatarText","rootClasses"]);const[f,m]=(0,i.useState)(null);(0,i.useEffect)((()=>{m(l?a.ICON_MODE:a.TEXT_MODE)}),[l,n]);const u=()=>{m(a.ERROR_MODE)};switch(f){case a.ICON_MODE:return c().createElement(r.Z,s({className:o()(t,null==p?void 0:p.iconRoot),src:l,onError:u},d));case a.TEXT_MODE:case a.ERROR_MODE:return c().createElement(r.Z,s({className:o()(t,null==p?void 0:p.textRoot)},d),n);default:return null}}},30488:(e,t,l)=>{l.d(t,{Z:()=>n});var a=l(38748),r=l(50548);const n=e=>t=>(0,r.l)(a.X,e,t)},42011:(e,t,l)=>{l.d(t,{Z:()=>y});var a=l(13980),r=l.n(a),n=l(24328),o=l.n(n),i=l(71153),c=l.n(i),s=l(28899),p=l(87918),d=l.n(p),f=l(79573),m=l(17440);const u=(0,l(79692).Z)({pagination:{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"56px",borderTop:"1px solid rgba(0,0,0,0.12)",boxShadow:"none"},caption:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px"},selectRoot:{marginLeft:"5px",marginRight:"36px"},select:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px",textAlign:"right"},actions:{marginLeft:"32px"}});function h(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(l);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(l).filter((function(e){return Object.getOwnPropertyDescriptor(l,e).enumerable})))),a.forEach((function(t){g(e,t,l[t])}))}return e}function g(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}const E=e=>{let{classes:t={},count:l,rowsPerPageOptions:a,page:r,onChangePage:i,rowsPerPage:p,onChangeRowsPerPage:g,basicTableRef:E,labelRowsPerPage:y}=e;const v=u(),x=(0,n.useCallback)((()=>{(0,m.pathOr)(m.identity,["current","resetScrollbarPosition"],E)()}),[E]),b=(0,n.useCallback)((e=>{i(e),x()}),[i,x]),w=(0,n.useCallback)((e=>{i(0),g(e),x()}),[i,g,x]);return o().createElement(s.Z,{classes:h({},t,{root:c()(v.pagination,t.root),select:c()(v.select,t.select),caption:v.caption,selectRoot:v.selectRoot,actions:v.actions}),component:"div",labelRowsPerPage:y||d().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:l,count:a}=e;return d().text("${fromRow}-${toRow} of ${countRows}",{fromRow:d().number(t,"0,0"),toRow:d().number(l,"0,0"),countRows:d().number(a,"0,0")})},count:l,rowsPerPageOptions:a,page:r,onChangePage:(0,m.pipe)((0,m.nthArg)(1),b),rowsPerPage:p,onChangeRowsPerPage:(0,m.pipe)(f.NA,w)})};E.propTypes={classes:r().object,rowsPerPageOptions:r().arrayOf(r().number),count:r().number,page:r().number,onChangePage:r().func,rowsPerPage:r().number,onChangeRowsPerPage:r().func,basicTableRef:r().shape({current:r().object}),labelRowsPerPage:r().string};const y=o().memo(E)},91431:(e,t,l)=>{l.d(t,{Z:()=>m});var a=l(24328),r=l.n(a),n=l(13980),o=l.n(n),i=l(3073),c=l(28831),s=l(71153),p=l.n(s);const d=(0,l(79692).Z)((()=>({hidden:{visibility:"hidden"}}))),f=e=>{let{rowIndex:t,rowValue:l,className:n}=e;const o=d(),{toggleRowCollapse:s,getIsRowCollapsible:f,getIsRowCollapsed:m}=(0,a.useContext)(i.x),u=f(l),h=m(t);return r().createElement(c.Z,{className:p()(n,{[o.hidden]:!u}),isOpen:!h,onClick:e=>{s(t),e.stopPropagation()}})};f.propTypes={rowIndex:o().number,rowValue:o().object,className:o().string};const m=f},28831:(e,t,l)=>{l.d(t,{Z:()=>d});var a=l(24328),r=l.n(a),n=l(71153),o=l.n(n),i=l(39475),c=l(38016);const s=(0,l(79692).Z)({collapseButton:{cursor:"pointer"},expandLess:{transform:"rotate( -180deg )"}});function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},p.apply(this,arguments)}const d=e=>{let{isOpen:t=!1,tooltipTitle:l}=e,a=function(e,t){if(null==e)return{};var l,a,r=function(e,t){if(null==e)return{};var l,a,r={},n=Object.keys(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||(r[l]=e[l]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(r[l]=e[l])}return r}(e,["isOpen","tooltipTitle"]);const n=s(),d={icon:c.Z,className:n.collapseButton,iconClassName:o()({[n.expandLess]:t})},f={tooltipTitle:l};return r().createElement(i.k,p({},d,f,a))}},89902:(e,t,l)=>{l.d(t,{Z:()=>p});var a=l(24328),r=l.n(a),n=l(71153),o=l.n(n),i=l(17440);const c=(0,l(79692).Z)((e=>({bar:{backgroundColor:e.palette.secondary.main,opacity:.12,position:"absolute",minHeight:"20px",minWidth:"5px",borderRadius:"2px",top:0,left:0,height:"100%"}}))),s=e=>(0,i.is)(Number,e),p=e=>{let{className:t,width:l=0,maxWidth:n}=e;const i=c(),p=(0,a.useCallback)((e=>(n?100*e/n:0)+"%"),[n]);return l?r().createElement("div",{className:o()(i.bar,t),style:{width:s(l)?p(l):l}}):null}},80560:(e,t,l)=>{l.d(t,{Z:()=>O});var a=l(24328),r=l.n(a),n=l(13980),o=l.n(n),i=l(87918),c=l.n(i),s=l(71153),p=l.n(s),d=l(17440),f=l(18435),m=l(22311),u=l(33117),h=l(41008),g=l(63485),E=l(26638),y=l(94792);const v=(0,l(79692).Z)((()=>({popupContainer:{},container:{"&$popupContainer":{height:"408px",minWidth:"200px"}}})));function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},x.apply(this,arguments)}function b(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(l);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(l).filter((function(e){return Object.getOwnPropertyDescriptor(l,e).enumerable})))),a.forEach((function(t){w(e,t,l[t])}))}return e}function w(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}const C=e=>{let{open:t,anchorEl:l,data:n,onSearch:o,onClose:i,titleText:c,filterText:s,onListItemClick:w,selected:C,hideCheckBox:O,renderGroupTitle:S}=e,_=function(e,t){if(null==e)return{};var l,a,r=function(e,t){if(null==e)return{};var l,a,r={},n=Object.keys(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||(r[l]=e[l]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(r[l]=e[l])}return r}(e,["open","anchorEl","data","onSearch","onClose","titleText","filterText","onListItemClick","selected","hideCheckBox","renderGroupTitle"]);const z=(0,a.useCallback)((e=>e.label.toLowerCase().includes(s.toLowerCase())),[s]),M=(0,a.useCallback)((e=>z(e)||(e.children||[]).some(M)),[z]),R=(0,a.useMemo)((()=>{const e=(0,d.curry)(((e,l,a,r)=>[{item:b({},l,{filterText:s}),level:e,groupId:a,groupName:r},...t(l.children||[],a,r,e+1)])),t=function(t,l,a){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const n=t=>e(r,t,l,a),o=t.filter(M);return(S?d.map:d.chain)(n,o)};return t}),[s,S,M]),F=(0,a.useCallback)((e=>e.map((e=>({item:e,items:R(e.attributes,e.id,e.label)}))).filter((e=>e.items.length))),[R]),B=(0,a.useCallback)((e=>{let{item:t}=e;w(t,!C.find((e=>e.id===t.id||e.id.includes(`${t.id}.`))))}),[w,C]),k=(0,a.useMemo)((()=>(S?F:R)(n)),[n,S,F,R]),D=(0,a.useMemo)((()=>(0,h.LG)(k)),[k]),{focusIndex:I,handleKeyDown:H}=(0,E.t)({items:D,open:t,onSelectFocusedItem:B,selectedItems:C}),A=(0,a.useRef)(null);A.current=I;const T=(0,a.useCallback)(((e,t,l)=>{let{item:a,level:n=0}=t;const o=!!C.find((e=>e.id===a.id||e.id.includes(`${a.id}.`))),i=A.current===l;return r().createElement(u.Z,{key:a.id,onClick:w,checked:o,level:n,data:a,label:r().createElement(y.Z,{text:a.label,highlight:a.filterText}),labelInText:a.label,style:e,hideCheckBox:O,isFocused:i,notSelectable:a.notSelectable,LogoIcon:a.LogoIcon})}),[O,w,C]),P=(0,f.fW1)("label")(k)||308,N=v();return r().createElement(m.Z,x({open:t,className:p()(N.container,N.popupContainer),anchorEl:l,onClose:i,onSearch:o,title:c,containerWidth:P,searchInputOnKeyDown:H},_),r().createElement(g.Z,{height:300,renderItem:T,items:D,hideSubtitles:!0,getItemSize:()=>32,containerWidth:P,focusIndex:I,renderGroupTitle:S}))};C.propTypes={open:o().bool,hideCheckBox:o().bool,anchorEl:o().any,selected:o().array,data:o().array,filterText:o().string,titleText:o().string,onClose:o().func,onListItemClick:o().func,onSearch:o().func,renderGroupTitle:o().func},C.defaultProps={data:[],selected:[],titleText:c().text("Show/hide columns"),filterText:""};const O=C},87086:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(24328),r=l.n(a),n=l(4190),o=l(60364);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},i.apply(this,arguments)}const c=e=>{let{open:t=!0,children:l}=e,c=function(e,t){if(null==e)return{};var l,a,r=function(e,t){if(null==e)return{};var l,a,r={},n=Object.keys(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||(r[l]=e[l]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(r[l]=e[l])}return r}(e,["open","children"]);const[s,p]=(0,a.useState)(t),d=(0,o.Z)().transitions.duration.leavingScreen;return(0,a.useEffect)((()=>{if(t!==s){if(!t){const e=setTimeout((()=>{p(!1)}),d);return()=>clearTimeout(e)}p(!0)}}),[t,d,s]),r().createElement(n.ZP,i({open:t},c),s&&l)};c.displayName="Drawer";const s=c},79002:(e,t,l)=>{l.d(t,{B9:()=>u,tC:()=>m,ZP:()=>h});var a=l(24328),r=l.n(a),n=l(17440),o=l(90436),i=l(77277);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},c.apply(this,arguments)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},s.apply(this,arguments)}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},p.apply(this,arguments)}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},d.apply(this,arguments)}const f=(0,l(79692).Z)((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"10px",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box","& $text":{color:e.palette.text.secondary,fontSize:"20px",fontWeight:300,lineHeight:"24px",letterSpacing:"0.25px",textAlign:"center"},"& $secondaryText":{color:"rgba(0, 0, 0, 0.54)",fontSize:"15px",fontWeight:300,lineHeight:"18px",letterSpacing:"0.11px",textAlign:"center",paddingTop:"3px"}},embedded:{flexShrink:0,width:"190px",height:"190px",padding:"8px"},full:{width:"256px",height:"256px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:500,marginTop:"16px"},text:{},secondaryText:{},button:{minHeight:36,minWidth:64,maxWidth:500,padding:"10px 16px",borderRadius:"2px",boxShadow:"0 0 2px 0 rgba(0,0,0,0.12), 0 2px 2px 0 rgba(0,0,0,0.24), 0 0 8px 0 rgba(0,0,0,0.12), 0 8px 8px 0 rgba(0,0,0,0.24)",fontSize:"14px",fontWeight:500,lineHeight:"16px",marginTop:"24px"}})));let m;!function(e){e.full="full",e.embedded="embedded"}(m||(m={}));const u={SEARCH_RESULTS:e=>r().createElement("svg",c({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),r().createElement("defs",null,r().createElement("radialGradient",{cx:"50%",cy:"100%",fx:"50%",fy:"100%",r:"81.681%",gradientTransform:"matrix(.98998 0 0 .612 .005 .388)",id:"EmptySearchResults_svg__c"},r().createElement("stop",{stopColor:"#00BFFF",stopOpacity:.5,offset:"0%"}),r().createElement("stop",{stopColor:"#9EE8FF",stopOpacity:0,offset:"100%"})),r().createElement("radialGradient",{cx:"50%",cy:"111.651%",fx:"50%",fy:"111.651%",r:"87.693%",gradientTransform:"matrix(0 -.97693 .7263 0 -.31 1.605)",id:"EmptySearchResults_svg__f"},r().createElement("stop",{stopColor:"#91F8E5",stopOpacity:.6,offset:"0%"}),r().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),r().createElement("radialGradient",{cx:"50%",cy:"103.659%",fx:"50%",fy:"103.659%",r:"90.207%",gradientTransform:"matrix(0 -1 2.23905 0 -1.821 1.537)",id:"EmptySearchResults_svg__g"},r().createElement("stop",{stopColor:"#FFF",offset:"0%"}),r().createElement("stop",{stopColor:"#73FAFF",stopOpacity:.21,offset:"59.38%"}),r().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),r().createElement("linearGradient",{x1:"50%",y1:"170.771%",x2:"50%",y2:"10.303%",id:"EmptySearchResults_svg__e"},r().createElement("stop",{stopColor:"#91F8E5",offset:"0%"}),r().createElement("stop",{stopColor:"#99FCFF",stopOpacity:0,offset:"100%"})),r().createElement("filter",{x:"-25.9%",y:"-26.2%",width:"151.8%",height:"152.3%",filterUnits:"objectBoundingBox",id:"EmptySearchResults_svg__d"},r().createElement("feGaussianBlur",{stdDeviation:15,in:"SourceGraphic"})),r().createElement("circle",{id:"EmptySearchResults_svg__a",cx:128,cy:128,r:128})),r().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r().createElement("mask",{id:"EmptySearchResults_svg__b",fill:"#fff"},r().createElement("use",{xlinkHref:"#EmptySearchResults_svg__a"})),r().createElement("use",{fillOpacity:.2,fill:"#A792CD",xlinkHref:"#EmptySearchResults_svg__a"}),r().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},r().createElement("g",{transform:"translate(56 34)"},r().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},r().createElement("path",{d:"M0 6.99C0 3.13 3.137 0 7 0h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H7c-3.866 0-7-3.143-7-6.99V6.99z"}),r().createElement("path",{d:"M13 25.99c0-3.86 3.137-6.99 7-6.99h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H20c-3.866 0-7-3.143-7-6.99V25.99z",opacity:.4})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 45.833)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),r().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),r().createElement("path",{d:"M35.365.861h69.768a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M34.274 15.048h126.164a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),r().createElement("rect",{fill:"#645F6D",opacity:.5,x:21.756,y:17.46,width:87.022,height:12.004,rx:6.002}),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 87.302)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),r().createElement("rect",{fill:"#E3EBF4",x:0,y:1.091,width:20.668,height:20.734,rx:10.334}),r().createElement("path",{d:"M35.365.861h82.647a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M34.274 15.048H174.58a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M33.182 24.869h113.119a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 128.77)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),r().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),r().createElement("path",{d:"M35.365.861h110.929a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M34.274 15.048h92.443a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})))),r().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},r().createElement("path",{fill:"#446275",d:"M72.246 84.033l8.66 5-35.5 61.488-8.66-5-12.556-24.729-51.307-29.622 20.431-35.388 50.648 29.242z"}),r().createElement("path",{d:"M62.906 120.21l-80.091-46.24 10.5-18.188 50.647 29.242 28.284-.99 8.66 5-18 31.176z",fillOpacity:.2,fill:"#FFF"}),r().createElement("path",{d:"M27.566 75.558L3.877 109.065l-5.013-2.895 26.045-32.146 2.657 1.534zm9.467 5.466L13.345 114.53l-5.014-2.895L34.377 79.49l2.656 1.534zm8.158 4.71l-22.32 34.297-5.013-2.895L43.903 84.99l1.288.744z",fill:"#527585"}),r().createElement("path",{d:"M11.524 90.544l13.385-16.52 2.657 1.534-12.174 17.22-3.868-2.234zm9.467 5.467L34.377 79.49l2.656 1.534-12.174 17.22-3.868-2.233zm9.527 5.5L43.903 84.99l1.288.744-11.47 17.626-3.203-1.85z",fill:"#76A2B5",opacity:.6}),r().createElement("path",{d:"M.355 59.848l-23.689 33.507-5.013-2.895 26.045-32.146 2.657 1.534zm9.468 5.466L-13.866 98.82l-5.013-2.895L7.166 63.78l2.657 1.534zm8.158 4.71L-4.34 104.32l-5.014-2.895L16.692 69.28l1.289.744z",fillOpacity:.1,fill:"#000"}),r().createElement("g",null,r().createElement("path",{fill:"url(#EmptySearchResults_svg__c)",opacity:.993,filter:"url(#EmptySearchResults_svg__d)",d:"M.63 0h173.74L123 172H52z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"url(#EmptySearchResults_svg__e)",opacity:.3,d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"url(#EmptySearchResults_svg__f)",opacity:.3,d:"M4 2h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"url(#EmptySearchResults_svg__g)",d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"#FFF",opacity:.196,d:"M212.363 205.344l-1 1.732L60.418 124.52l4.977-8.62z"})),r().createElement("path",{fill:"#76A2B5",d:"M73.112 84.533l-35.5 61.488-.866-.5 35.5-61.488z"}),r().createElement("path",{fill:"#F3F3F3",d:"M80.906 89.033l-35.5 61.488-.866-.5 35.5-61.488z"}),r().createElement("path",{fill:"#538196",d:"M55.112 115.71l-17.5 30.311-.866-.5 17.5-30.31z"})))),SELECT_ATTRIBUTES:e=>r().createElement("svg",s({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),r().createElement("defs",null,r().createElement("linearGradient",{x1:"79.375%",y1:"86.747%",x2:"32.207%",y2:"33.403%",id:"SelectAttributes_svg__c"},r().createElement("stop",{stopColor:"#000",stopOpacity:0,offset:"0%"}),r().createElement("stop",{stopColor:"#000",offset:"100%"})),r().createElement("circle",{id:"SelectAttributes_svg__a",cx:128,cy:128,r:128})),r().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r().createElement("mask",{id:"SelectAttributes_svg__b",fill:"#fff"},r().createElement("use",{xlinkHref:"#SelectAttributes_svg__a"})),r().createElement("use",{fillOpacity:.2,fill:"#A792CD",xlinkHref:"#SelectAttributes_svg__a"}),r().createElement("path",{fill:"#F4F4F4",mask:"url(#SelectAttributes_svg__b)",d:"M-16 9h256v239H-16z"}),r().createElement("path",{fill:"url(#SelectAttributes_svg__c)",opacity:.05,mask:"url(#SelectAttributes_svg__b)",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865z"}),r().createElement("path",{d:"M53 58h202a7 7 0 017 7v157a7 7 0 01-7 7H53a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000",opacity:.06,mask:"url(#SelectAttributes_svg__b)"}),r().createElement("g",{mask:"url(#SelectAttributes_svg__b)"},r().createElement("path",{d:"M56 56h201a5 5 0 015 5v157a5 5 0 01-5 5H56a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#FFF",fillRule:"evenodd"}),r().createElement("path",{d:"M114.376 69.635H156a3 3 0 010 6h-41.624a3 3 0 110-6z",fill:"#B6C7DB",fillRule:"evenodd",opacity:.8}),r().createElement("path",{d:"M114 81.635h64.205a3 3 0 010 6H114a3 3 0 110-6z",fill:"#979797",fillRule:"evenodd",opacity:.2}),r().createElement("path",{d:"M114.376 160H156a3 3 0 010 6h-41.624a3 3 0 010-6z",fill:"#B6C7DB",fillRule:"evenodd",opacity:.8}),r().createElement("path",{d:"M114 172h64.205a3 3 0 010 6H114a3 3 0 010-6z",fill:"#979797",fillRule:"evenodd",opacity:.2}),r().createElement("path",{d:"M114.376 190H196a3 3 0 010 6h-81.624a3 3 0 010-6z",fill:"#B6C7DB",fillRule:"evenodd",opacity:.8}),r().createElement("path",{d:"M114 202h74.205a3 3 0 010 6H114a3 3 0 010-6z",fill:"#979797",fillRule:"evenodd",opacity:.2}),r().createElement("path",{d:"M82 190a2 2 0 012 2v14a2 2 0 01-2 2H68a2 2 0 01-2-2v-14a2 2 0 012-2h14zm0 2H68v14h14v-14z",fillOpacity:.18,fill:"#000",fillRule:"nonzero"}),r().createElement("path",{d:"M138.376 100H220a3 3 0 010 6h-81.624a3 3 0 110-6z",fill:"#B6C7DB",fillRule:"evenodd",opacity:.8}),r().createElement("path",{d:"M138 112h64.205a3 3 0 010 6H138a3 3 0 010-6z",fill:"#979797",fillRule:"evenodd",opacity:.2}),r().createElement("path",{d:"M82 100a2 2 0 012 2v14a2 2 0 01-2 2H68a2 2 0 01-2-2v-14a2 2 0 012-2h14zm0 2H68v14h14v-14z",fillOpacity:.18,fill:"#000",fillRule:"nonzero"}),r().createElement("path",{d:"M138.376 130H220a3 3 0 010 6h-81.624a3 3 0 110-6z",fill:"#B6C7DB",fillRule:"evenodd",opacity:.8}),r().createElement("path",{d:"M138 142h74.205a3 3 0 010 6H138a3 3 0 010-6z",fill:"#979797",fillRule:"evenodd",opacity:.2}),r().createElement("path",{d:"M96.514 100h2v8h9.179v2h-9.179v28.365h9.179v2H96.514V100z",fill:"#2B98F0",fillRule:"nonzero",opacity:.2}),r().createElement("path",{d:"M82 70H68a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V72a2 2 0 00-2-2z",fill:"#2B98F0",fillRule:"nonzero"}),r().createElement("path",{d:"M80.097 73.255a1.5 1.5 0 012.224 2.007l-.103.114-8.157 8.156a1.5 1.5 0 01-2.007.103l-.114-.103-3.164-3.164a1.5 1.5 0 012.007-2.225l.114.103L73 80.35l7.097-7.095z",fill:"#FFF",fillRule:"nonzero"}),r().createElement("path",{d:"M82 160H68a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-14a2 2 0 00-2-2z",fill:"#2B98F0",fillRule:"nonzero"}),r().createElement("path",{d:"M80.097 163.255a1.5 1.5 0 012.224 2.007l-.103.114-8.157 8.156a1.5 1.5 0 01-2.007.103l-.114-.103-3.164-3.164a1.5 1.5 0 012.007-2.225l.114.103L73 170.35l7.097-7.095z",fill:"#FFF",fillRule:"nonzero"}),r().createElement("path",{d:"M82 130H68a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-14a2 2 0 00-2-2z",fill:"#2B98F0",fillRule:"nonzero"}),r().createElement("path",{d:"M80.097 133.255a1.5 1.5 0 012.224 2.007l-.103.114-8.157 8.156a1.5 1.5 0 01-2.007.103l-.114-.103-3.164-3.164a1.5 1.5 0 012.007-2.225l.114.103L73 140.35l7.097-7.095z",fill:"#FFF",fillRule:"nonzero"}),r().createElement("path",{fill:"#000",fillRule:"evenodd",opacity:.54,d:"M101.071 77l-3.535 3.536L94 77z"})),r().createElement("path",{d:"M56 22h186a6 6 0 016 6v18a6 6 0 01-6 6H56a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#FFF",opacity:.6,mask:"url(#SelectAttributes_svg__b)"}),r().createElement("path",{d:"M70 31h70a6 6 0 010 12H70a6 6 0 110-12zM160 31h10a6 6 0 010 12h-10a6 6 0 010-12z",fill:"#979797",opacity:.2,mask:"url(#SelectAttributes_svg__b)"}))),NO_DATA:e=>r().createElement("svg",p({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),r().createElement("defs",null,r().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__b"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:0,offset:"0%"}),r().createElement("stop",{stopColor:"#F4F4F4",offset:"100%"})),r().createElement("linearGradient",{x1:"69.573%",y1:"86.747%",x2:"38.144%",y2:"33.403%",id:"NoData_svg__d"},r().createElement("stop",{stopColor:"#000",stopOpacity:0,offset:"0%"}),r().createElement("stop",{stopColor:"#000",offset:"100%"})),r().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__e"},r().createElement("stop",{stopColor:"#EEFBFF",offset:"0%"}),r().createElement("stop",{stopColor:"#0072CE",offset:"100%"})),r().createElement("filter",{x:"-7.7%",y:"-7.5%",width:"115.3%",height:"115%",filterUnits:"objectBoundingBox",id:"NoData_svg__f"},r().createElement("feOffset",{dx:0,dy:2,in:"SourceAlpha",result:"shadowOffsetOuter1"}),r().createElement("feGaussianBlur",{stdDeviation:2,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),r().createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0",type:"matrix",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),r().createElement("feMerge",null,r().createElement("feMergeNode",{in:"shadowMatrixOuter1"}),r().createElement("feMergeNode",{in:"SourceGraphic"}))),r().createElement("circle",{id:"NoData_svg__a",cx:128,cy:128,r:128})),r().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r().createElement("mask",{id:"NoData_svg__c",fill:"#fff"},r().createElement("use",{xlinkHref:"#NoData_svg__a"})),r().createElement("use",{fillOpacity:.1,fill:"#0072CE",xlinkHref:"#NoData_svg__a"}),r().createElement("path",{fill:"url(#NoData_svg__b)",mask:"url(#NoData_svg__c)",d:"M0 9h256v247H0z"}),r().createElement("g",{mask:"url(#NoData_svg__c)"},r().createElement("g",{transform:"translate(29 37)"},r().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},r().createElement("path",{fillOpacity:.8,opacity:.5,d:"M14.565 8h228.144v176.476H14.565z"}),r().createElement("path",{d:"M0 8.01C0 3.586 3.576 0 7.997 0h223.838a7.997 7.997 0 017.997 8.01v152.401c0 4.424-3.577 8.01-7.997 8.01H7.997A7.997 7.997 0 010 160.411V8.01z"})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 42.105)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),r().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),r().createElement("path",{d:"M32.488.791h64.093a3.509 3.509 0 110 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M31.486 13.824h115.902a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),r().createElement("rect",{fill:"#645F6D",opacity:.5,x:19.986,y:16.04,width:79.944,height:11.028,rx:5.514}),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 80.2)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),r().createElement("rect",{fill:"#E3EBF4",x:0,y:1.003,width:18.987,height:19.048,rx:9.493}),r().createElement("path",{d:"M32.488.791h75.925a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M31.486 13.824h128.893a2.506 2.506 0 110 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M30.483 22.846h103.918a1.504 1.504 0 010 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 118.296)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),r().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),r().createElement("path",{d:"M32.488.791h101.906a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M31.486 13.824h84.924a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})))),r().createElement("g",{mask:"url(#NoData_svg__c)"},r().createElement("path",{d:"M154.445 45.134v154.072H36.625V45.134h.811C35.508 62.52 41.07 80.609 54.12 93.944c22.74 23.235 59.61 23.235 82.352 0 13.05-13.335 18.612-31.424 16.683-48.81h1.29z",fill:"url(#NoData_svg__d)",opacity:.1,transform:"rotate(-30 291.014 34.548)"}),r().createElement("path",{d:"M27.473 93.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"url(#NoData_svg__e)",opacity:.2,transform:"translate(70 86)"}),r().createElement("g",{filter:"url(#NoData_svg__f)",strokeWidth:1,fill:"none",transform:"translate(70 86)"},r().createElement("path",{d:"M59.697 0c32.97 0 59.697 26.746 59.697 59.738 0 15.185-5.662 29.047-14.988 39.587l51.204 51.24a89.336 89.336 0 01-10.097 9.392l-51.38-51.416c-9.73 6.888-21.61 10.936-34.436 10.936C26.727 119.477 0 92.73 0 59.738 0 26.746 26.727 0 59.697 0zm0 17.756c-23.17 0-41.953 18.796-41.953 41.982s18.783 41.982 41.953 41.982 41.953-18.796 41.953-41.982-18.783-41.982-41.953-41.982z",fill:"#B5C8C9"}),r().createElement("path",{d:"M21.508 105.656C8.365 94.698 0 78.196 0 59.738 0 26.746 26.727 0 59.697 0c18.444 0 34.935 8.37 45.885 21.523l-9.794 9.8c-8.408-10.68-21.45-17.537-36.091-17.537-25.361 0-45.92 20.573-45.92 45.952 0 14.652 6.852 27.702 17.525 36.117l-9.794 9.8z",fillOpacity:.4,fill:"#FFF"})),r().createElement("path",{d:"M97.473 179.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"#D9F5FF",opacity:.4,style:{mixBlendMode:"soft-light"}}),r().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.87,fill:"#000",style:{mixBlendMode:"overlay"}}),r().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.38,fill:"#3C74B4"})))),ERROR:e=>r().createElement("svg",d({width:88,height:88,viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r().createElement("mask",{id:"Error_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:88,height:88},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),r().createElement("g",{mask:"url(#Error_svg__a)"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:.3}),r().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),r().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),r().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),r().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),r().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),r().createElement("path",{opacity:.5,d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.3,d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.8,d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),r().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.2,d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),r().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),r().createElement("g",{filter:"url(#Error_svg__filter0_d)"},r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),r().createElement("path",{opacity:.15,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),r().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),r().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),r().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),r().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#Error_svg__paint0_linear)"}),r().createElement("g",{filter:"url(#Error_svg__filter1_d)"},r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),r().createElement("g",{filter:"url(#Error_svg__filter2_d)"},r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),r().createElement("defs",null,r().createElement("filter",{id:"Error_svg__filter0_d",x:36.219,y:37.875,width:42.375,height:42.375,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:2}),r().createElement("feGaussianBlur",{stdDeviation:2}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"Error_svg__filter1_d",x:51.688,y:62.625,width:11.438,height:11.438,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:2}),r().createElement("feGaussianBlur",{stdDeviation:2}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"Error_svg__filter2_d",x:51.688,y:44.063,width:11.438,height:23.813,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:2}),r().createElement("feGaussianBlur",{stdDeviation:2}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("linearGradient",{id:"Error_svg__paint0_linear",x1:68.438,y1:71.571,x2:60.119,y2:58.801,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:0}),r().createElement("stop",{offset:1}))))},h=e=>{let{variant:t=m.full,LogoRenderer:l=u.SEARCH_RESULTS,text:a,secondaryText:c,buttonTitle:s,onClick:p=n.identity,access:d}=e;const h=f(),g=d&&s;return r().createElement("div",{className:h.root},r().createElement(l,{className:h[`${t}`]}),r().createElement("div",{className:h.textBox},r().createElement(o.Z,{variant:"h5",classes:{h5:h.text}},a),c&&r().createElement(o.Z,{variant:"subtitle1",classes:{subtitle1:h.secondaryText}},c)),g&&r().createElement(i.Z,{className:h.button,variant:"contained",color:"primary",onClick:p},s))}},20146:(e,t,l)=>{l.d(t,{Z:()=>f});var a=l(24328),r=l.n(a),n=l(52730),o=l(71153),i=l.n(o),c=l(90436),s=l(18435),p=l(89810);const d=(0,l(79692).Z)({"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",display:"inline-flex",marginRight:"12px",borderRadius:"2px"},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",display:"inline-flex",marginRight:"16px"}}),f=e=>{let{entity:t,className:l,size:a="small"}=e;const o=d(),f=(0,n.useSelector)(p.ZP.selectors.getMetadata),m=t.type,u=(0,s.nt9)(f,m)||{},h=(0,s.VD3)(f,u,"typeColor")||s.rSc.palette.primary.main;return r().createElement(c.Z,{style:{backgroundColor:h,color:s.P6Y.Colors.getColor(h)?"#FFFFFF":"#212121"},className:i()(o[`entityType-${a}`],l),component:"div"},(0,s.jFi)(f,t))}},92934:(e,t,l)=>{l.d(t,{Q:()=>s});var a=l(24328),r=l.n(a),n=l(87918),o=l.n(n),i=l(18435),c=l(72108);const s=(0,a.memo)((e=>{let{entityTypes:t,selectedEntityTypes:l,single:n,placeholder:s,enableEmptyValueUnderline:p,onChange:d,classes:f={},ListLabelProps:m={},disabled:u=!1}=e;const h=(0,a.useMemo)((()=>t.filter(i.oDv)),[t]);return r().createElement(c.S,{items:h,selectedItemsUris:l,single:n,placeholder:s,enableEmptyValueUnderline:p,onChange:d,classes:f,ListLabelProps:m,disabled:u,label:o().text("Entity type"),dataReltioId:"entity-type-selector",selectionPopupTitle:o().text("Select entity types")})}));s.displayName="EntityTypesSelector"},76283:(e,t,l)=>{l.d(t,{E:()=>m,Z:()=>u});var a=l(24328),r=l.n(a),n=l(4614),o=l(39475),i=l(61932),c=l(27291),s=l(79573),p=l(71153),d=l.n(p);const f=(0,l(79692).Z)({root:{display:"flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px"},check:{color:"#8CC152"}});let m;!function(e){e[e.INIT=1]="INIT",e[e.PROGRESS=2]="PROGRESS",e[e.SUCCESS=3]="SUCCESS",e[e.DONE=4]="DONE"}(m||(m={}));const u=e=>{let{classes:t={},tooltip:l="",onClick:a=s.ZT,mode:p=m.INIT}=e;const u=f();return r().createElement("div",{className:d()(u.root,t.root)},(()=>{switch(p){case m.INIT:return r().createElement(o.k,{className:t.button,size:"M",tooltipTitle:l,icon:i.Z,onClick:a});case m.PROGRESS:return r().createElement(n.Z,{className:t.spinner,size:24});case m.SUCCESS:return r().createElement(c.Z,{className:d()(u.check,t.check)});default:return null}})())}},72108:(e,t,l)=>{l.d(t,{S:()=>B});var a=l(24328),r=l.n(a),n=l(71153),o=l.n(n),i=l(17440),c=l(18435),s=l(86619),p=l(83543),d=l(80030),f=l(79692);const m=(0,f.Z)({listLabelContainer:{display:"flex",alignItems:"center",position:"relative",overflow:"hidden",whiteSpace:"nowrap",justifyContent:"space-between",height:"100%",width:"100%"},listLabel:{visibility:"hidden",position:"absolute",overflow:"hidden"},visibleItemsLabel:{textOverflow:"ellipsis",marginRight:"5px",overflow:"hidden",flex:1,flexBasis:"auto"},hiddenCount:{color:"rgba(0,0,0,0.87)",fontSize:"13px",lineHeight:"15px",padding:"5px 8px",borderRadius:"16px",backgroundColor:"rgba(0,0,0,.12)"}}),u=(e,t)=>{const{childNodes:l,clientLeft:a,clientWidth:r}=t;if(l.length>0){const[t]=Array.from(l),n=document.createRange();n.setStart(t,0);for(let l=0;l<e.length;l++){n.setEnd(t,n.endOffset+e[l].length);const{width:o}=n.getBoundingClientRect();if(a+o>r)return l;l!==e.length-1&&n.setEnd(t,n.endOffset+", ".length)}}return-1},h=e=>e.join(", "),g=e=>`calc(${(0,i.isNil)(e)?"100%":`${e}px`} - 35px)`,E=e=>{let{list:t,maxWidth:l}=e;const n=m(),o=(0,a.useRef)(),[i,c]=(0,a.useState)(0);(0,a.useEffect)((()=>{c(((e,t)=>{const l=e.length,a=((e,t)=>{if(t){const l=u(e,t);return-1===l?0:e.length-l}return 0})(e,t);return l-Math.max(1,l-a)})(t,o.current))}),[t]);const s=h(t),p=i>0,f=p?h(t.slice(0,-i)):s;return r().createElement(d.ZP,{title:p?s:""},r().createElement("div",{className:n.listLabelContainer},r().createElement("div",{style:{width:g(l)},className:n.listLabel,ref:o},s),r().createElement("div",{className:n.visibleItemsLabel},f),p&&r().createElement("div",{className:n.hiddenCount},`+${i}`)))};var y=l(40435),v=l(22311),x=l(26638),b=l(33117),w=l(94792),C=l(63485);function O(){return O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},O.apply(this,arguments)}const S=(0,i.always)(32),_=(0,a.memo)((e=>{let{selectedItems:t,onItemClick:l,focusIndex:a,width:n,height:o}=e,i=function(e,t){if(null==e)return{};var l,a,r=function(e,t){if(null==e)return{};var l,a,r={},n=Object.keys(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||(r[l]=e[l]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(r[l]=e[l])}return r}(e,["selectedItems","onItemClick","focusIndex","width","height"]);return r().createElement(C.Z,O({getItemSize:S,renderItem:(e,n,o)=>{let{item:i}=n;const c=!!t.find((e=>i.uri===e)),s=o===a;return r().createElement(b.Z,{key:i.uri,onClick:l,checked:c,data:i,label:r().createElement(w.Z,{text:i.label,highlight:i.filterText}),labelInText:i.label,style:e,isFocused:s,hideIcon:!0,LogoIcon:i.LogoIcon})},focusIndex:a,fixedTitle:!1,disableHorizontalScrollbar:!0,width:n,height:o},i))}));_.displayName="SelectMetadataTypesList";const z=(0,f.Z)({root:{borderRadius:"4px 4px 0 0",margin:0,fontSize:"14px",letterSpacing:0,lineHeight:"16px"},inputLabel:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%",top:"calc(50% - 23px)"},inputText:{display:"flex",flexGrow:1,alignItems:"center",height:"25px",width:"calc(100% - 53px)",paddingTop:"18px",paddingBottom:"4px",color:"rgba(0,0,0,0.87)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},input:{width:0,cursor:"pointer","&[disabled]":{backgroundColor:"transparent",cursor:"default"},"&$emptyInput":{width:"100%"}},emptyInput:{},disabledInput:{},disabledPointer:{},disabledUnderline:{},inputRoot:{flex:1,paddingRight:"4px",fontSize:"14px",letterSpacing:0,lineHeight:"16px","&$disabledInput":{backgroundColor:"rgba(0, 0, 0, 0.03)",cursor:"pointer","&$disabledPointer":{cursor:"default"},"&$disabledUnderline::before":{borderBottomStyle:"solid"}}},icon:{transform:"rotate(0deg)",transition:"transform 0.35s ease"},"popup-opened-icon":{transform:"rotate(-180deg)"}});function M(){return M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},M.apply(this,arguments)}function R(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(l);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(l).filter((function(e){return Object.getOwnPropertyDescriptor(l,e).enumerable})))),a.forEach((function(t){F(e,t,l[t])}))}return e}function F(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}const B=(0,a.memo)((e=>{let{placeholder:t,classes:l={},items:n,selectedItemsUris:d,onChange:f,ListLabelProps:m={},disabled:u,enableEmptyValueUnderline:h,single:g,label:b,dataReltioId:w,selectionPopupTitle:C}=e;const O=z(),[S,F]=(0,a.useState)(!1),B=(0,a.useCallback)((()=>F(!0)),[]),k=(0,a.useCallback)((()=>F(!1)),[]),[D,I]=(0,a.useState)(""),H=(0,a.useCallback)((()=>I("")),[]),A=(0,a.useCallback)((0,i.pipe)(H,k),[k,H]),T=n.filter((e=>{let{label:t}=e;return c.P6Y.strings.search(t,D)})).map(((e,t)=>({item:{item:R({},e,{filterText:D})},index:t}))),P=(0,a.useMemo)((()=>d.map((e=>n.find((0,i.propEq)("uri",e)))).map((0,i.prop)("label"))),[d,n]),N=(0,a.useCallback)(((e,t)=>{g?(f(t?[e.uri]:[]),A()):f(t?d.concat(e.uri):d.filter((t=>t!==e.uri)))}),[d,f,g,A]),j=(0,a.useCallback)((e=>{let{item:t}=e;const l=!d.includes(t.uri);N(t,l)}),[d,N]),{focusIndex:L,handleKeyDown:Z}=(0,x.t)({items:T,open:S,onSelectFocusedItem:j,selectedItems:d,onClose:A}),V=(0,a.useRef)(),W=V.current?V.current.getBoundingClientRect().width:0,G=Math.max(W,255),U=0===d.length;return r().createElement(r().Fragment,null,r().createElement(s.Z,{label:b,ref:V,InputProps:{startAdornment:U&&!t?null:r().createElement("div",{className:o()(O.inputText,l.inputText)},U?r().createElement("div",null,t):r().createElement(E,M({},m,{list:P}))),classes:{root:O.inputRoot,input:o()(O.input,l.input,{[O.emptyInput]:U&&!t}),disabled:o()(O.disabledInput,{[O.disabledPointer]:u}),underline:O.disabledUnderline},endAdornment:r().createElement(y.Z,{size:"L",icon:p.Z,iconClassName:o()(O.icon,{[O["popup-opened-icon"]]:S}),disabled:u}),readOnly:!0,disabled:!0,disableUnderline:U&&!h},inputProps:{tabIndex:-1},InputLabelProps:{classes:{root:o()(O.inputLabel,l.label)}},value:"",onClick:u?void 0:B,classes:{root:o()(O.root,l.root)},margin:"dense",variant:"filled",disabled:u,"data-reltio-id":w}),r().createElement(v.Z,{open:S,anchorEl:V.current,onClose:A,onSearch:I,title:C,containerWidth:G,containerHeight:355,searchInputOnKeyDown:Z,transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"left",vertical:"bottom"},PaperProps:{"data-reltio-id":`${w}-popup`}},r().createElement(_,{items:T,onItemClick:N,selectedItems:d,width:G,height:245,focusIndex:L})))}));B.displayName="MetadataTypesSelector"},66072:(e,t,l)=>{l.d(t,{Z:()=>w});var a=l(52730),r=l(89810),n=l(24328),o=l.n(n),i=l(71153),c=l.n(i),s=l(17440),p=l(18435),d=l(20146),f=l(18527),m=l(37573),u=l(76283);const h=e=>e&&e.scrollIntoView({block:"end",behavior:"smooth"}),g=e=>{e&&clearTimeout(e)},E=(e,t)=>{if(e&&t){const l=e.offsetTop,a=e.offsetTop+e.clientHeight,{clientHeight:r,scrollTop:n}=t;return l>=0&&a>n&&a<n+r}};var y=l(55962),v=l(79692),x=l(41128);const b=(0,v.Z)((e=>({"@keyframes animate":{from:{background:"transparent"},"66%":{background:"#f2e68e"},"100%":{background:"transparent"}},highlighted:{animationName:"$animate",animationDuration:"3s",animationIterationCount:1},item:{display:"flex",minHeight:"40px",borderBottom:"1px solid rgba(0, 0, 0, 0.1)",flexDirection:"row","&:after":{content:"",minHeight:"inherit",fontSize:0},"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"}},clickable:{cursor:"pointer"},selected:{background:(0,x.U1)(e.palette.primary.main,.12),"&:hover":{background:(0,x.U1)(e.palette.primary.main,.24)}},inactive:{background:e.inactiveBackground,"&:hover":{background:e.inactiveHoverBackground},"&$selected":{background:e.inactiveSelectedBackground,"&:hover":{background:e.inactiveSelectedHoverBackground}}},justImported:{backgroundColor:"#FFFBEB !important"},avatar:{marginLeft:"20px"},image:{height:"32px",width:"32px",marginTop:"8px",marginBottom:"7px"},info:{marginLeft:"20px",flexGrow:1,display:"flex",flexDirection:"column",justifyContent:"center",fontSize:"13px",width:"100%",overflow:"hidden",overflowWrap:"break-word",wordWrap:"break-word"},label:{fontSize:"13px",lineHeight:"15px",fontWeight:500,color:e.palette.primary.main,marginRight:"17px",textDecoration:"none"},secondaryLabel:{marginRight:"12px"},businessCard:{color:"rgba(0, 0, 0, 0.54)"},secondRow:{display:"flex",marginTop:"2px",alignItems:"center",color:"rgba(0, 0, 0, 0.54)",fontSize:"12px"}}))),w=(0,a.connect)((e=>({metadata:r.ZP.selectors.getMetadata(e)})))((e=>{let{entities:t,metadata:l,entityToHighlight:a,selectedEntityUri:r,onEntityClick:i,onEntityHover:v,entitiesImportStatus:x,entityButtonsRenderer:w}=e;const C=b(),O=(0,n.useRef)(null),S=(0,n.useRef)(null);return(0,y.D)((()=>{if(a){var e;const l=null===(e=O.current)||void 0===e?void 0:e.querySelectorAll(`[data-entity-uri='${a}']`);if(g(S.current),(null==l?void 0:l.length)>0){var t;const e=null===(t=O.current)||void 0===t?void 0:t.parentElement;E(l[0],e)||(h(l[0]),S.current=setTimeout((()=>{E(l[0],e)||h(l[0])}),1e3))}}return()=>{g(S.current)}}),[a]),o().createElement("div",{ref:O},(t||[]).map((e=>{const t=(0,p.idV)(e.label),n=e.secondaryLabel,h=(0,p.ptG)(l,e),g=(0,p.Fn9)(e),E=e.uri,y=(0,p.wwR)(e),b=(0,s.prop)(E,x);return o().createElement("div",{key:E,className:c()(C.item,{[C.clickable]:!!i,[C.selected]:E===r,[C.highlighted]:E===a,[C.inactive]:!g,[C.justImported]:b===u.E.SUCCESS}),onClick:i?()=>i(E):void 0,onMouseEnter:v?()=>v(E):void 0,onMouseLeave:v?()=>v(null):void 0,"data-entity-uri":E},o().createElement(m.Z,{entity:e,avatarClassName:C.avatar,imageClassName:C.image}),o().createElement("div",{className:C.info},o().createElement("div",null,o().createElement(f.Z,{value:y,className:C.label},t),n&&o().createElement("span",{className:C.secondaryLabel},n," "),h&&o().createElement("span",{className:C.businessCard},h)),o().createElement("div",{className:C.secondRow},o().createElement(d.Z,{entity:e}),o().createElement("div",null,(0,p.BTI)(e)))),w&&w(e))})))}))},88357:(e,t,l)=>{l.d(t,{Z:()=>C});var a=l(24328),r=l.n(a),n=l(13980),o=l.n(n),i=l(71153),c=l.n(i),s=l(79692);const p=(0,s.Z)((()=>({row:{display:"flex",marginBottom:"12px"},rowItem:{paddingRight:"10px",display:"flex"},fullWidth:{flexGrow:"1",flexBasis:"0",overflow:"hidden"},hidden:{visibility:"hidden"}})));var d=l(87918),f=l.n(d),m=l(6782);const u="46px",h=(0,s.Z)((e=>({readOnlyLogicOperatorContainer:{display:"flex",alignItems:"center",marginRight:"40px",width:"76px",fontSize:"14px",color:e.palette.text.secondary,maxHeight:u},readOnlyFilter:{display:"flex",alignItems:"center",fontSize:"14px",color:e.palette.text.secondary,width:"50px",marginLeft:"12px",maxHeight:u}}))),g=e=>{let{className:t,rowData:l}=e;const a=h();return r().createElement("div",{className:c()(a.readOnlyLogicOperatorContainer,t)},l&&l.operator?(0,m.Z)(l.operator):f().text("Where"))};g.propTypes={className:o().string,rowData:o().object};const E=g;var y=l(18435);const v=e=>{let{className:t,rowData:l}=e;const a=h();return r().createElement("div",{className:c()(a.readOnlyFilter,t)},l&&l.filter?(0,y.XS2)(l.filter):f().text("equals"))};v.propTypes={className:o().string,rowData:o().object};const x=v;var b=l(53862);const w=e=>{let{classes:t={},rowData:l,previousRowData:a,LogicOperatorComponent:n=E,AttributeSelectorComponent:o,FilterSelectorComponent:i=x,ValuesEditorComponent:s,ActionsComponent:d,filterSelectorRef:f,attributeSelectorProps:m={}}=e,u=function(e,t){if(null==e)return{};var l,a,r=function(e,t){if(null==e)return{};var l,a,r={},n=Object.keys(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||(r[l]=e[l]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(r[l]=e[l])}return r}(e,["classes","rowData","previousRowData","LogicOperatorComponent","AttributeSelectorComponent","FilterSelectorComponent","ValuesEditorComponent","ActionsComponent","filterSelectorRef","attributeSelectorProps"]);const h=p();return r().createElement("div",{className:c()(h.row,t.root)},r().createElement(n,{className:t.logicOperatorContainer,rowContext:u,rowData:a}),r().createElement("div",{className:c()(h.rowItem,t.attributeSelectorContainer)},r().createElement(o,{attributeSelectorProps:m,rowContext:u,rowData:l})),r().createElement("div",{className:c()(h.rowItem,t.filterSelectorContainer)},r().createElement(i,{textFieldInputRef:f,rowContext:u,rowData:l})),r().createElement("div",{className:c()(h.rowItem,h.fullWidth,t.valuesEditorContainer)},r().createElement(s,{rowContext:u,rowData:l})),r().createElement("div",{className:c()(h.rowItem,t.actionsContainer,{[h.hidden]:!l})},r().createElement(d,{rowContext:u,rowData:l})))};w.propTypes={classes:o().shape({root:o().string,logicOperatorContainer:o().string,attributeSelectorContainer:o().string,filterSelectorContainer:o().string,valuesEditorContainer:o().string,actionsContainer:o().string}),rowData:b.Xw,previousRowData:b.Xw,LogicOperatorComponent:o().elementType,AttributeSelectorComponent:o().elementType,FilterSelectorComponent:o().elementType,ValuesEditorComponent:o().elementType,ActionsComponent:o().elementType,filterSelectorRef:o().object,attributeSelectorProps:o().shape({onRestoreFocus:o().func,onOpen:o().func,disablePopoverRestoreFocus:o().bool})};const C=(0,a.memo)(w)},51586:(e,t,l)=>{l.d(t,{Z:()=>f});var a=l(24328),r=l.n(a),n=l(13980),o=l.n(n),i=l(17440),c=l(88357),s=l(53862);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},p.apply(this,arguments)}const d=e=>{let{className:t,rowClasses:l,rowsData:a,lastRowAttributeSelectorProps:n,filterSelectorRef:o,filterSelectorRefIndex:s}=e,d=function(e,t){if(null==e)return{};var l,a,r=function(e,t){if(null==e)return{};var l,a,r={},n=Object.keys(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||(r[l]=e[l]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(r[l]=e[l])}return r}(e,["className","rowClasses","rowsData","lastRowAttributeSelectorProps","filterSelectorRef","filterSelectorRefIndex"]);const f=(e,t,a)=>{const f=t>0?(0,i.path)([t-1],a):null,m=t===a.length?{attributeSelectorProps:n}:{};return r().createElement(c.Z,p({key:e&&e.id,rowData:e,previousRowData:f,classes:l,filterSelectorRef:t===s?o:void 0},d,m))};return r().createElement("div",{className:t},a.map(f),f(null,a.length,a))};d.propTypes={className:o().string,rowClasses:o().shape({root:o().string,logicOperatorContainer:o().string,attributeSelectorContainer:o().string,filterSelectorContainer:o().string,valuesEditorContainer:o().string,actionsContainer:o().string}),rowsData:o().arrayOf(s.Xw),LogicOperatorComponent:o().elementType,AttributeSelectorComponent:o().elementType,FilterSelectorComponent:o().elementType,ValuesEditorComponent:o().elementType,ActionsComponent:o().elementType,filterSelectorRef:o().object,filterSelectorRefIndex:o().number,lastRowAttributeSelectorProps:o().shape({onRestoreFocus:o().func,onOpen:o().func,disablePopoverRestoreFocus:o().bool})};const f=(0,a.memo)(d)},2633:(e,t,l)=>{l.d(t,{Z:()=>n});var a=l(54573),r=l(17440);const n={BY_LABEL:(0,a.c)({stringify:(0,r.prop)("label")})}}}]);
|
package/9039.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[9039],{33903:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(24328),a=n.n(r),o=n(13980),l=n.n(o),i=n(87918),s=n.n(i),c=n(61837),d=n(87685),p=n(80030);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}const h=e=>a().createElement("svg",u({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{d:"M18 2V0H0v2l7 8v8l4-2v-6z",fill:"currentColor",fillRule:"nonzero",stroke:"none",strokeWidth:1})),g=(0,n(79692).Z)((e=>({"filterIcon--enabled":{color:e.palette.primary.main},closeIcon:{position:"absolute",right:"3px",bottom:"3px",transform:"scale(0.5)"},button:{padding:"11px"}}))),m=e=>{let{enabled:t,onClick:n}=e;const r=g();return a().createElement(p.ZP,{title:t?s().text("Clear all filters"):s().text("Filter")},a().createElement(c.Z,{onClick:n,classes:{root:r.button}},t?a().createElement(a().Fragment,null,a().createElement(h,{className:r["filterIcon--enabled"]}),a().createElement(d.default,{color:"primary",className:r.closeIcon})):a().createElement(h,null)))};m.propTypes={enabled:l().bool,onClick:l().func};const f=m},75975:(e,t,n)=>{n.d(t,{ZP:()=>m});var r=n(17440),a=n(79573);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const i="CHANGE_COLUMNS",s="TOGGLE_FILTERS",c="CHANGE_FILTER",d="TOGGLE_SORT",p="CHANGE_PAGE",u="CHANGE_ROWS_PER_PAGE",h={changeColumns:(0,a.zD)(i),toggleFilters:(0,a.zD)(s),changeFilter:(0,a.zD)(c),toggleSort:(0,a.zD)(d),changePage:(0,a.zD)(p),changeRowsPerPage:(0,a.zD)(u)},g=(e,t)=>{const n=(0,r.difference)(e.visibleColumns,t),a=e=>n.includes(e);return(0,r.evolve)({visibleColumns:(0,r.always)(t),sorting:(0,r.when)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a(e.field)}),(()=>{const[e]=t;return{field:e,order:"asc"}})),filters:e=>(0,r.keys)(e).reduce(((e,t)=>a(t)?(0,r.dissoc)(t,e):e),e)},e)},m={reducer:(e,t)=>{switch(t.type){case i:{const n=t.payload;return g(e,n)}case s:{const t=!e.filters;return o({},e,{filters:t?{}:null,page:t?e.page:0})}case c:{const{columnId:n,filter:a}=t.payload;return(0,r.evolve)({filters:a?(0,r.assoc)(n,a):(0,r.dissoc)(n),page:(0,r.always)(0)},e)}case d:{const n=t.payload,l=(0,r.path)(["sorting","field"],e),i=(0,r.path)(["sorting","order"],e);return o({},e,{sorting:{field:n,order:(0,a.Dh)(n===l?i:null)},page:0})}case p:return o({},e,{page:t.payload});case u:return o({},e,{rowsPerPage:t.payload});default:return e}},actions:h,changeVisibleColumns:g}},85596:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),o=n(13980),l=n.n(o),i=n(18435),s=n(17440),c=n(64651),d=n(65629);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}const u=e=>{let{relation:t={},inRelationTypes:n=[],outRelationTypes:o=[],onChange:l=s.identity,applyFirstByDefault:i=!1,reversedContextLabels:u=!1}=e,h=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["relation","inRelationTypes","outRelationTypes","onChange","applyFirstByDefault","reversedContextLabels"]);const{getRelationTypesOptions:g,fromEditorValue:m,toEditorValue:f}=(0,c.n)({reversedContextLabels:u}),b=(0,r.useMemo)((()=>g(n,o)),[g,n,o]),y=(0,r.useCallback)((0,s.pipe)(m(n,o),l),[m,n,o,l]);return(0,r.useEffect)((()=>{i&&b.length&&y(b[0])}),[b,i,y]),a().createElement(d.Z,p({value:f(t,b),options:b,onChange:y},h))};u.propTypes={className:l().string,relation:i.bNA,inRelationTypes:l().arrayOf(i.IYE),outRelationTypes:l().arrayOf(i.IYE),applyFirstByDefault:l().bool,reversedContextLabels:l().bool,onChange:l().func};const h=u},10742:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(13980),a=n.n(r),o=n(24328),l=n.n(o),i=n(44443);const s=()=>l().createElement("div",{style:{display:"none"}}),c=e=>{let{widthToHide:t,children:n}=e;return l().createElement(i.Z,{handleWidth:!0,render:e=>{let{width:r}=e;return r>t?l().createElement(l().Fragment,null,n):l().createElement(s,null)}})};c.propTypes={children:a().node,widthToHide:a().number.isRequired};const d=c},68977:(e,t,n)=>{n.d(t,{U:()=>c});var r=n(24328),a=n.n(r),o=n(87918),l=n.n(o),i=n(18435),s=n(72108);const c=(0,r.memo)((e=>{let{relationTypes:t,selectedRelationTypes:n,single:o,placeholder:c,enableEmptyValueUnderline:d,onChange:p,classes:u={},ListLabelProps:h={},disabled:g=!1}=e;const m=(0,r.useMemo)((()=>t.filter(i.Tt2)),[t]);return a().createElement(s.S,{items:m,selectedItemsUris:n,single:o,placeholder:c,enableEmptyValueUnderline:d,onChange:p,classes:u,ListLabelProps:h,disabled:g,label:l().text("Relation type"),dataReltioId:"relation-type-selector",selectionPopupTitle:l().text("Select relation types")})}));c.displayName="RelationTypesSelector"},63079:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),a=n.n(r),o=n(13980),l=n.n(o),i=n(90436);const s=(0,n(79692).Z)({onlyValue:{color:"rgba(0,0,0,.6)",fontSize:"13px",fontWeight:"normal",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},select:{fontSize:"13px",color:"rgba(0,0,0,.6)",paddingLeft:"15px","&&":{paddingRight:"35px"}},selectMenu:{"& li":{fontSize:"13px",height:"32px"}},textField:{maxWidth:"100%"}});var c=n(1128);const d=e=>{let{value:t,onChange:n,options:o,classes:l={},emptyLabel:d}=e;const p=s(),[u,...h]=o,g=0===h.length;(0,r.useEffect)((()=>{g&&t!==u.value&&n(u.value)}),[u.value]);const m=!!d;return a().createElement("div",{className:l.root},g?a().createElement(i.Z,{className:l.onlyValue||p.onlyValue,variant:"h6"},u.label):a().createElement(c.Z,{displayEmpty:m,disableUnderline:!0,classes:{select:l.select||p.select},TextFieldProps:{classes:{root:l.textField||p.textField}},MenuProps:{classes:{list:l.selectMenu||p.selectMenu}},value:t||"",entries:m?[{value:"",label:d},...o]:o,onChange:e=>n(e||null)}))};d.propTypes={value:l().string,onChange:l().func,options:l().arrayOf(l().shape({value:l().string,label:l().string})),classes:l().shape({root:l().string,onlyValue:l().string,select:l().string,selectMenu:l().string,textField:l().string}),emptyLabel:l().string};const p=d},11821:(e,t,n)=>{n.d(t,{h:()=>l});var r=n(24328),a=n.n(r);const o=(0,n(79692).Z)((e=>({contentWrapper:{display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)",marginLeft:"3px",transition:e.transitions.create(["width"],{duration:e.transitions.duration.enteringScreen})}}))),l=e=>{let{width:t,open:n,children:r}=e;const l=o();return a().createElement("div",{className:l.contentWrapper,style:{width:`${n?t:0}px`}},n&&a().createElement(a().Fragment,null,r))}},55310:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(13980),a=n.n(r),o=n(24328),l=n.n(o);const i=e=>{let{height:t,margin:n}=e;return l().createElement("div",{style:{width:"1px",height:`${t}px`,borderLeft:"1px solid rgba(0,0,0,0.38)",margin:`0 ${n}px`,flexShrink:"0"}})};i.propTypes={height:a().number,margin:a().number};const s=i},65629:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(24328),a=n.n(r),o=n(13980),l=n.n(o),i=n(87918),s=n.n(i),c=n(17440),d=n(71153),p=n.n(d),u=n(12231),h=n(90436);const g=(0,n(79692).Z)({container:{display:"flex",alignItems:"center",height:"32px",minHeight:"32px",padding:0},text:{display:"flex",width:"calc(100% - 68px)"},textItem:{fontSize:"13px",lineHeight:"15px",marginRight:10},primaryTextItem:{flex:"1 0",flexBasis:0,maxWidth:"50%",overflow:"hidden",textOverflow:"ellipsis"},secondaryTextItem:{flex:"1 0",flexBasis:0,overflow:"hidden",textOverflow:"ellipsis"},icons:{transform:"scale(0.5)",position:"relative",flexShrink:0,width:"68px",bottom:"10px"},iconTop:{position:"absolute",top:0,left:0,zIndex:1},iconBottom:{position:"absolute",top:0,left:26,zIndex:0}});var m=n(42662),f=n(83088);function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}const y=e=>{let{innerRef:t,innerProps:n,selectOption:r,data:o}=e;const l=g(),{value:i,label:s,startObject:c,endObject:d}=o,y=c.objectType.label+" ↔ "+d.objectType.label;return a().createElement(u.Z,b({className:l.container,ref:t,key:i,onClick:()=>r({label:s,value:i,startObject:c,endObject:d})},n),a().createElement("div",{className:l.icons},a().createElement(m.Z,{className:l.iconTop,entityType:c.objectType}),a().createElement(m.Z,{className:l.iconBottom,entityType:d.objectType})),a().createElement("div",{className:l.text},a().createElement(f.C,{value:s},a().createElement(h.Z,{className:p()(l.textItem,l.primaryTextItem)},s)),a().createElement(f.C,{value:y},a().createElement(h.Z,{color:"textSecondary",className:p()(l.textItem,l.secondaryTextItem)},y))))};y.propTypes={innerRef:l().oneOfType([l().oneOf([null]),l().func,l().shape({current:l().any.isRequired})]),innerProps:l().object.isRequired,selectOption:l().func.isRequired,data:l().shape({value:l().string.isRequired,label:l().string.isRequired,startObject:l().object,endObject:l().object})};const x=y;var E=n(84425);function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const C=e=>{let{value:t={},options:n=[],onChange:o=c.identity,TextFieldProps:l}=e,i=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["value","options","onChange","TextFieldProps"]);const d=(0,r.useMemo)((()=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){w(e,t,n[t])}))}return e}({},(0,c.defaultTo)({},l),{"data-reltio-id":"relation-type-selector"})),[l]);return a().createElement(E.Z,v({value:t,options:n,onChange:o,label:s().text("Select relationship type "),components:{Option:x},TextFieldProps:d},i))},T=l().shape({label:l().string.isRequired,value:l().string.isRequired,startObject:l().object,endObject:l().object});C.propTypes={value:T,options:l().arrayOf(T),onChange:l().func};const I=C},17569:(e,t,n)=>{n.d(t,{o:()=>l});var r=n(24328),a=n(17440);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l=e=>{let{actions:t,dispatch:n}=e;return(0,r.useMemo)((()=>Object.entries(t).reduce(((e,t)=>{let[r,l]=t;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}({},e,{[r]:(0,a.pipe)(l,n)})}),{})),[n,t])}},64651:(e,t,n)=>{n.d(t,{n:()=>l});var r=n(24328),a=n(18435),o=n(17440);const l=e=>{let{reversedContextLabels:t}=e;return{getRelationTypesOptions:(0,r.useCallback)(((e,n)=>{const r={},l=(0,o.pipe)(a.PjQ,(0,o.tap)((e=>r[e]=(0,o.propOr)(0,e,r)+1))),i=(0,o.ascend)((0,o.prop)("label")),s=(0,o.curry)(((e,n)=>{let{uri:r,label:o,startObject:i,endObject:s}=n;const c=e===(t?a.Nsj.OUT:a.Nsj.IN)?i:s;return{label:{directionalLabel:l(c),typeLabel:o},value:`${r},${e}`,startObject:i,endObject:s}}));return e.map(s(a.Nsj.IN)).concat(n.map(s(a.Nsj.OUT))).map((0,o.evolve)({label:e=>{let{directionalLabel:t,typeLabel:n}=e;return t?r[t]>1?`${t} (${n})`:t:n}})).sort(i)}),[t]),fromEditorValue:(0,r.useCallback)(((e,t)=>n=>{const[r,l]=n.value.split(",");return{type:(l===a.Nsj.IN?e:t).find((0,o.propEq)("uri",r)),direction:l}}),[]),toEditorValue:(0,r.useCallback)(((e,t)=>t.find((0,o.propEq)("value",`${e.relationType},${e.direction}`))),[])}}},59039:(e,t,n)=>{n.r(t),n.d(t,{ALWAYS_VISIBLE_TYPE_URIS:()=>Ni.S,ActionButton:()=>yi,ActionButtonMode:()=>bi,ActivityLog:()=>r.Z,ActivityLogFilter:()=>a.Z,ActivityTypes:()=>o.I,AddWorkflowButton:()=>ci,ArrowExpandButton:()=>Nt.Z,AsyncMountContext:()=>es.g,AttributeListItem:()=>h.Z,AttributeTitle:()=>ea.Z,AttributesList:()=>f.Z,AttributesPager:()=>T.ZP,AttributesTable:()=>Ta.Z,AttributesView:()=>g.Z,AutoSizeList:()=>M.Z,AvatarWithFallback:()=>j.Z,BarChart:()=>pe.Z,BasicTable:()=>L.Z,BasicTableContext:()=>F.X,BasicTablePagination:()=>H.Z,BasicView:()=>se.Z,BasicViewContent:()=>ce.Z,BasicViewHeader:()=>de.Z,BlockImageGalleryDialogContext:()=>rs.P,BranchDecorator:()=>m.Z,COMMENTS_CONTAINER_VISIBILITY_AREA:()=>Di.U,CardinalityMessage:()=>I.Z,ChartsFactory:()=>me.Z,ClickAwayProvider:()=>Ee,CollaborationContext:()=>as.h,CollaborationItem:()=>ve.J,CollapseButton:()=>we.Z,CollapseRowButton:()=>J.Z,ColorBar:()=>Ce.Z,ColumnFilterType:()=>Si.Dq,ColumnsDataType:()=>Si.uz,ColumnsSettings:()=>U.Z,CommentsContainer:()=>Te.Z,ConfigureColumnsPopup:()=>Se.Z,ConfirmDeleteDialog:()=>Ca.Z,ConfirmationDialog:()=>wa.Z,ConnectionRelationTypeSelector:()=>De.Z,CrosswalkDragLayer:()=>Oa.Z,CrosswalkEditor:()=>Da.Z,CrosswalkType:()=>Na.Y,CrosswalksDisplayProvider:()=>ds.hR,DEFAULT_OVERLAY_OPTIONS:()=>_i.r,DataTypeValue:()=>Ne.Z,DataTypeValueEditor:()=>Ve.Z,DateEditor:()=>Fe.Z,DateRangeEditor:()=>Be.Z,DateRangeTypes:()=>ms.K,DefaultCellValueRenderer:()=>W.Z,DeltaTypes:()=>l.w,Drawer:()=>_e.Z,DropDownEditor:()=>Ae.Z,DropDownMenuButton:()=>ke.Z,DropDownSelector:()=>Re.Z,DropdownIndicator:()=>Ie.Z,DropdownIndicatorWithIconButton:()=>Pe.Z,EMPTY_STATE_ICONS:()=>qe.B9,EMPTY_STATE_VARIANTS:()=>qe.tC,EditableAttribute:()=>O.Z,EditableImageAttributesLine:()=>_.Z,EmptyState:()=>qe.ZP,EmptyStub:()=>ua.Vd,EntitiesMapContext:()=>cs.X,EntityAvatar:()=>Ke.Z,EntityContext:()=>gs.u,EntityCreator:()=>b.Z,EntityMarkerContext:()=>us.P,EntitySelector:()=>y.Z,EntityTypeBadge:()=>Ge.Z,EntityTypeIcon:()=>Ye.Z,EntityTypesSelector:()=>Qe.Q,EntityUriLink:()=>$e.Z,ErrorBoundary:()=>Xe.Z,ErrorMessage:()=>Ra.Z,ErrorPopup:()=>et.Z,ErrorWrapper:()=>tt.Z,ExpandableSearchInput:()=>ga,ExpandedAttributesProvider:()=>ps.R,ExpandedValueTooltip:()=>nt.C,FacetViewHeader:()=>rt.Z,FileTypeEditor:()=>ze.Z,FilterButton:()=>z.Z,FilterValueEditor:()=>Me.Z,FlipCard:()=>ut,HideOnShrink:()=>ht.Z,HierarchicalAttributeTooltip:()=>gt.Z,Highlighter:()=>mt.Z,HistoryActivityType:()=>Ka.M,HistoryChangeTypes:()=>Ga.b,HistoryDiffContext:()=>ts.m,HistoryHeader:()=>Ha.Z,HistoryPanelEmptyState:()=>qa.Z,HistoryView:()=>za.Z,IdContext:()=>ss,ImageAttributesLine:()=>N.Z,ImageGalleryDialog:()=>ft.C,ImportButton:()=>bt.Z,ImportModes:()=>bt.E,InlineAttributesPager:()=>ba.Z,InlineImageAttribute:()=>xa.Z,InlineNestedAttribute:()=>fa.Z,InlineReferenceAttribute:()=>ya.Z,LightArrowTooltip:()=>Ea.Z,LinearLoadIndicator:()=>yt.Z,Link:()=>Et,LoadingSpinner:()=>vt,MAP_DRAWING_MODES:()=>_i.vl,MAP_MINIMUM_SCALE_RADIUS:()=>_i.Pi,Marginator:()=>va.Z,MatchRulesBlock:()=>Jt,MenuWithPopper:()=>Oe.Z,MergeButton:()=>vi,ModeSwitcher:()=>$t.Z,ModeSwitcherSelect:()=>sn,MoreAttributesButton:()=>x.Z,MultiSelect:()=>wn.Z,MultiValueChip:()=>je.Z,MultipleInput:()=>cn.Z,NestedAttribute:()=>k.Z,NestedAttributeEditor:()=>E.Z,NoData:()=>He.J,NoResults:()=>We.X,NotMatchButton:()=>Pi,NumberEditor:()=>Le.Z,OvIcon:()=>Ya.Z,PieChart:()=>ue.Z,PivotingAttributeContext:()=>ls.J,Popper:()=>dn.Z,PopupBoundariesContext:()=>ns.p,PopupWithArrow:()=>pn.Z,PotentialMatchReviewCard:()=>bn,ProfileBand:()=>yn.Z,ProfileBandHistory:()=>Wa.Z,ProfileBandNavigation:()=>ie.a,ProfileCard:()=>xn.Z,ProfileMatchCard:()=>Wl,ProfilePerspectiveViewContext:()=>is,ProfilesList:()=>Oi.Z,QueryBuilderAttributeDataType:()=>Si.eB,QueryBuilderAttributeType:()=>Si.Xw,QueryBuilderRow:()=>En.Z,QueryBuilderRowsGroup:()=>vn.Z,ReactSelectOptionFilters:()=>Cn.Z,ReactSortableTree:()=>Dr,ReactSortableTreeHandlers:()=>yr,ReactSortableTreeUtils:()=>$n,ReadOnlyAttribute:()=>P.Z,ReadOnlyAttributeValuesBlock:()=>S.Z,ReadOnlyAttributesList:()=>D.Z,ReadOnlyAttributesPager:()=>Z.Z,ReferenceAttribute:()=>R.Z,ReferenceAttributeEditor:()=>v.Z,RelatedObjectUrisContext:()=>hs.A,RelationEditor:()=>no,RelationTypeSelector:()=>w.Z,RelationTypesSelector:()=>Je.U,ReltioGridLayout:()=>Nr.Z,ReltioMap:()=>ka.Z,ResizablePanes:()=>_r.Z,RowCellAutoSizer:()=>Q.Z,ScrollableTabs:()=>ma.Z,SearchInput:()=>kr.Z,SelectionPopup:()=>Zr.Z,SelectionPopupPopper:()=>Fr,SelectorWithOnlyOptionAutoSelect:()=>Vr.Z,SideButtonsPanel:()=>Ur.G,SidePanel:()=>Hr.h,SidePanelContentHeader:()=>Yr,SidePanelEmptyState:()=>zr.Z,SimpleAttribute:()=>A.Z,SimpleAttributeEditor:()=>C.Z,SimpleDropDownSelector:()=>Qr.Z,SimpleMatchRulesBlock:()=>Bt,SimpleMatchRulesBuilder:()=>Ut,SmallIconButton:()=>Jr.Z,SmallIconButtonWithTooltip:()=>Gr.k,SortingType:()=>Si.nI,SourceCrosswalksRow:()=>Sa.Z,SourceIcon:()=>$r.Z,Spacer:()=>Xr.Z,TableContext:()=>F.X,TableWithBars:()=>he.Z,TextEditor:()=>Ze.Z,TimestampEditor:()=>Ue.Z,TransitiveMatchBlock:()=>Qt,TreeChart:()=>ge.Z,UsersContext:()=>os.s,VerticalDivider:()=>ta.Z,VerticalHeadingsTable:()=>oa,ViewIdContext:()=>_o.m,ViewMoreToggle:()=>la.Z,VirtualGroupedList:()=>ia.Z,WhiteSearchInput:()=>Rr.Z,WorkflowComments:()=>Do,WorkflowTaskCard:()=>ei,WorkflowTasksContext:()=>oo,basicTableViewState:()=>Y.ZP,buildColumnsFilter:()=>G.Tz,columnFilterToMdmFilter:()=>G.su,createStandardAction:()=>ua.zD,defaultGetRowCellHeight:()=>q.Z,defaultRenderRowCell:()=>K.Z,getChecked:()=>ua.IR,getValue:()=>ua.NA,groupCrosswalksByTypesAndSources:()=>_a.o,isIE:()=>ua.w1,mergeClasses:()=>ua.ze,noop:()=>ua.ZT,parseJSON:()=>ua.Rx,stopPropagation:()=>ua.UW,toggleSortOrder:()=>ua.Dh,useActions:()=>Ai.o,useActivitiesLoader:()=>i.d,useAsyncMount:()=>Zi.S,useAttributeExpanded:()=>ps.Q,useBasicTableCellRenderer:()=>le,useClickableStyle:()=>be.d,useCollaboration:()=>Fi,useConfigPermissions:()=>Xi.l,useCrosswalkActions:()=>Pa.P,useCrosswalkColor:()=>ds.nX,useCrosswalkFocus:()=>ds.BF,useCrosswalkHighlight:()=>ds.pu,useDidUpdateEffect:()=>Vi.D,useDynamicRowCellHeight:()=>$.Z,useHighlightedCrosswalks:()=>ds.RT,useHistory:()=>Za.k,useHistoryDiff:()=>Va,useHistoryEnabled:()=>Ua.C,useHistorySlice:()=>Aa.a,useKeyboardNavigation:()=>Ar.t,useMarkAsNotMatchRequest:()=>Ti,useMatchesLoader:()=>zl,useMergeAllRequest:()=>xi,useModifiedEntity:()=>Ia.Q,usePagingSimulator:()=>Ul,usePrevious:()=>Ui.D,useProfileActivitiesLoader:()=>u,useRelationTypeSelector:()=>zi.n,useRelationsLoader:()=>Ki,useRunOnceAfterValueInitialization:()=>Gi,useSafePromise:()=>ao._,useSavedState:()=>Yi.a,useUsers:()=>Qi,useWhyDidYouUpdate:()=>$i,useWorkflowAssignee:()=>uo,useWorkflowCheckPermission:()=>io,useWorkflowComments:()=>Oo,useWorkflowTasks:()=>pi,withAsyncMount:()=>ki.Z,withContext:()=>Ri.l,withFilterAtBottom:()=>V.Z,withPercents:()=>fe.Z,withTableContext:()=>B.Z,withTooltip:()=>Dt.Z});var r=n(56082),a=n(40023),o=n(20414),l=n(33992),i=n(7278),s=n(24328),c=n.n(s),d=n(18435),p=n(54202);const u=e=>{let{filter:t,max:n,offset:r,entityUri:a}=e;return(0,s.useCallback)((async()=>{const e=(0,p.U)(t),o=await(0,d.k6v)({filter:e,max:n,offset:r,entityUri:a}),{total:l}=await(0,d.FEC)({filter:e,entityUri:a});return{data:o,total:l}}),[t,n,r,a])};var h=n(33117),g=n(15177),m=n(52239),f=n(76141),b=n(54255),y=n(72283),x=n(89913),E=n(3853),v=n(10768),w=n(65629),C=n(39390),T=n(92203),I=n(63928),P=n(11013),O=n(30410),S=n(45226),D=n(89978),N=n(61347),_=n(66078),k=n(88610),R=n(95492),A=n(81489),Z=n(47972),M=n(44938),j=n(42639),L=n(45108),B=n(30488),F=n(38748),V=n(25843),U=n(54238),z=n(33903),H=n(42011),W=n(46728),q=n(85103),K=n(1928),G=n(9377),Y=n(75975),Q=n(66678),J=n(91431),$=n(16809),X=n(13980),ee=n.n(X),te=n(21697),ne=n(17440),re=n(8233),ae=n(3073);function oe(){return oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oe.apply(this,arguments)}const le=e=>{let{rowsData:t,columnsData:n,renderRowCell:r=K.Z,getRowCellHeight:a=q.Z,defaultRowHeight:o=48,maxRowValuesCount:l=1/0}=e;const{tableRowsData:i,collapseContextValue:d}=(0,re.Z)({rowsData:t,columnsData:n,renderRowCell:r,getRowCellHeight:a,maxRowValuesCount:l});return(0,s.useMemo)((()=>{const e=i.reduce(((e,t,n)=>{const{data:r}=t;return e[n]=(0,te.calculateRowHeight)(r,o),e}),{}),t=(t,n,r)=>{const a=[t,"subRowHeight",n,r,"height"];return(0,ne.pathOr)(0,a,e)},r=t=>(0,ne.pathOr)(0,[t,"height"],e),a=e=>{let{columnId:a,rowIndex:o}=e,l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["columnId","rowIndex"]);return c().createElement(ae.x.Provider,{value:d},c().createElement("div",oe({},l,{style:{height:r(o)}}),i.length>0&&(0,te.getCellContentFromRowsData)({columnIndex:n.findIndex((0,ne.propEq)("id",a)),headData:n,rowsData:i,rowIndex:o,getHeightForSubRow:t})))};return a.propTypes={columnId:ee().string,rowIndex:ee().number},{getRowHeight:r,CellRenderer:a}}),[i,o,d,n])};var ie=n(76368),se=n(1730),ce=n(82068),de=n(17998),pe=n(72668),ue=n(38037),he=n(62321),ge=n(56215),me=n(12960),fe=n(39878),be=n(59383),ye=n(1292);function xe(){return xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xe.apply(this,arguments)}const Ee=e=>c().createElement(ye.Z,xe({mouseEvent:"onMouseDown"},e));var ve=n(89925),we=n(28831),Ce=n(89902),Te=n(72316),Ie=n(78501),Pe=n(59952),Oe=n(51556),Se=n(80560),De=n(85596),Ne=n(67586),_e=n(87086),ke=n(98538),Re=n(84425),Ae=n(1128),Ze=n(43371),Me=n(15299),je=n(92145),Le=n(19855),Be=n(72466),Fe=n(39600),Ve=n(65314),Ue=n(91785),ze=n(51594),He=n(19304),We=n(6216),qe=n(79002),Ke=n(37573),Ge=n(20146),Ye=n(42662),Qe=n(92934),Je=n(68977),$e=n(18527),Xe=n(7882),et=n(97333),tt=n(93555),nt=n(83088),rt=n(52194),at=n(79692);const ot=e=>`rotateY(${e?180:0}deg)`,lt=e=>`rotateX(${e?180:0}deg)`,it=e=>`rotateY(${e?0:-180}deg)`,st=e=>`rotateX(${e?0:-180}deg)`,ct=(0,at.Z)({back:e=>{let{isFlipped:t,direction:n}=e;return{WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden",height:"100%",left:"0",position:t?"relative":"absolute",top:"0",transform:"horizontal"===n?it(t):st(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:n}=e;return{WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden",height:"100%",left:"0",position:t?"absolute":"relative",top:"0",transform:"horizontal"===n?ot(t):lt(t),transformStyle:"preserve-3d",transition:"0.7s",width:"100%",zIndex:2,display:"flex"}}});var dt=n(71153),pt=n.n(dt);const ut=(0,s.forwardRef)(((e,t)=>{let{cardZIndex:n="auto",direction:r="vertical",isCardFlipped:a=!1,children:o,className:l}=e;const[i,d]=(0,s.useState)(a),p=ct({cardZIndex:n,direction:r,isFlipped:i});return(0,s.useEffect)((()=>{a!==i&&d(a)}),[a,i]),c().createElement("div",{className:pt()(p.flipper,l),ref:t},c().createElement("div",{"data-id":"front",className:p.front},o[0]),c().createElement("div",{"data-id":"back",className:p.back},o[1]))}));var ht=n(10742),gt=n(44363),mt=n(94792),ft=n(95596),bt=n(76283),yt=n(87378);const xt=(0,at.Z)({link:{textDecoration:"inherit",color:"inherit","&:visited":{textDecoration:"inherit",color:"inherit"}}}),Et=e=>{let{to:t,children:n,onClick:r}=e;const a=xt();return c().createElement("a",{href:t,onClick:e=>{r&&(r(),e.stopPropagation(),e.preventDefault())},className:a.link},n)},vt=e=>{let{className:t}=e;return c().createElement("img",{className:t,alt:"loading",src:(0,d.Uw1)("R0lGODlhFQALAKIAAP///8Hf75vL5Van0wB4v////wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCgAFACwAAAIAFQAHAAADLFi6zPSQFEGpGhgXkrEUQShc1bB1wxcGYzGUZ6eKJGVy8lS1aJxJjaAiAkkAACH5BAkKAAUALAAAAwAUAAUAAAMiWLFbJRC6QakCODjBxIzDlW3dB4UBBmhPWQygwrCR9FZDAgAh+QQJCgAFACwIAAMADAAFAAADFBiqVfIvgBmaWHeC6rCklrdw0JMAACH5BAkKAAUALAAAAgAUAAcAAAMkSLpU/vCRQWmLLmg967hYAIxBV4GRSJoWlo1A6X1usXGMUkcJACH5BAkKAAUALAAAAgAOAAcAAAMdWLpF/qSMORudcYg97M2b0BHXAHIelV0pxizQkwAAOw==")})};var wt=n(87918),Ct=n.n(wt);const Tt=e=>{let{isMlMatch:t=!1}=e;return c().createElement(c().Fragment,null,t?Ct().text("Match IQ"):Ct().text("Match rules"))},It=(0,at.Z)({title:{fontWeight:500,marginBottom:"9px"},body:{fontWeight:"normal",marginLeft:"16px"},container:{padding:"8px",fontSize:"12px",lineHeight:"14px"}}),Pt=e=>{let{isMlMatch:t=!1,matchRules:n}=e;const r=It();return c().createElement("div",{className:r.container},c().createElement("div",{className:r.title},c().createElement(Tt,{isMlMatch:t})," "),c().createElement("div",{className:r.body},n.map((e=>c().createElement("div",{key:e.uri},`- ${e.label}`)))))},Ot=(0,at.Z)((e=>({container:{fontSize:"13px",lineHeight:"15px"},title:{color:e.palette.text.secondary,marginBottom:"7px"},labelsContainer:{color:e.palette.text.primary,marginBottom:"8px"}}))),St=e=>{let{isMlMatch:t,matchRules:n,className:r}=e;const a=Ot();return c().createElement("div",{className:pt()(a.container,r)},c().createElement("div",{className:a.title},c().createElement(Tt,{isMlMatch:t})),c().createElement("div",{className:a.labelsContainer},n.map((e=>c().createElement("div",{key:e.uri},`- ${e.label}`)))))};var Dt=n(78223),Nt=n(85777);const _t=(0,at.Z)((e=>({label:{backgroundColor:"rgba(43,152,240,0.12)",fontSize:"12px",lineHeight:"14px",color:e.palette.text.primary,display:"flex",alignItems:"center",padding:"4px 8px"},container:{display:"flex",alignItems:"center",cursor:"pointer",marginBottom:"8px"}})));function kt(){return kt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kt.apply(this,arguments)}const Rt=(0,s.forwardRef)(((e,t)=>{let{children:n,expanded:r,onExpand:a,className:o}=e,l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children","expanded","onExpand","className"]);const i=_t();return c().createElement("div",kt({onClick:a,ref:t,className:pt()(i.container,o)},l),c().createElement(Nt.Z,{expanded:r}),c().createElement("div",{className:i.label},n))}));Rt.displayName="MatchRuleBadge";const At=Rt,Zt=(0,at.Z)({container:{display:"flex",flexDirection:"column",alignItems:"flex-start"},rulesContainer:{marginLeft:"16px"},icon:{height:"17px",width:"15px",marginRight:"5px"}});function Mt(){return Mt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mt.apply(this,arguments)}const jt=e=>c().createElement("svg",Mt({width:192,height:192,viewBox:"0 0 192 192",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),c().createElement("defs",null,c().createElement("linearGradient",{x1:"94.582%",y1:"6.451%",x2:"23.195%",y2:"83.323%",id:"MLMatch_svg__b"},c().createElement("stop",{stopColor:"#CDE1FF",offset:"0%"}),c().createElement("stop",{stopColor:"#AFFBF4",offset:"100%"})),c().createElement("linearGradient",{x1:"94.582%",y1:"6.594%",x2:"23.195%",y2:"83.214%",id:"MLMatch_svg__d"},c().createElement("stop",{stopColor:"#FFF",offset:"0%"}),c().createElement("stop",{stopColor:"#FDFFFF",offset:"100%"})),c().createElement("linearGradient",{x1:"93.837%",y1:"55.274%",x2:"29.292%",y2:"-20.431%",id:"MLMatch_svg__g"},c().createElement("stop",{stopColor:"#FFFCC7",stopOpacity:0,offset:"0%"}),c().createElement("stop",{stopColor:"#FFF470",offset:"100%"})),c().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"98.152%",id:"MLMatch_svg__i"},c().createElement("stop",{stopColor:"#83D6FF",offset:"0%"}),c().createElement("stop",{stopColor:"#72B9EF",offset:"100%"})),c().createElement("path",{d:"M1.821 66.003L34.263 9.94C36.633 5.813 45.673.594 51.398.072l64.445-.064c5.06-.241 14.821 5.084 17.888 10.395l31.467 54.503c3.186 5.518 2.765 16.592-.13 22.117l-30.948 53.481c-3.776 5.127-14.165 11.126-19.57 11.328l-62.134.061c-5.51-.264-15.934-5.764-18.758-10.655L1.856 86.155C-.846 81.475-.37 70.648 1.82 66.003z",id:"MLMatch_svg__a"}),c().createElement("path",{d:"M11.109 67.042l28.713-49.618C41.92 13.77 49.931 9.158 55.006 8.7l57.143.005c4.486-.209 13.147 4.516 15.871 9.223l27.954 48.298c2.83 4.89 2.467 14.696-.095 19.586l-27.391 47.334c-3.343 4.537-12.55 9.84-17.342 10.013l-55.094-.004c-4.886-.24-14.134-5.12-16.643-9.454L11.16 84.889c-2.4-4.147-1.989-13.735-.05-17.847z",id:"MLMatch_svg__c"}),c().createElement("path",{d:"M.995 0c26.4.684 47.59 22.234 47.59 48.72 0 26.23-23.795 34.53-23.795 56.987 0 3.703-3.011 6.705-6.725 6.705l-17.07-.001V68.985c6.466-1.238 11.353-6.923 11.353-13.75S7.46 42.722.995 41.485V0z",id:"MLMatch_svg__e"}),c().createElement("path",{d:"M47.353 0l-.087 41.235-.225.003c-7.588.167-13.688 6.37-13.688 13.997 0 7.683 6.19 13.92 13.854 14l-.091 43.265H27.887c-1.894-.56-3.197-1.234-3.91-2.025-.712-.79-1.357-2.275-1.933-4.455l-2.335-10.733c-.354-1.265-.674-2.183-.96-2.753-.286-.57-.784-1.281-1.494-2.134L2.002 70.367c-.846-.949-1.383-1.73-1.61-2.343-.228-.613-.356-1.626-.386-3.038V31.34c-.028-.785.044-1.37.216-1.757.173-.387.566-.848 1.18-1.382L28.368.885c.37-.367.665-.601.885-.704.22-.103.557-.163 1.01-.181h17.09z",id:"MLMatch_svg__h"})),c().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},c().createElement("g",{transform:"translate(12 6)"},c().createElement("use",{fill:"url(#MLMatch_svg__b)",xlinkHref:"#MLMatch_svg__a"}),c().createElement("use",{fill:"url(#MLMatch_svg__d)",opacity:.5,xlinkHref:"#MLMatch_svg__c"})),c().createElement("g",{transform:"translate(69.652 30.765)"},c().createElement("rect",{fill:"#363636",x:15.457,y:132.745,width:21.151,height:23.158,rx:10.576}),c().createElement("path",{d:"M48.146 118.763v18.93c0 7.198-5.944 13.035-13.277 13.035h-16.71c-7.333 0-13.278-5.837-13.278-13.036v-18.929a13 13 0 01.023-.763h43.22a13 13 0 01.022.763z",fill:"#717171"}),c().createElement("path",{d:"M41.348 137.2c0 7.199-4.947 13.035-11.048 13.035H16.395c-6.101 0-11.047-5.836-11.047-13.035v-18.965h36V137.2z",fill:"#828282"}),c().createElement("path",{d:"M47.51 138.235a4 4 0 110 8H4.556a4 4 0 110-8h42.956zm0-11a4 4 0 110 8H4.556a4 4 0 110-8h42.956zm0-11a4 4 0 110 8H4.556a4 4 0 110-8h42.956z",fill:"#B1B1B1"}),c().createElement("path",{d:"M24.999 138.234v8h-16v-8h16zm0-11v8h-16v-8h16zm0-11v8h-16v-8h16z",fill:"#C5C5C5"}),c().createElement("g",{transform:"translate(27)"},c().createElement("mask",{id:"MLMatch_svg__f",fill:"#fff"},c().createElement("use",{xlinkHref:"#MLMatch_svg__e"})),c().createElement("use",{fill:"#FFD44B",xlinkHref:"#MLMatch_svg__e"}),c().createElement("path",{d:"M-49 48.729C-49 21.583-27.155 0-.207 0 26.74 0 48.585 21.817 48.585 48.729c0 26.227-23.75 34.525-23.75 56.98a6.708 6.708 0 01-6.713 6.703h-38.208a6.708 6.708 0 01-6.712-6.704C-26.798 85.217-49 75.875-49 48.73z",fill:"#FFD347",mask:"url(#MLMatch_svg__f)"}),c().createElement("path",{d:"M-49 48.729C-49 21.583-27.155 0-.207 0 26.74 0 48.585 21.817 48.585 48.729c0 26.227-23.75 34.525-23.75 56.98a6.708 6.708 0 01-6.713 6.703h-38.208a6.708 6.708 0 01-6.712-6.704C-26.798 85.217-49 75.875-49 48.73z",fill:"#FFDE72",mask:"url(#MLMatch_svg__f)"}),c().createElement("path",{d:"M11.965 48.645c.17-7.171 7.488-10.693 13.863-6.802 7.245 4.422 4.05 16.311-4.742 16.548l-.268.004h-3.227l-4.608 56.092-5.995-.253 4.413-51.248.185-4.592-10.592.001v-6h10.83l.139-3.585.002-.165zm10.737-1.681c-2.54-1.55-4.64-.58-4.737 1.766l-.005.284-.131 3.38 2.99.001c2.852 0 3.999-3.945 2.011-5.347l-.128-.084z",fill:"#F3BE13",mask:"url(#MLMatch_svg__f)"}),c().createElement("ellipse",{fill:"url(#MLMatch_svg__g)",mask:"url(#MLMatch_svg__f)",cx:-1.89,cy:48.245,rx:36.534,ry:36.667}))),c().createElement("g",{transform:"translate(45.647 30.765)"},c().createElement("mask",{id:"MLMatch_svg__j",fill:"#fff"},c().createElement("use",{xlinkHref:"#MLMatch_svg__h"})),c().createElement("use",{fill:"url(#MLMatch_svg__i)",xlinkHref:"#MLMatch_svg__h"}),c().createElement("path",{fill:"#D6FCFA",fillRule:"nonzero",opacity:.5,mask:"url(#MLMatch_svg__j)",d:"M38.24 11.235v6l-3.55-.001-22.207 22.207h-18.13v-6H9.997l22.207-22.206zM25.682 40.779l13.8 13.799H50v6H36.997L21.439 45.021zM53.311 28.235v6h-13.65l-3.935 4.246-4.4-4.08 5.718-6.166zM14.248 52.235l20.52 20.52h3.695v6h-6.18l-20.52-20.52H-.647v-6zM21.353 84.235h8.95L40.4 94.332h16.753v6H37.915L27.817 90.235z"})),c().createElement("circle",{fill:"#008FD8",cx:94,cy:86,r:9}))),Lt=(0,Dt.Z)(At),Bt=e=>{let{isMlMatch:t=!1,matchRules:n}=e;const r=Zt(),[a,o]=(0,s.useState)(!1),l=(0,s.useCallback)((()=>o((e=>!e))),[]);return c().createElement("div",{className:r.container},c().createElement(Lt,{tooltipTitle:c().createElement(Pt,{matchRules:n,isMlMatch:t}),tooltipPlacement:"bottom-start",onExpand:l,expanded:a},t?c().createElement(c().Fragment,null,c().createElement(jt,{className:r.icon}),Ct().text("Match IQ")):Ct().text("Rules")),a?c().createElement(St,{className:r.rulesContainer,matchRules:n,isMlMatch:t}):null)};function Ft(){return Ft=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ft.apply(this,arguments)}const Vt=e=>{let{matchRules:t,Component:n}=e,r=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["matchRules","Component"]);const[a,o]=(0,d.UkJ)(t);return c().createElement(c().Fragment,null,(0,ne.isEmpty)(o)?null:c().createElement(n,Ft({matchRules:o},r)),(0,ne.isEmpty)(a)?null:c().createElement(n,Ft({isMlMatch:!0,matchRules:a},r)))};Vt.propTypes={matchRules:d.p3$,Component:ee().func};const Ut=Vt,zt=(0,at.Z)((e=>({label:{fontSize:"13px",lineHeight:"15px",color:e.palette.primary.light},container:{display:"flex",flexDirection:"column"},badge:{display:"flex",marginBottom:"8px",cursor:"pointer"},matchLabels:{marginLeft:"30px"}}))),Ht=e=>{let{label:t,matchRules:n}=e;const r=zt(),[a,o]=(0,s.useState)(!1),l=(0,s.useCallback)((()=>o((e=>!e))),[]);return c().createElement("div",{className:r.container},c().createElement("div",{onClick:l,className:r.badge},c().createElement(Nt.Z,{expanded:a}),c().createElement("div",{className:r.label},t)),a?c().createElement(Ut,{Component:St,matchRules:n,className:r.matchLabels}):null)},Wt=(0,at.Z)({container:{display:"flex",flexDirection:"column"},rulesWrapper:{display:"flex",flexDirection:"column"}}),qt=(0,at.Z)({ruleWrapper:{paddingTop:"8px"},label:{fontWeight:500,fontSize:"12px"}}),Kt=e=>{let{transitiveMatchRules:t}=e;const n=qt();return c().createElement(c().Fragment,null,t.map(((e,t)=>{let{label:r,matchRules:a}=e;return c().createElement("div",{key:t,className:n.ruleWrapper},c().createElement("div",{className:n.label},r),c().createElement(Pt,{matchRules:a}))})))};function Gt(){return Gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gt.apply(this,arguments)}const Yt=(0,Dt.Z)(At),Qt=e=>{let{transitiveMatchRules:t}=e;const n=Wt(),[r,a]=(0,s.useState)(!1),o=(0,s.useCallback)((()=>a((e=>!e))),[]);return c().createElement("div",{className:n.container},c().createElement(Yt,{tooltipTitle:c().createElement(Kt,{transitiveMatchRules:t}),tooltipPlacement:"bottom-start",onExpand:o,expanded:r},Ct().text("Transitive matches")),r?t.map(((e,t)=>c().createElement(Ht,Gt({key:t},e)))):null)},Jt=e=>{let{entitiesMap:t,entity:n,match:r,metadata:a}=e;return(0,d.Pcm)(r)?c().createElement(Qt,{transitiveMatchRules:(0,d.wB1)(a,r,t)}):c().createElement(Ut,{matchRules:(0,d.LS0)(a,n.type,r.matchRules),Component:Bt})};var $t=n(4270),Xt=n(73698),en=n(12231),tn=n(95544),nn=n(90436),rn=n(80030);const an=(0,at.Z)((e=>({root:{maxWidth:156,paddingTop:"9px",paddingBottom:"9px"},outlined:{paddingRight:32,paddingLeft:12},arrowIcon:{fontSize:"18px",top:"calc(50% - 9px)",right:"12px",color:e.palette.text.secondary},currentValue:{display:"flex",alignItems:"center"},currentValueIcon:{fontSize:"18px",marginRight:"8px",color:e.palette.text.secondary},currentValueText:{fontSize:"14px",lineHeight:"16px",textTransform:"uppercase",fontWeight:500,color:e.palette.text.primary,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},menuItem:{padding:"9px 12px 7px"},firstMenuItemButton:{borderTop:"1px solid #e4e4e4"},menuItemInner:{display:"flex",alignItems:"flex-start"},menuItemIcon:{fontSize:"18px",color:e.palette.text.secondary,marginRight:"9px"},menuItemLabel:{fontSize:"14px",lineHeight:"16px",fontWeight:500,color:e.palette.text.primary},menuItemDescription:{fontSize:"10px",lineHeight:"16px",color:e.palette.text.secondary}})));function on(){return on=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},on.apply(this,arguments)}const ln=e=>"onClick"in e,sn=e=>{let{optionsGroup:t,buttonsGroup:n,value:r,onChange:a,disabled:o=!1}=e;const l=an();return c().createElement(Xt.Z,{classes:{root:l.root,icon:l.arrowIcon,outlined:l.outlined},value:r,onChange:e=>{const{value:n}=e.target;t.some((0,ne.propEq)("value",n))&&a(n)},variant:"outlined",renderValue:e=>{const{icon:n,label:r=e}=t.find((0,ne.propEq)("value",e))||{};return c().createElement(tn.Z,{className:l.currentValue},n&&c().createElement(n,{className:l.currentValueIcon}),c().createElement(rn.ZP,{title:r},c().createElement(nn.Z,{className:l.currentValueText},r)))},MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},getContentAnchorEl:null},disabled:o,"data-reltio-id":"reltio-profile-select-mode"},(e=>{const t=e.findIndex(ln);return e.map(((e,n)=>{const{value:r,description:a,icon:o}=e,i={value:r,className:l.menuItem};return ln(e)&&(i.onClick=()=>e.onClick(r),i.className=pt()(i.className,{[l.firstMenuItemButton]:n===t})),c().createElement(en.Z,on({key:r},i,{"data-reltio-id":`reltio-profile-select-mode-${r}`}),c().createElement(tn.Z,{className:l.menuItemInner},c().createElement(o,{className:l.menuItemIcon}),c().createElement(tn.Z,null,c().createElement(nn.Z,{className:l.menuItemLabel},r),c().createElement(nn.Z,{className:l.menuItemDescription},a))))}))})([...t,...n]))};var cn=n(16482),dn=n(7421),pn=n(80233),un=n(73272);function hn(){return hn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hn.apply(this,arguments)}const gn=e=>c().createElement("svg",hn({viewBox:"0 0 20 20"},e),c().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 10L14 5.5V9h-3.5L5 3.5 3.5 5l6.04 6H14v3.5l4.5-4.5zM7.04 11.455L3.5 15 5 16.5l3.54-3.545-1.5-1.5z"})),mn=(0,at.Z)((e=>({expanded:{backgroundColor:"rgba(0, 0, 0, 0.03)"},info:{fontSize:"13px",color:e.palette.text.secondary,wordWrap:"break-word"},icon:{width:"32px",height:"32px",fill:"#fff",backgroundColor:"rgba(177, 92, 189, 1)",borderRadius:"50%",margin:"5px 12px 0 8px"},infoBlock:{display:"flex",flexDirection:"row"},header:{display:"flex",flexDirection:"row",paddingBottom:"5px"},flex:{flex:1},caption:{fontSize:"16px",color:"rgba(0, 0, 0, 0.87)"},title:{display:"flex",flexDirection:"row",alignItems:"center",margin:"6px 0 8px 0"},flag:{height:"12px",width:"12px",stroke:"#000000",fill:"none",margin:"2px 5px 0 5px"},pmReviewCard:{borderTop:"3px solid #E83D40",flexDirection:"column",width:"100%"},date:{fontSize:"13px",color:"rgba(0, 0, 0, 0.87)"},mainInfo:{display:"flex",flexDirection:"column",flex:1}}))),fn=e=>{let{date:t,type:n,createdBy:r,step:a,children:o,Actions:l}=e;const i=mn(),[d,p]=(0,s.useState)(!1);return c().createElement("div",{className:i.pmReviewCard},c().createElement("div",{className:pt()(i.header,{[i.expanded]:d})},c().createElement(gn,{className:i.icon}),c().createElement("div",{className:i.mainInfo},c().createElement("div",{className:i.title},c().createElement("div",{className:pt()(i.caption,i.flex)},Ct().text("Match review")),c().createElement(un.Z,{className:i.flag}),c().createElement("span",{className:i.date},Ct().date(t,"L")),c().createElement(we.Z,{isOpen:d,onClick:()=>{p(!d)}})),c().createElement("div",{className:i.infoBlock},c().createElement("div",{className:i.flex},c().createElement("div",{className:i.info},n),c().createElement("div",{className:i.info},Ct().text("Created by ${createdBy}",{createdBy:r})),c().createElement("div",{className:i.info},Ct().text("Step: ${step}",{step:a}))),l))),d?o:null)};fn.propTypes={date:ee().number,createdBy:ee().string,type:ee().string,step:ee().string,children:ee().oneOfType([ee().node,ee().arrayOf(ee().node)]),Actions:ee().node};const bn=fn;var yn=n(33109),xn=n(91026),En=n(88357),vn=n(51586),wn=n(15793),Cn=n(2633),Tn=n(81521),In=n(8978),Pn=n(13896),On=n(58651),Sn=n(46847),Dn=n(15459);function Nn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}const _n=(0,at.Z)((()=>({"@global .rst__node":{minWidth:"100%",whiteSpace:"nowrap",position:"relative",textAlign:"left"},"@global .rst__node.rst__rtl":{textAlign:"right"},"@global .rst__nodeContent":{position:"absolute",top:0,bottom:0},"@global .rst__lineBlock, .rst__absoluteLineBlock":{height:"100%",position:"relative",display:"inline-block"},"@global .rst__absoluteLineBlock":{position:"absolute",top:0},"@global .rst__lineHalfHorizontalRight::before, .rst__lineFullVertical::after, .rst__lineHalfVerticalTop::after, .rst__lineHalfVerticalBottom::after":{position:"absolute",content:"",backgroundColor:"black"},"@global .rst__lineHalfHorizontalRight::before":{height:"1px",top:"50%",right:0,width:"50%"},"@global .rst__rtl.rst__lineHalfHorizontalRight::before":{left:0,right:"initial"},"@global .rst__lineFullVertical::after, .rst__lineHalfVerticalTop::after, .rst__lineHalfVerticalBottom::after":{width:"1px",left:"50%",top:0,height:"100%"},"@global .rst__rtl.rst__lineFullVertical::after, .rst__rtl.rst__lineHalfVerticalTop::after, .rst__rtl.rst__lineHalfVerticalBottom::after":{right:"50%",left:"initial"},"@global .rst__lineHalfVerticalTop::after":{height:"50%"},"@global .rst__lineHalfVerticalBottom::after":{top:"auto",bottom:0,height:"50%"},"@global .rst__highlightLineVertical":{zIndex:3},"@global .rst__highlightLineVertical::before":{position:"absolute",content:"",backgroundColor:"#36c2f6",width:"8px",marginLeft:"-4px",left:"50%",top:0,height:"100%"},"@global .rst__rtl.rst__highlightLineVertical::before":{marginLeft:"initial",marginRight:"-4px",left:"initial",right:"50%"},"@keyframes arrow-pulse":{"0%":{transform:"translate(0, 0)",opacity:0},"30%":{transform:"translate(0, 300%)",opacity:1},"70%":{transform:"translate(0, 700%)",opacity:1},"100%":{transform:"translate(0, 1000%)",opacity:0}},"@global .rst__highlightLineVertical::after":{content:"",position:"absolute",height:0,marginLeft:"-4px",left:"50%",top:0,borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"4px solid white",animation:"arrow-pulse 1s infinite linear both"},"@global .rst__rtl.rst__highlightLineVertical::after":{marginLeft:"initial",marginRight:"-4px",right:"50%",left:"initial"},"@global .rst__highlightTopLeftCorner::before":{zIndex:3,content:"",position:"absolute",borderTop:"solid 8px #36c2f6",borderLeft:"solid 8px #36c2f6",boxSizing:"border-box",height:"calc(50% + 4px)",top:"50%",marginTop:"-4px",right:0,width:"calc(50% + 4px)"},"@global .rst__rtl.rst__highlightTopLeftCorner::before":{borderRight:"solid 8px #36c2f6",borderLeft:"none",left:0,right:"initial"},"@global .rst__highlightBottomLeftCorner":{zIndex:3},"@global .rst__highlightBottomLeftCorner::before":{content:"",position:"absolute",borderBottom:"solid 8px #36c2f6",borderLeft:"solid 8px #36c2f6",boxSizing:"border-box",height:"calc(100% + 4px)",top:0,right:"12px",width:"calc(50% - 8px)"},"@global .rst__rtl.rst__highlightBottomLeftCorner::before":{borderRight:"solid 8px #36c2f6",borderLeft:"none",left:"12px",right:"initial"},"@global .rst__highlightBottomLeftCorner::after":{content:"",position:"absolute",height:0,right:0,top:"100%",marginTop:"-12px",borderTop:"12px solid transparent",borderBottom:"12px solid transparent",borderLeft:"12px solid #36c2f6"},"@global .rst__rtl.rst__highlightBottomLeftCorner::after":{left:0,right:"initial",borderRight:"12px solid #36c2f6",borderLeft:"none"}})));function kn(){return kn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kn.apply(this,arguments)}const Rn=e=>{let{children:t,listIndex:n,swapFrom:r,swapLength:a,swapDepth:o,scaffoldBlockPxWidth:l,lowerSiblingCounts:i,connectDropTarget:d,isOver:p,draggedNode:u,canDrop:h,treeIndex:g,treeId:m,getPrevRow:f,node:b,path:y,rowDirection:x}=e,E=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children","listIndex","swapFrom","swapLength","swapDepth","scaffoldBlockPxWidth","lowerSiblingCounts","connectDropTarget","isOver","draggedNode","canDrop","treeIndex","treeId","getPrevRow","node","path","rowDirection"]);_n();const v="rtl"===x?"rst__rtl":null,w=i.length,C=[];let T;return i.forEach(((e,t)=>{let i="";if(e>0?i=0===n?"rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom":t===w-1?"rst__lineHalfHorizontalRight rst__lineFullVertical":"rst__lineFullVertical":0===n?i="rst__lineHalfHorizontalRight":t===w-1&&(i="rst__lineHalfVerticalTop rst__lineHalfHorizontalRight"),C.push(c().createElement("div",{key:`pre_${1+t}`,style:{width:l},className:Nn("rst__lineBlock",i,v)})),g!==n&&t===o){let e,o="";o=n===r+a-1?"rst__highlightBottomLeftCorner":g===r?"rst__highlightTopLeftCorner":"rst__highlightLineVertical",e="rtl"===x?{width:l,right:l*t}:{width:l,left:l*t},C.push(c().createElement("div",{key:t,style:e,className:Nn("rst__absoluteLineBlock",o,v)}))}})),T="rtl"===x?{right:l*w}:{left:l*w},d(c().createElement("div",kn({},E,{className:Nn("rst__node",v)}),C,c().createElement("div",{className:"rst__nodeContent",style:T},s.Children.map(t,(e=>(0,s.cloneElement)(e,{isOver:p,canDrop:h,draggedNode:u}))))))};Rn.defaultProps={swapFrom:null,swapDepth:null,swapLength:null,canDrop:!1,draggedNode:null,rowDirection:"ltr"},Rn.propTypes={treeIndex:ee().number.isRequired,treeId:ee().string.isRequired,swapFrom:ee().number,swapDepth:ee().number,swapLength:ee().number,scaffoldBlockPxWidth:ee().number.isRequired,lowerSiblingCounts:ee().arrayOf(ee().number).isRequired,listIndex:ee().number.isRequired,children:ee().node.isRequired,connectDropTarget:ee().func.isRequired,isOver:ee().bool.isRequired,canDrop:ee().bool,draggedNode:ee().shape({}),getPrevRow:ee().func.isRequired,node:ee().shape({}).isRequired,path:ee().arrayOf(ee().oneOfType([ee().string,ee().number])).isRequired,rowDirection:ee().string};const An=Rn;function Zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Mn(e,t,n[t])}))}return e}function Mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jn(e){let{targetIndex:t,node:n,currentIndex:r,getNodeKey:a,path:o=[],lowerSiblingCounts:l=[],ignoreCollapsed:i=!0,isPseudoRoot:s=!1}=e;const c=s?[]:[...o,a({node:n,treeIndex:r})];if(r===t)return{node:n,lowerSiblingCounts:l,path:c};if(!n.children||i&&!0!==n.expanded)return{nextIndex:r+1};let d=r+1;const p=n.children.length;for(let e=0;e<p;e+=1){const r=jn({ignoreCollapsed:i,getNodeKey:a,targetIndex:t,node:n.children[e],currentIndex:d,lowerSiblingCounts:[...l,p-e-1],path:c});if(r.node)return r;d=r.nextIndex}return{nextIndex:d}}function Ln(e){let{node:t,ignoreCollapsed:n=!0}=e;return jn({getNodeKey:()=>{},ignoreCollapsed:n,node:t,currentIndex:0,targetIndex:-1}).nextIndex-1}function Bn(e){let{callback:t,getNodeKey:n,ignoreCollapsed:r,isPseudoRoot:a=!1,node:o,parentNode:l=null,currentIndex:i,path:s=[],lowerSiblingCounts:c=[]}=e;const d=a?[]:[...s,n({node:o,treeIndex:i})];if(!a&&!1===t(a?null:{node:o,parentNode:l,path:d,lowerSiblingCounts:c,treeIndex:i}))return!1;if(!o.children||!0!==o.expanded&&r&&!a)return i;let p=i;const u=o.children.length;if("function"!=typeof o.children)for(let e=0;e<u;e+=1)if(p=Bn({callback:t,getNodeKey:n,ignoreCollapsed:r,node:o.children[e],parentNode:a?null:o,currentIndex:p+1,lowerSiblingCounts:[...c,u-e-1],path:d}),!1===p)return!1;return p}function Fn(e){let{callback:t,getNodeKey:n,ignoreCollapsed:r,isPseudoRoot:a=!1,node:o,parentNode:l=null,currentIndex:i,path:s=[],lowerSiblingCounts:c=[]}=e;const d=Zn({},o),p=a?[]:[...s,n({node:d,treeIndex:i})],u={node:d,parentNode:l,path:p,lowerSiblingCounts:c,treeIndex:i};if(!d.children||!0!==d.expanded&&r&&!a)return{treeIndex:i,node:t(u)};let h=i;const g=d.children.length;return"function"!=typeof d.children&&(d.children=d.children.map(((e,o)=>{const l=Fn({callback:t,getNodeKey:n,ignoreCollapsed:r,node:e,parentNode:a?null:d,currentIndex:h+1,lowerSiblingCounts:[...c,g-o-1],path:p});return h=l.treeIndex,l.node}))),{node:t(u),treeIndex:h}}function Vn(e){let{treeData:t,getNodeKey:n,callback:r,ignoreCollapsed:a=!0}=e;!t||t.length<1||Bn({callback:r,getNodeKey:n,ignoreCollapsed:a,isPseudoRoot:!0,node:{children:t},currentIndex:-1,path:[],lowerSiblingCounts:[]})}function Un(e){let{treeData:t,getNodeKey:n,callback:r,ignoreCollapsed:a=!0}=e;return!t||t.length<1?[]:Fn({callback:r,getNodeKey:n,ignoreCollapsed:a,isPseudoRoot:!0,node:{children:t},currentIndex:-1,path:[],lowerSiblingCounts:[]}).node.children}function zn(e){let{treeData:t,expanded:n=!0}=e;return Un({treeData:t,callback:e=>{let{node:t}=e;return Zn({},t,{expanded:n})},getNodeKey:e=>{let{treeIndex:t}=e;return t},ignoreCollapsed:!1})}function Hn(e){let{treeData:t,path:n,newNode:r,getNodeKey:a,ignoreCollapsed:o=!0}=e;const l="RESULT_MISS",i=e=>{let{isPseudoRoot:t=!1,node:s,currentTreeIndex:c,pathIndex:d}=e;if(!t&&a({node:s,treeIndex:c})!==n[d])return l;if(d>=n.length-1)return"function"==typeof r?r({node:s,treeIndex:c}):r;if(!s.children)throw new Error("Path referenced children of node with no children.");let p=c+1;for(let e=0;e<s.children.length;e+=1){const t=i({node:s.children[e],currentTreeIndex:p,pathIndex:d+1});if(t!==l)return Zn({},s,t?{children:[...s.children.slice(0,e),t,...s.children.slice(e+1)]}:{children:[...s.children.slice(0,e),...s.children.slice(e+1)]});p+=1+Ln({node:s.children[e],ignoreCollapsed:o})}return l},s=i({node:{children:t},currentTreeIndex:-1,pathIndex:-1,isPseudoRoot:!0});if(s===l)throw new Error("No node found at the given path.");return s.children}function Wn(e){let{treeData:t,path:n,getNodeKey:r,ignoreCollapsed:a=!0}=e,o=null,l=null;return{treeData:Hn({treeData:t,path:n,getNodeKey:r,ignoreCollapsed:a,newNode:e=>{let{node:t,treeIndex:n}=e;return o=t,l=n,null}}),node:o,treeIndex:l}}function qn(e){let{targetDepth:t,minimumTreeIndex:n,newNode:r,ignoreCollapsed:a,expandParent:o,isPseudoRoot:l=!1,isLastChild:i,node:s,currentIndex:c,currentDepth:d,getNodeKey:p,path:u=[]}=e;const h=e=>l?[]:[...u,p({node:e,treeIndex:c})];if(c>=n-1||i&&(!s.children||!s.children.length)){if("function"==typeof s.children)throw new Error("Cannot add to children defined by a function");{const e=Zn({},s,o?{expanded:!0}:{},{children:s.children?[r,...s.children]:[r]});return{node:e,nextIndex:c+2,insertedTreeIndex:c+1,parentPath:h(e),parentNode:l?null:e}}}if(d>=t-1){if(!s.children||"function"==typeof s.children||!0!==s.expanded&&a&&!l)return{node:s,nextIndex:c+1};let e=c+1,t=null,o=null;for(let r=0;r<s.children.length;r+=1){if(e>=n){t=e,o=r;break}e+=1+Ln({node:s.children[r],ignoreCollapsed:a})}if(null===o){if(e<n&&!i)return{node:s,nextIndex:e};t=e,o=s.children.length}const d=Zn({},s,{children:[...s.children.slice(0,o),r,...s.children.slice(o)]});return{node:d,nextIndex:e,insertedTreeIndex:t,parentPath:h(d),parentNode:l?null:d}}if(!s.children||"function"==typeof s.children||!0!==s.expanded&&a&&!l)return{node:s,nextIndex:c+1};let g=null,m=null,f=null,b=c+1,y=s.children;"function"!=typeof y&&(y=y.map(((e,l)=>{if(null!==g)return e;const s=qn({targetDepth:t,minimumTreeIndex:n,newNode:r,ignoreCollapsed:a,expandParent:o,isLastChild:i&&l===y.length-1,node:e,currentIndex:b,currentDepth:d+1,getNodeKey:p,path:[]});return"insertedTreeIndex"in s&&({insertedTreeIndex:g,parentNode:f,parentPath:m}=s),b=s.nextIndex,s.node})));const x=Zn({},s,{children:y}),E={node:x,nextIndex:b};return null!==g&&(E.insertedTreeIndex=g,E.parentPath=[...h(x),...m],E.parentNode=f),E}function Kn(e){let{treeData:t,depth:n,minimumTreeIndex:r,newNode:a,getNodeKey:o=(()=>{}),ignoreCollapsed:l=!0,expandParent:i=!1}=e;if(!t&&0===n)return{treeData:[a],treeIndex:0,path:[o({node:a,treeIndex:0})],parentNode:null};const s=qn({targetDepth:n,minimumTreeIndex:r,newNode:a,ignoreCollapsed:l,expandParent:i,getNodeKey:o,isPseudoRoot:!0,isLastChild:!0,node:{children:t},currentIndex:-1,currentDepth:-1});if(!("insertedTreeIndex"in s))throw new Error("No suitable position found to insert.");const c=s.insertedTreeIndex;return{treeData:s.node.children,treeIndex:c,path:[...s.parentPath,o({node:a,treeIndex:c})],parentNode:s.parentNode}}function Gn(e){let{treeData:t,getNodeKey:n,ignoreCollapsed:r=!0}=e;if(!t||t.length<1)return[];const a=[];return Vn({treeData:t,getNodeKey:n,ignoreCollapsed:r,callback:e=>{a.push(e)}}),a}function Yn(e,t){return!!e.children&&"function"!=typeof e.children&&e.children.some((e=>e===t||Yn(e,t)))}function Qn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.children?"function"==typeof e.children?t+1:e.children.reduce(((e,n)=>Math.max(e,Qn(n,t+1))),t):t}function Jn(e){let{getNodeKey:t,treeData:n,searchQuery:r,searchMethod:a,searchFocusOffset:o,expandAllMatchPaths:l=!1,expandFocusMatchPaths:i=!0}=e,s=0;const c=e=>{let{isPseudoRoot:n=!1,node:d,currentIndex:p,path:u=[]}=e,h=[],g=!1,m=!1;const f=n?[]:[...u,t({node:d,treeIndex:p})],b=n?null:{path:f,treeIndex:p},y=d.children&&"function"!=typeof d.children&&d.children.length>0;!n&&a(Zn({},b,{node:d,searchQuery:r}))&&(s===o&&(m=!0),s+=1,g=!0);let x=p;const E=Zn({},d);return y&&(E.children=E.children.map((e=>{const t=c({node:e,currentIndex:x+1,path:f});return t.node.expanded?x=t.treeIndex:x+=1,(t.matches.length>0||t.hasFocusMatch)&&(h=[...h,...t.matches],t.hasFocusMatch&&(m=!0),(l&&t.matches.length>0||(l||i)&&t.hasFocusMatch)&&(E.expanded=!0)),t.node}))),n||E.expanded||(h=h.map((e=>Zn({},e,{treeIndex:null})))),g&&(h=[Zn({},b,{node:E}),...h]),{node:h.length>0?E:d,matches:h,hasFocusMatch:m,treeIndex:x}},d=c({node:{children:n},isPseudoRoot:!0,currentIndex:-1});return{matches:d.matches,treeData:d.node.children}}const $n={find:Jn,getDepth:Qn,isDescendant:Yn,getTreeFromFlatData:function(e){let{flatData:t,getKey:n=(e=>e.id),getParentKey:r=(e=>e.parentId),rootKey:a="0"}=e;if(!t)return[];const o={};if(t.forEach((e=>{const t=r(e);t in o?o[t].push(e):o[t]=[e]})),!(a in o))return[];const l=e=>{const t=n(e);return t in o?Zn({},e,{children:o[t].map((e=>l(e)))}):Zn({},e)};return o[a].map((e=>l(e)))},getFlatDataFromTree:Gn,insertNode:Kn,addNodeUnderParent:function(e){let{treeData:t,newNode:n,parentKey:r=null,getNodeKey:a,ignoreCollapsed:o=!0,expandParent:l=!1,addAsFirstChild:i=!1}=e;if(null===r)return i?{treeData:[n,...t||[]],treeIndex:0}:{treeData:[...t||[],n],treeIndex:(t||[]).length};let s=null,c=!1;const d=Un({treeData:t,getNodeKey:a,ignoreCollapsed:o,callback:e=>{let{node:t,treeIndex:a,path:d}=e;const p=d?d[d.length-1]:null;if(c||p!==r)return t;c=!0;const u=Zn({},t);if(l&&(u.expanded=!0),!u.children)return s=a+1,Zn({},u,{children:[n]});if("function"==typeof u.children)throw new Error("Cannot add to children defined by a function");let h=a+1;for(let e=0;e<u.children.length;e+=1)h+=1+Ln({node:u.children[e],ignoreCollapsed:o});return s=h,Zn({},u,{children:i?[n,...u.children]:[...u.children,n]})}});if(!c)throw new Error("No node found with the given key.");return{treeData:d,treeIndex:s}},getNodeAtPath:function(e){let{treeData:t,path:n,getNodeKey:r,ignoreCollapsed:a=!0}=e,o=null;try{Hn({treeData:t,path:n,getNodeKey:r,ignoreCollapsed:a,newNode:e=>{let{node:t,treeIndex:n}=e;return o={node:t,treeIndex:n},t}})}catch(e){}return o},removeNode:Wn,removeNodeAtPath:function(e){let{treeData:t,path:n,getNodeKey:r,ignoreCollapsed:a=!0}=e;return Hn({treeData:t,path:n,getNodeKey:r,ignoreCollapsed:a,newNode:null})},changeNodeAtPath:Hn,toggleExpandedForAll:zn,map:Un,walk:Vn,getVisibleNodeInfoAtIndex:function(e){let{treeData:t,index:n,getNodeKey:r}=e;if(!t||t.length<1)return null;const a=jn({targetIndex:n,getNodeKey:r,node:{children:t,expanded:!0},currentIndex:-1,path:[],lowerSiblingCounts:[],isPseudoRoot:!0});return a.node?a:null},getVisibleNodeCount:function(e){let{treeData:t}=e;const n=e=>e.children&&!0===e.expanded&&"function"!=typeof e.children?1+e.children.reduce(((e,t)=>e+n(t)),0):1;return t.reduce(((e,t)=>e+n(t)),0)},getDescendantCount:Ln};function Xn(){return Xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xn.apply(this,arguments)}function er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){tr(e,t,n[t])}))}return e}function tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nr=e=>{let{scaffoldBlockPxWidth:t,toggleChildrenVisibility:n,connectDragPreview:r,connectDragSource:a,isDragging:o,canDrop:l,canDrag:i,node:s,title:d,subtitle:p,draggedNode:u,path:h,treeIndex:g,isSearchMatch:m,isSearchFocus:f,buttons:b,className:y,style:x,didDrop:E,treeId:v,isOver:w,parentNode:C,rowDirection:T}=e,I=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["scaffoldBlockPxWidth","toggleChildrenVisibility","connectDragPreview","connectDragSource","isDragging","canDrop","canDrag","node","title","subtitle","draggedNode","path","treeIndex","isSearchMatch","isSearchFocus","buttons","className","style","didDrop","treeId","isOver","parentNode","rowDirection"]);const P=d||s.title,O=p||s.subtitle,S="rtl"===T?"rst__rtl":null;let D;i&&(D="function"==typeof s.children&&s.expanded?c().createElement("div",{className:"rst__loadingHandle"},c().createElement("div",{className:"rst__loadingCircle"},[...new Array(12)].map(((e,t)=>c().createElement("div",{key:t,className:Nn("rst__loadingCirclePoint",S)}))))):a(c().createElement("div",{className:"rst__moveHandle"}),{dropEffect:"copy"}));const N=u&&Yn(u,s),_=!E&&o;let k={left:-.5*t};return"rtl"===T&&(k={right:-.5*t}),c().createElement("div",Xn({style:{height:"100%"}},I),n&&s.children&&(s.children.length>0||"function"==typeof s.children)&&c().createElement("div",null,c().createElement("button",{type:"button","aria-label":s.expanded?"Collapse":"Expand",className:Nn(s.expanded?"rst__collapseButton":"rst__expandButton",S),style:k,onClick:()=>n({node:s,path:h,treeIndex:g})}),s.expanded&&!o&&c().createElement("div",{style:{width:t},className:Nn("rst__lineChildren",S)})),c().createElement("div",{className:Nn("rst__rowWrapper",S)},r(c().createElement("div",{className:Nn("rst__row",_&&"rst__rowLandingPad",_&&!l&&"rst__rowCancelPad",m&&"rst__rowSearchMatch",f&&"rst__rowSearchFocus",S,y),style:er({opacity:N?.5:1},x)},D,c().createElement("div",{className:Nn("rst__rowContents",!i&&"rst__rowContentsDragDisabled",S)},c().createElement("div",{className:Nn("rst__rowLabel",S)},c().createElement("span",{className:Nn("rst__rowTitle",s.subtitle&&"rst__rowTitleWithSubtitle")},"function"==typeof P?P({node:s,path:h,treeIndex:g}):P),O&&c().createElement("span",{className:"rst__rowSubtitle"},"function"==typeof O?O({node:s,path:h,treeIndex:g}):O)),c().createElement("div",{className:"rst__rowToolbar"},b.map(((e,t)=>c().createElement("div",{key:t,className:"rst__toolbarButton"},e)))))))))};nr.defaultProps={isSearchMatch:!1,isSearchFocus:!1,canDrag:!1,toggleChildrenVisibility:null,buttons:[],className:"",style:{},parentNode:null,draggedNode:null,canDrop:!1,title:null,subtitle:null,rowDirection:"ltr"},nr.propTypes={node:ee().shape({}).isRequired,title:ee().oneOfType([ee().func,ee().node]),subtitle:ee().oneOfType([ee().func,ee().node]),path:ee().arrayOf(ee().oneOfType([ee().string,ee().number])).isRequired,treeIndex:ee().number.isRequired,treeId:ee().string.isRequired,isSearchMatch:ee().bool,isSearchFocus:ee().bool,canDrag:ee().bool,scaffoldBlockPxWidth:ee().number.isRequired,toggleChildrenVisibility:ee().func,buttons:ee().arrayOf(ee().node),className:ee().string,style:ee().shape({}),connectDragPreview:ee().func.isRequired,connectDragSource:ee().func.isRequired,parentNode:ee().shape({}),isDragging:ee().bool.isRequired,didDrop:ee().bool.isRequired,draggedNode:ee().shape({}),isOver:ee().bool.isRequired,canDrop:ee().bool,rowDirection:ee().string};const rr=nr;function ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class or extends s.Component{render(){const e=this.props,{children:t,connectDropTarget:n,treeId:r,drop:a}=e,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children","connectDropTarget","treeId","drop"]);return n(c().createElement("div",null,s.Children.map(t,(e=>(0,s.cloneElement)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ar(e,t,n[t])}))}return e}({},o))))))}}or.defaultProps={canDrop:!1,draggedNode:null},or.propTypes={children:ee().node.isRequired,connectDropTarget:ee().func.isRequired,isOver:ee().bool.isRequired,canDrop:ee().bool,draggedNode:ee().shape({}),treeId:ee().string.isRequired,drop:ee().func.isRequired};const lr=or,ir=(0,at.Z)((()=>({"@global .rst__placeholder":{position:"relative",height:"68px",maxWidth:"300px",padding:"10px"},"@global .rst__placeholder, .rst__placeholder > *":{boxSizing:"border-box"},"@global .rst__placeholder::before":{border:"3px dashed #d9d9d9",content:"",position:"absolute",top:"5px",right:"5px",bottom:"5px",left:"5px",zIndex:-1},"@global .rst__placeholderLandingPad, .rst__placeholderCancelPad":{border:"none !important",boxShadow:"none !important",outline:"none !important"},"@global .rst__placeholderLandingPad *, .rst__placeholderCancelPad *":{opacity:"0 !important"},"@global .rst__placeholderLandingPad::before, .rst__placeholderCancelPad::before":{backgroundColor:"lightblue",borderColor:"white"},"@global .rst__placeholderCancelPad::before":{backgroundColor:"#e6a8ad"}}))),sr=e=>{let{isOver:t,canDrop:n}=e;return ir(),c().createElement("div",{className:Nn("rst__placeholder",n&&"rst__placeholderLandingPad",n&&!t&&"rst__placeholderCancelPad")})};sr.defaultProps={isOver:!1,canDrop:!1},sr.propTypes={isOver:ee().bool,canDrop:ee().bool};const cr=sr,dr=e=>{let t=[],n=[],r=null;return a=>{const o=Object.keys(a).sort(),l=o.map((e=>a[e]));return(l.length!==t.length||l.some(((e,n)=>e!==t[n]))||o.some(((e,t)=>e!==n[t])))&&(t=l,n=o,r=e(a)),r}},pr=dr(Kn),ur=dr(Gn),hr=dr(Ln);function gr(e){let{treeIndex:t}=e;return t}function mr(e){return"string"==typeof e?e:null===e||"object"!=typeof e||!e.props||!e.props.children||"string"!=typeof e.props.children&&"object"!=typeof e.props.children?"":"string"==typeof e.props.children?e.props.children:e.props.children.map((e=>mr(e))).join("")}function fr(e,t,n,r,a){return"function"==typeof n[e]?String(n[e]({node:n,path:r,treeIndex:a})).indexOf(t)>-1:"object"==typeof n[e]?mr(n[e]).indexOf(t)>-1:n[e]&&String(n[e]).indexOf(t)>-1}function br(e){let{node:t,path:n,treeIndex:r,searchQuery:a}=e;return fr("title",a,t,n,r)||fr("subtitle",a,t,n,r)}const yr={defaultSearchMethod:br,defaultGetNodeKey:gr};var xr=n(75047);class Er{constructor(e){this.hoverHandler=()=>{if(null===this.hoverProps)return;const{dropTargetProps:e,monitor:t,component:n}=this.hoverProps,r=t.getItem();if(!r)return;const a=this.getTargetDepth(e,t,n),o=r.node;(e.node!==this.lastDropTargetNode||a!==this.lastDropTargetDepth)&&(this.lastDropTargetNode=e.node,this.lastDropTargetDepth=a,this.dragHover({node:o,path:r.path,minimumTreeIndex:e.listIndex,depth:a}),this.hoverProps=null)},this.deferredCallHoverHandler=()=>{if(this.shouldSkipMoreFrames)return this.shouldSkipMoreFrames=!1,void(this.rafId=requestAnimationFrame(this.deferredCallHoverHandler));this.rafId=null,this.hoverHandler()},this.treeRef=e,this.resetDragVariables()}get startDrag(){return this.treeRef.startDrag}get dragHover(){return this.treeRef.dragHover}get endDrag(){return this.treeRef.endDrag}get drop(){return this.treeRef.drop}get treeId(){return this.treeRef.treeId}get dndType(){return this.treeRef.dndType}get treeData(){return this.treeRef.state.draggingTreeData||this.treeRef.props.treeData}get getNodeKey(){return this.treeRef.props.getNodeKey}get customCanDrop(){return this.treeRef.props.canDrop}get maxDepth(){return this.treeRef.props.maxDepth}resetDragVariables(){this.lastDropTargetNode=null,this.lastDropTargetDepth=null,this.hoverProps=null,this.lastCanDropResult=null,this.lastCanDropProps=null,this.shouldSkipMoreFrames=!1,this.rafId=null}getTargetDepth(e,t,n){let r=0;const a=e.getPrevRow();if(a){let{path:t}=a;!this.treeRef.canNodeHaveChildren(a.node)&&(t=t.slice(0,t.length-1)),r=Math.min(t.length,e.path.length)}let o,l=(t.getItem().path||[]).length;if(t.getItem().treeId!==this.treeId)if(l=0,n){const r=(0,xr.findDOMNode)(n).getBoundingClientRect(),a=t.getSourceClientOffset().x-r.left;o=Math.round(a/e.scaffoldBlockPxWidth)}else o=e.path.length;else{const n="rtl"===e.rowDirection?-1:1;o=Math.round(n*t.getDifferenceFromInitialOffset().x/e.scaffoldBlockPxWidth)}let i=Math.min(r,Math.max(0,l+o-1));if(void 0!==this.maxDepth&&null!==this.maxDepth){const e=Qn(t.getItem().node);i=Math.max(0,Math.min(i,this.maxDepth-e-1))}return i}canDrop(e,t){if(!t.isOver())return!1;const n=e.getPrevRow(),r=n?n.path:[],a=n?n.node:{},o=Math.round(t.getDifferenceFromInitialOffset().x/e.scaffoldBlockPxWidth),l={nodeId:void 0!==e.node.nodeId?e.node.nodeId:e.node,rowAbove:n,abovePath:r,aboveNodeId:void 0!==a.nodeId?a.nodeId:a,blocksOffset:o};if((0,ne.equals)(this.lastCanDropProps,l))return this.lastCanDropResult;this.lastCanDropProps=l;const i=this.getTargetDepth(e,t,null);if(i>=r.length&&"function"==typeof a.children)return this.lastCanDropResult=!1;if("function"==typeof this.customCanDrop){const{node:n}=t.getItem(),r=pr({treeData:this.treeData,newNode:n,depth:i,getNodeKey:this.getNodeKey,minimumTreeIndex:e.listIndex,expandParent:!0});return this.lastCanDropResult=this.customCanDrop({node:n,prevPath:t.getItem().path,prevParent:t.getItem().parentNode,prevTreeIndex:t.getItem().treeIndex,nextPath:r.path,nextParent:r.parentNode,nextTreeIndex:r.treeIndex})}return this.lastCanDropResult=!0}wrapSource(e){const t={beginDrag:e=>(this.startDrag(e),{node:e.node,parentNode:e.parentNode,path:e.path,treeIndex:e.treeIndex,treeId:e.treeId}),endDrag:(e,t)=>{this.rafId&&cancelAnimationFrame(this.rafId),this.endDrag(t.getDropResult()),this.resetDragVariables()},isDragging:(e,t)=>{const n=t.getItem().node;return e.node===n}};return(0,Pn.DragSource)(this.dndType,t,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging(),didDrop:t.didDrop()}}))(e)}wrapTarget(e){const t={drop:(e,t,n)=>{this.rafId&&cancelAnimationFrame(this.rafId);const r={node:t.getItem().node,path:t.getItem().path,treeIndex:t.getItem().treeIndex,treeId:this.treeId,minimumTreeIndex:e.treeIndex,depth:this.getTargetDepth(e,t,n)};return this.lastDropTargetNode=null,this.drop(r),r},hover:(e,t,n)=>{this.rafId?this.shouldSkipMoreFrames=!0:(this.shouldSkipMoreFrames=!1,this.hoverProps={dropTargetProps:e,monitor:t,component:n},this.rafId=requestAnimationFrame(this.deferredCallHoverHandler))},canDrop:this.canDrop.bind(this)};return(0,Pn.DropTarget)(this.dndType,t,(function(e,t){const n=t.getItem();return{connectDropTarget:e.dropTarget(),isOver:t.isOver(),canDrop:t.canDrop(),draggedNode:n?n.node:null}}))(e)}wrapPlaceholder(e){const t={drop:(e,t)=>{const{node:n,path:r,treeIndex:a}=t.getItem(),o={node:n,path:r,treeIndex:a,treeId:this.treeId,minimumTreeIndex:0,depth:0};return this.drop(o),o}};return(0,Pn.DropTarget)(this.dndType,t,(function(e,t){const n=t.getItem();return{connectDropTarget:e.dropTarget(),isOver:t.isOver(),canDrop:t.canDrop(),draggedNode:n?n.node:null}}))(e)}}function vr(){return vr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vr.apply(this,arguments)}function wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Cr(e,t,n[t])}))}return e}function Cr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let Tr=1;const Ir=e=>{const t=wr({},e,{style:wr({},e.theme.style,e.style),innerStyle:wr({},e.theme.innerStyle,e.innerStyle),reactVirtualizedListProps:wr({},e.theme.reactVirtualizedListProps,e.reactVirtualizedListProps)}),n={nodeContentRenderer:rr,placeholderRenderer:cr,rowHeight:62,scaffoldBlockPxWidth:44,slideRegionSize:100,treeNodeRenderer:An};return Object.keys(n).forEach((r=>{null===e[r]&&(t[r]=void 0!==e.theme[r]?e.theme[r]:n[r])})),t};class Pr extends s.Component{constructor(e){super(e);const{dndType:t,nodeContentRenderer:n,treeNodeRenderer:r,isVirtualized:a,slideRegionSize:o}=Ir(e);this.dndManager=new Er(this),this.treeId=`rst__${Tr}`,Tr+=1,this.dndType=t||this.treeId,this.nodeContentRenderer=this.dndManager.wrapSource(n),this.treePlaceholderRenderer=this.dndManager.wrapPlaceholder(lr),this.treeNodeRenderer=this.dndManager.wrapTarget(r),a&&(this.scrollZoneVirtualList=(In._t||In.ZP)(Tn.aV),this.vStrength=(0,In.Kx)(o),this.hStrength=(0,In.v7)(o)),this.state={draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,searchMatches:[],searchFocusTreeIndex:null,dragging:!1,draggingExpandedPaths:[],ignoreOneTreeUpdate:!1,instanceProps:{treeData:this.props.treeData||[],searchQuery:null,searchFocusOffset:null,ignoreTreeChanges:!1}},this.toggleChildrenVisibility=this.toggleChildrenVisibility.bind(this),this.moveNode=this.moveNode.bind(this),this.startDrag=this.startDrag.bind(this),this.dragHover=this.dragHover.bind(this),this.endDrag=this.endDrag.bind(this),this.drop=this.drop.bind(this),this.handleDndMonitorChange=this.handleDndMonitorChange.bind(this)}componentDidMount(){Pr.loadLazyChildren(this.props);const e=Pr.search(this.props,this.state,!0,!0,!1);this.setState(e),this.clearMonitorSubscription=this.props.dragDropManager.getMonitor().subscribeToStateChange(this.handleDndMonitorChange)}static getDerivedStateFromProps(e,t){const{instanceProps:n}=t,r={};return(0,ne.equals)(n.searchQuery,e.searchQuery)?n.searchFocusOffset!==e.searchFocusOffset&&Object.assign(r,Pr.search(e,t,!0,!0,!0)):Object.assign(r,Pr.search(e,t,!0,!0,!1)),n.searchQuery=e.searchQuery,n.searchFocusOffset=e.searchFocusOffset,r.instanceProps=n,r}componentDidUpdate(e,t){if(this.state.dragging!==t.dragging&&this.props.onDragStateChanged&&this.props.onDragStateChanged({isDragging:this.state.dragging,draggedNode:this.state.draggedNode}),this.state.dragging)if((0,ne.equals)(this.props.treeData,e.treeData))this.state.draggingTreeData&&t.draggingTreeData!==this.state.draggingTreeData&&Vn({treeData:this.state.draggingTreeData,getNodeKey:this.props.getNodeKey,callback:e=>{let{node:t,path:n,lowerSiblingCounts:r,treeIndex:a}=e;t.pending&&t.expanded&&this.props.onLazyLoadChildren({node:t,path:n,lowerSiblingCounts:r,treeIndex:a})}});else{const{treeData:e}=Wn({treeData:this.props.treeData,path:t.draggedPath,getNodeKey:this.props.getNodeKey});this.setState((t=>{let{draggingExpandedPaths:n}=t;return{draggingTreeData:n.reduce(((e,t)=>{let n;try{n=Hn({treeData:e,path:t,newNode:e=>{let{node:t}=e;return wr({},t,{expanded:!0})},getNodeKey:this.props.getNodeKey})}catch(t){n=e}return n}),e)}}))}else if(this.props.treeData!==e.treeData){const t=(0,ne.equals)(this.props.treeData,e.treeData),{ignoreOneTreeUpdate:n,instanceProps:r}=this.state,a={};t||(n?a.ignoreOneTreeUpdate=!1:(a.searchFocusTreeIndex=null,Pr.loadLazyChildren(this.props),Object.assign(a,Pr.search(this.props,this.state,!1,!1,!1))),a.draggingTreeData=null,a.draggedNode=null,a.draggedMinimumTreeIndex=null,a.draggedDepth=null,a.dragging=!1,a.draggingExpandedPaths=[],a.instanceProps=wr({},r,{treeData:this.props.treeData}),this.setState(a))}}componentWillUnmount(){this.clearMonitorSubscription()}getRows(e){return ur({ignoreCollapsed:!0,getNodeKey:this.props.getNodeKey,treeData:e})}handleDndMonitorChange(){!this.props.dragDropManager.getMonitor().isDragging()&&this.state.draggingTreeData&&this.endDrag()}toggleChildrenVisibility(e){let{node:t,path:n}=e;const{instanceProps:r}=this.state,a=Hn({treeData:r.treeData,path:n,newNode:e=>{let{node:t}=e;return wr({},t,{expanded:!t.expanded})},getNodeKey:this.props.getNodeKey});this.props.onChange(a),this.props.onVisibilityToggle({treeData:a,node:t,expanded:!t.expanded,path:n})}moveNode(e){let{node:t,path:n,treeIndex:r,depth:a,minimumTreeIndex:o}=e;const{treeData:l,treeIndex:i,path:s,parentNode:c}=Kn({treeData:this.state.draggingTreeData,newNode:t,depth:a,minimumTreeIndex:o,expandParent:!0,getNodeKey:this.props.getNodeKey});this.setState({draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,dragging:!1,draggingExpandedPaths:[]},(()=>{this.props.onChange(l),this.props.onMoveNode({treeData:l,node:t,treeIndex:i,path:s,nextPath:s,nextTreeIndex:i,prevPath:n,prevTreeIndex:r,nextParentNode:c})}))}static search(e,t,n,r,a){const{onChange:o,getNodeKey:l,searchFinishCallback:i,searchQuery:s,searchMethod:c,searchFocusOffset:d,onlyExpandSearchedNodes:p}=e,{instanceProps:u}=t;if(!s&&!c)return i&&i([]),{searchMatches:[]};const h={},{treeData:g,matches:m}=Jn({getNodeKey:l,treeData:p?zn({treeData:u.treeData,expanded:!1}):u.treeData,searchQuery:s,searchMethod:c||br,searchFocusOffset:d,expandAllMatchPaths:r&&!a,expandFocusMatchPaths:!!r});r&&(h.ignoreOneTreeUpdate=!0,o(g)),i&&i(m);let f=null;return n&&null!==d&&d<m.length&&(f=m[d].treeIndex),h.searchMatches=m,h.searchFocusTreeIndex=f,h}startDrag(e){let{path:t}=e;this.setState((e=>{const{treeData:n,node:r,treeIndex:a}=Wn({treeData:e.instanceProps.treeData,path:t,getNodeKey:this.props.getNodeKey});return{draggingTreeData:n,draggedNode:r,draggedDepth:t.length-1,draggedMinimumTreeIndex:a,draggedPath:t,dragging:!0}}))}dragHover(e){let{node:t,depth:n,minimumTreeIndex:r}=e;this.state.draggedDepth===n&&this.state.draggedMinimumTreeIndex===r||this.setState((e=>{let{draggingTreeData:a,instanceProps:o,draggingExpandedPaths:l}=e;const i=a||o.treeData,s=pr({treeData:i,newNode:t,depth:n,minimumTreeIndex:r,expandParent:!0,getNodeKey:this.props.getNodeKey}),c=this.getRows(s.treeData)[s.treeIndex].path.slice(0,-1),d=(0,ne.pipe)((0,ne.when)((0,ne.always)((0,ne.gt)(c.length,0)),(0,ne.append)(c)),(0,ne.uniqWith)((0,ne.eqBy)(String)))(l);return{draggedNode:t,draggedDepth:n,draggedMinimumTreeIndex:r,draggingTreeData:Hn({treeData:i,path:c,newNode:e=>{let{node:t}=e;return wr({},t,{expanded:!0})},getNodeKey:this.props.getNodeKey}),searchFocusTreeIndex:null,dragging:!0,draggingExpandedPaths:d}}))}endDrag(e){const{instanceProps:t}=this.state;if(e){if(e.treeId!==this.treeId){const{node:n,path:r,treeIndex:a}=e;let o=this.props.shouldCopyOnOutsideDrop;"function"==typeof o&&(o=o({node:n,prevTreeIndex:a,prevPath:r}));let l=this.state.draggingTreeData||t.treeData;o&&(l=Hn({treeData:t.treeData,path:r,newNode:e=>{let{node:t}=e;return wr({},t)},getNodeKey:this.props.getNodeKey})),this.props.onChange(l),this.props.onMoveNode({treeData:l,node:n,treeIndex:null,path:null,nextPath:null,nextTreeIndex:null,prevPath:r,prevTreeIndex:a})}}else(()=>{this.setState({draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,dragging:!1})})()}drop(e){this.moveNode(e)}canNodeHaveChildren(e){const{canNodeHaveChildren:t}=this.props;return!t||t(e)}static loadLazyChildren(e){Vn({treeData:e.treeData,getNodeKey:e.getNodeKey,callback:t=>{let{node:n,path:r,lowerSiblingCounts:a,treeIndex:o}=t;n.pending&&(n.expanded||e.loadCollapsedLazyChildren)&&e.onLazyLoadChildren({node:n,path:r,lowerSiblingCounts:a,treeIndex:o,done:t=>e.onChange(Hn({treeData:e.treeData,path:r,newNode:e=>{let{node:r}=e;return r===n?wr({},r,{children:t}):r},getNodeKey:e.getNodeKey}),!0)})}})}renderRow(e,t){let{listIndex:n,style:r,getPrevRow:a,matchKeys:o,swapFrom:l,swapDepth:i,swapLength:s}=t;const{node:d,parentNode:p,path:u,lowerSiblingCounts:h,treeIndex:g}=e,{canDrag:m,generateNodeProps:f,scaffoldBlockPxWidth:b,searchFocusOffset:y,rowDirection:x}=Ir(this.props),E=this.treeNodeRenderer,v=this.nodeContentRenderer,w=u[u.length-1],C=w in o,T=C&&o[w]===y,I={node:d,parentNode:p,path:u,lowerSiblingCounts:h,treeIndex:g,isSearchMatch:C,isSearchFocus:T},P=f?f(I):{},O="function"!=typeof m?m:m(I),S={treeIndex:g,scaffoldBlockPxWidth:b,node:d,path:u,treeId:this.treeId,rowDirection:x};return c().createElement(E,vr({style:r,key:w,listIndex:n,getPrevRow:a,lowerSiblingCounts:h,swapFrom:l,swapLength:s,swapDepth:i},S),c().createElement(v,vr({parentNode:p,isSearchMatch:C,isSearchFocus:T,canDrag:O,toggleChildrenVisibility:this.toggleChildrenVisibility},S,P)))}render(){const{dragDropManager:e,style:t,className:n,innerStyle:r,rowHeight:a,isVirtualized:o,placeholderRenderer:l,reactVirtualizedListProps:i,getNodeKey:s,rowDirection:d}=Ir(this.props),{searchMatches:p,searchFocusTreeIndex:u,draggedNode:h,draggedDepth:g,draggedMinimumTreeIndex:m}=this.state,f=this.state.draggingTreeData||this.props.treeData,b="rtl"===d?"rst__rtl":null;let y,x=null,E=null;if(h&&null!==m){const e=pr({treeData:f,newNode:h,depth:g,minimumTreeIndex:m,expandParent:!0,getNodeKey:s}),t=m;x=e.treeIndex,E=1+hr({node:h}),y=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const a=[...e.slice(0,t),...e.slice(t+r)];return[...a.slice(0,n),...e.slice(t,t+r),...a.slice(n)]}(this.getRows(e.treeData),x,t,E)}else y=this.getRows(f);const v={};p.forEach(((e,t)=>{let{path:n}=e;v[n[n.length-1]]=t}));const w=null!==u?{scrollToIndex:u}:{};let C,T=t;if(y.length<1){const e=this.treePlaceholderRenderer,t=l;C=c().createElement(e,{treeId:this.treeId,drop:this.drop},c().createElement(t,null))}else if(o){T=wr({height:"100%"},T);const t=this.scrollZoneVirtualList;C=c().createElement(Tn.qj,null,(n=>{let{height:o,width:l}=n;return c().createElement(t,vr({},w,{dragDropManager:e,verticalStrength:this.vStrength,horizontalStrength:this.hStrength,speed:30,scrollToAlignment:"start",className:this.props.classes.rst__virtualScrollOverride,width:l,onScroll:e=>{let{scrollTop:t}=e;this.scrollTop=t},height:o,style:r,rowCount:y.length,estimatedRowSize:"function"!=typeof a?a:void 0,rowHeight:"function"!=typeof a?a:e=>{let{index:t}=e;return a({index:t,treeIndex:t,node:y[t].node,path:y[t].path})},rowRenderer:e=>{let{index:t,style:n}=e;return this.renderRow(y[t],{listIndex:t,style:n,getPrevRow:()=>y[t-1]||null,matchKeys:v,swapFrom:x,swapDepth:g,swapLength:E})}},i))}))}else C=y.map(((e,t)=>this.renderRow(e,{listIndex:t,style:{height:"function"!=typeof a?a:a({index:t,treeIndex:t,node:e.node,path:e.path})},getPrevRow:()=>y[t-1]||null,matchKeys:v,swapFrom:x,swapDepth:g,swapLength:E})));return c().createElement("div",{className:Nn("rst__tree",n,b),style:T},C)}}Pr.propTypes={classes:ee().object,dragDropManager:ee().shape({getMonitor:ee().func}).isRequired,treeData:ee().arrayOf(ee().object).isRequired,style:ee().shape({}),className:ee().string,innerStyle:ee().shape({}),rowHeight:ee().oneOfType([ee().number,ee().func]),slideRegionSize:ee().number,reactVirtualizedListProps:ee().shape({}),scaffoldBlockPxWidth:ee().number,maxDepth:ee().number,searchMethod:ee().func,searchQuery:ee().any,searchFocusOffset:ee().number,searchFinishCallback:ee().func,generateNodeProps:ee().func,isVirtualized:ee().bool,treeNodeRenderer:ee().func,nodeContentRenderer:ee().func,placeholderRenderer:ee().func,theme:ee().shape({style:ee().shape({}),innerStyle:ee().shape({}),reactVirtualizedListProps:ee().shape({}),scaffoldBlockPxWidth:ee().number,slideRegionSize:ee().number,rowHeight:ee().oneOfType([ee().number,ee().func]),treeNodeRenderer:ee().func,nodeContentRenderer:ee().func,placeholderRenderer:ee().func}),getNodeKey:ee().func,onChange:ee().func.isRequired,onMoveNode:ee().func,canDrag:ee().oneOfType([ee().func,ee().bool]),canDrop:ee().func,canNodeHaveChildren:ee().func,shouldCopyOnOutsideDrop:ee().oneOfType([ee().func,ee().bool]),onVisibilityToggle:ee().func,dndType:ee().string,onDragStateChanged:ee().func,onlyExpandSearchedNodes:ee().bool,rowDirection:ee().string,onLazyLoadChildren:ee().func,ignoreTreeChanges:ee().bool},Pr.defaultProps={canDrag:!0,canDrop:null,canNodeHaveChildren:()=>!0,className:"",dndType:null,generateNodeProps:null,getNodeKey:gr,innerStyle:{},isVirtualized:!0,maxDepth:null,treeNodeRenderer:null,nodeContentRenderer:null,onMoveNode:()=>{},onVisibilityToggle:()=>{},placeholderRenderer:null,reactVirtualizedListProps:{},rowHeight:null,scaffoldBlockPxWidth:null,searchFinishCallback:null,searchFocusOffset:null,searchMethod:null,searchQuery:null,shouldCopyOnOutsideDrop:!1,slideRegionSize:null,style:{},theme:{},onDragStateChanged:()=>{},onlyExpandSearchedNodes:!1,rowDirection:"ltr",onLazyLoadChildren:()=>{},ignoreTreeChanges:!1},(0,Sn.polyfill)(Pr);const Or=(0,Dn.Z)((()=>({"@global .ReactVirtualized__Grid__innerScrollContainer":{overflow:"visible !important"},"@global .ReactVirtualized__Grid":{outline:"none"},"@global .ReactVirtualized__List":{},rst__virtualScrollOverride:{overflow:"auto !important"},"@global .rst__rtl .ReactVirtualized__Grid__innerScrollContainer":{direction:"rtl"}})))(Pr),Sr=e=>c().createElement(Pn.DndContext.Consumer,null,(t=>{let{dragDropManager:n}=t;return void 0===n?null:c().createElement(Or,vr({},e,{dragDropManager:n}))})),Dr=e=>c().createElement(Pn.DndProvider,{backend:On.default},c().createElement(Sr,e));var Nr=n(17822),_r=n(64435),kr=n(33662),Rr=n(87356),Ar=n(26638),Zr=n(22311),Mr=n(54275),jr=n(72654),Lr=n(27556);function Br(){return Br=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Br.apply(this,arguments)}const Fr=e=>{let{open:t,anchorEl:n,className:r,onClose:a,containerWidth:o,containerHeight:l,paperProps:i,listContent:s,externalInputField:d,classes:p={}}=e;const u=(0,Mr.Z)({containerWidth:o,containerHeight:l});return c().createElement("div",{className:p.root},d,c().createElement(dn.Z,{open:t,onClose:a,anchorEl:n,placement:"bottom-start",transition:!0},(e=>{let{TransitionProps:t}=e;return c().createElement(jr.Z,t,c().createElement(Lr.Z,Br({elevation:2},i),c().createElement("div",{className:pt()(u.container,r),style:{width:o}},c().createElement("div",{className:u.list},s))))})))};var Vr=n(63079),Ur=n(28101),zr=n(15422),Hr=n(11821),Wr=n(87685);const qr=(0,at.Z)({container:{display:"flex",flexShrink:0,height:"63px",alignItems:"center",borderBottom:"1px solid rgba(0,0,0,0.12)"},icon:{margin:"0 12px"},divider:{backgroundColor:"rgba(0,0,0,0.12)",margin:"19px 17px"},secondTitle:{fontSize:"14px"}});var Kr=n(85256),Gr=n(39475);const Yr=e=>{let{onClose:t,mainTitle:n,secondTitle:r,content:a,rightContent:o}=e;const l=qr();return c().createElement("div",{className:l.container},c().createElement(Gr.k,{size:"L",icon:Wr.default,onClick:t,className:l.icon,tooltipTitle:Ct().text("Close")}),a||c().createElement(c().Fragment,null,c().createElement(nn.Z,{variant:"h6"},n),r&&c().createElement(c().Fragment,null,c().createElement(Kr.Z,{orientation:"vertical",flexItem:!0,className:l.divider}),c().createElement(nn.Z,{variant:"body1",color:"textSecondary",className:l.secondTitle},r)),o))};var Qr=n(90590),Jr=n(40435),$r=n(21210),Xr=n(79935),ea=n(92985),ta=n(55310);const na=e=>{let{label:t}=e;return t||null},ra=e=>{let{value:t}=e;return t||null},aa=e=>{let{className:t,rowsData:n,columnsData:r,theadRowsNumber:a=0}=e;const o=e=>{const t=e.cellRenderer||ra,n=e.headCellRenderer||na;return c().createElement("tr",{key:e.id},c().createElement("th",{key:e.id},c().createElement(n,e)),r.map(((n,r)=>c().createElement("td",{key:r},c().createElement(t,{value:n[e.id],columnValue:n,rowData:e})))))};return c().createElement("table",{className:t},a>0&&c().createElement("thead",null,n.slice(0,a).map(o)),c().createElement("tbody",null,n.slice(a).map(o)))};aa.propTypes={rowsData:ee().arrayOf(ee().shape({id:ee().string,label:ee().string,headCellRenderer:ee().func,cellRenderer:ee().func})),columnsData:ee().arrayOf(ee().object),theadRowsNumber:ee().number,className:ee().string};const oa=(0,s.memo)(aa);var la=n(57412),ia=n(63485),sa=n(61837),ca=n(29611),da=n(50581),pa=n(21853),ua=n(79573);const ha=(0,at.Z)({searchButton:{marginLeft:"auto !important",marginRight:"-4px",padding:"8px"},input:{flex:"1 0 200px",marginLeft:"70px",fontSize:"14px",background:"rgba(0,0,0,0.03) 2px",padding:"4px 0",marginRight:"4px"},startAdornment:{color:"rgba(0,0,0,0.54)",paddingLeft:"8px"}}),ga=e=>{let{query:t,onChange:n}=e;const[r,a]=(0,s.useState)(t),[o,l]=(0,s.useState)(!!t);(0,s.useEffect)((()=>{a(t)}),[t]);const i=ha(),d=r&&r.length;return o?c().createElement(ca.Z,{className:i.input,value:r,autoFocus:!0,placeholder:Ct().text("Search"),disableUnderline:!0,onChange:(0,ne.pipe)(ua.NA,a),startAdornment:c().createElement(da.Z,{position:"start"},c().createElement(pa.default,{className:i.startAdornment})),endAdornment:c().createElement(da.Z,{position:"end"},d&&c().createElement(Jr.Z,{size:"S",icon:Wr.default,onClick:(0,ne.pipe)(ne.F,l,(0,ne.always)(""),(0,ne.tap)(n),a)})),onKeyPress:(0,ne.when)((0,ne.propEq)("key","Enter"),(0,ne.pipe)((0,ne.always)(r),ne.trim,n))}):c().createElement(sa.Z,{className:i.searchButton,onClick:(0,ne.pipe)(ne.T,l)},c().createElement(pa.default,null))};var ma=n(7907),fa=n(73149),ba=n(2002),ya=n(49402),xa=n(51557),Ea=n(90143),va=n(33286),wa=n(22118),Ca=n(94059),Ta=n(77194),Ia=n(82658),Pa=n(73972),Oa=n(10938),Sa=n(71285),Da=n(89468),Na=n(34802),_a=n(10765),ka=n(62116),Ra=n(55401),Aa=n(35722),Za=n(85457),Ma=n(52730),ja=n(89810);const La={appearance:{},attributes:{},roles:[],tags:[]},Ba=(0,ne.evolve)({refEntity:d.VGB,refRelation:d.VGB}),Fa=e=>e?(0,ne.evolve)({attributes:(0,ne.map)((0,ne.map)(Ba))})(e):e,Va=()=>{const e=(0,Ma.useDispatch)(),t=(0,Ma.useSelector)(ja.ZP.selectors.getHistorySlice),n=(0,Ma.useSelector)(ja.ZP.selectors.getHistoryDiff),r=(0,Ma.useSelector)(ja.ZP.selectors.getHistoryMode),a=(0,Ma.useSelector)(ja.ZP.selectors.getEntity);return(0,s.useEffect)((()=>{if(t){const{aEntity:n,bEntity:o}=t,l=d.nwO.HistoryManager.createHistoryManager(d.nwO.AttributesDiff).computeEntityHistoryDiff(Fa(r===ja.Z9.Current?a:o),Fa(n));e(ja.N5.history.actions.setHistoryDiff(l))}}),[t,r,e,a]),n||La};var Ua=n(69409),za=n(32158),Ha=n(70675),Wa=n(75647),qa=n(95085),Ka=n(38323),Ga=n(21256),Ya=n(37457),Qa=n(77277);const Ja=(0,at.Z)({editor:{display:"flex",flexDirection:"column",padding:"0 24px 5px"},title:{color:"rgba(0, 0, 0, 0.6)",fontSize:"16px",letterSpacing:"0.15px",lineHeight:"24px",margin:"17px 0 24px"},item:{marginBottom:"20px"},dense:{marginBottom:0},actionButtons:{display:"flex",justifyContent:"flex-end",margin:"0 8px 10px","& > button":{fontSize:"14px",lineHeight:"16px",marginLeft:"8px",padding:"10px 8px",backgroundColor:"rgba(98, 2, 238, 0)"}}});function $a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Xa(e,t,n[t])}))}return e}function Xa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const eo=e=>{let{connection:t,modifiedEntity:n,allModifiedEntities:r,dispatch:a,config:o,mode:l,metadata:i,globalSearchRequestOptions:p,error:u}=e;const{relationUri:h,relationType:g,direction:m}=t.relation,b=t.isNew,x=Ja(),{inRelations:E=[],outRelations:v=[]}=(0,s.useMemo)((()=>(0,d.ocC)({content:t.parentEntityUri?o.contentSecondLevel:o.content,direction:m,relationType:g,mode:l,metadata:i})),[o,m,g,l,i,t.parentEntityUri]),w=(0,s.useMemo)((()=>(0,d.xF8)(i,g)),[g,i]),C=(0,s.useMemo)((()=>$a({attributes:$a({},ja.N5.relations.selectors.getRelationAttributesFromConnection(t))},(0,d.p2l)(t.relation))),[t]),T=(0,s.useRef)(t),I=(0,s.useRef)(n),P=(0,s.useMemo)((()=>(0,d.SAs)(r,n)),[r,n]),O=(0,s.useRef)([]);(0,s.useEffect)((()=>{O.current=(0,ne.pipe)((0,ne.concat)(P.map((0,ne.prop)("uri"))),ne.uniq)(O.current)}),[P]);const S=(0,s.useRef)(P),D=(0,d.z7d)(E,v),N=T.current!==t||I.current!==n||(_=S.current,k=P,_.length!==k.length||_.some(((e,t)=>_[t]!==k[t])))||t.isNew&&!(0,d.O27)((0,ne.path)(["relation","object","attributes"],t));var _,k;const R=b?ja.N5.relations.actions.addRelation:ja.N5.relations.actions.editRelation,A=(0,s.useCallback)((0,ne.pipe)(ja.N5.relations.actions.setRelationType(o.id,h),a),[o,h,a]),Z=(0,s.useCallback)((()=>(0,ne.pipe)(ja.N5.relations.actions.closeRelationEditor,a)(o.id,h)),[o,h,a]),M=(0,s.useCallback)((e=>{if(n){const t=(0,d.nt9)(i,n.type);return(0,d.wx9)(t,n,e)}return e}),[n,i]),j=(0,s.useCallback)((e=>a(ja.N5.modifiedEntities.actions.entityCreated(e))),[a]),L=(0,s.useCallback)((e=>a(ja.N5.modifiedEntities.actions.entityDeleted(e))),[a]),B=(0,s.useCallback)((e=>{n&&L(n.uri),a(ja.N5.relations.actions.setRelationEntity(o.id,h,e)),u&&a(ja.N5.errors.actions.errorDeactivated((0,d.iFp)(u)))}),[o.id,h,a,n,L,u]),F=(0,s.useCallback)((()=>{const e=(0,d.Bd_)(i,r,t);return a(ja.N5.errors.actions.errorsSet(e)),0===e.length}),[t,i,r,a]),V=(0,s.useCallback)((()=>a(ja.N5.errors.actions.errorsSet([]))),[a]),U=(0,s.useCallback)((0,ne.pipe)((0,ne.always)(t),(0,ne.when)(F,(0,ne.pipe)(d.zhn,M,R(o.id),a,(0,ne.always)((0,ne.differenceWith)(ne.equals,O.current,P.map((0,ne.prop)("uri")))),(0,ne.forEach)(L),Z))),[t,o,a,M,F,P]),z=(0,s.useCallback)((()=>{const e=I.current;n!==e&&(e?(j(e),n&&n.uri!==e.uri&&L(n.uri)):L(n.uri));const t=S.current;(0,ne.differenceWith)(ne.equals,O.current,t.map((0,ne.prop)("uri"))).forEach(L),t.forEach(j),V(),Z()}),[Z,j,L,V,n]),H=(0,s.useCallback)((e=>(0,ne.pipe)(ja.N5.actions.addAttributes,a)(e.map((e=>$a({},e,{viewId:o.id}))))),[o.id,a]),W=(0,s.useCallback)((e=>(0,ne.pipe)(ja.N5.actions.modifyAttribute,a)($a({},e,{viewId:o.id}))),[o.id,a]),q=(0,s.useCallback)((e=>(0,ne.pipe)(ja.N5.actions.removeAttribute,a)($a({},e,{viewId:o.id}))),[o.id,a]),K=(0,s.useCallback)(((e,t)=>{const n=(0,d.nt9)(i,e),r=(0,ne.pipe)(d.wcJ,(0,d._kX)(l))(n),a=(0,d.pBq)({entityTypeUri:e,initValue:t,attributeTypes:r,metadata:i,mode:l});B(a),j(a)}),[j,B,l,i]),G=(0,d.e$p)(u),Y=(0,s.useCallback)((()=>{const{content:e,contentSecondLevel:n}=o;return n&&t.parentEntityUri?n.entityTypes:e.entityTypes}),[o,t.parentEntityUri]);return c().createElement(c().Fragment,null,c().createElement("div",{className:x.editor},c().createElement(nn.Z,{className:x.title},b?Ct().text("Add new item"):Ct().text("Edit item")),null===D&&c().createElement(De.Z,{className:x.item,relation:t.relation,inRelationTypes:E,outRelationTypes:v,onChange:A}),Boolean(g)&&c().createElement(c().Fragment,null,c().createElement(tt.Z,{errorMessage:G},c().createElement(y.Z,{className:pt()(x.item,{[x.dense]:G||t.entity&&(0,d.ZiX)(t.entity.entityUri)}),entity:t.entity||{},entityTypesUris:Y()||[],max:o.max||20,globalSearchRequestOptions:p,mode:l,onChange:B,onCreate:K,metadata:i,attributeTypesSelectionStrategy:d.wcJ})),c().createElement(f.Z,{className:x.item,attrTypes:w,entity:C,showEmptyEditors:!0,crosswalks:t.crosswalks,mode:l,parentUri:h,onAddAttributes:H,onChangeAttribute:W,onDeleteAttribute:q}))),c().createElement("div",{className:x.actionButtons},c().createElement(Qa.Z,{onClick:z},Ct().text("Cancel")),c().createElement(Qa.Z,{color:"primary",disabled:!N,onClick:U},Ct().text("Apply"))),c().createElement(Kr.Z,null))};eo.propTypes={connection:d.Rjq,modifiedEntity:d.pyR,allModifiedEntities:ee().object,dispatch:ee().func,config:d.PiC,mode:ee().string,metadata:d.pGS,globalSearchRequestOptions:ee().object,error:d.wfT,parentEntityUri:ee().string};const to=eo,no=(0,Ma.connect)(((e,t)=>{const n=(r=t,ja.N5.relations.selectors.getEntityUriFromConnection(r.connection));var r;const a=(0,d.ZiX)(n);return{modifiedEntity:a?ja.ZP.selectors.getModifiedEntity(e,n):null,allModifiedEntities:a?ja.ZP.selectors.getModifiedEntities(e):null,globalSearchRequestOptions:ja.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]),error:(0,d.ATu)(t.connection,ja.ZP.selectors.getProfileErrors(e))}}))(to),ro=(0,at.Z)((e=>({card:{borderBottom:"1px solid rgba(0,0,0,0.06)"},withBackground:{backgroundColor:"rgba(0, 0, 0, 0.03)"},lineWrapper:{position:"relative"},icon:{position:"absolute",top:"8px",left:"16px",width:"32px",height:"32px",zIndex:1},line:e=>{let{color:t}=e;return{borderLeft:`3px solid ${t}`,position:"absolute",left:0,top:0,bottom:0}},info:{fontSize:"13px",color:e.palette.text.secondary,wordWrap:"break-word",lineHeight:"15px"},commentsInfo:{display:"flex",alignItems:"center",marginBottom:"-4px",marginTop:"7px"},commentsIcon:{width:"11px",height:"11px",marginLeft:"2px",marginRight:"6px",marginTop:"-2px"},infoValue:{color:e.palette.text.primary},infoBlock:{display:"flex",flexDirection:"row",marginBottom:"5px"},header:{display:"flex",flexDirection:"row",paddingBottom:"12px"},flex:{flex:1},caption:{fontSize:"16px",color:e.palette.text.primary},title:{display:"flex",flexDirection:"row",alignItems:"center",marginBottom:"-4px"},flag:{height:"13px",width:"13px",marginTop:"-2px",stroke:"#000000",fill:"none",margin:"2px 5px 0 5px"},date:{fontSize:"13px",color:e.palette.text.primary},mainInfo:{display:"flex",flexDirection:"column",flex:1},controlsBox:{marginRight:"16px",marginBottom:"12px",marginTop:"13px"},controlsInRow:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:"20px"},priority:{width:"162px"},comments:{marginLeft:"11px"}})));var ao=n(29627);const oo=c().createContext(null);oo.displayName="WorkflowTasksContext";const lo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{errorMessage:t,errorCode:n}=e;n!==d.Xt7.WORKFLOW_IS_NOT_REGISTERED_ERROR&&(console.error(e),et.Z.addError({title:Ct().text("Error"),message:t||Ct().text("Something went wrong...")}))},io=()=>{const e=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowPath),t=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserStartProcessFromQuery),n=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserViewWorkflowJobs),r=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserViewWorkflowEnvironmentConfigJar),a=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserViewWorkflowDefinition),o=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserViewWorkflowConfigJar),l=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserViewProcessInstanceSearchQuery),i=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserUpdateWorkflowDataTask),s=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserUpdateProcessInstance),c=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserReadWorkflowDataTask),d=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserManageWorkflowEnvironmentDefinition),p=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserManageWorkflowDefinition),u=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserExecuteWorkflowJobsValidateTasks),h=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserExecuteWorkflowJobsUpdateTasks),g=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserExecuteWorkflowJobsTerminateProcessInstance),m=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserExecuteWorkflowJobsSyncBusinessProcessData),f=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserExecuteWorkflowJobs),b=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserCreateWorkflowEnvironmentConfigJar),y=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserRegisterConfigEnvironments),x=(0,Ma.useSelector)(ja.ZP.selectors.getCanUserCreateWorkflowConfigJar);return E=>{if(!e)return!1;switch(E){case"VIEW_PROCESS_DEFINITIONS":return a;case"DEPLOY_GENERIC_PROCESS_DEFINITION":return d;case"VIEW_JOBS":return n;case"START_JOB":return f||m&&g&&h&&u;case"VIEW_CUSTOM_JARS":return o||r;case"UPDATE_PROCESS_INSTANCE":return s;case"VIEW_TASKS":return c;case"REGISTER_TENANT":return y;case"START_PROCESS_INSTANCE":case"START_PROCESS_INSTANCE_SEARCH_QUERY":return t;case"VIEW_PROCESS_INSTANCE_COMMENTS":case"VIEW_PROCESS_INSTANCES":case"VIEW_PROCESS_INSTANCE_COUNT":return l;case"UPDATE_TASK":return i;case"DEPLOY_TENANT_PROCESS_DEFINITION":return p;case"DEPLOY_CUSTOM_JAR":return x&&b}return!1}},so=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.find((0,ne.startsWith)("changeRequests/"))},co=e=>void 0===e||!0===e,po=e=>({label:e,value:e}),uo=e=>{let{assignee:t,taskId:n,isOpen:r}=e;const{updateTaskState:a}=(0,s.useContext)(oo)||{},o=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowPath),l=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowEnvironmentUrl),i=(0,Ma.useSelector)(ja.ZP.selectors.getTenant),c=(0,ao._)(),p=(0,ao._)(),[u,h]=(0,s.useState)(null),[g,m]=(0,s.useState)(),[f,b]=(0,s.useState)(!1),y=io()("UPDATE_TASK")&&co(r);(0,s.useEffect)((()=>{h(po(t))}),[t]);const x=(0,s.useCallback)((e=>{if(o&&y&&n){const t=(0,ne.filter)((t=>t.value.toLowerCase().includes(e)));return g?Promise.resolve(t(g)):p((0,d.j2$)({taskId:n,workflowPath:o,environment:l,tenant:i})).then((e=>{const{data:n}=e,r=n.sort(((e,t)=>d.P6Y.strings.sort("asc",e,t))).map(po);return m(r),t(r)})).catch(lo)}}),[o,n,l,i,g,m,y]),E=(0,s.useCallback)((e=>{if(o&&y&&n){const{value:t}=e;b(!0),c((0,d._C4)({taskId:n,workflowPath:o,environment:l,tenant:i,assignee:t})).then((()=>{h(po(t)),null==a||a(n,{assignee:t})})).catch(lo).finally((()=>{b(!1)}))}}),[o,n,l,i,y]);return{assignee:u,getAssignees:x,updateAssignee:E,updateRequestIsInProgress:f,readOnly:!y}},ho=e=>{let{taskId:t,assignee:n,isTaskOpen:r}=e;const{assignee:a,getAssignees:o,updateAssignee:l,updateRequestIsInProgress:i,readOnly:s}=uo({taskId:t,assignee:n,isOpen:r}),d=i||s;return c().createElement(Re.Z,{isDisabled:d,getOptions:o,onChange:l,hideSelectedOptions:!1,label:Ct().text("Assigned to"),value:a,defaultOptions:!0,TextFieldProps:{disabled:d},height:40})},go=(0,at.Z)({dueDate:{marginTop:0,marginBottom:0},dueDateInput:{height:"40px"},inputLabel:{fontSize:"14px"}}),mo=e=>{let{taskId:t,dueDate:n,isTaskOpen:r,className:a}=e;const o=go(),{updateDueDate:l,updateRequestIsInProgress:i,readOnly:p}=(e=>{let{dueDate:t,taskId:n,isOpen:r}=e;const{updateTaskState:a}=(0,s.useContext)(oo)||{},o=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowPath),l=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowEnvironmentUrl),i=(0,Ma.useSelector)(ja.ZP.selectors.getTenant),c=(0,ao._)(),[p,u]=(0,s.useState)(!1),h=io()("UPDATE_TASK")&&co(r);return{updateDueDate:(0,s.useCallback)((e=>{o&&h&&n&&e&&t!==e&&(u(!0),c((0,d.KF3)({taskId:n,workflowPath:o,environment:l,tenant:i,dueDate:e})).then((()=>{null==a||a(n,{dueDate:e})})).catch(lo).finally((()=>{u(!1)})))}),[o,n,l,i,a,c,t,h]),updateRequestIsInProgress:p,readOnly:!h}})({dueDate:n,taskId:t,isOpen:r});return c().createElement(Fe.Z,{className:pt()(o.dueDate,a),disabled:i||p,value:n,label:Ct().text("Due date"),onChange:(0,ne.pipe)((e=>e&&e.getTime()),l),margin:"dense",InputProps:{className:o.dueDateInput},InputLabelProps:{classes:{root:o.inputLabel}}})},fo=e=>{let{taskId:t,priority:n,isTaskOpen:r,className:a}=e;const{priorities:o,updatePriority:l,updateRequestIsInProgress:i,readOnly:p}=(e=>{let{priority:t,taskId:n,isOpen:r}=e;const{updateTaskState:a}=(0,s.useContext)(oo)||{},o=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowPath),l=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowEnvironmentUrl),i=(0,Ma.useSelector)(ja.ZP.selectors.getTenant),c=(0,ao._)(),[p,u]=(0,s.useState)(!1),h=io()("UPDATE_TASK")&&co(r),g=(0,s.useCallback)((e=>{const{value:r}=e;o&&h&&n&&t!==r&&(u(!0),c((0,d.ax9)({taskId:n,workflowPath:o,environment:l,tenant:i,priority:r})).then((()=>{null==a||a(n,{priority:r})})).catch(lo).finally((()=>{u(!1)})))}),[o,n,l,i,a,c,t,h]);return{priorities:(0,s.useMemo)((()=>[{label:Ct().text("Low"),value:d.NVC.low},{label:Ct().text("Medium"),value:d.NVC.medium},{label:Ct().text("High"),value:d.NVC.high},{label:Ct().text("Urgent"),value:d.NVC.urgent}]),[]),updatePriority:g,updateRequestIsInProgress:p,readOnly:!h}})({taskId:t,priority:n,isOpen:r}),u=i||p;return c().createElement(Re.Z,{className:a,isDisabled:u,options:o,onChange:l,hideSelectedOptions:!1,label:Ct().text("Priority"),value:o.find((0,ne.propEq)("value",n)),TextFieldProps:{disabled:u},height:40})};var bo=n(94842),yo=n(43434),xo=n(98685);const Eo=(0,at.Z)((e=>({comment:{display:"flex",flexDirection:"row",flex:1,marginLeft:"6px"},avatar:{height:"24px",width:"24px",margin:"3px 13px 0 0"},icon:{fill:"#537280",backgroundColor:"#EAEDEE"},firstLine:{display:"flex",flexDirection:"row"},info:{flex:1},author:{flex:1,fontWeight:"500",color:"rgba(0,0,0,0.87)",fontSize:"13px",lineHeight:"15px"},date:{color:"rgba(0, 0, 0, 0.54)",fontSize:"11px",marginRight:"17px",lineHeight:"15px"},text:{color:"rgba(0, 0, 0, 0.6)",fontSize:"13px",wordWrap:"break-word",wordBreak:"break-all",paddingRight:"10px"}}))),vo=(0,at.Z)((e=>({circleButton:{maxWidth:"14px",maxHeight:"14px",border:"1px solid rgba(0, 0, 0, 0.3)",fontSize:"13px",color:"rgba(0, 0, 0, 0.6)",position:"absolute",top:"-11px",left:"5px",backgroundColor:"#ffffff","&:hover":{backgroundColor:"#f7f7f7"},"&.focused":{backgroundColor:"#f7f7f7"}},delimiter:{position:"relative",height:"4px",borderTop:"1px solid rgba(0, 0, 0, 0.3)",borderBottom:"1px solid rgba(0, 0, 0, 0.3)",margin:"15px 0 24px 0"}}))),wo=(0,at.Z)((e=>({container:{padding:"5px 0",display:"flex",flexDirection:"column"},commentsContainer:{maxHeight:"300px",overflowY:"auto"},title:{margin:"0 0 8px 5px",fontSize:"14px",color:"rgba(0, 0, 0, 0.87)"},filledInputRoot:{backgroundColor:"rgba(0, 0, 0, 0.03)",padding:"0 6px",height:"40px",margin:"10px 17px 0 6px",fontSize:"14px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&.focused":{backgroundColor:"rgba(0, 0, 0, 0.03)"}}}))),Co=(0,at.Z)((e=>({messageContainer:{borderBottom:"1px solid rgba(0,0,0,0.3)",paddingBottom:"7px",marginBottom:"7px"}}))),To=e=>{let{author:t,classes:n,message:r,time:a}=e;const o=Eo();return c().createElement("div",{className:o.comment},c().createElement(yo.Z,{className:o.avatar},c().createElement(xo.Z,{className:o.icon})),c().createElement("div",{className:pt()(o.info,n.messageContainer)},c().createElement("div",{className:o.firstLine},c().createElement("div",{className:o.author},t),c().createElement("span",{className:o.date},Ct().date(a,"L LT"))),c().createElement("div",{className:o.text},r)))};To.defaultProps={classes:{}},To.propTypes={classes:ee().object,author:ee().string,id:ee().string,message:ee().string,time:ee().number};const Io=e=>{let{comments:t,onClick:n}=e;const r=vo();return c().createElement(c().Fragment,null,c().createElement(To,t[0]),c().createElement("div",{className:r.delimiter},c().createElement(sa.Z,{className:r.circleButton,onClick:n},t.length-2)),c().createElement(To,t[t.length-1]))};Io.propTypes={comments:ee().arrayOf(ee().shape({author:ee().string,id:ee().string,message:ee().string,time:ee().number})),onClick:ee().func};const Po=e=>{let{comments:t}=e;const n=Co();return t.map((e=>{let{author:t,id:r,message:a,time:o}=e;return c().createElement(To,{classes:{messageContainer:n.messageContainer},key:r,author:t,message:a,time:o})}))};Po.propTypes={comments:ee().arrayOf(ee().shape({author:ee().string,id:ee().string,message:ee().string,time:ee().number}))};const Oo=e=>{let{processInstanceComments:t,taskId:n,isOpen:r}=e;const{updateTaskState:a}=(0,s.useContext)(oo)||{},o=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowPath),l=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowEnvironmentUrl),i=(0,Ma.useSelector)(ja.ZP.selectors.getTenant),c=(0,ao._)(),[p,u]=(0,s.useState)([]),[h,g]=(0,s.useState)(!1),m=io()("UPDATE_TASK")&&co(r);(0,s.useEffect)((()=>{u(t||[])}),[t]);const f=(0,s.useCallback)((e=>{m&&(g(!0),c((0,d.tZe)({workflowPath:o,environment:l,tenant:i,taskId:n,comment:e}).then((()=>(0,d.yW4)({workflowPath:o,environment:l,tenant:i,taskId:n})))).then((e=>{let{processInstanceComments:t}=e;u(t||[]),null==a||a(n,{processInstanceComments:t})})).catch(lo).finally((()=>g(!1))))}),[l,n,i,o,c,a,m]);return{comments:p,requestIsInProgress:h,writeComment:f,readOnly:!m}},So=e=>e.target.value,Do=e=>{let{processInstanceComments:t,taskId:n,isTaskOpen:r}=e;const a=wo(),[o,l]=(0,s.useState)(!1),[i,d]=(0,s.useState)(""),{comments:p,writeComment:u,readOnly:h}=Oo({processInstanceComments:t,taskId:n,isOpen:r}),g=(0,s.useCallback)((()=>{u(i),d("")}),[i,u]),m=(0,ne.pipe)(So,d);return c().createElement("div",{className:a.container},c().createElement("div",{className:a.title}," ",Ct().text("Comments")," "),c().createElement("div",{className:a.commentsContainer},o||p.length<3?c().createElement(Po,{comments:p}):c().createElement(Io,{onClick:()=>l(!0),comments:p})),!h&&c().createElement(ca.Z,{endAdornment:c().createElement(da.Z,{position:"end"},c().createElement(Jr.Z,{icon:bo.Z,disabled:0===i.length,onClick:g})),classes:{root:a.filledInputRoot},placeholder:Ct().text("Write a comment"),value:i,onKeyPress:(0,ne.when)((0,ne.propEq)("key","Enter"),g),onChange:m,disableUnderline:!0}))};Do.propTypes={processInstanceComments:ee().arrayOf(ee().shape({author:ee().string,id:ee().string,message:ee().string,time:ee().number})),taskId:ee().string};var No=n(43054),_o=n(12212);const ko=e=>{let{taskId:t,possibleActions:n,assignee:r,isTaskOpen:a}=e;const{actions:o,actionRequestIsInProgress:l}=(e=>{let{possibleActions:t,assignee:n,taskId:r,isOpen:a}=e;const{loadWorkflowTasks:o}=(0,s.useContext)(oo)||{},l=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowPath),i=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowEnvironmentUrl),c=(0,Ma.useSelector)(ja.ZP.selectors.getTenant),p=(0,Ma.useSelector)(ja.ZP.selectors.getUserName),u=(0,Ma.useSelector)(ja.ZP.selectors.getEntityUri),[h,g]=(0,s.useState)(!1),m=(0,s.useContext)(_o.m),f=(0,Ma.useDispatch)(),b=(0,s.useCallback)((e=>()=>{l&&r&&(g(!0),(0,d.TZ_)({taskId:r,workflowPath:l,environment:i,tenant:c,action:e}).then((()=>{"Delete"===e?f(ja.ui.actions.entityDeletionFinished()):(f(ja.N5.entity.actions.loadEntity({viewId:m,uri:u})),null==o||o())})).catch(lo).finally((()=>{g(!1)})))}),[l,r,i,c,f,u,m,o]);return{actions:(0,s.useMemo)((()=>p===n&&co(a)?(t||[]).map((e=>{let{action:t,label:n}=e;return{text:n,onClick:b(t)}})):[]),[t,b,p,n,a]),actionRequestIsInProgress:h}})({taskId:t,possibleActions:n,assignee:r,isOpen:a});return o.length>0?c().createElement(ke.Z,{buttonComponent:Jr.Z,buttonProps:{icon:No.Z,size:"L",disabled:l},menuId:"workflow-actions",menuItems:o}):null},Ro=(0,at.Z)({decorator:{display:"flex",alignItems:"stretch"},lineBlock:{width:"56px",flexShrink:0},withLinePadding:{"& $noLine":{height:"10px"},"& $line":{height:"calc(100% - 10px)"}},noLine:{height:"0"},line:{height:"100%",position:"relative",marginLeft:"31px",borderLeft:"2px solid rgba(0,0,0,0.06)","&:before":{position:"absolute",height:6,width:6,borderRadius:"50%",left:-5,top:"15px",background:"#d8d8d8",content:'""',display:"block",border:"1px solid white"},"&$plain":{"&:before":{width:0,border:"none"}},"&$last":{height:"15px"}},content:{flex:1,minWidth:0},plain:{},last:{},rowDivider:{marginLeft:0}}),Ao=e=>{let{className:t,children:n,plain:r,first:a,last:o,transparent:l,divider:i}=e;const s=Ro();return c().createElement("div",{className:pt()(t,s.decorator)},c().createElement("div",{className:pt()(s.lineBlock,{[s.withLinePadding]:a})},!l&&c().createElement(c().Fragment,null,c().createElement("div",{className:s.noLine}),c().createElement("div",{className:pt()(s.line,{[s.plain]:r},{[s.last]:o})}))),c().createElement("div",{className:s.content},n,i&&c().createElement(Kr.Z,{className:s.rowDivider,light:!0,variant:"inset"})))};let Zo={};const Mo=["#DC057B","#5DC003","#FEC92F","#F57F27","#B71137","#056B97","#4499AE","#BD81BE","#5F3577","#A68560","#555962"];let jo=0;function Lo(){return Lo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lo.apply(this,arguments)}const Bo=e=>c().createElement("svg",Lo({width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),c().createElement("defs",null,c().createElement("path",{d:"M4 17.17L5.17 16H20V4H4v13.17zM20 2c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H6l-4 4V4c0-1.1.9-2 2-2h16zm-3 9H7v2h10v-2zm0-4H7v2h10V7z",id:"CollaborationIcon_svg__a"})),c().createElement("g",{transform:"translate(-2 -2)",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},c().createElement("mask",{id:"CollaborationIcon_svg__b",fill:"#fff"},c().createElement("use",{xlinkHref:"#CollaborationIcon_svg__a"})),c().createElement("path",{fillOpacity:.54,fill:"#000",mask:"url(#CollaborationIcon_svg__b)",d:"M0 0h24v24H0z"}))),Fo=e=>{let{task:t,children:n,actions:r,Icon:a}=e;const{taskId:o,dueDate:l,priority:i,assignee:d,createdBy:p,createTime:u,displayName:h,processDefinitionDisplayName:g,objectURIs:m,processInstanceComments:f,possibleActions:b,isOpen:y}=t,x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,ne.pipe)(so,(0,ne.unless)(ne.isNil,(0,ne.pipe)((0,ne.split)("/"),(0,ne.nth)(1))))(e)}(m),E=(e=>{let{processDefinitionDisplayName:t}=e;const n=t;return Zo[n]||(Zo[n]=Mo[jo],jo++,jo>Mo.length-1&&(jo=0)),Zo[n]})({processDefinitionDisplayName:g}),v=ro({color:E}),[w,C]=(0,s.useState)(!1),T=io()("VIEW_PROCESS_INSTANCE_COMMENTS");return c().createElement("div",{className:v.card},c().createElement("div",{className:pt()({[v.withBackground]:w})},c().createElement("div",{className:v.lineWrapper},c().createElement("div",{className:v.line}),a&&c().createElement(a,{className:v.icon}),c().createElement(Ao,{plain:!0,first:!0,transparent:!w},c().createElement("div",{className:v.mainInfo},c().createElement("div",{className:v.title},c().createElement("div",{className:pt()(v.caption,v.flex)},g),c().createElement(un.Z,{className:v.flag}),c().createElement(rn.ZP,{title:Ct().text("Due date")},c().createElement("span",{className:v.date},Ct().date(l,"L"))),c().createElement(we.Z,{isOpen:w,size:"L",onClick:()=>{C(!w)}})),c().createElement("div",{className:v.infoBlock},c().createElement("div",{className:v.flex},x&&c().createElement("div",{className:v.info},Ct().text("DCR ID"),": ",c().createElement("span",{className:v.infoValue},x)),c().createElement("div",{className:v.info},Ct().text("Created by"),": ",c().createElement("span",{className:v.infoValue},p)," ",Ct().text("on")," ",c().createElement("span",{className:v.infoValue},Ct().date(u,"L"))),c().createElement("div",{className:v.info},Ct().text("Step"),": ",c().createElement("span",{className:v.infoValue},h)),T&&(null==f?void 0:f.length)>0&&c().createElement("div",{className:v.commentsInfo},c().createElement(Bo,{className:v.commentsIcon}),c().createElement("div",{className:v.infoValue},f.length))),r||c().createElement(ko,{taskId:o,possibleActions:b,assignee:d,isTaskOpen:y}))))),w&&c().createElement(Ao,{plain:!0},c().createElement("div",{className:v.controlsBox},c().createElement("div",{className:v.controlsInRow},c().createElement(mo,{taskId:o,dueDate:l,isTaskOpen:y}),c().createElement(fo,{taskId:o,priority:i,className:v.priority,isTaskOpen:y})),c().createElement(ho,{taskId:o,assignee:d,isTaskOpen:y})))),w&&c().createElement(c().Fragment,null,n,T&&c().createElement("div",{className:v.comments},c().createElement(Do,{taskId:o,processInstanceComments:f,isTaskOpen:y}))))};function Vo(){return Vo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vo.apply(this,arguments)}const Uo=e=>c().createElement("svg",Vo({width:28,height:28,viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg"},e),c().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},c().createElement("circle",{fill:"#42A5F5",cx:14,cy:14,r:14}),c().createElement("path",{d:"M16.43 9.87c0 1.59 1.25 2.87 2.79 2.87 1.53 0 2.78-1.28 2.78-2.87C22 8.29 20.75 7 19.22 7c-1.54 0-2.79 1.29-2.79 2.87zm1.4 0c0-.79.62-1.43 1.39-1.43.77 0 1.39.64 1.39 1.43 0 .79-.62 1.44-1.39 1.44-.77 0-1.39-.65-1.39-1.44zm-6.26 8.26c0-1.59-1.25-2.87-2.79-2.87-1.53 0-2.78 1.28-2.78 2.87C6 19.71 7.25 21 8.78 21c1.54 0 2.79-1.29 2.79-2.87zM8.09 9.15v4.31h1.39v-2.87h2.78v2.15l2.78-2.87L12.26 7v2.15H8.09zm11.82 9.7v-4.31h-1.39v2.87h-2.78v-2.15l-2.78 2.87L15.74 21v-2.15h4.17z",fill:"#FFF",opacity:.87})));let zo,Ho;!function(e){e.ADDED="added",e.EDITED="edited",e.DELETED="deleted",e.PINNED="pinned",e.IGNORED="ignored",e.PIN_DELETED="pin_deleted",e.IGNORE_DELETED="ignore_deleted"}(zo||(zo={})),function(e){e.INSERT_ATTRIBUTE="INSERT_ATTRIBUTE",e.UPDATE_ATTRIBUTE="UPDATE_ATTRIBUTE",e.DELETE_ATTRIBUTE="DELETE_ATTRIBUTE",e.PIN_ATTRIBUTE="PIN_ATTRIBUTE",e.IGNORE_ATTRIBUTE="IGNORE_ATTRIBUTE",e.CREATE_ENTITY="CREATE_ENTITY",e.CREATE_RELATIONSHIP="CREATE_RELATIONSHIP",e.UPDATE_TAGS="UPDATE_TAGS",e.UPDATE_ROLES="UPDATE_ROLES",e.UPDATE_START_DATE="UPDATE_START_DATE",e.UPDATE_END_DATE="UPDATE_END_DATE",e.UPDATE_PROFILE_PIC_BY_URL="UPDATE_PROFILE_PIC_BY_URL",e.UPDATE_PROFILE_PIC_BY_URI="UPDATE_PROFILE_PIC_BY_URI",e.DELETE_RELATIONSHIP="DELETE_RELATIONSHIP"}(Ho||(Ho={}));var Wo=n(26978);const qo=(e,t)=>{switch(e){case Ho.CREATE_RELATIONSHIP:case Ho.INSERT_ATTRIBUTE:return zo.ADDED;case Ho.UPDATE_TAGS:case Ho.UPDATE_ROLES:case Ho.UPDATE_ATTRIBUTE:return zo.EDITED;case Ho.DELETE_ATTRIBUTE:case Ho.DELETE_RELATIONSHIP:return zo.DELETED;case Ho.PIN_ATTRIBUTE:return null!=t&&t.pin?zo.PIN_DELETED:zo.PINNED;case Ho.IGNORE_ATTRIBUTE:return null!=t&&t.ignored?zo.IGNORE_DELETED:zo.IGNORED}},Ko=e=>({[zo.ADDED]:Ct().text("added"),[zo.EDITED]:Ct().text("edited"),[zo.DELETED]:Ct().text("deleted"),[zo.PINNED]:Ct().text("pinned"),[zo.PIN_DELETED]:Ct().text("pin deleted"),[zo.IGNORED]:Ct().text("ignored"),[zo.IGNORE_DELETED]:Ct().text("ignore deleted")}[e]||""),Go=(e,t)=>(0,ne.when)((0,ne.allPass)([(0,ne.pipe)((0,ne.prop)("type"),(0,ne.equals)(d.oS0.TYPE_STRING)),()=>(0,d.CBv)(t)]),(0,ne.evolve)({type:(0,ne.always)(d.oS0.TYPE_URL)}))((0,d.PFL)(e));function Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Qo(e,t,n[t])}))}return e}function Qo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jo=(e,t)=>{if("newValue"in e||"oldValue"in e){const{newValue:n,oldValue:r,type:a}=e,o=(0,ne.pathOr)([],["value",t.name])(n),l=(0,ne.pathOr)([],["value",t.name])(r),i=Math.max(o.length,l.length);return(0,ne.times)((e=>[{value:{newValue:o[e],oldValue:l[e],type:a}}]),i)}const n=e[t.name];return n?[n]:[]},$o=(0,ne.curry)(((e,t,n)=>{const r=(0,Wo.U)(e,t.type,[],[]);return el(e,r,n)})),Xo=(0,ne.curry)(((e,t,n,r)=>{const a=(0,d.V3K)(e,t.type),o=(0,d.xF8)(e,t.type);return(0,ne.flatten)([Yo({level:1,label:(0,ne.propOr)("","label",a),attributeType:a,attributeValue:Yo({},t,n)},((e,t)=>{if(t===Ho.CREATE_RELATIONSHIP||(0,d.O27)(e)){const e=qo(t);return e?{operation:e}:{}}return{}})(n,r)),el(e,o,n,2)])})),el=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(0,ne.flatten)(t.map((t=>Jo(n,t).map((n=>n.map((n=>tl(e,t,n,r))))))).filter((0,ne.complement)(ne.isEmpty)))},tl=(e,t,n,r)=>{switch(t.type){case d.oS0.TYPE_NESTED:case d.oS0.TYPE_IMAGE:return nl(e,t,n,r);case d.oS0.TYPE_REFERENCE:return rl(e,t,n,r);default:{const e=((e,t)=>{const n=(0,d.kqr)(e)?t:t.value;return(0,ne.is)(Object,n)?n:{newValue:t,type:Ho.INSERT_ATTRIBUTE}})(t,n);return al(t,e,r)}}},nl=(e,t,n,r)=>{const a=(0,d.EUG)({},t);return[{level:r,label:(0,d.idV)((null==t?void 0:t.label)||(null==t?void 0:t.name)),attributeType:t,attributeValue:n},el(e,a,n.value,r+1)]},rl=(e,t,n,r)=>{const a=(0,d.EUG)(e,t);return[{level:r,label:(null==t?void 0:t.label)||(null==t?void 0:t.name),attributeType:t,attributeValue:n},el(e,a,n.value,r+1)]},al=(e,t,n)=>{const{newValue:r,oldValue:a,type:o}=(e=>{let{newValue:t,oldValue:n,type:r}=e;return r===Ho.UPDATE_ATTRIBUTE?{type:r,newValue:t,oldValue:n}:{type:r,newValue:n||t}})(t);return{attributeType:e,newValue:r,oldValue:a,operation:qo(o,a),label:(null==e?void 0:e.label)||(null==e?void 0:e.name),level:n}};function ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ll(e,t,n[t])}))}return e}function ll(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const il=["defaultProfilePicValue",d.xPW.tags.name,d.xPW.roles.name,d.xPW.startDate.name,d.xPW.endDate.name],sl=e=>{let{newValue:t,oldValue:n}=e;const r=e=>isNaN(e)||(0,d.O27)(e)?e:parseInt(e),a=e=>(null==e?void 0:e.length)&&!(0,d.O27)(e)&&!(0,d.O27)(e[0]),o=a(t),l=a(n);return o&&l?[{type:Ho.UPDATE_ATTRIBUTE,oldValue:{value:r(n[0])},newValue:{value:r(t[0])}}]:o?[{type:Ho.INSERT_ATTRIBUTE,newValue:{value:r(t[0])}}]:l?[{type:Ho.DELETE_ATTRIBUTE,oldValue:{value:r(n[0])}}]:void 0},cl=(e,t)=>{const{newValue:n=[],oldValue:r=[],type:a}=t,o=a===Ho.UPDATE_ROLES?(0,d.xqc)(e):ne.identity,l=(0,ne.difference)(n,r),i=(0,ne.difference)(r,n),s=[];return l.length&&s.push({type:Ho.INSERT_ATTRIBUTE,newValue:{value:l.map(o).join(", ")}}),i.length&&s.push({type:Ho.DELETE_ATTRIBUTE,oldValue:{value:i.map(o).join(", ")}}),s},dl=(e,t)=>{const n=(e=>{const{type:t,attributePath:n,refObjectURI:r,refAttributeType:a}=e,o=t===Ho.INSERT_ATTRIBUTE?(0,d.Zmi)(n):n;if(r){const e=a.split("/attributes/"),t=r.split("/")[1];return[e[1],t,o].join("/")}return o})(t),r=n.split("/");let a=e;for(let e=0;e<r.length-1;e+=2){var o;const n=r[e],l=r[e+1],i=(a[n]||[]).find((0,ne.propEq)("id",l)),s=r.length===e+2?t:{},c=i||{id:l,value:s},d=(null===(o=t.refObjectURI)||void 0===o?void 0:o.indexOf(l))>=0&&t.refObjectURI;d&&(c.refObjectURI=d),(0,ne.isNil)(i)&&(a[n]=(a[n]||[]).concat(c)),a=c.value}return e},pl=(e,t)=>{const{attributes:n={},startDate:r,endDate:a}=t,{roles:o,tags:l,defaultProfilePicValue:i}=t,s=ol({},n);return i&&(s.defaultProfilePicValue=[i]),o&&(s[d.xPW.roles.name]=[{type:Ho.INSERT_ATTRIBUTE,newValue:{value:o.map((0,d.xqc)(e)).join(", ")}}]),l&&(s[d.xPW.tags.name]=[{type:Ho.INSERT_ATTRIBUTE,newValue:{value:l.join(", ")}}]),r&&(s[d.xPW.startDate.name]=[{type:Ho.INSERT_ATTRIBUTE,newValue:{value:r}}]),a&&(s[d.xPW.endDate.name]=[{type:Ho.INSERT_ATTRIBUTE,newValue:{value:a}}]),s},ul=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const{type:a}=n;switch(a){case Ho.UPDATE_PROFILE_PIC_BY_URL:r.defaultProfilePicValue=[n.newValue];break;case Ho.UPDATE_TAGS:r[d.xPW.tags.name]=cl(e,n);break;case Ho.UPDATE_ROLES:r[d.xPW.roles.name]=cl(e,n);break;case Ho.UPDATE_START_DATE:r[d.xPW.startDate.name]=sl(n);break;case Ho.UPDATE_END_DATE:r[d.xPW.endDate.name]=sl(n);break;case Ho.CREATE_RELATIONSHIP:case Ho.CREATE_ENTITY:return ol({},r,pl(e,n.newValue));case Ho.INSERT_ATTRIBUTE:case Ho.UPDATE_ATTRIBUTE:case Ho.DELETE_ATTRIBUTE:case Ho.PIN_ATTRIBUTE:case Ho.IGNORE_ATTRIBUTE:dl(r,n)}return r};var hl=n(86689);const gl=(0,at.Z)((e=>({linkLabel:{color:e.palette.primary.main,fontSize:"12px",letterSpacing:0,lineHeight:"16px"}}))),ml=e=>{let{suggestionsCount:t,isExpanded:n,onClick:r,className:a}=e;const o=gl();return c().createElement(hl.Z,{component:"button",variant:"caption",underline:"none",onClick:r,className:a},c().createElement("span",{className:o.linkLabel},n?Ct().text("View less suggestions"):Ct().text("View ${suggestionsCount} more suggestions",{suggestionsCount:t})))};var fl=n(43525),bl=n(7089);const yl=(0,at.Z)((e=>({field:{fontSize:"12px",lineHeight:"20px",color:e.palette.text.primary,marginTop:"6px",overflow:"hidden",wordBreak:"break-word"},fieldName:{color:e.palette.text.secondary,marginRight:"8px"},difference:{marginRight:"8px"},arrow:{margin:"0 4px",fontSize:"12px",color:e.palette.text.primary},chip:{height:"20px",fontSize:"10px",fontWeight:500,lineHeight:"16px",letterSpacing:0,flexShrink:0,textTransform:"capitalize",color:e.palette.primary.main,borderColor:e.palette.primary.main,"&.edited":{color:"#CC7500",borderColor:"#CC7500"},"&.added":{color:"#599E0E",borderColor:"#599E0E"},"&.deleted":{color:"#CF0E26",borderColor:"#CF0E26"}}}))),xl=e=>{let{label:t,oldValue:n,newValue:r,operation:a,className:o}=e;const l=yl(),i=n||r;return c().createElement("div",{className:pt()(l.field,o)},c().createElement("span",{className:l.fieldName},t,":"),!(0,ne.isNil)(i)&&c().createElement("span",{className:l.difference},i,r&&n&&c().createElement(c().Fragment,null,c().createElement(fl.Z,{className:l.arrow}),r)),a&&c().createElement(bl.Z,{variant:"outlined",label:Ko(a),className:pt()(l.chip,a)}))},El=c().createContext(null);El.displayName="AttributesChangesContext";const vl=(0,at.Z)((e=>({linkContainer:{textDecoration:"none",cursor:"pointer",marginLeft:"4px"},linkLabel:{color:e.palette.primary.main,fontSize:"12px",letterSpacing:0,lineHeight:"16px"},disabledLink:{pointerEvents:"none",cursor:"default"},label:{color:e.palette.text.primary},change:e=>{let{level:t=0}=e;return{marginLeft:16*t+"px"}}}))),wl=e=>{let{label:t,level:n,attributeType:r,attributeValue:a,oldValue:o,newValue:l,operation:i}=e;const p=vl({level:n}),u=(0,Ma.useSelector)(ja.ZP.selectors.getEntityUri),h=(0,s.useContext)(El),g=(0,s.useCallback)((()=>{if((0,d.YkG)(r)){const e=(0,ne.when)((0,ne.anyPass)([(0,ne.hasPath)(["value","newValue"]),(0,ne.hasPath)(["value","oldValue"])]),(0,ne.ifElse)((0,ne.hasPath)(["value","newValue"]),(0,ne.path)(["value","newValue"]),(0,ne.path)(["value","oldValue"])))(a);return function(e,t,n){let r,a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const l=o[t.refObjectURI];return l?(a=n===l.startObjectUri?l.endObjectUri:l.startObjectUri,r=n===l.startObjectUri?l.endObjectLabel:l.startObjectLabel):t.refEntity&&(a=t.refEntity.objectURI,r=o[a].label),{objectUri:a,objectLabel:r}}(r,e,u,h)}if("endObject"in r){const{endObjectUri:e,endObjectLabel:t}=a;return{objectUri:e,objectLabel:t}}}),[r,a,u,h]),m=(0,s.useCallback)((()=>{const{objectUri:e,objectLabel:t}=g()||{};if(!(0,ne.isNil)(e)&&!(0,ne.isNil)(t)){var n;const r=!1===(null===(n=h[e])||void 0===n?void 0:n.isExist);return c().createElement($e.Z,{value:e,className:pt()(p.linkContainer,{[p.disabledLink]:r})},c().createElement("span",{className:pt()(p.linkLabel,{[p.label]:r})},(0,d.idV)(t)))}return null}),[g,h,p]),f=(0,s.useMemo)((()=>c().createElement("span",null,t,m())),[t,m]),b=(0,s.useCallback)((e=>{const t=(0,d.kDl)(e);return c().createElement(Ne.Z,{value:t,dataTypeDefinition:Go(r,t)})}),[r]);return c().createElement(xl,{className:p.change,label:f,oldValue:o&&b(o),newValue:l&&b(l),operation:i})},Cl=(0,at.Z)({title:{fontSize:"12px",letterSpacing:0,lineHeight:"16px",fontWeight:500,marginTop:"8px"}});function Tl(){return Tl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tl.apply(this,arguments)}const Il=e=>{let{changes:t}=e;const n=Cl();return c().createElement(c().Fragment,null,t.map(((e,t)=>(0,ne.has)("level",e)?c().createElement(wl,Tl({},e,{key:t})):c().createElement("div",{className:n.title,key:t},e.label))))},Pl=(0,ne.pipe)((0,ne.filter)((0,ne.has)("operation")),ne.length),Ol=(0,at.Z)((e=>({container:{boxSizing:"border-box",border:"1px solid rgba(0,0,0,0.03)",borderRadius:"3px",backgroundColor:"rgba(0,0,0,0.03)",padding:"10px",margin:"12px 16px 12px 0"},uri:{color:e.palette.primary.main,textDecoration:"none",cursor:"pointer"},label:{fontSize:"12px",letterSpacing:0,lineHeight:"16px"},showMoreLink:{marginTop:"8px"}}))),Sl=e=>{let{changes:t,objectsInfo:n,entityInfo:r,relationsInfo:a,max:o}=e;const l=Ol(),i=(0,Ma.useSelector)(ja.ZP.selectors.getMetadata),[p,u]=(0,s.useMemo)((()=>((e,t,n,r)=>{const a=t=>(0,ne.pipe)((0,ne.pick)([t]),$o(e,n)),o=(0,ne.curry)(((e,t)=>(0,ne.reduce)(((e,n)=>(0,ne.concat)(e,n(t))),[],e))),l=(0,ne.propOr)([],n.uri)(t).reduce(((t,r)=>ul(e,n,r,t)),{}),i=r.map((n=>((e,t,n)=>(0,ne.propOr)([],n.uri)(t).reduce(((t,r)=>ul(e,n,r,t)),{}))(e,t,n)));return[o([(0,ne.pipe)((0,ne.omit)(il),$o(e,n)),a(d.xPW.roles.name),a(d.xPW.tags.name),a(d.xPW.startDate.name),a(d.xPW.endDate.name)],l),(0,ne.flatten)(r.map(((n,r)=>{const a=(0,ne.path)([n.uri,0,"type"],t);return Xo(e,n,i[r],a)})))]})(i,t,r,a)),[i,t,r,a]),h=(0,s.useMemo)((()=>{const e={label:Ct().text("Relationships")};return u.length>0?(0,ne.flatten)([p,e,u]):p}),[p,u]),{isExpanded:g,onToggle:m,itemsToShow:f,collapsedSuggestionsCount:b}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;const[n,r]=(0,s.useState)(!1),a=(0,s.useCallback)((()=>r((e=>!e))),[]),o=(0,s.useMemo)((()=>e.slice(0,t)),[e,t]),l=(0,s.useMemo)((()=>Pl(e)),[e]),i=(0,s.useMemo)((()=>Pl(o)),[o]);return{isExpanded:n,onToggle:a,itemsToShow:n?e:o,collapsedSuggestionsCount:l-i}}(h,o);return c().createElement(El.Provider,{value:n},c().createElement("div",{className:l.container},c().createElement($e.Z,{className:l.uri,value:(0,d.wwR)(r)},c().createElement("div",{className:l.label},(0,d.idV)(r.label))),c().createElement(Il,{changes:f}),b>0&&c().createElement(ml,{onClick:m,suggestionsCount:b,isExpanded:g,className:l.showMoreLink})))};function Dl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Nl(e,t,n[t])}))}return e}function Nl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _l=(0,ne.filter)((0,ne.pipe)((0,ne.prop)("uri"),d.WgC)),kl=(0,ne.filter)((0,ne.pipe)((0,ne.prop)("uri"),d.bC9)),Rl=(e,t)=>(0,ne.filter)((0,ne.allPass)([(0,ne.pipe)((0,ne.prop)("uri"),d.bC9),(0,ne.pipe)((0,ne.prop)("startObjectUri"),(0,ne.equals)(t))]))(e),Al=(0,ne.curry)(((e,t)=>({entity:t,relations:Rl(e,t.uri)}))),Zl=(0,ne.curry)(((e,t)=>{const n=e[t.startObjectUri],r=[t];return n?{entity:Dl({},n,{uri:t.startObjectUri}),relations:r}:{relations:r}})),Ml=(e,t)=>{const{entity:n,relations:r}=t,{uri:a}=n,o=(0,ne.pipe)((0,ne.pathOr)([],[a,"relations"]),(0,ne.concat)(r),ne.uniq)(e);return e[a]={entity:n,relations:o},e};function jl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ll=e=>{let{task:t}=e;const{objectURIs:n}=t,r=so(n),{dcr:a,groupedObjects:o}=(e=>{const[t,n]=(0,s.useState)([]),[r,a]=(0,s.useState)(null),o=(0,ao._)(),l=(0,s.useCallback)((e=>(0,ne.isEmpty)(e)?Promise.resolve([]):o((0,d.DnY)(e,{searchOptions:"ovOnly",defaultMaxValues:1}))),[]);return(0,s.useEffect)((()=>{(0,d.E6I)(e).then((e=>{const{changes:t,objectsInfo:r}=e,o=((e,t)=>(0,ne.pipe)(ne.keys,(0,ne.filter)((t=>(0,ne.prop)([t],e))),(0,ne.map)((e=>Dl({},t[e],{uri:e}))))(t))(t,r),i=(0,ne.pipe)(_l,(0,ne.map)(Al(o)))(o),s=(0,ne.pipe)(kl,(0,ne.map)(Zl(r)))(o),[c,d]=(0,ne.partition)((0,ne.has)("entity"),s),p=d.map((0,ne.path)(["relations",0,"startObjectUri"]));l(p).then((e=>{const t=d.map(((t,n)=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jl(e,t,n[t])}))}return e}({},t,{entity:e[n]})));(0,ne.pipe)(ne.flatten,(0,ne.reduce)(Ml,{}),ne.values,n)([i,c,t])})).catch(lo),a(e)})).catch(lo)}),[e,l]),{dcr:r,groupedObjects:t}})(r);return c().createElement(Fo,{task:t,Icon:Uo},a&&o.map(((e,t)=>c().createElement(Ao,{key:t,last:t===o.length-1,divider:!0},c().createElement(Sl,{entityInfo:e.entity,relationsInfo:e.relations,changes:a.changes,objectsInfo:a.objectsInfo})))))},Bl=(0,at.Z)({pmCard:{marginLeft:"-15px"}});function Fl(){return Fl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fl.apply(this,arguments)}const Vl=e=>c().createElement("svg",Fl({width:28,height:28,viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg"},e),c().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},c().createElement("circle",{fill:"#1976D2",cx:14,cy:14,r:14}),c().createElement("path",{d:"M22.5 14L18 9.5V13h-3.5L9 7.5 7.5 9l6.04 6H18v3.5l4.5-4.5zm-11.46 1.46L7.5 19 9 20.5l3.54-3.54-1.5-1.5z",fill:"#FFF",opacity:.87})));const Ul=e=>(0,s.useCallback)((e=>{let t={},n=[];return async r=>{let{max:a,offset:o,force:l}=r,i=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(r,["max","offset","force"]),s=l;const c=Object.keys(t);if(s=s||!(0,ne.equals)(Object.keys(i),c),!s)for(const e of c)s=s||!(0,ne.equals)(t[e],i[e]);return s&&(n=await e(i),t=i),{response:n.slice(o,o+a),total:n.length,originalResponse:n}}})(e),[e]),zl=e=>{let{enabled:t,entity:n,filter:r,onFinishLoading:a,onStartLoading:o,options:l,page:i,rowsPerPage:c,sorting:p}=e;const{order:u,field:h}=p||{},[g,m]=(0,s.useState)(0),[f,b]=(0,s.useState)([]),[y,x]=(0,s.useState)({}),E=(0,Ma.useSelector)(ja.ZP.selectors.getTenant),v=(0,Ma.useSelector)(ja.ZP.selectors.getDtssPath),w=(0,Ma.useSelector)(ja.ZP.selectors.getDataTenants),C=(0,s.useMemo)((()=>({dtssPath:v,dataTenants:w,entity:n,customerTenant:E,dtssRequest:d.Rgl})),[v,w,n,E]),T=(0,s.useCallback)((0,d.U_T)(C,d.SP6),[C]),I=Ul(T),P=Ul(d.bFH),O=(0,ne.prop)("uri",n),S=(0,ao._)(),D=(0,s.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t||(0,d.ZiX)(O))return m(0),b([]),void x({});null==o||o(),S((0,d.biM)(n)?P({dtssPath:v,entity:n,customerTenant:E,offset:i*c,max:c,force:e}):I({entityUri:O,offset:i*c,max:c,filter:r,sort:h,order:u,force:e,deep:l.showTransitiveMatches?void 0:1,activeness:l.showInactiveEntities?d.YJ7.ALL:d.YJ7.ACTIVE_ONLY})).then((e=>{const{response:t,total:n,originalResponse:r}=e;m(n),b(t),(0,d.B1H)(r).length>0&&x((0,d.KPC)(r))})).finally((()=>{null==a||a()}))}),[v,t,O,h,r,P,I,a,o,l,u,i,c,S,E]);return(0,s.useEffect)((()=>{D()}),[D]),{total:g,matches:f,entitiesMap:y,loadMatches:(0,s.useCallback)((()=>{D(!0)}),[D])}},Hl=(0,at.Z)({root:{display:"flex",flexDirection:"column",paddingRight:"12px",paddingTop:"8px",paddingBottom:"8px","& + &":{borderTop:"1px solid rgba(0,0,0, 0.12)"}},profileCardWrapper:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},profileCardContainer:{flexGrow:1},rulesContainer:{paddingLeft:"40px"}}),Wl=e=>{let{children:t,entitiesMap:n,entity:r,match:a,metadata:o,className:l}=e;const i=Hl();return c().createElement("div",{className:pt()(i.root,l)},c().createElement("div",{className:i.profileCardWrapper},c().createElement(xn.Z,{entity:a.object,classes:{container:i.profileCardContainer},disableEntityTypeColor:!0}),t),c().createElement("div",{className:i.rulesContainer},c().createElement(Jt,{match:a,metadata:o,entitiesMap:n,entity:r})))},ql={showTransitiveMatches:!0,showInactiveEntities:!1},Kl=e=>{let{task:t}=e;const n=Bl(),{objectURIs:r}=t,a=(0,Ma.useSelector)(ja.ZP.selectors.getEntity),o=(0,Ma.useSelector)(ja.ZP.selectors.getMetadata),{matches:l,entitiesMap:i}=zl({enabled:!!a.uri,entity:a,filter:"",rowsPerPage:Number.MAX_SAFE_INTEGER,page:0,options:ql}),s=null==l?void 0:l.find((e=>{let{object:t}=e;return r.includes(t.uri)}));return c().createElement(Fo,{task:t,Icon:Vl},s&&c().createElement(Ao,{last:!0},c().createElement("div",{className:n.pmCard},c().createElement(Wl,{metadata:o,entity:a,match:s,entitiesMap:i}))))};function Gl(){return Gl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gl.apply(this,arguments)}const Yl=e=>c().createElement("svg",Gl({width:28,height:28,viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg"},e),c().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},c().createElement("circle",{fill:"#205191",cx:14,cy:14,r:14}),c().createElement("path",{d:"M9.667 20.622c-.92 0-1.667-.744-1.667-1.662V8.99c0-.916.747-1.66 1.667-1.66h2.446A1.993 1.993 0 0114 6l.162.006a1.992 1.992 0 011.725 1.323h2.446c.92 0 1.667.745 1.667 1.662v9.97c0 .917-.747 1.661-1.667 1.661zm9-1.33V8.66h-1.334v1.993h-6.666V8.66H9.333v10.634h9.334zM15.86 14.46v1.302h-5.206V14.46h5.206zm1.494-2v1.302h-6.7V12.46h6.7zM14 7.33c.367 0 .667.298.667.664a.668.668 0 01-1.334 0c0-.366.3-.665.667-.665z",fill:"#FFF",opacity:.87})));function Ql(){return Ql=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ql.apply(this,arguments)}const Jl=e=>c().createElement("svg",Ql({width:28,height:28,viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg"},e),c().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",opacity:.87},c().createElement("circle",{fill:"#0D47A1",cx:14,cy:14,r:14}),c().createElement("path",{d:"M8.17 9.824v8.995c0 .886.72 1.606 1.607 1.606h8.352c.192 0 .375-.035.546-.097l1.38 1.382.804-.804-1.32-1.32-1.09-1.089-8.993-8.994-1.092-1.092-1.317-1.317-.803.803L8.17 9.824zm9.316 9.316h-8.03v-8.03l8.03 8.03zM9.777 7.575c-.192 0-.376.033-.55.094L10.42 8.86h.32v.322l1.607 1.606h4.819V8.86h1.284v8.03l1.285 1.286V9.182c0-.887-.72-1.607-1.606-1.607h-2.358a1.931 1.931 0 00-1.818-1.285 1.93 1.93 0 00-1.818 1.285H9.777zm3.533.643c0-.353.29-.643.643-.643.353 0 .642.29.642.643a.644.644 0 01-.642.642.644.644 0 01-.643-.642z",fill:"#FFF"})));class $l{}$l.build=e=>{let{task:t}=e;const{processType:n}=t;switch(n){case d.Yj_.dataChangeRequestReview:return c().createElement(Ll,{task:t});case d.Yj_.potentialMatchReview:return c().createElement(Kl,{task:t});case d.Yj_.recommendForDelete:return c().createElement(Fo,{task:t,Icon:Jl});default:return c().createElement(Fo,{task:t,Icon:Yl})}};const Xl=$l,ei=e=>{let{task:t}=e;return Xl.build({task:t})};var ti=n(65549),ni=n(86619),ri=n(8560),ai=n(37265),oi=n(79784);const li=(0,at.Z)((e=>({popoverPaper:{width:"464px"},title:{fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px",color:e.palette.text.primary,marginBottom:"17px"},content:{display:"flex",flexDirection:"column",padding:"23px 24px 14px 24px"},simpleDropDownSelector:{marginBottom:"20px"},inputRoot:{paddingTop:"0 !important",paddingBottom:"0 !important"},select:{fontSize:"14px"},footer:{display:"flex",justifyContent:"flex-end",padding:"5px 8px 8px",borderTop:"1px solid rgba(0,0,0,0.12)"},cancelButton:{marginRight:"8px"},input:{fontSize:"14px"}}))),ii=e=>{let{anchorEl:t,onClose:n}=e;const r=li(),[a,o]=(0,s.useState)(""),[l,i]=(0,s.useState)(null),[p,u]=(0,s.useState)(!1),{definitions:h}=(()=>{const[e,t]=(0,s.useState)([]),n=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowPath),r=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowEnvironmentUrl),a=(0,Ma.useSelector)(ja.ZP.selectors.getTenant),o=(0,Ma.useSelector)(ja.ZP.selectors.getEntity).type;return(0,s.useEffect)((()=>{(0,d.IU6)({workflowPath:n,environment:r,tenant:a}).then((e=>{let{data:n}=e;return t(((e,t)=>e.filter((e=>{let{manualStart:n,objectTypes:r}=e;return n&&(!r||(null==r?void 0:r.some((e=>e===t))))})))(n,o))}))}),[o,n,r,a]),{definitions:e}})(),{processInstance:g,loading:m}=(()=>{const{loadWorkflowTasks:e}=(0,s.useContext)(oo),t=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowPath),n=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowEnvironmentUrl),r=(0,Ma.useSelector)(ja.ZP.selectors.getTenant),a=(0,Ma.useSelector)(ja.ZP.selectors.getEntity).uri,[o,l]=(0,s.useState)(!1);return{processInstance:(0,s.useCallback)(((o,i)=>(l(!0),(0,d.$ju)({workflowPath:t,tenant:r,environment:n,processType:i,comment:o,objectURIs:[a]}).then((()=>{e()})).catch((e=>{throw lo(e),e})).finally((()=>{l(!1)})))),[a,n,e,r,t]),loading:o}})(),f=Boolean(t);return c().createElement(c().Fragment,null,c().createElement(oi.ZP,{open:f,anchorEl:t,onClose:n,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},classes:{paper:r.popoverPaper}},c().createElement("div",{className:r.content},c().createElement(nn.Z,{className:r.title},Ct().text("Add new workflow")),c().createElement(Qr.Z,{className:r.simpleDropDownSelector,variant:"filled",height:40,TextFieldProps:{InputProps:{disableUnderline:!0}},placeholder:Ct().text("Select task type"),value:l,onChange:e=>{i(e)},label:"",options:h.map((e=>({value:e.type,label:e.displayName})))}),c().createElement(ni.Z,{variant:"filled",hiddenLabel:!0,size:"small",placeholder:"Type a comment",InputProps:{disableUnderline:!0,classes:{input:r.input,root:r.inputRoot}},value:a,onChange:e=>{o(e.target.value)},multiline:!0})),c().createElement("div",{className:r.footer},c().createElement(Qa.Z,{disabled:m,className:r.cancelButton,onClick:n},Ct().text("Cancel")),c().createElement(Qa.Z,{disabled:m,color:"primary",onClick:()=>{g(a,null==l?void 0:l.value).then((()=>{u(!0),o(""),i(null),n()})).catch((()=>{}))}},Ct().text("Start")))),c().createElement(ri.Z,{container:document.body},c().createElement(ai.Z,{open:p,autoHideDuration:5e3,onClose:()=>{u(!1)},message:Ct().text("A new workflow has started")})))},si=(0,at.Z)({button:{padding:"9px 16px 9px 12px",marginLeft:"auto",marginRight:"8px"},buttonLabel:{fontSize:"14px",fontWeight:500,lineHeight:"16px"},icon:{fontSize:"18px",marginRight:"8px"}}),ci=()=>{const e=si(),[t,n]=(0,s.useState)(null),r=io(),a=r("START_PROCESS_INSTANCE"),o=r("VIEW_PROCESS_DEFINITIONS");return a&&o?c().createElement(c().Fragment,null,c().createElement(Qa.Z,{color:"primary",className:e.button,onClick:e=>n(e.currentTarget)},c().createElement(ti.Z,{className:e.icon}),c().createElement("div",{className:e.buttonLabel},Ct().text("Add"))),c().createElement(ii,{anchorEl:t,onClose:()=>n(null)})):null};function di(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pi=e=>{const{processTypes:t,assignee:n,showClosedTasks:r}=e||{},a=(0,ao._)(),o=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowPath),l=(0,Ma.useSelector)(ja.ZP.selectors.getWorkflowEnvironmentUrl),i=(0,Ma.useSelector)(ja.ZP.selectors.isWorkflowEnabled),c=(0,Ma.useSelector)(ja.ZP.selectors.getTenant),p=(0,Ma.useSelector)(ja.ZP.selectors.getEntityUri),u=(0,Ma.useSelector)(ja.ZP.selectors.getIsEditableMode),h=io()("VIEW_TASKS"),g=!(!o||!l)&&i&&h,[m,f]=(0,s.useState)(null),[b,y]=(0,s.useState)(0),[x,E]=(0,s.useState)(!1),v=(0,s.useCallback)((()=>{E(!0);const e=!Array.isArray(t)||t.includes("*")?null:t,i=(e||[null]).map((e=>(0,d.uT0)({entityUri:p,workflowPath:o,environment:l,tenant:c,filter:{assignee:n,processType:e},includeClosed:!!r})));a(Promise.all(i)).then((t=>{const r=(0,ne.pipe)((0,ne.map)((0,ne.prop)("data")),(0,ne.reject)(ne.isNil),ne.flatten,(0,ne.uniqBy)((0,ne.prop)("taskId")),(0,ne.filter)(ui(e,n)))(t);f(r),y(r.length)})).catch((e=>{console.warn("Workflow error",e)})).finally((()=>{E(!1)}))}),[p,l,a,c,o,n,r,t]);(0,s.useEffect)((()=>{p&&g&&!(0,d.ZiX)(p)?v():(f(null),y(0))}),[g,p,v,u]);const w=(0,s.useCallback)(((e,t)=>{f((n=>n.map((n=>n.taskId===e?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){di(e,t,n[t])}))}return e}({},n,t):n))))}),[]);return{tasks:m,total:b,loading:x,updateTaskState:w,loadWorkflowTasks:v}},ui=(e,t)=>n=>(!e||e.includes(n.processType))&&(!t||t===n.assignee);function hi(){return hi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hi.apply(this,arguments)}const gi=e=>c().createElement("svg",hi({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),c().createElement("defs",null,c().createElement("path",{d:"M17.045 20.455l1.41-1.41-3.41-3.41-1.41 1.41 3.41 3.41zm-9.5-12.41h3.5v5.59l-5.41 5.41 1.41 1.41 6-6v-6.41h3.5l-4.5-4.5-4.5 4.5z",id:"MergeDark_svg__a"})),c().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},c().createElement("mask",{id:"MergeDark_svg__b",fill:"#fff"},c().createElement("use",{xlinkHref:"#MergeDark_svg__a",transform:"rotate(90 12.045 12)"})),c().createElement("path",{fillOpacity:.54,fill:"#000",mask:"url(#MergeDark_svg__b)",d:"M0 0h24v24H0z"}))),mi=(0,at.Z)((e=>({button:{padding:"9px 16px 9px 12px","& svg g path":{fill:e.palette.primary.main,fillOpacity:1}},iconButton:{"& svg g path":{fill:e.palette.primary.main,fillOpacity:1}},startIcon:{marginLeft:0,marginRight:"8px",width:"18px",height:"18px",alignItems:"center"},label:{whiteSpace:"nowrap",fontSize:"14px",lineHeight:"16px",letterSpacing:0},overflowStyle:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},menuIcon:{marginRight:"12px"},menuItem:{minHeight:"28px",padding:"2px 16px 2px 12px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}})));function fi(){return fi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fi.apply(this,arguments)}let bi;!function(e){e.iconButton="iconButton",e.button="button",e.menuItem="menuItem"}(bi||(bi={}));const yi=(0,s.forwardRef)(((e,t)=>{let{className:n,mode:r=bi.iconButton,label:a,disabled:o,icon:l,onClick:i=ua.ZT,onMenuClose:s=ua.ZT}=e,d=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","mode","label","disabled","icon","onClick","onMenuClose"]);const p=mi();return(()=>{switch(r){case"iconButton":return c().createElement(Gr.k,fi({disabled:o,className:pt()(p.iconButton,n),size:"S",tooltipTitle:a,onClick:i,icon:l},d));case"button":return c().createElement(Qa.Z,fi({className:pt()(p.button,n),disabled:o,startIcon:c().createElement(l,null),onClick:i,color:"primary",classes:{startIcon:p.startIcon,label:p.label}},d),c().createElement(nt.C,{value:a},c().createElement("div",{className:p.overflowStyle},a)));case"menuItem":{const e=()=>{s(),i()};return c().createElement(en.Z,fi({classes:{root:p.menuItem},onClick:e,disabled:o,ref:t},d),c().createElement(c().Fragment,null,c().createElement(l,{className:p.menuIcon}),c().createElement(nn.Z,{classes:{root:p.menuText}},a)))}}})()}));yi.displayName="ActionButton";const xi=e=>{let{entities:t,entity:n,onFinishRequest:r,onStartRequest:a,onError:o=ua.ZT}=e;const l=(0,Ma.useSelector)(ja.ZP.selectors.getTenant),i=(0,Ma.useSelector)(ja.ZP.selectors.getDtssPath),[c,p]=(0,s.useState)(!1);return{isPending:c,sendMergeAllRequest:(0,s.useCallback)((()=>{null==a||a(),p(!0);const e={dtssPath:i,customerTenant:l,entity:n,entities:t};((0,d.biM)(n)?(0,d.uJQ)(e):(0,d.OxG)(e)).catch(o).finally((()=>{null==r||r(),p(!1)}))}),[i,t,n,r,a,l])}};function Ei(){return Ei=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ei.apply(this,arguments)}const vi=(0,s.forwardRef)(((e,t)=>{let{className:n,mode:r=bi.iconButton,onMenuClose:a=ua.ZT,disabled:o=!1,entity:l,entities:i,onStartRequest:s,onFinishRequest:d,onError:p}=e,u=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","mode","onMenuClose","disabled","entity","entities","onStartRequest","onFinishRequest","onError"]);const{sendMergeAllRequest:h}=xi({entity:l,entities:i,onStartRequest:s,onFinishRequest:d,onError:p});return c().createElement(yi,Ei({className:n,disabled:o,mode:r,label:Ct().text("Merge"),icon:gi,onClick:h,onMenuClose:a,ref:t},u))}));function wi(){return wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wi.apply(this,arguments)}vi.displayName="mergeButton";const Ci=e=>c().createElement("svg",wi({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),c().createElement("defs",null,c().createElement("path",{d:"M17 13.138l4.5 4.5-4.5 4.5V18.5h-1.247l-3.488-3.479 1.413-1.414 2.901 2.893H17v-3.362zM17 1.5L21.5 6 17 10.5V7.138h-.421l-11.03 11H2v-2h2.723l11.03-11H17V1.5zm-11.45 4l3.294 3.286-1.414 1.413L4.723 7.5H2v-2h3.55z",id:"NotMatchDark_svg__a"})),c().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},c().createElement("mask",{id:"NotMatchDark_svg__b",fill:"#fff"},c().createElement("use",{xlinkHref:"#NotMatchDark_svg__a"})),c().createElement("path",{fillOpacity:.54,fill:"#000",mask:"url(#NotMatchDark_svg__b)",d:"M0 0h24v24H0z"}))),Ti=e=>{let{entities:t,entity:n,onFinishRequest:r,onStartRequest:a}=e;const o=(0,Ma.useSelector)(ja.ZP.selectors.getTenant),l=(0,Ma.useSelector)(ja.ZP.selectors.getDtssPath),[i,c]=(0,s.useState)(!1);return{isPending:i,sendMarkAsNotMatchRequest:(0,s.useCallback)((()=>{null==a||a(),c(!0);const e={dtssPath:l,customerTenant:o,entity:n,entities:t};((0,d.biM)(n)?(0,d.bMg)(e):(0,d.fZN)(e)).finally((()=>{null==r||r(),c(!1)}))}),[l,t,n,r,a,o])}};function Ii(){return Ii=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ii.apply(this,arguments)}const Pi=(0,s.forwardRef)(((e,t)=>{let{className:n,mode:r=bi.iconButton,onMenuClose:a=ua.ZT,disabled:o=!1,entity:l,entities:i,onStartRequest:s,onFinishRequest:d}=e,p=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","mode","onMenuClose","disabled","entity","entities","onStartRequest","onFinishRequest"]);const{sendMarkAsNotMatchRequest:u}=Ti({entity:l,entities:i,onStartRequest:s,onFinishRequest:d});return c().createElement(yi,Ii({className:n,disabled:o,mode:r,label:Ct().text("Not a match"),icon:Ci,onClick:u,onMenuClose:a,ref:t},p))}));Pi.displayName="notMatchButton";var Oi=n(66072),Si=n(53862),Di=n(62901),Ni=n(86602),_i=n(53857),ki=n(67462),Ri=n(50548),Ai=n(17569),Zi=n(27536);function Mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ji(e,t,n[t])}))}return e}function ji(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Li=[],Bi=e=>console.error("Collaboration error",e),Fi=e=>{let{objectIds:t=Li,objectTypes:n,enabled:r=!0}=e;const a=(0,Ma.useSelector)(ja.ZP.selectors.getEntity),o=(0,Ma.useSelector)(ja.ZP.selectors.getTenant),l=(0,Ma.useSelector)(ja.ZP.selectors.getCollaborationPath),i=(0,Ma.useSelector)(ja.ZP.selectors.isCollaborationEnabled)&&r,[c,p]=(0,s.useState)(null),[u,h]=(0,s.useState)([]),[g,m]=(0,s.useState)(null),[f,b]=(0,s.useState)(null),[y,x]=(0,s.useState)(!1),[E,v]=(0,s.useState)(!1),w=(0,s.useCallback)((e=>{m((t=>Mi({},t,e)))}),[]),C=null==a?void 0:a.uri,T=(0,s.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i&&C&&!(0,d.ZiX)(C)){const n=e=>{console.warn("Collaboration error",e),m(null)};(0,ne.pipe)(d.$oF,(0,ne.andThen)((0,ne.map)((0,ne.props)(["objectId","comments"]))),(0,ne.andThen)(ne.fromPairs),(0,ne.andThen)(t?m:w),(0,ne.otherwise)(n))({uris:e,tenant:o,collaborationPath:l})}else m(null)}),[w,l,C,i,o]);(0,s.useEffect)((()=>{T(t,!0)}),[t,T]);const I=(0,s.useCallback)(((e,t)=>{(0,d.liG)({collaborationPath:l,tenant:o,relatedObjectUri:e,pageToken:t}).then((e=>{let{items:n,nextPageToken:r}=e;h((e=>t?(0,ne.uniqBy)((0,ne.prop)("commentId"),[...e,...n]):n)),p(r)})).catch(Bi)}),[l,o]),P=(0,s.useCallback)((e=>{v(!0),(0,d.d7q)({collaborationPath:l,tenant:o,commentId:e}).then(b).catch(Bi).finally((()=>v(!1)))}),[l,o]),O=(0,s.useCallback)((e=>{let{content:t,namedUsers:n,objectType:r,uri:a,relatedObjectUris:i}=e;x(!0);const s={objectId:a,content:t,relatedObjectUris:i,objectType:r,visibility:"public",namedUsers:n,permanentLink:""};return(0,d.Yrx)({collaborationPath:l,tenant:o,data:s}).then((e=>{let[t]=e;return((e,t)=>{b(e),m((n=>Mi({},n,{[t]:[...n[t]||[],{commentId:e.commentId,replies:0,status:"open"}]}))),h((t=>[e,...t]))})(t,a)})).catch(Bi).finally((()=>x(!1)))}),[l,o]),S=(0,s.useCallback)((e=>{let{content:t,namedUsers:n,objectType:r,uri:a,relatedObjectUris:i,commentId:s,replies:c}=e;x(!0);const p={objectId:a,content:t,relatedObjectUris:i,objectType:r,visibility:"public",namedUsers:n,permanentLink:"",commentId:s,replies:c};return(0,d.uAg)({collaborationPath:l,tenant:o,data:p}).then((e=>(e=>{b(e),h((0,ne.map)((0,ne.when)((0,ne.propEq)("commentId",e.commentId),(0,ne.always)(e))))})(Mi({},e,{replies:c})))).catch(Bi).finally((()=>x(!1)))}),[l,o]),D=(0,s.useCallback)((e=>{let{uri:t,commentId:n}=e;x(!0),(0,d.YFy)({collaborationPath:l,tenant:o,commentId:n}).then((()=>((e,t)=>{b(null),m((n=>{const r=n[t]||[];return Mi({},n,{[t]:r.filter((t=>t.commentId!==e))})})),h((t=>t.filter((t=>t.commentId!==e))))})(n,t))).catch(Bi).finally((()=>x(!1)))}),[l,o]),N=(0,s.useCallback)(((e,t,n)=>{const r="resolve"===e.action?"resolved":"open";b("resolved"===r?e=>{if(e)return null}:t=>{if(t)return Mi({},t,{replies:[...t.replies,e]})}),m((e=>Mi({},e,{[t]:(e[t]||[]).map((e=>e.commentId===n?Mi({},e,{status:r,replies:e.replies+1}):e))}))),h((t=>t.map((t=>t.commentId===n?Mi({},t,{status:r,replies:[...t.replies,e]}):t))))}),[]),_=(0,s.useCallback)((e=>{let{content:t,namedUsers:n,commentId:r,action:a,uri:i}=e;x(!0);const s={content:t,action:a,namedUsers:n};return(0,d.PP2)({collaborationPath:l,tenant:o,commentId:r,data:s}).then((e=>{let[t]=e;return N(t,i,r)})).catch(Bi).finally((()=>x(!1)))}),[l,o,N]),k=(0,s.useCallback)((e=>{let{commentId:t,uri:n}=e;_({content:"",namedUsers:[],commentId:t,action:"resolve",uri:n})}),[_]),R=(0,s.useCallback)((e=>{let{commentId:t,uri:n}=e;_({content:"",namedUsers:[],commentId:t,action:"reopen",uri:n})}),[_]);return{clearCurrentComment:(0,s.useCallback)((()=>{b(null)}),[]),comments:u,commentsMap:g,createComment:O,createReply:_,currentComment:f,deleteComment:D,editComment:S,getComment:P,getComments:I,getCommentsCount:T,loading:E,objectTypes:n,pageToken:c,reOpenThread:R,resolveThread:k,sending:y}};var Vi=n(55962),Ui=n(90690),zi=n(64651);function Hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Wi(e,t,n[t])}))}return e}function Wi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qi=(0,ne.when)(ne.identity,(0,ne.pipe)(d.VGB,ne.length,(0,ne.times)((e=>e+1)))),Ki=e=>{let{sorting:t,filter:n,page:r,rowsPerPage:a,config:o,entity:l,relationActivityFilter:i,mode:c}=e;const[p,u]=(0,s.useState)(!1),h=(0,Ma.useDispatch)(),g=(0,Ma.useSelector)(ja.ZP.selectors.getTenant),m=(0,Ma.useSelector)(ja.ZP.selectors.getDtssPath),{activityFilter:f,globalFilter:b}=(0,Ma.useSelector)(ja.ZP.selectors.getGlobalSearchRequestOptions)||{},y=(0,ao._)(),x=o.suggested,E=(0,s.useCallback)((()=>{if(null!=l&&l.uri){const e=Hi({},o.content,{sortBy:null==t?void 0:t.field,order:null==t?void 0:t.order,returnDates:!0,returnObjects:!0,activeness:{relation:i||d.Ng6.ALL,entity:f},max:a,offset:r*a,filter:(0,d.vyX)(b,n)||void 0,suggested:qi(x)}),s=[e].concat((0,ne.ifElse)(ne.identity,(0,ne.pipe)(d.VGB,(t=>t.map(((t,n)=>Hi({},t,{id:e.suggested[n]}))))),(0,ne.always)([]))(x)),c=(0,ne.cond)([[(0,ne.pipe)((0,ne.prop)("uri"),d.ZiX),()=>Promise.resolve([{total:0}])],[d.biM,e=>(0,d.n_1)({entityUri:e.uri,configs:s,customerTenant:g,dataTenant:e.dataTenant,dtssPath:m})],[ne.T,e=>(0,d.N6e)(e.uri,s)]]);u(!0),y(c(l)).then((e=>{let[{connections:t,total:n}]=e;h(ja.N5.relations.actions.relationsLoaded({id:o.id,connections:t,total:n}))})).finally((()=>{u(!1)}))}}),[f,o,h,m,null==l?void 0:l.uri,null==l?void 0:l.dataTenant,n,b,r,i,a,y,t,g]),v=(0,s.useRef)(!1);v.current=!1,(0,s.useEffect)((()=>{v.current=!0,E()}),[E]);const w=(0,Ui.D)(c);return(0,s.useEffect)((()=>{c!==d.ARY.Viewing||v.current||w===c||(v.current=!0,E())}),[E,c,w]),{isLoading:p,reload:E}},Gi=(e,t)=>{const n=(0,s.useRef)(!1);(0,s.useEffect)((()=>{t&&!n.current&&(n.current=!0,e())}),[e,t])};var Yi=n(11326);const Qi=()=>{const[e,t]=(0,s.useState)([]),n=(0,Ma.useSelector)(ja.ZP.selectors.getTenant),r=(0,Ma.useSelector)(ja.ZP.selectors.getServicesPath),a=e=>{console.warn("Users error",e),t([])};return(0,s.useEffect)((()=>{(0,d.kz_)({tenant:n,servicesPath:r}).then((e=>{let{array:n}=e;return t(n)})).catch(a)}),[n,r]),e};function Ji(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $i=(e,t)=>{const n=(0,s.useRef)();(0,s.useEffect)((()=>{if(n.current){const r=Object.keys(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ji(e,t,n[t])}))}return e}({},n.current,t)),a={};r.forEach((e=>{n.current[e]!==t[e]&&(a[e]={from:n.current[e],to:t[e]})})),Object.keys(a).length&&console.log("[why-did-you-update]",e,a)}n.current=t}))};var Xi=n(47081),es=n(76572),ts=n(62228),ns=n(8007),rs=n(65510),as=n(58142),os=n(89575),ls=n(80687);const is=c().createContext(!1);is.displayName="ProfilePerspectiveViewContext";const ss=c().createContext("");ss.displayName="IdContext";var cs=n(63929),ds=n(23759),ps=n(38361),us=n(3064),hs=n(38309),gs=n(10609),ms=n(39034)}}]);
|