@reltio/remotes 1.4.1192 → 1.4.1195
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/1049.js +2 -0
- package/1049.js.map +1 -0
- package/1116.js +2 -0
- package/1116.js.map +1 -0
- package/1920.js +1 -1
- package/1957.js +1 -1
- package/2114.js +1 -1
- package/2498.js +1 -1
- package/2890.js +1 -1
- package/3029.js +1 -1
- package/{8896.js → 4119.js} +2 -2
- package/4119.js.map +1 -0
- package/4361.js +1 -1
- package/4527.js +2 -0
- package/4527.js.map +1 -0
- package/4582.js +1 -1
- package/4582.js.map +1 -1
- package/4689.js +1 -1
- package/4843.js +1 -1
- package/4889.js +1 -1
- package/5243.js +1 -1
- package/5276.js +1 -1
- package/5400.js +1 -1
- package/5709.js +1 -1
- package/5720.js +1 -1
- package/5884.js +1 -1
- package/604.js +1 -1
- package/621.js +1 -1
- package/6596.js +1 -1
- package/6710.js +1 -1
- package/737.js +1 -1
- package/7820.js +1 -1
- package/{3981.js → 8337.js} +2 -2
- package/{3981.js.map → 8337.js.map} +1 -1
- package/9062.js +1 -1
- package/9431.js +1 -1
- package/9551.js +1 -1
- package/9609.js +1 -1
- package/9630.js +1 -1
- package/9838.js +1 -1
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/remoteEntry.js.map +1 -1
- package/2396.js +0 -2
- package/2396.js.map +0 -1
- package/452.js +0 -2
- package/452.js.map +0 -1
- package/8896.js.map +0 -1
- package/9511.js +0 -2
- package/9511.js.map +0 -1
package/5243.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5243],{98808:(e,t,n)=>{n.d(t,{K:()=>f,N:()=>d});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),s=n(94079);const c=(0,n(79692).Z)((e=>({button:{padding:"9px 16px 9px 12px","& svg g path, & svg path":{fill:e.palette.primary.main,fillOpacity:1}},iconButton:{"& svg g path, & svg 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}})));var i=n(31276),p=n(88611),u=n(8818);function m(){return m=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},m.apply(this,arguments)}let d;!function(e){e.iconButton="iconButton",e.button="button",e.menuItem="menuItem"}(d||(d={}));const f=(0,r.forwardRef)(((e,t)=>{let{className:n,mode:r=d.iconButton,label:l,disabled:f,icon:g,onClick:h=i.ZT,onMenuClose:b=i.ZT}=e,v=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","mode","label","disabled","icon","onClick","onMenuClose"]);const y=c();return(()=>{switch(r){case"iconButton":return a().createElement(u.k,m({disabled:f,className:o()(y.iconButton,n),size:"S",tooltipTitle:l,onClick:h,icon:g},v));case"button":return a().createElement(s.Button,m({className:o()(y.button,n),disabled:f,startIcon:a().createElement(g,null),onClick:h,color:"primary",classes:{startIcon:y.startIcon,label:y.label}},v),a().createElement(p.C,{value:l},a().createElement("div",{className:y.overflowStyle},l)));case"menuItem":{const e=()=>{b(),h()};return a().createElement(s.MenuItem,m({classes:{root:y.menuItem},onClick:e,disabled:f,ref:t},v),a().createElement(a().Fragment,null,a().createElement(g,{className:y.menuIcon}),a().createElement(s.Typography,{classes:{root:y.menuText}},l)))}}})()}));f.displayName="ActionButton"},7154:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),s=n(81667),c=n(17440),i=n(89846),p=n(27185);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 m=e=>{let{relation:t={},inRelationTypes:n=[],outRelationTypes:l=[],onChange:o=c.identity,applyFirstByDefault:s=!1,reversedContextLabels:m=!1}=e,d=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["relation","inRelationTypes","outRelationTypes","onChange","applyFirstByDefault","reversedContextLabels"]);const{getRelationTypesOptions:f,fromEditorValue:g,toEditorValue:h}=(0,i.n)({reversedContextLabels:m}),b=(0,r.useMemo)((()=>f(n,l)),[f,n,l]),v=(0,r.useCallback)((0,c.pipe)(g(n,l),o),[g,n,l,o]),y=!!t.relationType;return(0,r.useEffect)((()=>{s&&b.length&&!y&&v(b[0])}),[b,s,v,y]),a().createElement(p.Z,u({value:h(t,b),options:b,onChange:v},d))};m.propTypes={className:o().string,relation:s.bNA,inRelationTypes:o().arrayOf(s.IYE),outRelationTypes:o().arrayOf(s.IYE),applyFirstByDefault:o().bool,reversedContextLabels:o().bool,onChange:o().func};const d=m},2014:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),s=n(19592);const c=(0,n(79692).Z)((e=>({label:{backgroundColor:"rgba(43,152,240,0.12)",fontSize:"12px",lineHeight:"15px",color:e.palette.text.primary,display:"flex",alignItems:"center",padding:"2px 7px"},container:{display:"flex",alignItems:"center",cursor:"pointer"},expanded:{marginBottom:"8px"}})));function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}const p=(0,r.forwardRef)(((e,t)=>{let{children:n,expanded:r,onExpand:l,className: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={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children","expanded","onExpand","className"]);const m=c();return a().createElement("div",i({onClick:l,ref:t,className:o()(m.container,p,{[m.expanded]:r})},u),a().createElement(s.Z,{expanded:r}),a().createElement("div",{className:m.label},n))}));p.displayName="MatchRuleBadge";const u=p},83037:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),l=n(81667),o=n(74615),s=n(93301),c=n(66792);const i=e=>{let{entitiesMap:t,entity:n,match:r,metadata:i}=e;return(0,l.Pcm)(r)?a().createElement(s.Z,{transitiveMatchRules:(0,l.wB1)(i,r,t)}):a().createElement(c.Z,{matchRules:(0,l.LS0)(i,n.type,r.matchRules),Component:o.Z})}},41022:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l);const s=e=>{let{isMlMatch:t=!1}=e;return a().createElement(a().Fragment,null,t?o().text("Match IQ"):o().text("Match rules"))}},4724:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),a=n.n(r),l=n(41022);const o=(0,n(79692).Z)({title:{fontWeight:500,marginBottom:"9px"},body:{fontWeight:"normal",marginLeft:"16px"},container:{padding:"8px",fontSize:"12px",lineHeight:"14px"}}),s=e=>{let{isMlMatch:t=!1,matchRules:n}=e;const r=o();return a().createElement("div",{className:r.container},a().createElement("div",{className:r.title},a().createElement(l.Z,{isMlMatch:t})," "),a().createElement("div",{className:r.body},n.map((e=>a().createElement("div",{key:e.uri},`- ${e.label}`)))))}},12896:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),s=n(41022);const c=(0,n(79692).Z)((e=>({container:{fontSize:"13px",lineHeight:"15px"},title:{color:e.palette.text.secondary,marginBottom:"7px"},labelsContainer:{color:e.palette.text.primary,marginBottom:"8px"}}))),i=e=>{let{isMlMatch:t,matchRules:n,className:r}=e;const l=c();return a().createElement("div",{className:o()(l.container,r)},a().createElement("div",{className:l.title},a().createElement(s.Z,{isMlMatch:t})),a().createElement("div",{className:l.labelsContainer},n.map((e=>a().createElement("div",{key:e.uri},`- ${e.label}`)))))}},74615:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),a=n.n(r),l=n(4724),o=n(12896),s=n(83348),c=n(2014);const i=(0,n(79692).Z)({container:{display:"flex",flexDirection:"column",alignItems:"flex-start"},rulesContainer:{marginLeft:"16px"},icon:{height:"17px",width:"15px",marginRight:"5px"}});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=>a().createElement("svg",p({width:192,height:192,viewBox:"0 0 192 192",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),a().createElement("defs",null,a().createElement("linearGradient",{x1:"94.582%",y1:"6.451%",x2:"23.195%",y2:"83.323%",id:"MLMatch_svg__b"},a().createElement("stop",{stopColor:"#CDE1FF",offset:"0%"}),a().createElement("stop",{stopColor:"#AFFBF4",offset:"100%"})),a().createElement("linearGradient",{x1:"94.582%",y1:"6.594%",x2:"23.195%",y2:"83.214%",id:"MLMatch_svg__d"},a().createElement("stop",{stopColor:"#FFF",offset:"0%"}),a().createElement("stop",{stopColor:"#FDFFFF",offset:"100%"})),a().createElement("linearGradient",{x1:"93.837%",y1:"55.274%",x2:"29.292%",y2:"-20.431%",id:"MLMatch_svg__g"},a().createElement("stop",{stopColor:"#FFFCC7",stopOpacity:0,offset:"0%"}),a().createElement("stop",{stopColor:"#FFF470",offset:"100%"})),a().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"98.152%",id:"MLMatch_svg__i"},a().createElement("stop",{stopColor:"#83D6FF",offset:"0%"}),a().createElement("stop",{stopColor:"#72B9EF",offset:"100%"})),a().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"}),a().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"}),a().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"}),a().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"})),a().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},a().createElement("g",{transform:"translate(12 6)"},a().createElement("use",{fill:"url(#MLMatch_svg__b)",xlinkHref:"#MLMatch_svg__a"}),a().createElement("use",{fill:"url(#MLMatch_svg__d)",opacity:.5,xlinkHref:"#MLMatch_svg__c"})),a().createElement("g",{transform:"translate(69.652 30.765)"},a().createElement("rect",{fill:"#363636",x:15.457,y:132.745,width:21.151,height:23.158,rx:10.576}),a().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"}),a().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"}),a().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"}),a().createElement("path",{d:"M24.999 138.234v8h-16v-8h16zm0-11v8h-16v-8h16zm0-11v8h-16v-8h16z",fill:"#C5C5C5"}),a().createElement("g",{transform:"translate(27)"},a().createElement("mask",{id:"MLMatch_svg__f",fill:"#fff"},a().createElement("use",{xlinkHref:"#MLMatch_svg__e"})),a().createElement("use",{fill:"#FFD44B",xlinkHref:"#MLMatch_svg__e"}),a().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)"}),a().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)"}),a().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)"}),a().createElement("ellipse",{fill:"url(#MLMatch_svg__g)",mask:"url(#MLMatch_svg__f)",cx:-1.89,cy:48.245,rx:36.534,ry:36.667}))),a().createElement("g",{transform:"translate(45.647 30.765)"},a().createElement("mask",{id:"MLMatch_svg__j",fill:"#fff"},a().createElement("use",{xlinkHref:"#MLMatch_svg__h"})),a().createElement("use",{fill:"url(#MLMatch_svg__i)",xlinkHref:"#MLMatch_svg__h"}),a().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"})),a().createElement("circle",{fill:"#008FD8",cx:94,cy:86,r:9})));var m=n(87918),d=n.n(m);const f=(0,s.Z)(c.Z),g=e=>{let{isMlMatch:t=!1,matchRules:n}=e;const s=i(),[c,p]=(0,r.useState)(!1),m=(0,r.useCallback)((()=>p((e=>!e))),[]);return a().createElement("div",{className:s.container},a().createElement(f,{tooltipTitle:a().createElement(l.Z,{matchRules:n,isMlMatch:t}),tooltipPlacement:"bottom-start",onExpand:m,expanded:c},t?a().createElement(a().Fragment,null,a().createElement(u,{className:s.icon}),d().text("Match IQ")):d().text("Rules")),c?a().createElement(o.Z,{className:s.rulesContainer,matchRules:n,isMlMatch:t}):null)}},66792:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),s=n(17440),c=n(81667);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}const p=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={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["matchRules","Component"]);const[l,o]=(0,c.UkJ)(t);return a().createElement(a().Fragment,null,(0,s.isEmpty)(o)?null:a().createElement(n,i({matchRules:o},r)),(0,s.isEmpty)(l)?null:a().createElement(n,i({isMlMatch:!0,matchRules:l},r)))};p.propTypes={matchRules:c.p3$,Component:o().func};const u=p},93301:(e,t,n)=>{n.d(t,{Z:()=>E});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l),s=n(2014),c=n(19592),i=n(12896),p=n(66792),u=n(79692);const m=(0,u.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"}}))),d=e=>{let{label:t,matchRules:n}=e;const l=m(),[o,s]=(0,r.useState)(!1),u=(0,r.useCallback)((()=>s((e=>!e))),[]);return a().createElement("div",{className:l.container},a().createElement("div",{onClick:u,className:l.badge},a().createElement(c.Z,{expanded:o}),a().createElement("div",{className:l.label},t)),o?a().createElement(p.Z,{Component:i.Z,matchRules:n,className:l.matchLabels}):null)},f=(0,u.Z)({container:{display:"flex",flexDirection:"column"},rulesWrapper:{display:"flex",flexDirection:"column"}});var g=n(83348),h=n(4724);const b=(0,u.Z)({ruleWrapper:{paddingTop:"8px"},label:{fontWeight:500,fontSize:"12px"}}),v=e=>{let{transitiveMatchRules:t}=e;const n=b();return a().createElement(a().Fragment,null,t.map(((e,t)=>{let{label:r,matchRules:l}=e;return a().createElement("div",{key:t,className:n.ruleWrapper},a().createElement("div",{className:n.label},r),a().createElement(h.Z,{matchRules:l}))})))};function y(){return y=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},y.apply(this,arguments)}const x=(0,g.Z)(s.Z),E=e=>{let{transitiveMatchRules:t}=e;const n=f(),[l,s]=(0,r.useState)(!1),c=(0,r.useCallback)((()=>s((e=>!e))),[]);return a().createElement("div",{className:n.container},a().createElement(x,{tooltipTitle:a().createElement(v,{transitiveMatchRules:t}),tooltipPlacement:"bottom-start",onExpand:c,expanded:l},o().text("Transitive matches")),l?t.map(((e,t)=>a().createElement(d,y({key:t},e)))):null)}},93428:(e,t,n)=>{n.d(t,{H:()=>d});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const c=e=>a().createElement("svg",s({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.955 10.955v-3.5l4.5 4.5-4.5 4.5v-3.5h-6.41l-6-6 1.41-1.41 5.41 5.41h5.59zm-11 7.41l-1.41-1.41 3.41-3.41 1.41 1.41-3.41 3.41z",fill:"#000",fillOpacity:.54}));var i=n(31276),p=n(98808),u=n(84504);function m(){return m=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},m.apply(this,arguments)}const d=(0,r.forwardRef)(((e,t)=>{let{className:n,mode:r=p.N.iconButton,onMenuClose:l=i.ZT,disabled:s=!1,entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onSuccess:b,onError:v}=e,y=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","mode","onMenuClose","disabled","entity","entities","onStartRequest","onFinishRequest","onSuccess","onError"]);const{sendMergeAllRequest:x}=(0,u._)({entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onError:v,onSuccess:b});return a().createElement(p.K,m({className:n,disabled:s,mode:r,label:s?"":o().text("Merge"),icon:c,onClick:x,onMenuClose:l,ref:t},y))}));d.displayName="mergeButton"},30885:(e,t,n)=>{n.d(t,{i:()=>d});var r=n(98808),a=n(24328),l=n.n(a);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}const s=e=>l().createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 1.5v3.638h-1.247l-11.03 11H2v2h3.55l11.029-11H17V10.5L21.5 6 17 1.5zM8.844 8.785L5.55 5.5H2v2h2.723l2.707 2.7 1.414-1.415zm4.835 4.822l-1.414 1.414 3.488 3.479H17v3.638l4.5-4.5-4.5-4.5V16.5h-.421l-2.9-2.893z",fill:"#000",fillOpacity:.54}));var c=n(31276),i=n(87918),p=n.n(i),u=n(59119);function m(){return m=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},m.apply(this,arguments)}const d=(0,a.forwardRef)(((e,t)=>{let{className:n,mode:a=r.N.iconButton,onMenuClose:o=c.ZT,disabled:i=!1,entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onSuccess:b}=e,v=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","mode","onMenuClose","disabled","entity","entities","onStartRequest","onFinishRequest","onSuccess"]);const{sendMarkAsNotMatchRequest:y}=(0,u.m)({entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onSuccess:b});return l().createElement(r.K,m({className:n,disabled:i,mode:a,label:i?"":p().text("Not a match"),icon:s,onClick:y,onMenuClose:o,ref:t},v))}));d.displayName="notMatchButton"},93517:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l),s=n(71153),c=n.n(s),i=n(81667);const p=(0,n(79692).Z)((e=>({container:{display:"flex",padding:"16px",overflow:"hidden"},image:{width:"40px",height:"40px"},info:{marginLeft:"12px",overflow:"hidden",display:"flex",flexDirection:"column"},label:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:400,fontSize:"13px",lineHeight:"15px",color:e.palette.primary.main},secondaryLabel:{marginTop:"4px",fontWeight:400,fontSize:"10px",lineHeight:"12px",color:e.palette.text.secondary,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},link:{textDecoration:"none"},thirdRow:{display:"flex",alignItems:"center",marginTop:"auto",paddingTop:"4px"},entityId:{display:"flex",alignItems:"baseline",whiteSpace:"nowrap",fontWeight:400,fontSize:"12px",lineHeight:"16px"},entityIdLabel:{color:e.palette.text.secondary},entityIdValue:{marginLeft:"8px",color:e.palette.text.primary}})));var u=n(53180),m=n(31039),d=n(88611),f=n(68439);function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}const h=(0,r.memo)((e=>{let{entity:t,classes: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={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["entity","classes"]);const l=p(),{secondaryLabel:s,label:h,container:b}=n,v=(0,i.idV)(t.label),{secondaryLabel:y}=t;return a().createElement("div",g({className:c()(l.container,b)},r),a().createElement(u.Z,{entity:t,imageClassName:l.image}),a().createElement("div",{className:l.info},a().createElement(m.Z,{value:(0,i.wwR)(t),className:l.link},a().createElement(d.C,{value:v,placement:"top",showOnExceededHeight:!0},a().createElement("div",{className:c()(l.label,h)},v))),y&&a().createElement(d.C,{value:y,placement:"top",showOnExceededHeight:!0},a().createElement("div",{className:c()(l.secondaryLabel,s)},y)),a().createElement("div",{className:l.thirdRow},a().createElement(f.Z,{entity:t,size:"medium"}),a().createElement("div",{className:l.entityId},a().createElement("div",{className:l.entityIdLabel},o().text("ID:")),a().createElement("div",{className:l.entityIdValue},(0,i.BTI)(t))))))}))},39827:(e,t,n)=>{n.d(t,{G:()=>d});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),s=n(8818),c=n(79692),i=n(41128);const p=(0,c.Z)((e=>({container:{display:"flex",flexDirection:"column",flexShrink:0,width:"64px",paddingTop:"8px",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)"},active:{backgroundColor:(0,i.U1)(e.palette.primary.main,.12),color:e.palette.primary.main,"&:after":{content:'""',position:"absolute",height:"42px",width:"3px",backgroundColor:e.palette.primary.main,left:"-8px",borderRadius:"0 6px 6px 0"}},buttonWrapper:{position:"relative",width:"48px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",margin:"2px 8px",color:e.palette.text.secondary}})));function 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)}function m(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}const d=e=>{let{buttonsProps:t,activeIndexId:n,className:r,onButtonClick:l,classes:c={}}=e;const i=p(),{active:d,buttonWrapper:f}=c,g=m(c,["active","buttonWrapper"]);return a().createElement("div",{className:o()(i.container,r)},t.map((e=>{let{id:t}=e,r=m(e,["id"]);return a().createElement(s.k,u({},r,{classes:g,size:"S",key:t,className:o()({[o()(i.active,d)]:n===t},i.buttonWrapper,f),onClick:()=>l(t),"data-reltio-id":`reltio-profile-right-side-button-${t}`}))})))}},52043:(e,t,n)=>{n.d(t,{h:()=>o});var r=n(24328),a=n.n(r);const l=(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})}}))),o=e=>{let{width:t,open:n,children:r}=e;const o=l();return a().createElement("div",{className:o.contentWrapper,style:{width:`${n?t:0}px`}},n&&a().createElement(a().Fragment,null,r))}},17308:(e,t,n)=>{n.d(t,{P:()=>u});var r=n(24328),a=n.n(r),l=n(87685);const o=(0,n(79692).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 s=n(94079),c=n(87918),i=n.n(c),p=n(8818);const u=e=>{let{onClose:t,mainTitle:n,secondTitle:r,content:c,rightContent:u}=e;const m=o();return a().createElement("div",{className:m.container},a().createElement(p.k,{size:"L",icon:l.default,onClick:t,className:m.icon,tooltipTitle:i().text("Close")}),c||a().createElement(a().Fragment,null,a().createElement(s.Typography,{variant:"h6"},n),r&&a().createElement(a().Fragment,null,a().createElement(s.Divider,{orientation:"vertical",flexItem:!0,className:m.divider}),a().createElement(s.Typography,{variant:"body1",color:"textSecondary",className:m.secondTitle},r)),u))}},27185:(e,t,n)=>{n.d(t,{Z:()=>C});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),s=n(87918),c=n.n(s),i=n(17440),p=n(71153),u=n.n(p),m=n(94079);const d=(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 f=n(31254),g=n(88611);function h(){return h=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},h.apply(this,arguments)}const b=e=>{let{innerRef:t,innerProps:n,selectOption:r,data:l}=e;const o=d(),{value:s,label:c,startObject:i,endObject:p}=l,b=i.objectType.label+" ↔ "+p.objectType.label;return a().createElement(m.MenuItem,h({className:o.container,ref:t,key:s,onClick:()=>r({label:c,value:s,startObject:i,endObject:p})},n),a().createElement("div",{className:o.icons},a().createElement(f.Z,{className:o.iconTop,entityType:i.objectType}),a().createElement(f.Z,{className:o.iconBottom,entityType:p.objectType})),a().createElement("div",{className:o.text},a().createElement(g.C,{value:c},a().createElement(m.Typography,{className:u()(o.textItem,o.primaryTextItem)},c)),a().createElement(g.C,{value:b},a().createElement(m.Typography,{color:"textSecondary",className:u()(o.textItem,o.secondaryTextItem)},b))))};b.propTypes={innerRef:o().oneOfType([o().oneOf([null]),o().func,o().shape({current:o().any.isRequired})]),innerProps:o().object.isRequired,selectOption:o().func.isRequired,data:o().shape({value:o().string.isRequired,label:o().string.isRequired,startObject:o().object,endObject:o().object})};const v=b;var y=n(24737);function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const O=e=>{let{value:t={},options:n=[],onChange:l=i.identity,TextFieldProps:o}=e,s=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["value","options","onChange","TextFieldProps"]);const p=(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){E(e,t,n[t])}))}return e}({},(0,i.defaultTo)({},o),{"data-reltio-id":"relation-type-selector"})),[o]);return a().createElement(y.Z,x({value:t,options:n,onChange:l,label:c().text("Select relationship type "),components:{Option:v},TextFieldProps:p},s))},S=o().shape({label:o().string.isRequired,value:o().string.isRequired,startObject:o().object,endObject:o().object});O.propTypes={value:S,options:o().arrayOf(S),onChange:o().func};const C=O},89140:(e,t,n)=>{n.d(t,{V:()=>k});var r=n(24328),a=n.n(r),l=n(17440),o=n(94079),s=n(94842),c=n(13980),i=n.n(c),p=n(87918),u=n.n(p),m=n(98685),d=n(71153),f=n.n(d),g=n(79692);const h=(0,g.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"}}))),b=(0,g.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"}}))),v=(0,g.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)"}}}))),y=(0,g.Z)((e=>({messageContainer:{borderBottom:"1px solid rgba(0,0,0,0.3)",paddingBottom:"7px",marginBottom:"7px"}}))),x=e=>{let{author:t,classes:n,message:r,time:l}=e;const s=h();return a().createElement("div",{className:s.comment},a().createElement(o.Avatar,{className:s.avatar},a().createElement(m.Z,{className:s.icon})),a().createElement("div",{className:f()(s.info,n.messageContainer)},a().createElement("div",{className:s.firstLine},a().createElement("div",{className:s.author},t),a().createElement("span",{className:s.date},u().date(l,"L LT"))),a().createElement("div",{className:s.text},r)))};x.defaultProps={classes:{}},x.propTypes={classes:i().object,author:i().string,id:i().string,message:i().string,time:i().number};const E=e=>{let{comments:t,onClick:n}=e;const r=b();return a().createElement(a().Fragment,null,a().createElement(x,t[0]),a().createElement("div",{className:r.delimiter},a().createElement(o.IconButton,{className:r.circleButton,onClick:n},t.length-2)),a().createElement(x,t[t.length-1]))};E.propTypes={comments:i().arrayOf(i().shape({author:i().string,id:i().string,message:i().string,time:i().number})),onClick:i().func};const O=e=>{let{comments:t}=e;const n=y();return t.map((e=>{let{author:t,id:r,message:l,time:o}=e;return a().createElement(x,{classes:{messageContainer:n.messageContainer},key:r,author:t,message:l,time:o})}))};O.propTypes={comments:i().arrayOf(i().shape({author:i().string,id:i().string,message:i().string,time:i().number}))};var S=n(43477),C=n(22385);const w=e=>e.target.value,k=e=>{let{processInstanceComments:t,taskId:n,isTaskOpen:c}=e;const i=v(),[p,m]=(0,r.useState)(!1),[d,f]=(0,r.useState)(""),{comments:g,writeComment:h,readOnly:b}=(0,S.W)({processInstanceComments:t,taskId:n,isOpen:c}),y=(0,r.useCallback)((()=>{h(d),f("")}),[d,h]),x=(0,l.pipe)(w,f);return a().createElement("div",{className:i.container},a().createElement("div",{className:i.title}," ",u().text("Comments")," "),a().createElement("div",{className:i.commentsContainer},p||g.length<3?a().createElement(O,{comments:g}):a().createElement(E,{onClick:()=>m(!0),comments:g})),!b&&a().createElement(o.Input,{endAdornment:a().createElement(o.InputAdornment,{position:"end"},a().createElement(C.Z,{icon:s.Z,disabled:0===d.length,onClick:y})),classes:{root:i.filledInputRoot},placeholder:u().text("Write a comment"),value:d,onKeyPress:(0,l.when)((0,l.propEq)("key","Enter"),y),onChange:x,disableUnderline:!0}))};k.propTypes={processInstanceComments:i().arrayOf(i().shape({author:i().string,id:i().string,message:i().string,time:i().number})),taskId:i().string}},75813:(e,t,n)=>{n.d(t,{R:()=>s});var r=n(87918),a=n.n(r),l=n(81667),o=n(585);const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{errorMessage:t,errorCode:n}=e;n!==l.Xt7.WORKFLOW_IS_NOT_REGISTERED_ERROR&&(console.error(e),o.Z.addError({title:a().text("Error"),message:t||a().text("Something went wrong...")}))}},21380:(e,t,n)=>{n.d(t,{rc:()=>a,Xs:()=>l,tg:()=>o});var r=n(17440);const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.find((0,r.startsWith)("changeRequests/"))},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.pipe)(a,(0,r.unless)(r.isNil,(0,r.pipe)((0,r.split)("/"),(0,r.nth)(1))))(e)},o=e=>void 0===e||!0===e},5434:(e,t,n)=>{n.d(t,{r:()=>f});var r=n(24328),a=n(17440),l=n(52730),o=n(81667),s=n(59431),c=n(67218),i=n(94150),p=n(75813),u=n(22994),m=n(21380);const d=e=>({label:e,value:e}),f=e=>{let{assignee:t,taskId:n,isOpen:f}=e;const{updateTaskState:g}=(0,r.useContext)(i.O)||{},h=(0,l.useSelector)(s.ZP.selectors.getWorkflowPath),b=(0,l.useSelector)(s.ZP.selectors.getWorkflowEnvironmentUrl),v=(0,l.useSelector)(s.ZP.selectors.getTenant),y=(0,c._)(),x=(0,c._)(),[E,O]=(0,r.useState)(null),[S,C]=(0,r.useState)(),[w,k]=(0,r.useState)(!1),P=(0,u.Z)()("UPDATE_TASK")&&(0,m.tg)(f);(0,r.useEffect)((()=>{O(d(t))}),[t]);const M=(0,r.useCallback)((e=>{if(h&&P&&n){const t=(0,a.filter)((t=>t.value.toLowerCase().includes(e)));return S?Promise.resolve(t(S)):x((0,o.j2$)({taskId:n,workflowPath:h,environment:b,tenant:v})).then((e=>{const{data:n}=e,r=n.sort(((e,t)=>o.P6Y.strings.sort("asc",e,t))).map(d);return C(r),t(r)})).catch(p.R)}}),[h,n,b,v,S,C,P]),_=(0,r.useCallback)((e=>{if(h&&P&&n){const{value:t}=e;k(!0),y((0,o._C4)({taskId:n,workflowPath:h,environment:b,tenant:v,assignee:t})).then((()=>{O(d(t)),null==g||g(n,{assignee:t})})).catch(p.R).finally((()=>{k(!1)}))}}),[h,n,b,v,P]);return{assignee:E,getAssignees:M,updateAssignee:_,updateRequestIsInProgress:w,readOnly:!P}}},22994:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(52730),a=n(59431);const l=()=>{const e=(0,r.useSelector)(a.ZP.selectors.getWorkflowPath),t=(0,r.useSelector)(a.ZP.selectors.getCanUserStartProcessFromQuery),n=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowJobs),l=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowEnvironmentConfigJar),o=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowDefinition),s=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowConfigJar),c=(0,r.useSelector)(a.ZP.selectors.getCanUserViewProcessInstanceSearchQuery),i=(0,r.useSelector)(a.ZP.selectors.getCanUserUpdateWorkflowDataTask),p=(0,r.useSelector)(a.ZP.selectors.getCanUserUpdateProcessInstance),u=(0,r.useSelector)(a.ZP.selectors.getCanUserReadWorkflowDataTask),m=(0,r.useSelector)(a.ZP.selectors.getCanUserManageWorkflowEnvironmentDefinition),d=(0,r.useSelector)(a.ZP.selectors.getCanUserManageWorkflowDefinition),f=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobsValidateTasks),g=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobsUpdateTasks),h=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobsTerminateProcessInstance),b=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobsSyncBusinessProcessData),v=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobs),y=(0,r.useSelector)(a.ZP.selectors.getCanUserCreateWorkflowEnvironmentConfigJar),x=(0,r.useSelector)(a.ZP.selectors.getCanUserRegisterConfigEnvironments),E=(0,r.useSelector)(a.ZP.selectors.getCanUserCreateWorkflowConfigJar);return r=>{if(!e)return!1;switch(r){case"VIEW_PROCESS_DEFINITIONS":return o;case"DEPLOY_GENERIC_PROCESS_DEFINITION":return m;case"VIEW_JOBS":return n;case"START_JOB":return v||b&&h&&g&&f;case"VIEW_CUSTOM_JARS":return s||l;case"UPDATE_PROCESS_INSTANCE":return p;case"VIEW_TASKS":return u;case"REGISTER_TENANT":return x;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 c;case"UPDATE_TASK":return i;case"DEPLOY_TENANT_PROCESS_DEFINITION":return d;case"DEPLOY_CUSTOM_JAR":return E&&y}return!1}}},43477:(e,t,n)=>{n.d(t,{W:()=>m});var r=n(24328),a=n(81667),l=n(59431),o=n(52730),s=n(67218),c=n(94150),i=n(75813),p=n(22994),u=n(21380);const m=e=>{let{processInstanceComments:t,taskId:n,isOpen:m}=e;const{updateTaskState:d}=(0,r.useContext)(c.O)||{},f=(0,o.useSelector)(l.ZP.selectors.getWorkflowPath),g=(0,o.useSelector)(l.ZP.selectors.getWorkflowEnvironmentUrl),h=(0,o.useSelector)(l.ZP.selectors.getTenant),b=(0,s._)(),[v,y]=(0,r.useState)([]),[x,E]=(0,r.useState)(!1),O=(0,p.Z)()("UPDATE_TASK")&&(0,u.tg)(m);(0,r.useEffect)((()=>{y(t||[])}),[t]);const S=(0,r.useCallback)((e=>{O&&(E(!0),b((0,a.tZe)({workflowPath:f,environment:g,tenant:h,taskId:n,comment:e}).then((()=>(0,a.yW4)({workflowPath:f,environment:g,tenant:h,taskId:n})))).then((e=>{let{processInstanceComments:t}=e;y(t||[]),null==d||d(n,{processInstanceComments:t})})).catch(i.R).finally((()=>E(!1))))}),[g,n,h,f,b,d,O]);return{comments:v,requestIsInProgress:x,writeComment:S,readOnly:!O}}},97094:(e,t,n)=>{n.d(t,{S:()=>a});var r=n(24328);const a=n.n(r)().createContext((()=>{}));a.displayName="SnackbarContext"},94150:(e,t,n)=>{n.d(t,{O:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="WorkflowTasksContext"},59119:(e,t,n)=>{n.d(t,{m:()=>s});var r=n(81667),a=n(52730),l=n(59431),o=n(24328);const s=e=>{let{entities:t,entity:n,onFinishRequest:s,onStartRequest:c,onSuccess:i}=e;const p=(0,a.useSelector)(l.ZP.selectors.getTenant),u=(0,a.useSelector)(l.ZP.selectors.getDtssPath),[m,d]=(0,o.useState)(!1);return{isPending:m,sendMarkAsNotMatchRequest:(0,o.useCallback)((()=>{null==c||c(),d(!0);const e={dtssPath:u,customerTenant:p,entity:n,entities:t};((0,r.biM)(n)?(0,r.bMg)(e):(0,r.fZN)(e)).then((()=>{null==i||i()})).finally((()=>{null==s||s(),d(!1)}))}),[u,t,n,s,c,i,p])}}},28741:(e,t,n)=>{n.d(t,{s:()=>p});var r=n(24328),a=n(52730),l=n(59431),o=n(81667),s=n(20449),c=n(67218),i=n(17440);const p=e=>{let{enabled:t,entity:n,filter:p,rules:u,onFinishLoading:m,onStartLoading:d,options:f,page:g,rowsPerPage:h,sorting:b,markMatchedValues:v}=e;const{order:y,field:x}=b||{},[E,O]=(0,r.useState)(0),[S,C]=(0,r.useState)([]),[w,k]=(0,r.useState)({}),P=(0,a.useSelector)(l.ZP.selectors.getTenant),M=(0,a.useSelector)(l.ZP.selectors.getDtssPath),_=(0,a.useSelector)(l.ZP.selectors.getDataTenants),{activityFilter:T,globalFilter:N}=(0,a.useSelector)(l.ZP.selectors.getGlobalSearchRequestOptions)||{},R="boolean"==typeof f.showInactiveEntities?f.showInactiveEntities?o.YJ7.ALL:o.YJ7.ACTIVE_ONLY:T,I=(0,r.useMemo)((()=>({dtssPath:M,dataTenants:_,entity:n,customerTenant:P,dtssRequest:o.Rgl})),[M,_,n,P]),j=(0,r.useCallback)((0,o.U_T)(I,o.SP6),[I]),Z=(0,s.a)(j),L=(0,s.a)(o.bFH),F=(0,i.prop)("uri",n),W=(0,c._)(),z=(0,r.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t||(0,o.ZiX)(F))return O(0),C([]),void k({});null==d||d(),W((0,o.biM)(n)?L({dtssPath:M,entity:n,customerTenant:P,offset:g*h,max:h,force:e}):Z({entityUri:F,offset:g*h,max:h,filter:(0,o.vyX)(N,p)||"",rules:u,sort:x,order:y,force:e,markMatchedValues:v,deep:f.showTransitiveMatches?void 0:1,activeness:R})).then((e=>{const{response:t,total:n,originalResponse:r}=e;O(n),(0,o.B1H)(r).length>0&&k((0,o.KPC)(r)),C(t)})).finally((()=>{null==m||m()}))}),[N,R,M,t,F,x,p,u,v,L,Z,m,d,f,y,g,h,W,P]);return(0,r.useEffect)((()=>{z()}),[z]),{total:E,matches:S,entitiesMap:w,loadMatches:(0,r.useCallback)((()=>{z(!0)}),[z])}}},84504:(e,t,n)=>{n.d(t,{_:()=>c});var r=n(24328),a=n(52730),l=n(59431),o=n(81667),s=n(31276);const c=e=>{let{entities:t,entity:n,onFinishRequest:c,onStartRequest:i,onSuccess:p,onError:u=s.ZT}=e;const m=(0,a.useSelector)(l.ZP.selectors.getTenant),d=(0,a.useSelector)(l.ZP.selectors.getDtssPath),[f,g]=(0,r.useState)(!1);return{isPending:f,sendMergeAllRequest:(0,r.useCallback)((()=>{null==i||i(),g(!0);const e={dtssPath:d,customerTenant:m,entity:n,entities:t};((0,o.biM)(n)?(0,o.uJQ)(e):(0,o.OxG)(e)).then((()=>{null==p||p()})).catch(u).finally((()=>{null==c||c(),g(!1)}))}),[d,t,n,u,c,i,p,m])}}},20449:(e,t,n)=>{n.d(t,{a:()=>l});var r=n(24328),a=n(17440);const l=e=>(0,r.useCallback)((e=>{let t={},n=[];return async r=>{let{max:l,offset:o,force:s}=r,c=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(r,["max","offset","force"]),i=s;const p=Object.keys(t);if(i=i||!(0,a.equals)(Object.keys(c),p),!i)for(const e of p)i=i||!(0,a.equals)(t[e],c[e]);return i&&(n=await e(c),t=c),{response:n.slice(o,o+l),total:n.length,originalResponse:n}}})(e),[e])},89846:(e,t,n)=>{n.d(t,{n:()=>o});var r=n(24328),a=n(81667),l=n(17440);const o=e=>{let{reversedContextLabels:t}=e;return{getRelationTypesOptions:(0,r.useCallback)(((e,n)=>{const r={},o=(0,l.pipe)(a.PjQ,(0,l.tap)((e=>r[e]=(0,l.propOr)(0,e,r)+1))),s=(0,l.ascend)((0,l.prop)("label")),c=(0,l.curry)(((e,n)=>{let{uri:r,label:l,startObject:s,endObject:c}=n;const i=e===(t?a.Nsj.OUT:a.Nsj.IN)?s:c;return{label:{directionalLabel:o(i),typeLabel:l},value:`${r},${e}`,startObject:s,endObject:c}}));return e.map(c(a.Nsj.IN)).concat(n.map(c(a.Nsj.OUT))).map((0,l.evolve)({label:e=>{let{directionalLabel:t,typeLabel:n}=e;return t?r[t]>1?`${t} (${n})`:t:n}})).sort(s)}),[t]),fromEditorValue:(0,r.useCallback)(((e,t)=>n=>{const[r,o]=n.value.split(",");return{type:(o===a.Nsj.IN?e:t).find((0,l.propEq)("uri",r)),direction:o}}),[]),toEditorValue:(0,r.useCallback)(((e,t)=>t.find((0,l.propEq)("value",`${e.relationType},${e.direction}`))),[])}}},60641:(e,t,n)=>{n.d(t,{w:()=>s});var r=n(24328),a=n(20562);function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=e=>{let{getSavedState:t,saveState:n,entityTypeUri:o}=e;const[s,c]=(0,r.useState)({}),[i,p]=(0,r.useState)(null),[u,m]=(0,r.useState)(!1);(0,a.D)((()=>{i&&(c(l({},s,i)),p(null))}),[o]);const d=(0,r.useCallback)((e=>{const t={[o]:e};p(t),n(l({},s,t))}),[o,n,s]);return(0,r.useEffect)((()=>{t().then((e=>{c(e||{})})).then((e=>m(!0))).catch((e=>m(!0)))}),[]),{isLoaded:u,savedState:s[o],updateSavedState:d}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5243],{98808:(e,t,n)=>{n.d(t,{K:()=>f,N:()=>d});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),s=n(94079);const c=(0,n(79692).Z)((e=>({button:{padding:"9px 16px 9px 12px","& svg g path, & svg path":{fill:e.palette.primary.main,fillOpacity:1}},iconButton:{"& svg g path, & svg 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}})));var i=n(31276),p=n(88611),u=n(8818);function m(){return m=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},m.apply(this,arguments)}let d;!function(e){e.iconButton="iconButton",e.button="button",e.menuItem="menuItem"}(d||(d={}));const f=(0,r.forwardRef)(((e,t)=>{let{className:n,mode:r=d.iconButton,label:l,disabled:f,icon:g,onClick:h=i.ZT,onMenuClose:b=i.ZT}=e,v=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","mode","label","disabled","icon","onClick","onMenuClose"]);const y=c();return(()=>{switch(r){case"iconButton":return a().createElement(u.k,m({disabled:f,className:o()(y.iconButton,n),size:"S",tooltipTitle:l,onClick:h,icon:g},v));case"button":return a().createElement(s.Button,m({className:o()(y.button,n),disabled:f,startIcon:a().createElement(g,null),onClick:h,color:"primary",classes:{startIcon:y.startIcon,label:y.label}},v),a().createElement(p.C,{value:l},a().createElement("div",{className:y.overflowStyle},l)));case"menuItem":{const e=()=>{b(),h()};return a().createElement(s.MenuItem,m({classes:{root:y.menuItem},onClick:e,disabled:f,ref:t},v),a().createElement(a().Fragment,null,a().createElement(g,{className:y.menuIcon}),a().createElement(s.Typography,{classes:{root:y.menuText}},l)))}}})()}));f.displayName="ActionButton"},7154:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),s=n(66269),c=n(17440),i=n(89846),p=n(27185);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 m=e=>{let{relation:t={},inRelationTypes:n=[],outRelationTypes:l=[],onChange:o=c.identity,applyFirstByDefault:s=!1,reversedContextLabels:m=!1}=e,d=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["relation","inRelationTypes","outRelationTypes","onChange","applyFirstByDefault","reversedContextLabels"]);const{getRelationTypesOptions:f,fromEditorValue:g,toEditorValue:h}=(0,i.n)({reversedContextLabels:m}),b=(0,r.useMemo)((()=>f(n,l)),[f,n,l]),v=(0,r.useCallback)((0,c.pipe)(g(n,l),o),[g,n,l,o]),y=!!t.relationType;return(0,r.useEffect)((()=>{s&&b.length&&!y&&v(b[0])}),[b,s,v,y]),a().createElement(p.Z,u({value:h(t,b),options:b,onChange:v},d))};m.propTypes={className:o().string,relation:s.bNA,inRelationTypes:o().arrayOf(s.IYE),outRelationTypes:o().arrayOf(s.IYE),applyFirstByDefault:o().bool,reversedContextLabels:o().bool,onChange:o().func};const d=m},2014:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),s=n(19592);const c=(0,n(79692).Z)((e=>({label:{backgroundColor:"rgba(43,152,240,0.12)",fontSize:"12px",lineHeight:"15px",color:e.palette.text.primary,display:"flex",alignItems:"center",padding:"2px 7px"},container:{display:"flex",alignItems:"center",cursor:"pointer"},expanded:{marginBottom:"8px"}})));function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}const p=(0,r.forwardRef)(((e,t)=>{let{children:n,expanded:r,onExpand:l,className: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={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children","expanded","onExpand","className"]);const m=c();return a().createElement("div",i({onClick:l,ref:t,className:o()(m.container,p,{[m.expanded]:r})},u),a().createElement(s.Z,{expanded:r}),a().createElement("div",{className:m.label},n))}));p.displayName="MatchRuleBadge";const u=p},83037:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),l=n(66269),o=n(74615),s=n(93301),c=n(66792);const i=e=>{let{entitiesMap:t,entity:n,match:r,metadata:i}=e;return(0,l.Pcm)(r)?a().createElement(s.Z,{transitiveMatchRules:(0,l.wB1)(i,r,t)}):a().createElement(c.Z,{matchRules:(0,l.LS0)(i,n.type,r.matchRules),Component:o.Z})}},41022:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l);const s=e=>{let{isMlMatch:t=!1}=e;return a().createElement(a().Fragment,null,t?o().text("Match IQ"):o().text("Match rules"))}},4724:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),a=n.n(r),l=n(41022);const o=(0,n(79692).Z)({title:{fontWeight:500,marginBottom:"9px"},body:{fontWeight:"normal",marginLeft:"16px"},container:{padding:"8px",fontSize:"12px",lineHeight:"14px"}}),s=e=>{let{isMlMatch:t=!1,matchRules:n}=e;const r=o();return a().createElement("div",{className:r.container},a().createElement("div",{className:r.title},a().createElement(l.Z,{isMlMatch:t})," "),a().createElement("div",{className:r.body},n.map((e=>a().createElement("div",{key:e.uri},`- ${e.label}`)))))}},12896:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),s=n(41022);const c=(0,n(79692).Z)((e=>({container:{fontSize:"13px",lineHeight:"15px"},title:{color:e.palette.text.secondary,marginBottom:"7px"},labelsContainer:{color:e.palette.text.primary,marginBottom:"8px"}}))),i=e=>{let{isMlMatch:t,matchRules:n,className:r}=e;const l=c();return a().createElement("div",{className:o()(l.container,r)},a().createElement("div",{className:l.title},a().createElement(s.Z,{isMlMatch:t})),a().createElement("div",{className:l.labelsContainer},n.map((e=>a().createElement("div",{key:e.uri},`- ${e.label}`)))))}},74615:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),a=n.n(r),l=n(4724),o=n(12896),s=n(83348),c=n(2014);const i=(0,n(79692).Z)({container:{display:"flex",flexDirection:"column",alignItems:"flex-start"},rulesContainer:{marginLeft:"16px"},icon:{height:"17px",width:"15px",marginRight:"5px"}});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=>a().createElement("svg",p({width:192,height:192,viewBox:"0 0 192 192",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),a().createElement("defs",null,a().createElement("linearGradient",{x1:"94.582%",y1:"6.451%",x2:"23.195%",y2:"83.323%",id:"MLMatch_svg__b"},a().createElement("stop",{stopColor:"#CDE1FF",offset:"0%"}),a().createElement("stop",{stopColor:"#AFFBF4",offset:"100%"})),a().createElement("linearGradient",{x1:"94.582%",y1:"6.594%",x2:"23.195%",y2:"83.214%",id:"MLMatch_svg__d"},a().createElement("stop",{stopColor:"#FFF",offset:"0%"}),a().createElement("stop",{stopColor:"#FDFFFF",offset:"100%"})),a().createElement("linearGradient",{x1:"93.837%",y1:"55.274%",x2:"29.292%",y2:"-20.431%",id:"MLMatch_svg__g"},a().createElement("stop",{stopColor:"#FFFCC7",stopOpacity:0,offset:"0%"}),a().createElement("stop",{stopColor:"#FFF470",offset:"100%"})),a().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"98.152%",id:"MLMatch_svg__i"},a().createElement("stop",{stopColor:"#83D6FF",offset:"0%"}),a().createElement("stop",{stopColor:"#72B9EF",offset:"100%"})),a().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"}),a().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"}),a().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"}),a().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"})),a().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},a().createElement("g",{transform:"translate(12 6)"},a().createElement("use",{fill:"url(#MLMatch_svg__b)",xlinkHref:"#MLMatch_svg__a"}),a().createElement("use",{fill:"url(#MLMatch_svg__d)",opacity:.5,xlinkHref:"#MLMatch_svg__c"})),a().createElement("g",{transform:"translate(69.652 30.765)"},a().createElement("rect",{fill:"#363636",x:15.457,y:132.745,width:21.151,height:23.158,rx:10.576}),a().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"}),a().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"}),a().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"}),a().createElement("path",{d:"M24.999 138.234v8h-16v-8h16zm0-11v8h-16v-8h16zm0-11v8h-16v-8h16z",fill:"#C5C5C5"}),a().createElement("g",{transform:"translate(27)"},a().createElement("mask",{id:"MLMatch_svg__f",fill:"#fff"},a().createElement("use",{xlinkHref:"#MLMatch_svg__e"})),a().createElement("use",{fill:"#FFD44B",xlinkHref:"#MLMatch_svg__e"}),a().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)"}),a().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)"}),a().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)"}),a().createElement("ellipse",{fill:"url(#MLMatch_svg__g)",mask:"url(#MLMatch_svg__f)",cx:-1.89,cy:48.245,rx:36.534,ry:36.667}))),a().createElement("g",{transform:"translate(45.647 30.765)"},a().createElement("mask",{id:"MLMatch_svg__j",fill:"#fff"},a().createElement("use",{xlinkHref:"#MLMatch_svg__h"})),a().createElement("use",{fill:"url(#MLMatch_svg__i)",xlinkHref:"#MLMatch_svg__h"}),a().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"})),a().createElement("circle",{fill:"#008FD8",cx:94,cy:86,r:9})));var m=n(87918),d=n.n(m);const f=(0,s.Z)(c.Z),g=e=>{let{isMlMatch:t=!1,matchRules:n}=e;const s=i(),[c,p]=(0,r.useState)(!1),m=(0,r.useCallback)((()=>p((e=>!e))),[]);return a().createElement("div",{className:s.container},a().createElement(f,{tooltipTitle:a().createElement(l.Z,{matchRules:n,isMlMatch:t}),tooltipPlacement:"bottom-start",onExpand:m,expanded:c},t?a().createElement(a().Fragment,null,a().createElement(u,{className:s.icon}),d().text("Match IQ")):d().text("Rules")),c?a().createElement(o.Z,{className:s.rulesContainer,matchRules:n,isMlMatch:t}):null)}},66792:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),s=n(17440),c=n(66269);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}const p=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={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["matchRules","Component"]);const[l,o]=(0,c.UkJ)(t);return a().createElement(a().Fragment,null,(0,s.isEmpty)(o)?null:a().createElement(n,i({matchRules:o},r)),(0,s.isEmpty)(l)?null:a().createElement(n,i({isMlMatch:!0,matchRules:l},r)))};p.propTypes={matchRules:c.p3$,Component:o().func};const u=p},93301:(e,t,n)=>{n.d(t,{Z:()=>E});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l),s=n(2014),c=n(19592),i=n(12896),p=n(66792),u=n(79692);const m=(0,u.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"}}))),d=e=>{let{label:t,matchRules:n}=e;const l=m(),[o,s]=(0,r.useState)(!1),u=(0,r.useCallback)((()=>s((e=>!e))),[]);return a().createElement("div",{className:l.container},a().createElement("div",{onClick:u,className:l.badge},a().createElement(c.Z,{expanded:o}),a().createElement("div",{className:l.label},t)),o?a().createElement(p.Z,{Component:i.Z,matchRules:n,className:l.matchLabels}):null)},f=(0,u.Z)({container:{display:"flex",flexDirection:"column"},rulesWrapper:{display:"flex",flexDirection:"column"}});var g=n(83348),h=n(4724);const b=(0,u.Z)({ruleWrapper:{paddingTop:"8px"},label:{fontWeight:500,fontSize:"12px"}}),v=e=>{let{transitiveMatchRules:t}=e;const n=b();return a().createElement(a().Fragment,null,t.map(((e,t)=>{let{label:r,matchRules:l}=e;return a().createElement("div",{key:t,className:n.ruleWrapper},a().createElement("div",{className:n.label},r),a().createElement(h.Z,{matchRules:l}))})))};function y(){return y=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},y.apply(this,arguments)}const x=(0,g.Z)(s.Z),E=e=>{let{transitiveMatchRules:t}=e;const n=f(),[l,s]=(0,r.useState)(!1),c=(0,r.useCallback)((()=>s((e=>!e))),[]);return a().createElement("div",{className:n.container},a().createElement(x,{tooltipTitle:a().createElement(v,{transitiveMatchRules:t}),tooltipPlacement:"bottom-start",onExpand:c,expanded:l},o().text("Transitive matches")),l?t.map(((e,t)=>a().createElement(d,y({key:t},e)))):null)}},93428:(e,t,n)=>{n.d(t,{H:()=>d});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const c=e=>a().createElement("svg",s({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.955 10.955v-3.5l4.5 4.5-4.5 4.5v-3.5h-6.41l-6-6 1.41-1.41 5.41 5.41h5.59zm-11 7.41l-1.41-1.41 3.41-3.41 1.41 1.41-3.41 3.41z",fill:"#000",fillOpacity:.54}));var i=n(31276),p=n(98808),u=n(84504);function m(){return m=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},m.apply(this,arguments)}const d=(0,r.forwardRef)(((e,t)=>{let{className:n,mode:r=p.N.iconButton,onMenuClose:l=i.ZT,disabled:s=!1,entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onSuccess:b,onError:v}=e,y=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","mode","onMenuClose","disabled","entity","entities","onStartRequest","onFinishRequest","onSuccess","onError"]);const{sendMergeAllRequest:x}=(0,u._)({entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onError:v,onSuccess:b});return a().createElement(p.K,m({className:n,disabled:s,mode:r,label:s?"":o().text("Merge"),icon:c,onClick:x,onMenuClose:l,ref:t},y))}));d.displayName="mergeButton"},30885:(e,t,n)=>{n.d(t,{i:()=>d});var r=n(98808),a=n(24328),l=n.n(a);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}const s=e=>l().createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 1.5v3.638h-1.247l-11.03 11H2v2h3.55l11.029-11H17V10.5L21.5 6 17 1.5zM8.844 8.785L5.55 5.5H2v2h2.723l2.707 2.7 1.414-1.415zm4.835 4.822l-1.414 1.414 3.488 3.479H17v3.638l4.5-4.5-4.5-4.5V16.5h-.421l-2.9-2.893z",fill:"#000",fillOpacity:.54}));var c=n(31276),i=n(87918),p=n.n(i),u=n(59119);function m(){return m=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},m.apply(this,arguments)}const d=(0,a.forwardRef)(((e,t)=>{let{className:n,mode:a=r.N.iconButton,onMenuClose:o=c.ZT,disabled:i=!1,entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onSuccess:b}=e,v=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","mode","onMenuClose","disabled","entity","entities","onStartRequest","onFinishRequest","onSuccess"]);const{sendMarkAsNotMatchRequest:y}=(0,u.m)({entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onSuccess:b});return l().createElement(r.K,m({className:n,disabled:i,mode:a,label:i?"":p().text("Not a match"),icon:s,onClick:y,onMenuClose:o,ref:t},v))}));d.displayName="notMatchButton"},93517:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),l=n(87918),o=n.n(l),s=n(71153),c=n.n(s),i=n(66269);const p=(0,n(79692).Z)((e=>({container:{display:"flex",padding:"16px",overflow:"hidden"},image:{width:"40px",height:"40px"},info:{marginLeft:"12px",overflow:"hidden",display:"flex",flexDirection:"column"},label:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:400,fontSize:"13px",lineHeight:"15px",color:e.palette.primary.main},secondaryLabel:{marginTop:"4px",fontWeight:400,fontSize:"10px",lineHeight:"12px",color:e.palette.text.secondary,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},link:{textDecoration:"none"},thirdRow:{display:"flex",alignItems:"center",marginTop:"auto",paddingTop:"4px"},entityId:{display:"flex",alignItems:"baseline",whiteSpace:"nowrap",fontWeight:400,fontSize:"12px",lineHeight:"16px"},entityIdLabel:{color:e.palette.text.secondary},entityIdValue:{marginLeft:"8px",color:e.palette.text.primary}})));var u=n(53180),m=n(31039),d=n(88611),f=n(68439);function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}const h=(0,r.memo)((e=>{let{entity:t,classes: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={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["entity","classes"]);const l=p(),{secondaryLabel:s,label:h,container:b}=n,v=(0,i.idV)(t.label),{secondaryLabel:y}=t;return a().createElement("div",g({className:c()(l.container,b)},r),a().createElement(u.Z,{entity:t,imageClassName:l.image}),a().createElement("div",{className:l.info},a().createElement(m.Z,{value:(0,i.wwR)(t),className:l.link},a().createElement(d.C,{value:v,placement:"top",showOnExceededHeight:!0},a().createElement("div",{className:c()(l.label,h)},v))),y&&a().createElement(d.C,{value:y,placement:"top",showOnExceededHeight:!0},a().createElement("div",{className:c()(l.secondaryLabel,s)},y)),a().createElement("div",{className:l.thirdRow},a().createElement(f.Z,{entity:t,size:"medium"}),a().createElement("div",{className:l.entityId},a().createElement("div",{className:l.entityIdLabel},o().text("ID:")),a().createElement("div",{className:l.entityIdValue},(0,i.BTI)(t))))))}))},39827:(e,t,n)=>{n.d(t,{G:()=>d});var r=n(24328),a=n.n(r),l=n(71153),o=n.n(l),s=n(8818),c=n(79692),i=n(41128);const p=(0,c.Z)((e=>({container:{display:"flex",flexDirection:"column",flexShrink:0,width:"64px",paddingTop:"8px",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)"},active:{backgroundColor:(0,i.U1)(e.palette.primary.main,.12),color:e.palette.primary.main,"&:after":{content:'""',position:"absolute",height:"42px",width:"3px",backgroundColor:e.palette.primary.main,left:"-8px",borderRadius:"0 6px 6px 0"}},buttonWrapper:{position:"relative",width:"48px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",margin:"2px 8px",color:e.palette.text.secondary}})));function 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)}function m(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}const d=e=>{let{buttonsProps:t,activeIndexId:n,className:r,onButtonClick:l,classes:c={}}=e;const i=p(),{active:d,buttonWrapper:f}=c,g=m(c,["active","buttonWrapper"]);return a().createElement("div",{className:o()(i.container,r)},t.map((e=>{let{id:t}=e,r=m(e,["id"]);return a().createElement(s.k,u({},r,{classes:g,size:"S",key:t,className:o()({[o()(i.active,d)]:n===t},i.buttonWrapper,f),onClick:()=>l(t),"data-reltio-id":`reltio-profile-right-side-button-${t}`}))})))}},52043:(e,t,n)=>{n.d(t,{h:()=>o});var r=n(24328),a=n.n(r);const l=(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})}}))),o=e=>{let{width:t,open:n,children:r}=e;const o=l();return a().createElement("div",{className:o.contentWrapper,style:{width:`${n?t:0}px`}},n&&a().createElement(a().Fragment,null,r))}},17308:(e,t,n)=>{n.d(t,{P:()=>u});var r=n(24328),a=n.n(r),l=n(87685);const o=(0,n(79692).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 s=n(94079),c=n(87918),i=n.n(c),p=n(8818);const u=e=>{let{onClose:t,mainTitle:n,secondTitle:r,content:c,rightContent:u}=e;const m=o();return a().createElement("div",{className:m.container},a().createElement(p.k,{size:"L",icon:l.default,onClick:t,className:m.icon,tooltipTitle:i().text("Close")}),c||a().createElement(a().Fragment,null,a().createElement(s.Typography,{variant:"h6"},n),r&&a().createElement(a().Fragment,null,a().createElement(s.Divider,{orientation:"vertical",flexItem:!0,className:m.divider}),a().createElement(s.Typography,{variant:"body1",color:"textSecondary",className:m.secondTitle},r)),u))}},27185:(e,t,n)=>{n.d(t,{Z:()=>C});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),s=n(87918),c=n.n(s),i=n(17440),p=n(71153),u=n.n(p),m=n(94079);const d=(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 f=n(31254),g=n(88611);function h(){return h=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},h.apply(this,arguments)}const b=e=>{let{innerRef:t,innerProps:n,selectOption:r,data:l}=e;const o=d(),{value:s,label:c,startObject:i,endObject:p}=l,b=i.objectType.label+" ↔ "+p.objectType.label;return a().createElement(m.MenuItem,h({className:o.container,ref:t,key:s,onClick:()=>r({label:c,value:s,startObject:i,endObject:p})},n),a().createElement("div",{className:o.icons},a().createElement(f.Z,{className:o.iconTop,entityType:i.objectType}),a().createElement(f.Z,{className:o.iconBottom,entityType:p.objectType})),a().createElement("div",{className:o.text},a().createElement(g.C,{value:c},a().createElement(m.Typography,{className:u()(o.textItem,o.primaryTextItem)},c)),a().createElement(g.C,{value:b},a().createElement(m.Typography,{color:"textSecondary",className:u()(o.textItem,o.secondaryTextItem)},b))))};b.propTypes={innerRef:o().oneOfType([o().oneOf([null]),o().func,o().shape({current:o().any.isRequired})]),innerProps:o().object.isRequired,selectOption:o().func.isRequired,data:o().shape({value:o().string.isRequired,label:o().string.isRequired,startObject:o().object,endObject:o().object})};const v=b;var y=n(24737);function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const O=e=>{let{value:t={},options:n=[],onChange:l=i.identity,TextFieldProps:o}=e,s=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["value","options","onChange","TextFieldProps"]);const p=(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){E(e,t,n[t])}))}return e}({},(0,i.defaultTo)({},o),{"data-reltio-id":"relation-type-selector"})),[o]);return a().createElement(y.Z,x({value:t,options:n,onChange:l,label:c().text("Select relationship type "),components:{Option:v},TextFieldProps:p},s))},S=o().shape({label:o().string.isRequired,value:o().string.isRequired,startObject:o().object,endObject:o().object});O.propTypes={value:S,options:o().arrayOf(S),onChange:o().func};const C=O},89140:(e,t,n)=>{n.d(t,{V:()=>k});var r=n(24328),a=n.n(r),l=n(17440),o=n(94079),s=n(94842),c=n(13980),i=n.n(c),p=n(87918),u=n.n(p),m=n(98685),d=n(71153),f=n.n(d),g=n(79692);const h=(0,g.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"}}))),b=(0,g.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"}}))),v=(0,g.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)"}}}))),y=(0,g.Z)((e=>({messageContainer:{borderBottom:"1px solid rgba(0,0,0,0.3)",paddingBottom:"7px",marginBottom:"7px"}}))),x=e=>{let{author:t,classes:n,message:r,time:l}=e;const s=h();return a().createElement("div",{className:s.comment},a().createElement(o.Avatar,{className:s.avatar},a().createElement(m.Z,{className:s.icon})),a().createElement("div",{className:f()(s.info,n.messageContainer)},a().createElement("div",{className:s.firstLine},a().createElement("div",{className:s.author},t),a().createElement("span",{className:s.date},u().date(l,"L LT"))),a().createElement("div",{className:s.text},r)))};x.defaultProps={classes:{}},x.propTypes={classes:i().object,author:i().string,id:i().string,message:i().string,time:i().number};const E=e=>{let{comments:t,onClick:n}=e;const r=b();return a().createElement(a().Fragment,null,a().createElement(x,t[0]),a().createElement("div",{className:r.delimiter},a().createElement(o.IconButton,{className:r.circleButton,onClick:n},t.length-2)),a().createElement(x,t[t.length-1]))};E.propTypes={comments:i().arrayOf(i().shape({author:i().string,id:i().string,message:i().string,time:i().number})),onClick:i().func};const O=e=>{let{comments:t}=e;const n=y();return t.map((e=>{let{author:t,id:r,message:l,time:o}=e;return a().createElement(x,{classes:{messageContainer:n.messageContainer},key:r,author:t,message:l,time:o})}))};O.propTypes={comments:i().arrayOf(i().shape({author:i().string,id:i().string,message:i().string,time:i().number}))};var S=n(43477),C=n(22385);const w=e=>e.target.value,k=e=>{let{processInstanceComments:t,taskId:n,isTaskOpen:c}=e;const i=v(),[p,m]=(0,r.useState)(!1),[d,f]=(0,r.useState)(""),{comments:g,writeComment:h,readOnly:b}=(0,S.W)({processInstanceComments:t,taskId:n,isOpen:c}),y=(0,r.useCallback)((()=>{h(d),f("")}),[d,h]),x=(0,l.pipe)(w,f);return a().createElement("div",{className:i.container},a().createElement("div",{className:i.title}," ",u().text("Comments")," "),a().createElement("div",{className:i.commentsContainer},p||g.length<3?a().createElement(O,{comments:g}):a().createElement(E,{onClick:()=>m(!0),comments:g})),!b&&a().createElement(o.Input,{endAdornment:a().createElement(o.InputAdornment,{position:"end"},a().createElement(C.Z,{icon:s.Z,disabled:0===d.length,onClick:y})),classes:{root:i.filledInputRoot},placeholder:u().text("Write a comment"),value:d,onKeyPress:(0,l.when)((0,l.propEq)("key","Enter"),y),onChange:x,disableUnderline:!0}))};k.propTypes={processInstanceComments:i().arrayOf(i().shape({author:i().string,id:i().string,message:i().string,time:i().number})),taskId:i().string}},75813:(e,t,n)=>{n.d(t,{R:()=>s});var r=n(87918),a=n.n(r),l=n(66269),o=n(585);const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{errorMessage:t,errorCode:n}=e;n!==l.Xt7.WORKFLOW_IS_NOT_REGISTERED_ERROR&&(console.error(e),o.Z.addError({title:a().text("Error"),message:t||a().text("Something went wrong...")}))}},21380:(e,t,n)=>{n.d(t,{rc:()=>a,Xs:()=>l,tg:()=>o});var r=n(17440);const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.find((0,r.startsWith)("changeRequests/"))},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.pipe)(a,(0,r.unless)(r.isNil,(0,r.pipe)((0,r.split)("/"),(0,r.nth)(1))))(e)},o=e=>void 0===e||!0===e},5434:(e,t,n)=>{n.d(t,{r:()=>f});var r=n(24328),a=n(17440),l=n(52730),o=n(66269),s=n(59431),c=n(67218),i=n(94150),p=n(75813),u=n(22994),m=n(21380);const d=e=>({label:e,value:e}),f=e=>{let{assignee:t,taskId:n,isOpen:f}=e;const{updateTaskState:g}=(0,r.useContext)(i.O)||{},h=(0,l.useSelector)(s.ZP.selectors.getWorkflowPath),b=(0,l.useSelector)(s.ZP.selectors.getWorkflowEnvironmentUrl),v=(0,l.useSelector)(s.ZP.selectors.getTenant),y=(0,c._)(),x=(0,c._)(),[E,O]=(0,r.useState)(null),[S,C]=(0,r.useState)(),[w,k]=(0,r.useState)(!1),P=(0,u.Z)()("UPDATE_TASK")&&(0,m.tg)(f);(0,r.useEffect)((()=>{O(d(t))}),[t]);const M=(0,r.useCallback)((e=>{if(h&&P&&n){const t=(0,a.filter)((t=>t.value.toLowerCase().includes(e)));return S?Promise.resolve(t(S)):x((0,o.j2$)({taskId:n,workflowPath:h,environment:b,tenant:v})).then((e=>{const{data:n}=e,r=n.sort(((e,t)=>o.P6Y.strings.sort("asc",e,t))).map(d);return C(r),t(r)})).catch(p.R)}}),[h,n,b,v,S,C,P]),_=(0,r.useCallback)((e=>{if(h&&P&&n){const{value:t}=e;k(!0),y((0,o._C4)({taskId:n,workflowPath:h,environment:b,tenant:v,assignee:t})).then((()=>{O(d(t)),null==g||g(n,{assignee:t})})).catch(p.R).finally((()=>{k(!1)}))}}),[h,n,b,v,P]);return{assignee:E,getAssignees:M,updateAssignee:_,updateRequestIsInProgress:w,readOnly:!P}}},22994:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(52730),a=n(59431);const l=()=>{const e=(0,r.useSelector)(a.ZP.selectors.getWorkflowPath),t=(0,r.useSelector)(a.ZP.selectors.getCanUserStartProcessFromQuery),n=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowJobs),l=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowEnvironmentConfigJar),o=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowDefinition),s=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowConfigJar),c=(0,r.useSelector)(a.ZP.selectors.getCanUserViewProcessInstanceSearchQuery),i=(0,r.useSelector)(a.ZP.selectors.getCanUserUpdateWorkflowDataTask),p=(0,r.useSelector)(a.ZP.selectors.getCanUserUpdateProcessInstance),u=(0,r.useSelector)(a.ZP.selectors.getCanUserReadWorkflowDataTask),m=(0,r.useSelector)(a.ZP.selectors.getCanUserManageWorkflowEnvironmentDefinition),d=(0,r.useSelector)(a.ZP.selectors.getCanUserManageWorkflowDefinition),f=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobsValidateTasks),g=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobsUpdateTasks),h=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobsTerminateProcessInstance),b=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobsSyncBusinessProcessData),v=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobs),y=(0,r.useSelector)(a.ZP.selectors.getCanUserCreateWorkflowEnvironmentConfigJar),x=(0,r.useSelector)(a.ZP.selectors.getCanUserRegisterConfigEnvironments),E=(0,r.useSelector)(a.ZP.selectors.getCanUserCreateWorkflowConfigJar);return r=>{if(!e)return!1;switch(r){case"VIEW_PROCESS_DEFINITIONS":return o;case"DEPLOY_GENERIC_PROCESS_DEFINITION":return m;case"VIEW_JOBS":return n;case"START_JOB":return v||b&&h&&g&&f;case"VIEW_CUSTOM_JARS":return s||l;case"UPDATE_PROCESS_INSTANCE":return p;case"VIEW_TASKS":return u;case"REGISTER_TENANT":return x;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 c;case"UPDATE_TASK":return i;case"DEPLOY_TENANT_PROCESS_DEFINITION":return d;case"DEPLOY_CUSTOM_JAR":return E&&y}return!1}}},43477:(e,t,n)=>{n.d(t,{W:()=>m});var r=n(24328),a=n(66269),l=n(59431),o=n(52730),s=n(67218),c=n(94150),i=n(75813),p=n(22994),u=n(21380);const m=e=>{let{processInstanceComments:t,taskId:n,isOpen:m}=e;const{updateTaskState:d}=(0,r.useContext)(c.O)||{},f=(0,o.useSelector)(l.ZP.selectors.getWorkflowPath),g=(0,o.useSelector)(l.ZP.selectors.getWorkflowEnvironmentUrl),h=(0,o.useSelector)(l.ZP.selectors.getTenant),b=(0,s._)(),[v,y]=(0,r.useState)([]),[x,E]=(0,r.useState)(!1),O=(0,p.Z)()("UPDATE_TASK")&&(0,u.tg)(m);(0,r.useEffect)((()=>{y(t||[])}),[t]);const S=(0,r.useCallback)((e=>{O&&(E(!0),b((0,a.tZe)({workflowPath:f,environment:g,tenant:h,taskId:n,comment:e}).then((()=>(0,a.yW4)({workflowPath:f,environment:g,tenant:h,taskId:n})))).then((e=>{let{processInstanceComments:t}=e;y(t||[]),null==d||d(n,{processInstanceComments:t})})).catch(i.R).finally((()=>E(!1))))}),[g,n,h,f,b,d,O]);return{comments:v,requestIsInProgress:x,writeComment:S,readOnly:!O}}},97094:(e,t,n)=>{n.d(t,{S:()=>a});var r=n(24328);const a=n.n(r)().createContext((()=>{}));a.displayName="SnackbarContext"},94150:(e,t,n)=>{n.d(t,{O:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="WorkflowTasksContext"},59119:(e,t,n)=>{n.d(t,{m:()=>s});var r=n(66269),a=n(52730),l=n(59431),o=n(24328);const s=e=>{let{entities:t,entity:n,onFinishRequest:s,onStartRequest:c,onSuccess:i}=e;const p=(0,a.useSelector)(l.ZP.selectors.getTenant),u=(0,a.useSelector)(l.ZP.selectors.getDtssPath),[m,d]=(0,o.useState)(!1);return{isPending:m,sendMarkAsNotMatchRequest:(0,o.useCallback)((()=>{null==c||c(),d(!0);const e={dtssPath:u,customerTenant:p,entity:n,entities:t};((0,r.biM)(n)?(0,r.bMg)(e):(0,r.fZN)(e)).then((()=>{null==i||i()})).finally((()=>{null==s||s(),d(!1)}))}),[u,t,n,s,c,i,p])}}},28741:(e,t,n)=>{n.d(t,{s:()=>p});var r=n(24328),a=n(52730),l=n(59431),o=n(66269),s=n(20449),c=n(67218),i=n(17440);const p=e=>{let{enabled:t,entity:n,filter:p,rules:u,onFinishLoading:m,onStartLoading:d,options:f,page:g,rowsPerPage:h,sorting:b,markMatchedValues:v}=e;const{order:y,field:x}=b||{},[E,O]=(0,r.useState)(0),[S,C]=(0,r.useState)([]),[w,k]=(0,r.useState)({}),P=(0,a.useSelector)(l.ZP.selectors.getTenant),M=(0,a.useSelector)(l.ZP.selectors.getDtssPath),_=(0,a.useSelector)(l.ZP.selectors.getDataTenants),{activityFilter:T,globalFilter:N}=(0,a.useSelector)(l.ZP.selectors.getGlobalSearchRequestOptions)||{},R="boolean"==typeof f.showInactiveEntities?f.showInactiveEntities?o.YJ7.ALL:o.YJ7.ACTIVE_ONLY:T,I=(0,r.useMemo)((()=>({dtssPath:M,dataTenants:_,entity:n,customerTenant:P,dtssRequest:o.Rgl})),[M,_,n,P]),j=(0,r.useCallback)((0,o.U_T)(I,o.SP6),[I]),Z=(0,s.a)(j),L=(0,s.a)(o.bFH),F=(0,i.prop)("uri",n),W=(0,c._)(),z=(0,r.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t||(0,o.ZiX)(F))return O(0),C([]),void k({});null==d||d(),W((0,o.biM)(n)?L({dtssPath:M,entity:n,customerTenant:P,offset:g*h,max:h,force:e}):Z({entityUri:F,offset:g*h,max:h,filter:(0,o.vyX)(N,p)||"",rules:u,sort:x,order:y,force:e,markMatchedValues:v,deep:f.showTransitiveMatches?void 0:1,activeness:R})).then((e=>{const{response:t,total:n,originalResponse:r}=e;O(n),(0,o.B1H)(r).length>0&&k((0,o.KPC)(r)),C(t)})).finally((()=>{null==m||m()}))}),[N,R,M,t,F,x,p,u,v,L,Z,m,d,f,y,g,h,W,P]);return(0,r.useEffect)((()=>{z()}),[z]),{total:E,matches:S,entitiesMap:w,loadMatches:(0,r.useCallback)((()=>{z(!0)}),[z])}}},84504:(e,t,n)=>{n.d(t,{_:()=>c});var r=n(24328),a=n(52730),l=n(59431),o=n(66269),s=n(31276);const c=e=>{let{entities:t,entity:n,onFinishRequest:c,onStartRequest:i,onSuccess:p,onError:u=s.ZT}=e;const m=(0,a.useSelector)(l.ZP.selectors.getTenant),d=(0,a.useSelector)(l.ZP.selectors.getDtssPath),[f,g]=(0,r.useState)(!1);return{isPending:f,sendMergeAllRequest:(0,r.useCallback)((()=>{null==i||i(),g(!0);const e={dtssPath:d,customerTenant:m,entity:n,entities:t};((0,o.biM)(n)?(0,o.uJQ)(e):(0,o.OxG)(e)).then((()=>{null==p||p()})).catch(u).finally((()=>{null==c||c(),g(!1)}))}),[d,t,n,u,c,i,p,m])}}},20449:(e,t,n)=>{n.d(t,{a:()=>l});var r=n(24328),a=n(17440);const l=e=>(0,r.useCallback)((e=>{let t={},n=[];return async r=>{let{max:l,offset:o,force:s}=r,c=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(r,["max","offset","force"]),i=s;const p=Object.keys(t);if(i=i||!(0,a.equals)(Object.keys(c),p),!i)for(const e of p)i=i||!(0,a.equals)(t[e],c[e]);return i&&(n=await e(c),t=c),{response:n.slice(o,o+l),total:n.length,originalResponse:n}}})(e),[e])},89846:(e,t,n)=>{n.d(t,{n:()=>o});var r=n(24328),a=n(66269),l=n(17440);const o=e=>{let{reversedContextLabels:t}=e;return{getRelationTypesOptions:(0,r.useCallback)(((e,n)=>{const r={},o=(0,l.pipe)(a.PjQ,(0,l.tap)((e=>r[e]=(0,l.propOr)(0,e,r)+1))),s=(0,l.ascend)((0,l.prop)("label")),c=(0,l.curry)(((e,n)=>{let{uri:r,label:l,startObject:s,endObject:c}=n;const i=e===(t?a.Nsj.OUT:a.Nsj.IN)?s:c;return{label:{directionalLabel:o(i),typeLabel:l},value:`${r},${e}`,startObject:s,endObject:c}}));return e.map(c(a.Nsj.IN)).concat(n.map(c(a.Nsj.OUT))).map((0,l.evolve)({label:e=>{let{directionalLabel:t,typeLabel:n}=e;return t?r[t]>1?`${t} (${n})`:t:n}})).sort(s)}),[t]),fromEditorValue:(0,r.useCallback)(((e,t)=>n=>{const[r,o]=n.value.split(",");return{type:(o===a.Nsj.IN?e:t).find((0,l.propEq)("uri",r)),direction:o}}),[]),toEditorValue:(0,r.useCallback)(((e,t)=>t.find((0,l.propEq)("value",`${e.relationType},${e.direction}`))),[])}}},60641:(e,t,n)=>{n.d(t,{w:()=>s});var r=n(24328),a=n(20562);function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=e=>{let{getSavedState:t,saveState:n,entityTypeUri:o}=e;const[s,c]=(0,r.useState)({}),[i,p]=(0,r.useState)(null),[u,m]=(0,r.useState)(!1);(0,a.D)((()=>{i&&(c(l({},s,i)),p(null))}),[o]);const d=(0,r.useCallback)((e=>{const t={[o]:e};p(t),n(l({},s,t))}),[o,n,s]);return(0,r.useEffect)((()=>{t().then((e=>{c(e||{})})).then((e=>m(!0))).catch((e=>m(!0)))}),[]),{isLoaded:u,savedState:s[o],updateSavedState:d}}}}]);
|
|
2
2
|
//# sourceMappingURL=5243.js.map
|
package/5276.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5276],{58662:(e,t,a)=>{a.d(t,{Z:()=>v});var n=a(13980),r=a.n(n),l=a(24328),o=a.n(l),i=a(71153),c=a.n(i),s=a(94079),p=a(87918),d=a.n(p),u=a(31276),f=a(17440);const m=(0,a(79692).Z)({pagination:{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"56px",borderTop:"1px solid rgba(0,0,0,0.12)",boxShadow:"none"},caption:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px"},selectRoot:{marginLeft:"5px",marginRight:"36px"},select:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px",textAlign:"right"},actions:{marginLeft:"32px"}});function h(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),n.forEach((function(t){g(e,t,a[t])}))}return e}function g(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const y=e=>{let{classes:t={},count:a,rowsPerPageOptions:n,page:r,onChangePage:i,rowsPerPage:p,onChangeRowsPerPage:g,basicTableRef:y,labelRowsPerPage:v}=e;const E=m(),b=(0,l.useCallback)((()=>{(0,f.pathOr)(f.identity,["current","resetScrollbarPosition"],y)()}),[y]),x=(0,l.useCallback)((e=>{i(e),b()}),[i,b]),w=(0,l.useCallback)((e=>{i(0),g(e),b()}),[i,g,b]);return o().createElement(s.TablePagination,{classes:h({},t,{root:c()(E.pagination,t.root),select:c()(E.select,t.select),caption:E.caption,selectRoot:E.selectRoot,actions:E.actions}),component:"div",labelRowsPerPage:v||d().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:a,count:n}=e;return d().text("${fromRow}-${toRow} of ${countRows}",{fromRow:d().number(t,"0,0"),toRow:d().number(a,"0,0"),countRows:d().number(n,"0,0")})},count:a,rowsPerPageOptions:n,page:r,onChangePage:(0,f.pipe)((0,f.nthArg)(1),x),rowsPerPage:p,onChangeRowsPerPage:(0,f.pipe)(u.NA,w)})};y.propTypes={classes:r().object,rowsPerPageOptions:r().arrayOf(r().number),count:r().number,page:r().number,onChangePage:r().func,rowsPerPage:r().number,onChangeRowsPerPage:r().func,basicTableRef:r().shape({current:r().object}),labelRowsPerPage:r().string};const v=o().memo(y)},10237:(e,t,a)=>{a.d(t,{Z:()=>f});var n=a(27556),r=a(13980),l=a.n(r),o=a(24328),i=a.n(o);function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),n.forEach((function(t){s(e,t,a[t])}))}return e}function s(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const p=(0,a(79692).Z)((e=>({"basic-view__paper":c({display:"flex",flexDirection:"column"},e.basicView)})));function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},d.apply(this,arguments)}const u=(0,o.forwardRef)(((e,t)=>{let{children:a,className:r}=e,l=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["children","className"]);const o=p();return i().createElement(n.Z,d({ref:t,className:r,classes:{root:o["basic-view__paper"]}},l),a)}));u.displayName="BasicView",u.propTypes={children:l().node,className:l().string};const f=u},92778:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(24328),r=a.n(n),l=a(15223),o=a(94079);const i=(0,a(79692).Z)({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(this,arguments)}const s=e=>{let{title:t,children:a=null,classes:n={}}=e,s=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["title","children","classes"]);const p=i();return r().createElement(l.Z,c({className:n.root,classes:{root:p.toolbar}},s),r().createElement(o.Typography,{className:n.title,classes:{root:p.title},variant:"h6"},t),a)}},37699:(e,t,a)=>{a.d(t,{Z:()=>x});var n=a(24328),r=a.n(n),l=a(13980),o=a.n(l),i=a(87918),c=a.n(i),s=a(58697),p=a.n(s),d=a(17440),u=a(23147),f=a(94079),m=a(22385),h=a(81667),g=a(43305),y=a(8459);const v=(0,a(79692).Z)((e=>({container:{display:"flex",flexDirection:"column",minHeight:"182px"},header:{display:"flex",paddingLeft:"10px",backgroundColor:"#FFFFFF"},title:{marginLeft:"10px",color:e.palette.text.primary,fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px"},dateRangeContainer:{display:"flex",flexGrow:1,whiteSpace:"nowrap",cursor:"default",paddingTop:"8px"},dateInput:{margin:"0 7px"},actionButtons:{display:"flex",justifyContent:"flex-end",height:"48px",margin:"0px 8px"},button:{width:"96px"}}))),E=(e,t)=>(0,d.pathOr)(null,[t],e),b=(0,n.forwardRef)(((e,t)=>{let{onCancel:a,onApply:l,values:o,type:i}=e;const s=v(),d=(0,n.useRef)(p()()),b=(0,n.useRef)(p()()),[x,w]=(0,n.useState)(null),[O,R]=(0,n.useState)(null);r().useEffect((()=>{w(E(o,0)),R(E(o,1))}),[o]);const M=i===h.oS0.TYPE_TIMESTAMP?g.Z:y.Z,z=i===h.oS0.TYPE_TIMESTAMP?c().text("Pick date and time"):c().text("Pick date");return r().createElement("div",{className:s.container,ref:t,onKeyDown:e=>"Tab"===e.key&&e.stopPropagation()},r().createElement(f.Toolbar,{disableGutters:!0,classes:{root:s.header}},r().createElement(m.Z,{size:"L",icon:u.Z,onClick:a}),r().createElement(f.Typography,{className:s.title},z)),r().createElement("div",{className:s.dateRangeContainer},r().createElement(M,{id:d.current,label:"From",variant:"filled",value:x,onChange:e=>{w(e)},className:s.dateInput,margin:"dense"}),r().createElement(M,{id:b.current,label:"To",variant:"filled",value:O,onChange:e=>{R(e)},className:s.dateInput,margin:"dense"})),r().createElement("div",{className:s.actionButtons},r().createElement(f.Button,{color:"primary",onClick:()=>{l(x&&O&&x>O?[O,x]:[x,O])},className:s.button},c().text("Update"))))}));b.propTypes={onCancel:o().func.isRequired,onApply:o().func.isRequired,values:o().arrayOf(o().instanceOf(Date)),type:o().string},b.displayName="DateRangePicker";const x=b},55847:(e,t,a)=>{a.d(t,{Z:()=>b});var n=a(24328),r=a.n(n),l=a(71153),o=a.n(l),i=a(17440),c=a(94079),s=a(48348),p=a(20562),d=a(83348),u=a(79692),f=a(41128);const m=(0,u.Z)((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,f.U1)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,f.U1)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),h=(0,d.Z)(c.MenuItem),g=(0,n.forwardRef)(((e,t)=>{let{item:a,onMenuClose:n=i.identity}=e;const l=m(),{disabled:o,text:s,tooltip:p,onClick:d,id:u=""}=a;return r().createElement(h,{tooltipTitle:p,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{n(e),d(e)},disabled:o,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${u}`},r().createElement(c.Typography,{classes:{root:l.menuText}},s))}));g.displayName="MenuItemRenderer";const y=g;function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},v.apply(this,arguments)}function E(e){let{className:t,menuId:a,buttonComponent:l=c.Button,buttonContent:d,menuItems:u=[],buttonProps:f={},popoverProps:h={},onMenuOpen:g=i.identity,onMenuClose:E=i.identity,MenuItemRenderer:b=y}=e;const x=l,w=m(),O=(0,n.useRef)(),[R,M]=(0,n.useState)(!1);(0,p.D)((()=>{R?g():E()}),[R]);const z=(0,n.useCallback)((e=>{null==e||e.stopPropagation(),M((e=>!e))}),[]);return r().createElement(r().Fragment,null,r().createElement(x,v({ref:O,className:o()(w.buttonRoot,{[w.selected]:R},t),onClick:z,"aria-pressed":R,"aria-controls":R?a:void 0,"aria-haspopup":"true"},f),d),r().createElement(s.Z,v({id:a,variant:"menu",open:R,autoFocus:!1,classes:{paper:w.paper},anchorEl:O.current,onClose:z,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:R}},h),u.map(((e,t)=>r().createElement(b,{item:e,key:t,onMenuClose:z})))))}E.displayName="DropDownMenuButton";const b=E},6230:(e,t,a)=>{a.d(t,{J:()=>s});var n=a(24328),r=a.n(n),l=a(87918),o=a.n(l),i=a(15689);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(this,arguments)}const s=e=>r().createElement(i.Z,c({message:o().text("No data available")},e))},51229:(e,t,a)=>{a.d(t,{Z:()=>l});var n=a(24328),r=a.n(n);const l=()=>r().createElement("div",{style:{flex:1}})},63072:(e,t,a)=>{a.d(t,{b:()=>o});var n=a(24328),r=a(81667),l=a(56764);const o=e=>{let{filter:t,max:a,offset:o,entityUri:i}=e;return(0,n.useCallback)((async()=>{const e=(0,l.U)(t),n=await(0,r.k6v)({filter:e,max:a,offset:o,entityUri:i}),{total:c}=await(0,r.FEC)({filter:e,entityUri:i});return{data:n,total:c}}),[t,a,o,i])}},96808:(e,t,a)=>{a.d(t,{Z:()=>m});var n=a(13980),r=a.n(n),l=a(24328),o=a.n(l),i=a(71153),c=a.n(i),s=a(10161),p=a(83543),d=a(22385);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},u.apply(this,arguments)}const f=e=>{const{selectProps:{classes:t,menuIsOpen:a},innerProps:n}=e,r=(0,s.m)();return o().createElement(d.Z,u({},n,{icon:p.Z,className:t.dropdownIndicator,size:"L",iconClassName:c()({[r.expanded]:a})}))};f.propTypes={innerProps:r().object.isRequired,selectProps:r().shape({classes:r().shape({dropdownIndicator:r().string}).isRequired,menuIsOpen:r().bool.isRequired}).isRequired};const m=f},24489:(e,t,a)=>{a.r(t),a.d(t,{default:()=>_});var n=a(8598),r=a(36138),l=a(22664),o=a(39450),i=a(585),c=a(24328),s=a.n(c),p=a(52730),d=a(44443),u=a(67885),f=a(6230),m=a(2256),h=a(88234),g=a(10237),y=a(92778),v=a(4094),E=a(34359),b=a(59431),x=a(81667),w=a(87918),O=a.n(w),R=a(17440),M=a(67218),z=a(63072),P=a(94079),C=a(43266);function S(){return S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},S.apply(this,arguments)}const B=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return s().createElement("svg",S({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),s().createElement("mask",{id:"svg2440373321a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},s().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),s().createElement("g",{mask:"url(#svg2440373321a)"},s().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:".3"}),s().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),s().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),s().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),s().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),s().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),s().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),s().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),s().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),s().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),s().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),s().createElement("path",{opacity:".5",d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".3",d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".8",d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),s().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".2",d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),s().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),s().createElement("g",{filter:"url(#filter0_d)"},s().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),s().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),s().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),s().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),s().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),s().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),s().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#paint0_linear)"}),s().createElement("g",{filter:"url(#filter1_d)"},s().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),s().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),s().createElement("g",{filter:"url(#filter2_d)"},s().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),s().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),s().createElement("defs",null,s().createElement("filter",{id:"filter0_d",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},s().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s().createElement("feOffset",{dy:"2"}),s().createElement("feGaussianBlur",{stdDeviation:"2"}),s().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),s().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),s().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),s().createElement("filter",{id:"filter1_d",x:"51.688",y:"62.625",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},s().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s().createElement("feOffset",{dy:"2"}),s().createElement("feGaussianBlur",{stdDeviation:"2"}),s().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),s().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),s().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),s().createElement("filter",{id:"filter2_d",x:"51.688",y:"44.063",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},s().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s().createElement("feOffset",{dy:"2"}),s().createElement("feGaussianBlur",{stdDeviation:"2"}),s().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),s().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),s().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),s().createElement("linearGradient",{id:"paint0_linear",x1:"68.438",y1:"71.571",x2:"60.119",y2:"58.801",gradientUnits:"userSpaceOnUse"},s().createElement("stop",{stopOpacity:"0"}),s().createElement("stop",{offset:"1"}))))};var I=a(79692);const j=(0,I.Z)((e=>({errorContainer:e=>{let{height:t}=e;return{height:t?`${t}px`:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)"}},errorIcon:{height:"88px",width:"88px",marginBottom:"20px",paddingTop:"36px"},refreshButton:{color:e.palette.primary.main,marginTop:"10px"},refreshIcon:{width:"24px",height:"24px"}}))),k=e=>{let{height:t,onRefresh:a,message:n}=e;const r=j({height:t});return s().createElement("div",{className:r.errorContainer},s().createElement(B,{className:r.errorIcon}),s().createElement(P.Typography,null,n),a&&s().createElement(P.Button,{className:r.refreshButton,startIcon:s().createElement(C.Z,{color:"primary",className:r.refreshIcon}),onClick:a},s().createElement(P.Typography,{variant:"button"},O().text("Refresh"))))},Z=(0,I.Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),F=()=>{const e=Z();return s().createElement(P.LinearProgress,{color:"secondary",className:e.loader})},D=[10,25,50,100],[N]=D,T=(0,I.Z)((()=>({viewContent:{overflow:"hidden",position:"relative",fontFamily:"Roboto, Helvetica, Arial, sans-serif",padding:"4px 17px 24px",display:"flex",flexDirection:"column"},activityLog:{flex:1,overflowY:"auto"},headerRoot:{lineHeight:"23px",minHeight:38,borderBottom:"1px solid rgba(0,0,0,0.12)"},headerTitle:{fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px"},basicView:{top:0,bottom:0,left:0,right:0,display:"flex",alignItems:"stretch",height:"100%"}}))),A=(0,c.memo)((e=>{let{config:t}=e;const[a,n]=(0,c.useState)(0),{exportTypes:r,caption:l}=t,o=T(),i=(0,p.useSelector)(b.ZP.selectors.getMetadata),w=(0,p.useSelector)(b.ZP.selectors.getEntity),P=(0,x.nt9)(i,null==w?void 0:w.type),C=null==w?void 0:w.uri,[S,B]=(0,c.useState)(N),I=(0,c.useMemo)((()=>{return e=N,D.filter((t=>t!==e)).concat(e).sort(R.subtract);var e}),[]),[j,Z]=(0,c.useState)({users:[],activities:[],attributes:[],sources:[],dateRange:{type:u.K.WITHIN,period:[4,"months"]}}),{state:A,data:H,total:_,reload:L}=(e=>{let{filter:t,max:a,offset:n,entityUri:r}=e;const[l,o]=(0,c.useState)([]),[i,s]=(0,c.useState)(0),[p,d]=(0,c.useState)(u.o.INIT),f=(0,M._)(),m=e=>{console.error(e),d(u.o.ERROR),o([]),s(0)},h=(0,z.b)({filter:t,max:a,offset:n,entityUri:r}),g=(0,c.useCallback)((()=>{if(!r)return;d(u.o.LOADING);const e=(0,R.pipe)(h,f,(0,R.andThen)((e=>{let{data:t,total:a}=e;d(u.o.LOADED),o(t),s(a)})),(0,R.otherwise)(m));e()}),[h]),y=()=>{try{g()}catch(e){m(e)}};return(0,c.useEffect)((()=>{y()}),[g]),{state:p,data:l,total:i,reload:y}})({filter:j,max:S,offset:a*S,entityUri:C}),U=(0,c.useCallback)((e=>{Z(e),n(0)}),[]);return s().createElement(g.Z,{className:o.basicView},s().createElement(y.Z,{title:l||O().text("Activity Log"),classes:{root:o.headerRoot,title:o.headerTitle}}),s().createElement(v.Z,{className:o.viewContent},s().createElement(E.Z,{value:j,onChange:U,entityType:P,entityUri:C,exportTypes:r}),(()=>{switch(A){case u.o.LOADED:return H&&0!==H.length?s().createElement(m.Z,{error:s().createElement(k,{message:O().text("Something went wrong")})},s().createElement("div",{className:o.activityLog},s().createElement(d.Z,{handleHeight:!0},(e=>{let{width:t=0,height:r=0}=e;return s().createElement(h.Z,{width:t,height:r+3,activities:H,count:_,page:a,onChangePage:n,rowsPerPage:S,onChangeRowsPerPage:B,rowsPerPageOptions:I})})))):s().createElement(f.J,null);case u.o.LOADING:return s().createElement(F,null);case u.o.ERROR:return s().createElement(k,{message:O().text("Error Loading Data"),onRefresh:L});default:return s().createElement("div",null,"Loading...")}})()))})),H=(0,r.createGenerateClassName)({productionPrefix:"profileActivityLog",disableGlobal:!0}),_=e=>{let{config:t,store:a,onResize:c}=e;return s().createElement(p.Provider,{store:a},s().createElement(o.m.Provider,{value:t.id},s().createElement(r.StylesProvider,{generateClassName:H},s().createElement(l.MuiPickersUtilsProvider,{utils:n.Z},s().createElement(d.Z,{handleHeight:!0,onResize:(e,t)=>null==c?void 0:c(Math.floor(e),Math.floor(t))}),s().createElement(A,{config:t}),s().createElement(i.Z,null)))))}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5276],{58662:(e,t,a)=>{a.d(t,{Z:()=>v});var n=a(13980),r=a.n(n),l=a(24328),o=a.n(l),i=a(71153),c=a.n(i),s=a(94079),p=a(87918),d=a.n(p),u=a(31276),f=a(17440);const m=(0,a(79692).Z)({pagination:{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"56px",borderTop:"1px solid rgba(0,0,0,0.12)",boxShadow:"none"},caption:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px"},selectRoot:{marginLeft:"5px",marginRight:"36px"},select:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px",textAlign:"right"},actions:{marginLeft:"32px"}});function h(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),n.forEach((function(t){g(e,t,a[t])}))}return e}function g(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const y=e=>{let{classes:t={},count:a,rowsPerPageOptions:n,page:r,onChangePage:i,rowsPerPage:p,onChangeRowsPerPage:g,basicTableRef:y,labelRowsPerPage:v}=e;const E=m(),b=(0,l.useCallback)((()=>{(0,f.pathOr)(f.identity,["current","resetScrollbarPosition"],y)()}),[y]),x=(0,l.useCallback)((e=>{i(e),b()}),[i,b]),w=(0,l.useCallback)((e=>{i(0),g(e),b()}),[i,g,b]);return o().createElement(s.TablePagination,{classes:h({},t,{root:c()(E.pagination,t.root),select:c()(E.select,t.select),caption:E.caption,selectRoot:E.selectRoot,actions:E.actions}),component:"div",labelRowsPerPage:v||d().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:a,count:n}=e;return d().text("${fromRow}-${toRow} of ${countRows}",{fromRow:d().number(t,"0,0"),toRow:d().number(a,"0,0"),countRows:d().number(n,"0,0")})},count:a,rowsPerPageOptions:n,page:r,onChangePage:(0,f.pipe)((0,f.nthArg)(1),x),rowsPerPage:p,onChangeRowsPerPage:(0,f.pipe)(u.NA,w)})};y.propTypes={classes:r().object,rowsPerPageOptions:r().arrayOf(r().number),count:r().number,page:r().number,onChangePage:r().func,rowsPerPage:r().number,onChangeRowsPerPage:r().func,basicTableRef:r().shape({current:r().object}),labelRowsPerPage:r().string};const v=o().memo(y)},10237:(e,t,a)=>{a.d(t,{Z:()=>f});var n=a(27556),r=a(13980),l=a.n(r),o=a(24328),i=a.n(o);function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),n.forEach((function(t){s(e,t,a[t])}))}return e}function s(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const p=(0,a(79692).Z)((e=>({"basic-view__paper":c({display:"flex",flexDirection:"column"},e.basicView)})));function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},d.apply(this,arguments)}const u=(0,o.forwardRef)(((e,t)=>{let{children:a,className:r}=e,l=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["children","className"]);const o=p();return i().createElement(n.Z,d({ref:t,className:r,classes:{root:o["basic-view__paper"]}},l),a)}));u.displayName="BasicView",u.propTypes={children:l().node,className:l().string};const f=u},92778:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(24328),r=a.n(n),l=a(15223),o=a(94079);const i=(0,a(79692).Z)({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(this,arguments)}const s=e=>{let{title:t,children:a=null,classes:n={}}=e,s=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["title","children","classes"]);const p=i();return r().createElement(l.Z,c({className:n.root,classes:{root:p.toolbar}},s),r().createElement(o.Typography,{className:n.title,classes:{root:p.title},variant:"h6"},t),a)}},37699:(e,t,a)=>{a.d(t,{Z:()=>x});var n=a(24328),r=a.n(n),l=a(13980),o=a.n(l),i=a(87918),c=a.n(i),s=a(58697),p=a.n(s),d=a(17440),u=a(23147),f=a(94079),m=a(22385),h=a(66269),g=a(43305),y=a(8459);const v=(0,a(79692).Z)((e=>({container:{display:"flex",flexDirection:"column",minHeight:"182px"},header:{display:"flex",paddingLeft:"10px",backgroundColor:"#FFFFFF"},title:{marginLeft:"10px",color:e.palette.text.primary,fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px"},dateRangeContainer:{display:"flex",flexGrow:1,whiteSpace:"nowrap",cursor:"default",paddingTop:"8px"},dateInput:{margin:"0 7px"},actionButtons:{display:"flex",justifyContent:"flex-end",height:"48px",margin:"0px 8px"},button:{width:"96px"}}))),E=(e,t)=>(0,d.pathOr)(null,[t],e),b=(0,n.forwardRef)(((e,t)=>{let{onCancel:a,onApply:l,values:o,type:i}=e;const s=v(),d=(0,n.useRef)(p()()),b=(0,n.useRef)(p()()),[x,w]=(0,n.useState)(null),[O,R]=(0,n.useState)(null);r().useEffect((()=>{w(E(o,0)),R(E(o,1))}),[o]);const M=i===h.oS0.TYPE_TIMESTAMP?g.Z:y.Z,z=i===h.oS0.TYPE_TIMESTAMP?c().text("Pick date and time"):c().text("Pick date");return r().createElement("div",{className:s.container,ref:t,onKeyDown:e=>"Tab"===e.key&&e.stopPropagation()},r().createElement(f.Toolbar,{disableGutters:!0,classes:{root:s.header}},r().createElement(m.Z,{size:"L",icon:u.Z,onClick:a}),r().createElement(f.Typography,{className:s.title},z)),r().createElement("div",{className:s.dateRangeContainer},r().createElement(M,{id:d.current,label:"From",variant:"filled",value:x,onChange:e=>{w(e)},className:s.dateInput,margin:"dense"}),r().createElement(M,{id:b.current,label:"To",variant:"filled",value:O,onChange:e=>{R(e)},className:s.dateInput,margin:"dense"})),r().createElement("div",{className:s.actionButtons},r().createElement(f.Button,{color:"primary",onClick:()=>{l(x&&O&&x>O?[O,x]:[x,O])},className:s.button},c().text("Update"))))}));b.propTypes={onCancel:o().func.isRequired,onApply:o().func.isRequired,values:o().arrayOf(o().instanceOf(Date)),type:o().string},b.displayName="DateRangePicker";const x=b},55847:(e,t,a)=>{a.d(t,{Z:()=>b});var n=a(24328),r=a.n(n),l=a(71153),o=a.n(l),i=a(17440),c=a(94079),s=a(48348),p=a(20562),d=a(83348),u=a(79692),f=a(41128);const m=(0,u.Z)((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,f.U1)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,f.U1)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),h=(0,d.Z)(c.MenuItem),g=(0,n.forwardRef)(((e,t)=>{let{item:a,onMenuClose:n=i.identity}=e;const l=m(),{disabled:o,text:s,tooltip:p,onClick:d,id:u=""}=a;return r().createElement(h,{tooltipTitle:p,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{n(e),d(e)},disabled:o,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${u}`},r().createElement(c.Typography,{classes:{root:l.menuText}},s))}));g.displayName="MenuItemRenderer";const y=g;function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},v.apply(this,arguments)}function E(e){let{className:t,menuId:a,buttonComponent:l=c.Button,buttonContent:d,menuItems:u=[],buttonProps:f={},popoverProps:h={},onMenuOpen:g=i.identity,onMenuClose:E=i.identity,MenuItemRenderer:b=y}=e;const x=l,w=m(),O=(0,n.useRef)(),[R,M]=(0,n.useState)(!1);(0,p.D)((()=>{R?g():E()}),[R]);const z=(0,n.useCallback)((e=>{null==e||e.stopPropagation(),M((e=>!e))}),[]);return r().createElement(r().Fragment,null,r().createElement(x,v({ref:O,className:o()(w.buttonRoot,{[w.selected]:R},t),onClick:z,"aria-pressed":R,"aria-controls":R?a:void 0,"aria-haspopup":"true"},f),d),r().createElement(s.Z,v({id:a,variant:"menu",open:R,autoFocus:!1,classes:{paper:w.paper},anchorEl:O.current,onClose:z,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:R}},h),u.map(((e,t)=>r().createElement(b,{item:e,key:t,onMenuClose:z})))))}E.displayName="DropDownMenuButton";const b=E},6230:(e,t,a)=>{a.d(t,{J:()=>s});var n=a(24328),r=a.n(n),l=a(87918),o=a.n(l),i=a(15689);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(this,arguments)}const s=e=>r().createElement(i.Z,c({message:o().text("No data available")},e))},51229:(e,t,a)=>{a.d(t,{Z:()=>l});var n=a(24328),r=a.n(n);const l=()=>r().createElement("div",{style:{flex:1}})},63072:(e,t,a)=>{a.d(t,{b:()=>o});var n=a(24328),r=a(66269),l=a(56764);const o=e=>{let{filter:t,max:a,offset:o,entityUri:i}=e;return(0,n.useCallback)((async()=>{const e=(0,l.U)(t),n=await(0,r.k6v)({filter:e,max:a,offset:o,entityUri:i}),{total:c}=await(0,r.FEC)({filter:e,entityUri:i});return{data:n,total:c}}),[t,a,o,i])}},96808:(e,t,a)=>{a.d(t,{Z:()=>m});var n=a(13980),r=a.n(n),l=a(24328),o=a.n(l),i=a(71153),c=a.n(i),s=a(10161),p=a(83543),d=a(22385);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},u.apply(this,arguments)}const f=e=>{const{selectProps:{classes:t,menuIsOpen:a},innerProps:n}=e,r=(0,s.m)();return o().createElement(d.Z,u({},n,{icon:p.Z,className:t.dropdownIndicator,size:"L",iconClassName:c()({[r.expanded]:a})}))};f.propTypes={innerProps:r().object.isRequired,selectProps:r().shape({classes:r().shape({dropdownIndicator:r().string}).isRequired,menuIsOpen:r().bool.isRequired}).isRequired};const m=f},24489:(e,t,a)=>{a.r(t),a.d(t,{default:()=>_});var n=a(8598),r=a(36138),l=a(22664),o=a(39450),i=a(585),c=a(24328),s=a.n(c),p=a(52730),d=a(44443),u=a(67885),f=a(6230),m=a(2256),h=a(88234),g=a(10237),y=a(92778),v=a(4094),E=a(34359),b=a(59431),x=a(66269),w=a(87918),O=a.n(w),R=a(17440),M=a(67218),z=a(63072),P=a(94079),C=a(43266);function S(){return S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},S.apply(this,arguments)}const B=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return s().createElement("svg",S({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),s().createElement("mask",{id:"svg2440373321a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},s().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),s().createElement("g",{mask:"url(#svg2440373321a)"},s().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:".3"}),s().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),s().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),s().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),s().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),s().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),s().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),s().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),s().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),s().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),s().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),s().createElement("path",{opacity:".5",d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".3",d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".8",d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),s().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".2",d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),s().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),s().createElement("g",{filter:"url(#filter0_d)"},s().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),s().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),s().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),s().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),s().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),s().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),s().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#paint0_linear)"}),s().createElement("g",{filter:"url(#filter1_d)"},s().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),s().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),s().createElement("g",{filter:"url(#filter2_d)"},s().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),s().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),s().createElement("defs",null,s().createElement("filter",{id:"filter0_d",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},s().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s().createElement("feOffset",{dy:"2"}),s().createElement("feGaussianBlur",{stdDeviation:"2"}),s().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),s().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),s().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),s().createElement("filter",{id:"filter1_d",x:"51.688",y:"62.625",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},s().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s().createElement("feOffset",{dy:"2"}),s().createElement("feGaussianBlur",{stdDeviation:"2"}),s().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),s().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),s().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),s().createElement("filter",{id:"filter2_d",x:"51.688",y:"44.063",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},s().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s().createElement("feOffset",{dy:"2"}),s().createElement("feGaussianBlur",{stdDeviation:"2"}),s().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),s().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),s().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),s().createElement("linearGradient",{id:"paint0_linear",x1:"68.438",y1:"71.571",x2:"60.119",y2:"58.801",gradientUnits:"userSpaceOnUse"},s().createElement("stop",{stopOpacity:"0"}),s().createElement("stop",{offset:"1"}))))};var I=a(79692);const j=(0,I.Z)((e=>({errorContainer:e=>{let{height:t}=e;return{height:t?`${t}px`:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)"}},errorIcon:{height:"88px",width:"88px",marginBottom:"20px",paddingTop:"36px"},refreshButton:{color:e.palette.primary.main,marginTop:"10px"},refreshIcon:{width:"24px",height:"24px"}}))),k=e=>{let{height:t,onRefresh:a,message:n}=e;const r=j({height:t});return s().createElement("div",{className:r.errorContainer},s().createElement(B,{className:r.errorIcon}),s().createElement(P.Typography,null,n),a&&s().createElement(P.Button,{className:r.refreshButton,startIcon:s().createElement(C.Z,{color:"primary",className:r.refreshIcon}),onClick:a},s().createElement(P.Typography,{variant:"button"},O().text("Refresh"))))},Z=(0,I.Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),F=()=>{const e=Z();return s().createElement(P.LinearProgress,{color:"secondary",className:e.loader})},D=[10,25,50,100],[N]=D,T=(0,I.Z)((()=>({viewContent:{overflow:"hidden",position:"relative",fontFamily:"Roboto, Helvetica, Arial, sans-serif",padding:"4px 17px 24px",display:"flex",flexDirection:"column"},activityLog:{flex:1,overflowY:"auto"},headerRoot:{lineHeight:"23px",minHeight:38,borderBottom:"1px solid rgba(0,0,0,0.12)"},headerTitle:{fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px"},basicView:{top:0,bottom:0,left:0,right:0,display:"flex",alignItems:"stretch",height:"100%"}}))),A=(0,c.memo)((e=>{let{config:t}=e;const[a,n]=(0,c.useState)(0),{exportTypes:r,caption:l}=t,o=T(),i=(0,p.useSelector)(b.ZP.selectors.getMetadata),w=(0,p.useSelector)(b.ZP.selectors.getEntity),P=(0,x.nt9)(i,null==w?void 0:w.type),C=null==w?void 0:w.uri,[S,B]=(0,c.useState)(N),I=(0,c.useMemo)((()=>{return e=N,D.filter((t=>t!==e)).concat(e).sort(R.subtract);var e}),[]),[j,Z]=(0,c.useState)({users:[],activities:[],attributes:[],sources:[],dateRange:{type:u.K.WITHIN,period:[4,"months"]}}),{state:A,data:H,total:_,reload:L}=(e=>{let{filter:t,max:a,offset:n,entityUri:r}=e;const[l,o]=(0,c.useState)([]),[i,s]=(0,c.useState)(0),[p,d]=(0,c.useState)(u.o.INIT),f=(0,M._)(),m=e=>{console.error(e),d(u.o.ERROR),o([]),s(0)},h=(0,z.b)({filter:t,max:a,offset:n,entityUri:r}),g=(0,c.useCallback)((()=>{if(!r)return;d(u.o.LOADING);const e=(0,R.pipe)(h,f,(0,R.andThen)((e=>{let{data:t,total:a}=e;d(u.o.LOADED),o(t),s(a)})),(0,R.otherwise)(m));e()}),[h]),y=()=>{try{g()}catch(e){m(e)}};return(0,c.useEffect)((()=>{y()}),[g]),{state:p,data:l,total:i,reload:y}})({filter:j,max:S,offset:a*S,entityUri:C}),U=(0,c.useCallback)((e=>{Z(e),n(0)}),[]);return s().createElement(g.Z,{className:o.basicView},s().createElement(y.Z,{title:l||O().text("Activity Log"),classes:{root:o.headerRoot,title:o.headerTitle}}),s().createElement(v.Z,{className:o.viewContent},s().createElement(E.Z,{value:j,onChange:U,entityType:P,entityUri:C,exportTypes:r}),(()=>{switch(A){case u.o.LOADED:return H&&0!==H.length?s().createElement(m.Z,{error:s().createElement(k,{message:O().text("Something went wrong")})},s().createElement("div",{className:o.activityLog},s().createElement(d.Z,{handleHeight:!0},(e=>{let{width:t=0,height:r=0}=e;return s().createElement(h.Z,{width:t,height:r+3,activities:H,count:_,page:a,onChangePage:n,rowsPerPage:S,onChangeRowsPerPage:B,rowsPerPageOptions:I})})))):s().createElement(f.J,null);case u.o.LOADING:return s().createElement(F,null);case u.o.ERROR:return s().createElement(k,{message:O().text("Error Loading Data"),onRefresh:L});default:return s().createElement("div",null,"Loading...")}})()))})),H=(0,r.createGenerateClassName)({productionPrefix:"profileActivityLog",disableGlobal:!0}),_=e=>{let{config:t,store:a,onResize:c}=e;return s().createElement(p.Provider,{store:a},s().createElement(o.m.Provider,{value:t.id},s().createElement(r.StylesProvider,{generateClassName:H},s().createElement(l.MuiPickersUtilsProvider,{utils:n.Z},s().createElement(d.Z,{handleHeight:!0,onResize:(e,t)=>null==c?void 0:c(Math.floor(e),Math.floor(t))}),s().createElement(A,{config:t}),s().createElement(i.Z,null)))))}}}]);
|
|
2
2
|
//# sourceMappingURL=5276.js.map
|
package/5400.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5400],{79821:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(24328),o=r.n(n),l=r(52730),i=r(59431),a=r(81667),s=r(97991);const c=(0,r(79692).Z)({icon:{maxHeight:"25px",maxWidth:"25px",marginRight:"16px"}}),u=e=>{let{group:t,metadata:r}=e;const n=c(),u=(0,l.useSelector)(i.ZP.selectors.getAbsoluteImagePath),p=(0,a.XH8)(r,{type:t.id}),d=(0,a.vPL)(u,p);return o().createElement(s.Z,{className:n.icon,icon:d,avatarText:t.title[0]})}},99757:(e,t,r)=>{r.d(t,{Z:()=>V});var n=r(24328),o=r.n(n),l=r(87918),i=r.n(l),a=r(71153),s=r.n(a),c=r(17440),u=r(97820),p=r(54763),d=r(45767),m=r(88611),b=r(22385),f=r(79692);const h=(0,f.Z)({attribute:{cursor:"pointer",lineHeight:"16px",flexBasis:"100%",display:"flex",alignItems:"center",padding:"0 10px 0 16px",width:"calc(100% - 32px)","&$attributeWithValue":{borderBottom:"1px solid rgba(0,0,0,0.38)"},"&$disabled":{cursor:"default"}},disabled:{},attributeWithValue:{},noSelect:{},name:{fontSize:"14px",color:"rgba(0,0,0,0.87)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",direction:"rtl",textAlign:"left",flex:"1 0",width:"0","& $noSelect":{color:"rgba(0,0,0,0.38)"},"&$disabled":{color:"rgba(0,0,0,0.26)","& $noSelect":{color:"rgba(0,0,0,0.26)"}}}}),g=(0,c.either)((0,c.prop)("title"),(0,c.prop)("fieldName")),y=e=>{let{value:t,getLabel:r=g,onSelectAttributeClick:n,disabled:l=!1}=e;const a=h(),c=t&&r(t);return o().createElement("div",{onClick:l?void 0:n,className:s()(a.attribute,{[a.attributeWithValue]:!!c},{[a.disabled]:l})},o().createElement(m.C,{value:c},o().createElement("div",{className:s()(a.name,{[a.disabled]:l})},c||o().createElement("span",{className:a.noSelect},i().text("Select attribute")))),o().createElement(b.Z,{size:"M",icon:d.Z,disabled:l}))};var x=r(81667);function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){v(e,t,r[t])}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const O=(0,c.eqBy)((0,c.pick)(["fieldName","uri","entityTypeUri"])),C=(e,t)=>t&&!!t.find(O(e)),S=(e,t)=>e.title.toLowerCase().includes(t.toLowerCase()),I=(e,t)=>S(e,t)||(e.children||[]).some((e=>I(e,t))),E=(e,t)=>e.findIndex(O(t)),k=(0,x.fW1)("title"),j=function(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const i=S(e,n);return[{item:n?w({},e,{filterText:n}):e,level:o,groupId:t,groupName:r}].concat(e.children?e.children.filter((e=>l||i||I(e,n))).flatMap((e=>j(e,t,r,n,o+1,l||i))):[]).flat()},P=(0,c.curry)(((e,t)=>t.map((t=>({item:t,items:t.attributes.filter((t=>I(t,e))).map((r=>j(r,t.id,t.title,e)))}))).filter((e=>e.items.length))));var T=r(52730),N=r(94079),L=r(59431),R=r(7785),Z=r(44890),D=r(27239),A=r(79821);const F=(0,f.Z)({subHeader:{backgroundColor:"#f5f5f5",padding:"0 16px",margin:0,display:"flex",alignItems:"center",color:"rgba(0,0,0,0.84)",fontSize:"14px",fontWeight:500}});function B(){return B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B.apply(this,arguments)}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$(e,t,r[t])}))}return e}function $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const z=(0,n.memo)((e=>{let{selectedAttributes:t,onItemClick:r,focusIndex:n,hideCheckBox:l}=e,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["selectedAttributes","onItemClick","focusIndex","hideCheckBox"]);const a=F(),s=(0,T.useSelector)(L.ZP.selectors.getMetadata);return o().createElement(Z.Z,B({getItemSize:(e,t)=>t.items?40:28,renderItem:(e,i,a)=>{let{item:s,level:c,groupId:u,groupName:p}=i;const d=C(s,t),m=a===n;return o().createElement(R.Z,{key:`item-${u}-${s.fieldName}`,onClick:r,checked:d,data:W({},s,{groupName:p}),notSelectable:s.notSelectable,hideCheckBox:l,label:o().createElement(D.Z,{text:s.title,highlight:s.filterText}),labelInText:s.title,level:c,style:e,isFocused:m,groupId:u,LogoIcon:s.LogoIcon})},renderGroupTitle:(e,t)=>o().createElement(N.ListItem,{component:"div",className:a.subHeader,style:e,key:`group-${t.item.id}`},t.item.needGroupIcon&&o().createElement(A.Z,{group:t.item,metadata:s}),t.item.title),focusIndex:n},i))}));var M=r(56656);const H=(0,f.Z)({selector:{minWidth:"200px",alignItems:"stretch",background:"rgba(0,0,0, 0.0267)",boxSizing:"border-box",borderRadius:"4px",display:"flex"}}),V=(0,n.memo)((e=>{let{className:t,itemsGroups:r,value:l,getLabel:a,onSelect:d,onRestoreFocus:m=c.identity,onOpenPopup:b=c.identity,disableRestoreFocus:f=!1,disableEnforceFocus:h=!1,single:g=!1,ungroup:x=!1,disabled:v=!1,hideCheckBox:S=!1}=e;const I=H(),[j,T]=(0,n.useState)(null),N=(0,n.useCallback)((()=>T(null)),[]),L=!!j,[R,Z]=(0,n.useState)(""),D=(0,n.useCallback)((()=>Z("")),[]),[A,F]=(0,n.useState)([]),B=(0,n.useCallback)((()=>F([])),[]),W=(0,n.useMemo)((()=>P(R,r)),[r,R]),$=(0,n.useMemo)((()=>(0,c.pipe)((0,c.when)((0,c.always)(x),(0,c.chain)((0,c.pipe)((0,c.prop)("items"),c.flatten,(0,c.map)((0,c.pick)(["item","level"]))))),M.LG)(W)),[x,W]),V=(0,n.useMemo)((()=>Math.max(k(W),308)),[W]),G=(0,c.pipe)((0,c.tap)((0,c.pipe)(B,D,N)),m),U=(0,n.useRef)(),K=(0,n.useCallback)(((e,t)=>{d({checked:t,attribute:e,index:t?A.length:E(A,e),selectedAttributes:A}),g?(F(t?[e]:[]),G({})):(F((e=>{let{attribute:t,selectedAttributes:r,checked:n}=e;return n?r.concat(t):r.filter((e=>!O(t,e)))})({selectedAttributes:A,attribute:e,checked:t})),U.current&&U.current.focus())}),[A,d,g,G,U]),X=(0,n.useCallback)((e=>{let{onListItemClick:t,selectedAttributes:r}=e;return e=>{let{item:n,groupData:o}=e;const l=C(n,r);t(w({},n,{groupName:o.groupName}),!l)}})({onListItemClick:K,selectedAttributes:A}),[K,A]),{focusIndex:_,handleKeyDown:q}=(0,p.t)({items:$,open:L,onSelectFocusedItem:X,selectedItems:A,onClose:G});return o().createElement("div",{className:s()(I.selector,t),"data-reltio-id":"attribute-selector"},o().createElement(y,{value:l,getLabel:a,onSelectAttributeClick:e=>{b(),T(e.currentTarget)},disabled:v}),o().createElement(u.Z,{open:L,anchorEl:j,onClose:G,onSearch:Z,title:i().text("Select attribute"),containerWidth:V,containerHeight:507,searchInputOnKeyDown:q,anchorOrigin:{horizontal:"right",vertical:"bottom"},searchInputRef:U,disableRestoreFocus:f,disableEnforceFocus:h},o().createElement(z,{items:$,onItemClick:K,selectedAttributes:A,width:V,height:400,focusIndex:_,hideCheckBox:S})))}))},74566:(e,t,r)=>{r.d(t,{Z:()=>m});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(73038),s=r(58241),c=r(71153),u=r.n(c);const p=(0,r(79692).Z)((()=>({hidden:{visibility:"hidden"}}))),d=e=>{let{rowIndex:t,rowValue:r,className:l}=e;const i=p(),{toggleRowCollapse:c,getIsRowCollapsible:d,getIsRowCollapsed:m}=(0,n.useContext)(a.x),b=d(r),f=m(t);return o().createElement(s.Z,{className:u()(l,{[i.hidden]:!b}),isOpen:!f,onClick:e=>{c(t),e.stopPropagation()}})};d.propTypes={rowIndex:i().number,rowValue:i().object,className:i().string};const m=d},43290:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(24328),o=r.n(n),l=r(71153),i=r.n(l),a=r(17440);const s=(0,r(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%"}}))),c=e=>(0,a.is)(Number,e),u=e=>{let{className:t,width:r=0,maxWidth:l}=e;const a=s(),u=(0,n.useCallback)((e=>(l?100*e/l:0)+"%"),[l]);return r?o().createElement("div",{className:i()(a.bar,t),style:{width:c(r)?u(r):r}}):null}},89119:(e,t,r)=>{r.d(t,{Z:()=>S});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(87918),s=r.n(a),c=r(71153),u=r.n(c),p=r(17440),d=r(81667),m=r(97820),b=r(7785),f=r(56656),h=r(44890),g=r(54763),y=r(27239);const x=(0,r(79692).Z)((()=>({popupContainer:{},container:{"&$popupContainer":{height:"408px",minWidth:"200px"}}})));function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){O(e,t,r[t])}))}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const C=e=>{let{open:t,anchorEl:r,data:l,onSearch:i,onClose:a,titleText:s,filterText:c,onListItemClick:O,selected:C,hideCheckBox:S,renderGroupTitle:I}=e,E=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["open","anchorEl","data","onSearch","onClose","titleText","filterText","onListItemClick","selected","hideCheckBox","renderGroupTitle"]);const k=(0,n.useCallback)((e=>e.label.toLowerCase().includes(c.toLowerCase())),[c]),j=(0,n.useCallback)((e=>k(e)||(e.children||[]).some(j)),[k]),P=(0,n.useMemo)((()=>{const e=(0,p.curry)(((e,r,n,o)=>[{item:v({},r,{filterText:c}),level:e,groupId:n,groupName:o},...t(r.children||[],n,o,e+1)])),t=function(t,r,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const l=t=>e(o,t,r,n),i=t.filter(j);return(I?p.map:p.chain)(l,i)};return t}),[c,I,j]),T=(0,n.useCallback)((e=>e.map((e=>({item:e,items:P(e.attributes,e.id,e.label)}))).filter((e=>e.items.length))),[P]),N=(0,n.useCallback)((e=>{let{item:t}=e;O(t,!C.find((e=>e.id===t.id||e.id.includes(`${t.id}.`))))}),[O,C]),L=(0,n.useMemo)((()=>(I?T:P)(l)),[l,I,T,P]),R=(0,n.useMemo)((()=>(0,f.LG)(L)),[L]),{focusIndex:Z,handleKeyDown:D}=(0,g.t)({items:R,open:t,onSelectFocusedItem:N,selectedItems:C}),A=(0,n.useRef)(null);A.current=Z;const F=(0,n.useCallback)(((e,t,r)=>{let{item:n,level:l=0}=t;const i=!!C.find((e=>e.id===n.id||e.id.includes(`${n.id}.`))),a=A.current===r;return o().createElement(b.Z,{key:n.id,onClick:O,checked:i,level:l,data:n,label:o().createElement(y.Z,{text:n.label,highlight:n.filterText}),labelInText:n.label,style:e,hideCheckBox:S,isFocused:a,notSelectable:n.notSelectable,LogoIcon:n.LogoIcon})}),[S,O,C]),B=(0,d.fW1)("label")(L)||308,W=x();return o().createElement(m.Z,w({open:t,className:u()(W.container,W.popupContainer),anchorEl:r,onClose:a,onSearch:i,title:s,containerWidth:B,searchInputOnKeyDown:D},E),o().createElement(h.Z,{height:300,renderItem:F,items:R,hideSubtitles:!0,getItemSize:()=>32,containerWidth:B,focusIndex:Z,renderGroupTitle:I}))};C.propTypes={open:i().bool,hideCheckBox:i().bool,anchorEl:i().any,selected:i().array,data:i().array,filterText:i().string,titleText:i().string,onClose:i().func,onListItemClick:i().func,onSearch:i().func,renderGroupTitle:i().func},C.defaultProps={data:[],selected:[],titleText:s().text("Show/hide columns"),filterText:""};const S=C},27652:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(24328),o=r.n(n),l=r(4190),i=r(60364);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}const s=e=>{let{open:t=!0,children:r}=e,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["open","children"]);const[c,u]=(0,n.useState)(t),p=(0,i.Z)().transitions.duration.leavingScreen;return(0,n.useEffect)((()=>{if(t!==c){if(!t){const e=setTimeout((()=>{u(!1)}),p);return()=>clearTimeout(e)}u(!0)}}),[t,p,c]),o().createElement(l.ZP,a({open:t},s),c&&r)};s.displayName="Drawer";const c=s},59725:(e,t,r)=>{r.d(t,{Q:()=>c});var n=r(24328),o=r.n(n),l=r(87918),i=r.n(l),a=r(81667),s=r(42520);const c=(0,n.memo)((e=>{let{entityTypes:t,selectedEntityTypes:r,single:l,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d={},ListLabelProps:m={},disabled:b=!1}=e;const f=(0,n.useMemo)((()=>t.filter(a.oDv)),[t]);return o().createElement(s.S,{items:f,selectedItemsUris:r,single:l,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d,ListLabelProps:m,disabled:b,label:i().text("Entity type"),dataReltioId:"entity-type-selector",selectionPopupTitle:i().text("Select entity types")})}));c.displayName="EntityTypesSelector"},42520:(e,t,r)=>{r.d(t,{S:()=>T});var n=r(24328),o=r.n(n),l=r(71153),i=r.n(l),a=r(17440),s=r(81667),c=r(94079),u=r(83543),p=r(79692);const d=(0,p.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)"}}),m=(e,t)=>{const{childNodes:r,clientLeft:n,clientWidth:o}=t;if(r.length>0){const[t]=Array.from(r),l=document.createRange();l.setStart(t,0);for(let r=0;r<e.length;r++){l.setEnd(t,l.endOffset+e[r].length);const{width:i}=l.getBoundingClientRect();if(n+i>o)return r;r!==e.length-1&&l.setEnd(t,l.endOffset+", ".length)}}return-1},b=e=>e.join(", "),f=e=>`calc(${(0,a.isNil)(e)?"100%":`${e}px`} - 35px)`,h=e=>{let{list:t,maxWidth:r}=e;const l=d(),i=(0,n.useRef)(),[a,s]=(0,n.useState)(0);(0,n.useEffect)((()=>{s(((e,t)=>{const r=e.length,n=((e,t)=>{if(t){const r=m(e,t);return-1===r?0:e.length-r}return 0})(e,t);return r-Math.max(1,r-n)})(t,i.current))}),[t]);const u=b(t),p=a>0,h=p?b(t.slice(0,-a)):u;return o().createElement(c.Tooltip,{title:p?u:""},o().createElement("div",{className:l.listLabelContainer},o().createElement("div",{style:{width:f(r)},className:l.listLabel,ref:i},u),o().createElement("div",{className:l.visibleItemsLabel},h),p&&o().createElement("div",{className:l.hiddenCount},`+${a}`)))};var g=r(22385),y=r(97820),x=r(54763),w=r(7785),v=r(27239),O=r(44890);function C(){return C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(this,arguments)}const S=(0,a.always)(32),I=(0,n.memo)((e=>{let{selectedItems:t,onItemClick:r,focusIndex:n,width:l,height:i}=e,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["selectedItems","onItemClick","focusIndex","width","height"]);return o().createElement(O.Z,C({getItemSize:S,renderItem:(e,l,i)=>{let{item:a}=l;const s=!!t.find((e=>a.uri===e)),c=i===n;return o().createElement(w.Z,{key:a.uri,onClick:r,checked:s,data:a,label:o().createElement(v.Z,{text:a.label,highlight:a.filterText}),labelInText:a.label,style:e,isFocused:c,hideIcon:!0,LogoIcon:a.LogoIcon})},focusIndex:n,fixedTitle:!1,disableHorizontalScrollbar:!0,width:l,height:i},a))}));I.displayName="SelectMetadataTypesList";const E=(0,p.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 k(){return k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},k.apply(this,arguments)}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){P(e,t,r[t])}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const T=(0,n.memo)((e=>{let{placeholder:t,classes:r={},items:l,selectedItemsUris:p,onChange:d,ListLabelProps:m={},disabled:b,enableEmptyValueUnderline:f,single:w,label:v,dataReltioId:O,selectionPopupTitle:C}=e;const S=E(),[P,T]=(0,n.useState)(!1),N=(0,n.useCallback)((()=>T(!0)),[]),L=(0,n.useCallback)((()=>T(!1)),[]),[R,Z]=(0,n.useState)(""),D=(0,n.useCallback)((()=>Z("")),[]),A=(0,n.useCallback)((0,a.pipe)(D,L),[L,D]),F=l.filter((e=>{let{label:t}=e;return s.P6Y.strings.search(t,R)})).map(((e,t)=>({item:{item:j({},e,{filterText:R})},index:t}))),B=(0,n.useMemo)((()=>p.map((e=>l.find((0,a.propEq)("uri",e)))).map((0,a.prop)("label"))),[p,l]),W=(0,n.useCallback)(((e,t)=>{w?(d(t?[e.uri]:[]),A()):d(t?p.concat(e.uri):p.filter((t=>t!==e.uri)))}),[p,d,w,A]),$=(0,n.useCallback)((e=>{let{item:t}=e;const r=!p.includes(t.uri);W(t,r)}),[p,W]),{focusIndex:z,handleKeyDown:M}=(0,x.t)({items:F,open:P,onSelectFocusedItem:$,selectedItems:p,onClose:A}),H=(0,n.useRef)(),V=H.current?H.current.getBoundingClientRect().width:0,G=Math.max(V,255),U=0===p.length;return o().createElement(o().Fragment,null,o().createElement(c.TextField,{label:v,ref:H,InputProps:{startAdornment:U&&!t?null:o().createElement("div",{className:i()(S.inputText,r.inputText)},U?o().createElement("div",null,t):o().createElement(h,k({},m,{list:B}))),classes:{root:S.inputRoot,input:i()(S.input,r.input,{[S.emptyInput]:U&&!t}),disabled:i()(S.disabledInput,{[S.disabledPointer]:b}),underline:S.disabledUnderline},endAdornment:o().createElement(g.Z,{size:"L",icon:u.Z,iconClassName:i()(S.icon,{[S["popup-opened-icon"]]:P}),disabled:b}),readOnly:!0,disabled:!0,disableUnderline:U&&!f},inputProps:{tabIndex:-1},InputLabelProps:{classes:{root:i()(S.inputLabel,r.label)}},value:"",onClick:b?void 0:N,classes:{root:i()(S.root,r.root)},margin:"dense",variant:"filled",disabled:b,"data-reltio-id":O}),o().createElement(y.Z,{open:P,anchorEl:H.current,onClose:A,onSearch:Z,title:C,containerWidth:G,containerHeight:355,searchInputOnKeyDown:M,transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"left",vertical:"bottom"},PaperProps:{"data-reltio-id":`${O}-popup`}},o().createElement(I,{items:F,onItemClick:W,selectedItems:p,width:G,height:245,focusIndex:z})))}));T.displayName="MetadataTypesSelector"},23598:(e,t,r)=>{r.d(t,{Z:()=>C});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(71153),s=r.n(a),c=r(79692);const u=(0,c.Z)((()=>({row:{display:"flex",marginBottom:"12px"},rowItem:{paddingRight:"10px",display:"flex"},fullWidth:{flexGrow:"1",flexBasis:"0",overflow:"hidden"},hidden:{visibility:"hidden"}})));var p=r(87918),d=r.n(p),m=r(6782);const b="46px",f=(0,c.Z)((e=>({readOnlyLogicOperatorContainer:{display:"flex",alignItems:"center",marginRight:"40px",width:"76px",fontSize:"14px",color:e.palette.text.secondary,maxHeight:b},readOnlyFilter:{display:"flex",alignItems:"center",fontSize:"14px",color:e.palette.text.secondary,width:"50px",marginLeft:"12px",maxHeight:b}}))),h=e=>{let{className:t,rowData:r}=e;const n=f();return o().createElement("div",{className:s()(n.readOnlyLogicOperatorContainer,t)},r&&r.operator?(0,m.Z)(r.operator):d().text("Where"))};h.propTypes={className:i().string,rowData:i().object};const g=h;var y=r(81667);const x=e=>{let{className:t,rowData:r}=e;const n=f();return o().createElement("div",{className:s()(n.readOnlyFilter,t)},r&&r.filter?(0,y.XS2)(r.filter):d().text("equals"))};x.propTypes={className:i().string,rowData:i().object};const w=x;var v=r(94656);const O=e=>{let{classes:t={},rowData:r,previousRowData:n,LogicOperatorComponent:l=g,AttributeSelectorComponent:i,FilterSelectorComponent:a=w,ValuesEditorComponent:c,ActionsComponent:p,filterSelectorRef:d,attributeSelectorProps:m={}}=e,b=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["classes","rowData","previousRowData","LogicOperatorComponent","AttributeSelectorComponent","FilterSelectorComponent","ValuesEditorComponent","ActionsComponent","filterSelectorRef","attributeSelectorProps"]);const f=u();return o().createElement("div",{className:s()(f.row,t.root)},o().createElement(l,{className:t.logicOperatorContainer,rowContext:b,rowData:n}),o().createElement("div",{className:s()(f.rowItem,t.attributeSelectorContainer)},o().createElement(i,{attributeSelectorProps:m,rowContext:b,rowData:r})),o().createElement("div",{className:s()(f.rowItem,t.filterSelectorContainer)},o().createElement(a,{textFieldInputRef:d,rowContext:b,rowData:r})),o().createElement("div",{className:s()(f.rowItem,f.fullWidth,t.valuesEditorContainer)},o().createElement(c,{rowContext:b,rowData:r})),o().createElement("div",{className:s()(f.rowItem,t.actionsContainer,{[f.hidden]:!r})},o().createElement(p,{rowContext:b,rowData:r})))};O.propTypes={classes:i().shape({root:i().string,logicOperatorContainer:i().string,attributeSelectorContainer:i().string,filterSelectorContainer:i().string,valuesEditorContainer:i().string,actionsContainer:i().string}),rowData:v.Xw,previousRowData:v.Xw,LogicOperatorComponent:i().elementType,AttributeSelectorComponent:i().elementType,FilterSelectorComponent:i().elementType,ValuesEditorComponent:i().elementType,ActionsComponent:i().elementType,filterSelectorRef:i().object,attributeSelectorProps:i().shape({onRestoreFocus:i().func,onOpen:i().func,disablePopoverRestoreFocus:i().bool})};const C=(0,n.memo)(O)},41315:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(17440),s=r(23598),c=r(94656);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}const p=e=>{let{className:t,rowClasses:r,rowsData:n,lastRowAttributeSelectorProps:l,filterSelectorRef:i,filterSelectorRefIndex:c}=e,p=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["className","rowClasses","rowsData","lastRowAttributeSelectorProps","filterSelectorRef","filterSelectorRefIndex"]);const d=(e,t,n)=>{const d=t>0?(0,a.path)([t-1],n):null,m=t===n.length?{attributeSelectorProps:l}:{};return o().createElement(s.Z,u({key:e&&e.id,rowData:e,previousRowData:d,classes:r,filterSelectorRef:t===c?i:void 0},p,m))};return o().createElement("div",{className:t},n.map(d),d(null,n.length,n))};p.propTypes={className:i().string,rowClasses:i().shape({root:i().string,logicOperatorContainer:i().string,attributeSelectorContainer:i().string,filterSelectorContainer:i().string,valuesEditorContainer:i().string,actionsContainer:i().string}),rowsData:i().arrayOf(c.Xw),LogicOperatorComponent:i().elementType,AttributeSelectorComponent:i().elementType,FilterSelectorComponent:i().elementType,ValuesEditorComponent:i().elementType,ActionsComponent:i().elementType,filterSelectorRef:i().object,filterSelectorRefIndex:i().number,lastRowAttributeSelectorProps:i().shape({onRestoreFocus:i().func,onOpen:i().func,disablePopoverRestoreFocus:i().bool})};const d=(0,n.memo)(p)},50905:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(54573),o=r(17440);const l={BY_LABEL:(0,n.c)({stringify:(0,o.prop)("label")})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5400],{79821:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(24328),o=r.n(n),l=r(52730),i=r(59431),a=r(66269),s=r(97991);const c=(0,r(79692).Z)({icon:{maxHeight:"25px",maxWidth:"25px",marginRight:"16px"}}),u=e=>{let{group:t,metadata:r}=e;const n=c(),u=(0,l.useSelector)(i.ZP.selectors.getAbsoluteImagePath),p=(0,a.XH8)(r,{type:t.id}),d=(0,a.vPL)(u,p);return o().createElement(s.Z,{className:n.icon,icon:d,avatarText:t.title[0]})}},99757:(e,t,r)=>{r.d(t,{Z:()=>V});var n=r(24328),o=r.n(n),l=r(87918),i=r.n(l),a=r(71153),s=r.n(a),c=r(17440),u=r(97820),p=r(54763),d=r(45767),m=r(88611),b=r(22385),f=r(79692);const h=(0,f.Z)({attribute:{cursor:"pointer",lineHeight:"16px",flexBasis:"100%",display:"flex",alignItems:"center",padding:"0 10px 0 16px",width:"calc(100% - 32px)","&$attributeWithValue":{borderBottom:"1px solid rgba(0,0,0,0.38)"},"&$disabled":{cursor:"default"}},disabled:{},attributeWithValue:{},noSelect:{},name:{fontSize:"14px",color:"rgba(0,0,0,0.87)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",direction:"rtl",textAlign:"left",flex:"1 0",width:"0","& $noSelect":{color:"rgba(0,0,0,0.38)"},"&$disabled":{color:"rgba(0,0,0,0.26)","& $noSelect":{color:"rgba(0,0,0,0.26)"}}}}),g=(0,c.either)((0,c.prop)("title"),(0,c.prop)("fieldName")),y=e=>{let{value:t,getLabel:r=g,onSelectAttributeClick:n,disabled:l=!1}=e;const a=h(),c=t&&r(t);return o().createElement("div",{onClick:l?void 0:n,className:s()(a.attribute,{[a.attributeWithValue]:!!c},{[a.disabled]:l})},o().createElement(m.C,{value:c},o().createElement("div",{className:s()(a.name,{[a.disabled]:l})},c||o().createElement("span",{className:a.noSelect},i().text("Select attribute")))),o().createElement(b.Z,{size:"M",icon:d.Z,disabled:l}))};var x=r(66269);function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){v(e,t,r[t])}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const O=(0,c.eqBy)((0,c.pick)(["fieldName","uri","entityTypeUri"])),C=(e,t)=>t&&!!t.find(O(e)),S=(e,t)=>e.title.toLowerCase().includes(t.toLowerCase()),I=(e,t)=>S(e,t)||(e.children||[]).some((e=>I(e,t))),E=(e,t)=>e.findIndex(O(t)),k=(0,x.fW1)("title"),j=function(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const i=S(e,n);return[{item:n?w({},e,{filterText:n}):e,level:o,groupId:t,groupName:r}].concat(e.children?e.children.filter((e=>l||i||I(e,n))).flatMap((e=>j(e,t,r,n,o+1,l||i))):[]).flat()},P=(0,c.curry)(((e,t)=>t.map((t=>({item:t,items:t.attributes.filter((t=>I(t,e))).map((r=>j(r,t.id,t.title,e)))}))).filter((e=>e.items.length))));var T=r(52730),N=r(94079),L=r(59431),R=r(7785),Z=r(44890),D=r(27239),A=r(79821);const F=(0,f.Z)({subHeader:{backgroundColor:"#f5f5f5",padding:"0 16px",margin:0,display:"flex",alignItems:"center",color:"rgba(0,0,0,0.84)",fontSize:"14px",fontWeight:500}});function B(){return B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B.apply(this,arguments)}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$(e,t,r[t])}))}return e}function $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const z=(0,n.memo)((e=>{let{selectedAttributes:t,onItemClick:r,focusIndex:n,hideCheckBox:l}=e,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["selectedAttributes","onItemClick","focusIndex","hideCheckBox"]);const a=F(),s=(0,T.useSelector)(L.ZP.selectors.getMetadata);return o().createElement(Z.Z,B({getItemSize:(e,t)=>t.items?40:28,renderItem:(e,i,a)=>{let{item:s,level:c,groupId:u,groupName:p}=i;const d=C(s,t),m=a===n;return o().createElement(R.Z,{key:`item-${u}-${s.fieldName}`,onClick:r,checked:d,data:W({},s,{groupName:p}),notSelectable:s.notSelectable,hideCheckBox:l,label:o().createElement(D.Z,{text:s.title,highlight:s.filterText}),labelInText:s.title,level:c,style:e,isFocused:m,groupId:u,LogoIcon:s.LogoIcon})},renderGroupTitle:(e,t)=>o().createElement(N.ListItem,{component:"div",className:a.subHeader,style:e,key:`group-${t.item.id}`},t.item.needGroupIcon&&o().createElement(A.Z,{group:t.item,metadata:s}),t.item.title),focusIndex:n},i))}));var M=r(56656);const H=(0,f.Z)({selector:{minWidth:"200px",alignItems:"stretch",background:"rgba(0,0,0, 0.0267)",boxSizing:"border-box",borderRadius:"4px",display:"flex"}}),V=(0,n.memo)((e=>{let{className:t,itemsGroups:r,value:l,getLabel:a,onSelect:d,onRestoreFocus:m=c.identity,onOpenPopup:b=c.identity,disableRestoreFocus:f=!1,disableEnforceFocus:h=!1,single:g=!1,ungroup:x=!1,disabled:v=!1,hideCheckBox:S=!1}=e;const I=H(),[j,T]=(0,n.useState)(null),N=(0,n.useCallback)((()=>T(null)),[]),L=!!j,[R,Z]=(0,n.useState)(""),D=(0,n.useCallback)((()=>Z("")),[]),[A,F]=(0,n.useState)([]),B=(0,n.useCallback)((()=>F([])),[]),W=(0,n.useMemo)((()=>P(R,r)),[r,R]),$=(0,n.useMemo)((()=>(0,c.pipe)((0,c.when)((0,c.always)(x),(0,c.chain)((0,c.pipe)((0,c.prop)("items"),c.flatten,(0,c.map)((0,c.pick)(["item","level"]))))),M.LG)(W)),[x,W]),V=(0,n.useMemo)((()=>Math.max(k(W),308)),[W]),G=(0,c.pipe)((0,c.tap)((0,c.pipe)(B,D,N)),m),U=(0,n.useRef)(),K=(0,n.useCallback)(((e,t)=>{d({checked:t,attribute:e,index:t?A.length:E(A,e),selectedAttributes:A}),g?(F(t?[e]:[]),G({})):(F((e=>{let{attribute:t,selectedAttributes:r,checked:n}=e;return n?r.concat(t):r.filter((e=>!O(t,e)))})({selectedAttributes:A,attribute:e,checked:t})),U.current&&U.current.focus())}),[A,d,g,G,U]),X=(0,n.useCallback)((e=>{let{onListItemClick:t,selectedAttributes:r}=e;return e=>{let{item:n,groupData:o}=e;const l=C(n,r);t(w({},n,{groupName:o.groupName}),!l)}})({onListItemClick:K,selectedAttributes:A}),[K,A]),{focusIndex:_,handleKeyDown:q}=(0,p.t)({items:$,open:L,onSelectFocusedItem:X,selectedItems:A,onClose:G});return o().createElement("div",{className:s()(I.selector,t),"data-reltio-id":"attribute-selector"},o().createElement(y,{value:l,getLabel:a,onSelectAttributeClick:e=>{b(),T(e.currentTarget)},disabled:v}),o().createElement(u.Z,{open:L,anchorEl:j,onClose:G,onSearch:Z,title:i().text("Select attribute"),containerWidth:V,containerHeight:507,searchInputOnKeyDown:q,anchorOrigin:{horizontal:"right",vertical:"bottom"},searchInputRef:U,disableRestoreFocus:f,disableEnforceFocus:h},o().createElement(z,{items:$,onItemClick:K,selectedAttributes:A,width:V,height:400,focusIndex:_,hideCheckBox:S})))}))},74566:(e,t,r)=>{r.d(t,{Z:()=>m});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(73038),s=r(58241),c=r(71153),u=r.n(c);const p=(0,r(79692).Z)((()=>({hidden:{visibility:"hidden"}}))),d=e=>{let{rowIndex:t,rowValue:r,className:l}=e;const i=p(),{toggleRowCollapse:c,getIsRowCollapsible:d,getIsRowCollapsed:m}=(0,n.useContext)(a.x),b=d(r),f=m(t);return o().createElement(s.Z,{className:u()(l,{[i.hidden]:!b}),isOpen:!f,onClick:e=>{c(t),e.stopPropagation()}})};d.propTypes={rowIndex:i().number,rowValue:i().object,className:i().string};const m=d},43290:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(24328),o=r.n(n),l=r(71153),i=r.n(l),a=r(17440);const s=(0,r(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%"}}))),c=e=>(0,a.is)(Number,e),u=e=>{let{className:t,width:r=0,maxWidth:l}=e;const a=s(),u=(0,n.useCallback)((e=>(l?100*e/l:0)+"%"),[l]);return r?o().createElement("div",{className:i()(a.bar,t),style:{width:c(r)?u(r):r}}):null}},89119:(e,t,r)=>{r.d(t,{Z:()=>S});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(87918),s=r.n(a),c=r(71153),u=r.n(c),p=r(17440),d=r(66269),m=r(97820),b=r(7785),f=r(56656),h=r(44890),g=r(54763),y=r(27239);const x=(0,r(79692).Z)((()=>({popupContainer:{},container:{"&$popupContainer":{height:"408px",minWidth:"200px"}}})));function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){O(e,t,r[t])}))}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const C=e=>{let{open:t,anchorEl:r,data:l,onSearch:i,onClose:a,titleText:s,filterText:c,onListItemClick:O,selected:C,hideCheckBox:S,renderGroupTitle:I}=e,E=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["open","anchorEl","data","onSearch","onClose","titleText","filterText","onListItemClick","selected","hideCheckBox","renderGroupTitle"]);const k=(0,n.useCallback)((e=>e.label.toLowerCase().includes(c.toLowerCase())),[c]),j=(0,n.useCallback)((e=>k(e)||(e.children||[]).some(j)),[k]),P=(0,n.useMemo)((()=>{const e=(0,p.curry)(((e,r,n,o)=>[{item:v({},r,{filterText:c}),level:e,groupId:n,groupName:o},...t(r.children||[],n,o,e+1)])),t=function(t,r,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const l=t=>e(o,t,r,n),i=t.filter(j);return(I?p.map:p.chain)(l,i)};return t}),[c,I,j]),T=(0,n.useCallback)((e=>e.map((e=>({item:e,items:P(e.attributes,e.id,e.label)}))).filter((e=>e.items.length))),[P]),N=(0,n.useCallback)((e=>{let{item:t}=e;O(t,!C.find((e=>e.id===t.id||e.id.includes(`${t.id}.`))))}),[O,C]),L=(0,n.useMemo)((()=>(I?T:P)(l)),[l,I,T,P]),R=(0,n.useMemo)((()=>(0,f.LG)(L)),[L]),{focusIndex:Z,handleKeyDown:D}=(0,g.t)({items:R,open:t,onSelectFocusedItem:N,selectedItems:C}),A=(0,n.useRef)(null);A.current=Z;const F=(0,n.useCallback)(((e,t,r)=>{let{item:n,level:l=0}=t;const i=!!C.find((e=>e.id===n.id||e.id.includes(`${n.id}.`))),a=A.current===r;return o().createElement(b.Z,{key:n.id,onClick:O,checked:i,level:l,data:n,label:o().createElement(y.Z,{text:n.label,highlight:n.filterText}),labelInText:n.label,style:e,hideCheckBox:S,isFocused:a,notSelectable:n.notSelectable,LogoIcon:n.LogoIcon})}),[S,O,C]),B=(0,d.fW1)("label")(L)||308,W=x();return o().createElement(m.Z,w({open:t,className:u()(W.container,W.popupContainer),anchorEl:r,onClose:a,onSearch:i,title:s,containerWidth:B,searchInputOnKeyDown:D},E),o().createElement(h.Z,{height:300,renderItem:F,items:R,hideSubtitles:!0,getItemSize:()=>32,containerWidth:B,focusIndex:Z,renderGroupTitle:I}))};C.propTypes={open:i().bool,hideCheckBox:i().bool,anchorEl:i().any,selected:i().array,data:i().array,filterText:i().string,titleText:i().string,onClose:i().func,onListItemClick:i().func,onSearch:i().func,renderGroupTitle:i().func},C.defaultProps={data:[],selected:[],titleText:s().text("Show/hide columns"),filterText:""};const S=C},27652:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(24328),o=r.n(n),l=r(4190),i=r(60364);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}const s=e=>{let{open:t=!0,children:r}=e,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["open","children"]);const[c,u]=(0,n.useState)(t),p=(0,i.Z)().transitions.duration.leavingScreen;return(0,n.useEffect)((()=>{if(t!==c){if(!t){const e=setTimeout((()=>{u(!1)}),p);return()=>clearTimeout(e)}u(!0)}}),[t,p,c]),o().createElement(l.ZP,a({open:t},s),c&&r)};s.displayName="Drawer";const c=s},59725:(e,t,r)=>{r.d(t,{Q:()=>c});var n=r(24328),o=r.n(n),l=r(87918),i=r.n(l),a=r(66269),s=r(42520);const c=(0,n.memo)((e=>{let{entityTypes:t,selectedEntityTypes:r,single:l,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d={},ListLabelProps:m={},disabled:b=!1}=e;const f=(0,n.useMemo)((()=>t.filter(a.oDv)),[t]);return o().createElement(s.S,{items:f,selectedItemsUris:r,single:l,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d,ListLabelProps:m,disabled:b,label:i().text("Entity type"),dataReltioId:"entity-type-selector",selectionPopupTitle:i().text("Select entity types")})}));c.displayName="EntityTypesSelector"},42520:(e,t,r)=>{r.d(t,{S:()=>T});var n=r(24328),o=r.n(n),l=r(71153),i=r.n(l),a=r(17440),s=r(66269),c=r(94079),u=r(83543),p=r(79692);const d=(0,p.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)"}}),m=(e,t)=>{const{childNodes:r,clientLeft:n,clientWidth:o}=t;if(r.length>0){const[t]=Array.from(r),l=document.createRange();l.setStart(t,0);for(let r=0;r<e.length;r++){l.setEnd(t,l.endOffset+e[r].length);const{width:i}=l.getBoundingClientRect();if(n+i>o)return r;r!==e.length-1&&l.setEnd(t,l.endOffset+", ".length)}}return-1},b=e=>e.join(", "),f=e=>`calc(${(0,a.isNil)(e)?"100%":`${e}px`} - 35px)`,h=e=>{let{list:t,maxWidth:r}=e;const l=d(),i=(0,n.useRef)(),[a,s]=(0,n.useState)(0);(0,n.useEffect)((()=>{s(((e,t)=>{const r=e.length,n=((e,t)=>{if(t){const r=m(e,t);return-1===r?0:e.length-r}return 0})(e,t);return r-Math.max(1,r-n)})(t,i.current))}),[t]);const u=b(t),p=a>0,h=p?b(t.slice(0,-a)):u;return o().createElement(c.Tooltip,{title:p?u:""},o().createElement("div",{className:l.listLabelContainer},o().createElement("div",{style:{width:f(r)},className:l.listLabel,ref:i},u),o().createElement("div",{className:l.visibleItemsLabel},h),p&&o().createElement("div",{className:l.hiddenCount},`+${a}`)))};var g=r(22385),y=r(97820),x=r(54763),w=r(7785),v=r(27239),O=r(44890);function C(){return C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(this,arguments)}const S=(0,a.always)(32),I=(0,n.memo)((e=>{let{selectedItems:t,onItemClick:r,focusIndex:n,width:l,height:i}=e,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["selectedItems","onItemClick","focusIndex","width","height"]);return o().createElement(O.Z,C({getItemSize:S,renderItem:(e,l,i)=>{let{item:a}=l;const s=!!t.find((e=>a.uri===e)),c=i===n;return o().createElement(w.Z,{key:a.uri,onClick:r,checked:s,data:a,label:o().createElement(v.Z,{text:a.label,highlight:a.filterText}),labelInText:a.label,style:e,isFocused:c,hideIcon:!0,LogoIcon:a.LogoIcon})},focusIndex:n,fixedTitle:!1,disableHorizontalScrollbar:!0,width:l,height:i},a))}));I.displayName="SelectMetadataTypesList";const E=(0,p.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 k(){return k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},k.apply(this,arguments)}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){P(e,t,r[t])}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const T=(0,n.memo)((e=>{let{placeholder:t,classes:r={},items:l,selectedItemsUris:p,onChange:d,ListLabelProps:m={},disabled:b,enableEmptyValueUnderline:f,single:w,label:v,dataReltioId:O,selectionPopupTitle:C}=e;const S=E(),[P,T]=(0,n.useState)(!1),N=(0,n.useCallback)((()=>T(!0)),[]),L=(0,n.useCallback)((()=>T(!1)),[]),[R,Z]=(0,n.useState)(""),D=(0,n.useCallback)((()=>Z("")),[]),A=(0,n.useCallback)((0,a.pipe)(D,L),[L,D]),F=l.filter((e=>{let{label:t}=e;return s.P6Y.strings.search(t,R)})).map(((e,t)=>({item:{item:j({},e,{filterText:R})},index:t}))),B=(0,n.useMemo)((()=>p.map((e=>l.find((0,a.propEq)("uri",e)))).map((0,a.prop)("label"))),[p,l]),W=(0,n.useCallback)(((e,t)=>{w?(d(t?[e.uri]:[]),A()):d(t?p.concat(e.uri):p.filter((t=>t!==e.uri)))}),[p,d,w,A]),$=(0,n.useCallback)((e=>{let{item:t}=e;const r=!p.includes(t.uri);W(t,r)}),[p,W]),{focusIndex:z,handleKeyDown:M}=(0,x.t)({items:F,open:P,onSelectFocusedItem:$,selectedItems:p,onClose:A}),H=(0,n.useRef)(),V=H.current?H.current.getBoundingClientRect().width:0,G=Math.max(V,255),U=0===p.length;return o().createElement(o().Fragment,null,o().createElement(c.TextField,{label:v,ref:H,InputProps:{startAdornment:U&&!t?null:o().createElement("div",{className:i()(S.inputText,r.inputText)},U?o().createElement("div",null,t):o().createElement(h,k({},m,{list:B}))),classes:{root:S.inputRoot,input:i()(S.input,r.input,{[S.emptyInput]:U&&!t}),disabled:i()(S.disabledInput,{[S.disabledPointer]:b}),underline:S.disabledUnderline},endAdornment:o().createElement(g.Z,{size:"L",icon:u.Z,iconClassName:i()(S.icon,{[S["popup-opened-icon"]]:P}),disabled:b}),readOnly:!0,disabled:!0,disableUnderline:U&&!f},inputProps:{tabIndex:-1},InputLabelProps:{classes:{root:i()(S.inputLabel,r.label)}},value:"",onClick:b?void 0:N,classes:{root:i()(S.root,r.root)},margin:"dense",variant:"filled",disabled:b,"data-reltio-id":O}),o().createElement(y.Z,{open:P,anchorEl:H.current,onClose:A,onSearch:Z,title:C,containerWidth:G,containerHeight:355,searchInputOnKeyDown:M,transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"left",vertical:"bottom"},PaperProps:{"data-reltio-id":`${O}-popup`}},o().createElement(I,{items:F,onItemClick:W,selectedItems:p,width:G,height:245,focusIndex:z})))}));T.displayName="MetadataTypesSelector"},23598:(e,t,r)=>{r.d(t,{Z:()=>C});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(71153),s=r.n(a),c=r(79692);const u=(0,c.Z)((()=>({row:{display:"flex",marginBottom:"12px"},rowItem:{paddingRight:"10px",display:"flex"},fullWidth:{flexGrow:"1",flexBasis:"0",overflow:"hidden"},hidden:{visibility:"hidden"}})));var p=r(87918),d=r.n(p),m=r(6782);const b="46px",f=(0,c.Z)((e=>({readOnlyLogicOperatorContainer:{display:"flex",alignItems:"center",marginRight:"40px",width:"76px",fontSize:"14px",color:e.palette.text.secondary,maxHeight:b},readOnlyFilter:{display:"flex",alignItems:"center",fontSize:"14px",color:e.palette.text.secondary,width:"50px",marginLeft:"12px",maxHeight:b}}))),h=e=>{let{className:t,rowData:r}=e;const n=f();return o().createElement("div",{className:s()(n.readOnlyLogicOperatorContainer,t)},r&&r.operator?(0,m.Z)(r.operator):d().text("Where"))};h.propTypes={className:i().string,rowData:i().object};const g=h;var y=r(66269);const x=e=>{let{className:t,rowData:r}=e;const n=f();return o().createElement("div",{className:s()(n.readOnlyFilter,t)},r&&r.filter?(0,y.XS2)(r.filter):d().text("equals"))};x.propTypes={className:i().string,rowData:i().object};const w=x;var v=r(94656);const O=e=>{let{classes:t={},rowData:r,previousRowData:n,LogicOperatorComponent:l=g,AttributeSelectorComponent:i,FilterSelectorComponent:a=w,ValuesEditorComponent:c,ActionsComponent:p,filterSelectorRef:d,attributeSelectorProps:m={}}=e,b=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["classes","rowData","previousRowData","LogicOperatorComponent","AttributeSelectorComponent","FilterSelectorComponent","ValuesEditorComponent","ActionsComponent","filterSelectorRef","attributeSelectorProps"]);const f=u();return o().createElement("div",{className:s()(f.row,t.root)},o().createElement(l,{className:t.logicOperatorContainer,rowContext:b,rowData:n}),o().createElement("div",{className:s()(f.rowItem,t.attributeSelectorContainer)},o().createElement(i,{attributeSelectorProps:m,rowContext:b,rowData:r})),o().createElement("div",{className:s()(f.rowItem,t.filterSelectorContainer)},o().createElement(a,{textFieldInputRef:d,rowContext:b,rowData:r})),o().createElement("div",{className:s()(f.rowItem,f.fullWidth,t.valuesEditorContainer)},o().createElement(c,{rowContext:b,rowData:r})),o().createElement("div",{className:s()(f.rowItem,t.actionsContainer,{[f.hidden]:!r})},o().createElement(p,{rowContext:b,rowData:r})))};O.propTypes={classes:i().shape({root:i().string,logicOperatorContainer:i().string,attributeSelectorContainer:i().string,filterSelectorContainer:i().string,valuesEditorContainer:i().string,actionsContainer:i().string}),rowData:v.Xw,previousRowData:v.Xw,LogicOperatorComponent:i().elementType,AttributeSelectorComponent:i().elementType,FilterSelectorComponent:i().elementType,ValuesEditorComponent:i().elementType,ActionsComponent:i().elementType,filterSelectorRef:i().object,attributeSelectorProps:i().shape({onRestoreFocus:i().func,onOpen:i().func,disablePopoverRestoreFocus:i().bool})};const C=(0,n.memo)(O)},41315:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(17440),s=r(23598),c=r(94656);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}const p=e=>{let{className:t,rowClasses:r,rowsData:n,lastRowAttributeSelectorProps:l,filterSelectorRef:i,filterSelectorRefIndex:c}=e,p=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["className","rowClasses","rowsData","lastRowAttributeSelectorProps","filterSelectorRef","filterSelectorRefIndex"]);const d=(e,t,n)=>{const d=t>0?(0,a.path)([t-1],n):null,m=t===n.length?{attributeSelectorProps:l}:{};return o().createElement(s.Z,u({key:e&&e.id,rowData:e,previousRowData:d,classes:r,filterSelectorRef:t===c?i:void 0},p,m))};return o().createElement("div",{className:t},n.map(d),d(null,n.length,n))};p.propTypes={className:i().string,rowClasses:i().shape({root:i().string,logicOperatorContainer:i().string,attributeSelectorContainer:i().string,filterSelectorContainer:i().string,valuesEditorContainer:i().string,actionsContainer:i().string}),rowsData:i().arrayOf(c.Xw),LogicOperatorComponent:i().elementType,AttributeSelectorComponent:i().elementType,FilterSelectorComponent:i().elementType,ValuesEditorComponent:i().elementType,ActionsComponent:i().elementType,filterSelectorRef:i().object,filterSelectorRefIndex:i().number,lastRowAttributeSelectorProps:i().shape({onRestoreFocus:i().func,onOpen:i().func,disablePopoverRestoreFocus:i().bool})};const d=(0,n.memo)(p)},50905:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(54573),o=r(17440);const l={BY_LABEL:(0,n.c)({stringify:(0,o.prop)("label")})}}}]);
|
|
2
2
|
//# sourceMappingURL=5400.js.map
|