@reltio/remotes 1.4.1519 → 1.4.1521

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/9113.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[9113],{26180:(e,t,n)=>{n.d(t,{ZP:()=>g});var r=n(17440),a=n(31276);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const o="CHANGE_COLUMNS",c="TOGGLE_FILTERS",i="CHANGE_FILTER",u="TOGGLE_SORT",m="CHANGE_PAGE",p="CHANGE_ROWS_PER_PAGE",d={changeColumns:(0,a.zD)(o),toggleFilters:(0,a.zD)(c),changeFilter:(0,a.zD)(i),toggleSort:(0,a.zD)(u),changePage:(0,a.zD)(m),changeRowsPerPage:(0,a.zD)(p)},f=(e,t)=>{const n=(0,r.difference)(e.visibleColumns,t),a=e=>n.includes(e);return(0,r.evolve)({visibleColumns:(0,r.always)(t),sorting:(0,r.when)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a(e.field)}),(()=>{const[e]=t;return{field:e,order:"asc"}})),filters:e=>(0,r.keys)(e).reduce(((e,t)=>a(t)?(0,r.dissoc)(t,e):e),e)},e)},g={reducer:(e,t)=>{switch(t.type){case o:{const n=t.payload;return f(e,n)}case c:{const t=!e.filters;return s({},e,{filters:t?{}:null,page:t?e.page:0})}case i:{const{columnId:n,filter:a}=t.payload;return(0,r.evolve)({filters:a?(0,r.assoc)(n,a):(0,r.dissoc)(n),page:(0,r.always)(0)},e)}case u:{const n=t.payload,l=(0,r.path)(["sorting","field"],e),o=(0,r.path)(["sorting","order"],e);return s({},e,{sorting:{field:n,order:(0,a.Dh)(n===l?o:null)},page:0})}case m:return s({},e,{page:t.payload});case p:return s({},e,{rowsPerPage:t.payload});default:return e}},actions:d,changeVisibleColumns:f}},2014:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(24328),a=n.n(r),s=n(71153),l=n.n(s),o=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 u=(0,r.forwardRef)(((e,t)=>{let{children:n,expanded:r,onExpand:s,className:u}=e,m=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children","expanded","onExpand","className"]);const p=c();return a().createElement("div",i({onClick:s,ref:t,className:l()(p.container,u,{[p.expanded]:r})},m),a().createElement(o.Z,{expanded:r}),a().createElement("div",{className:p.label},n))}));u.displayName="MatchRuleBadge";const m=u},22071:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),s=n(67958),l=n(74615),o=n(93301),c=n(91044),i=n(87918),u=n.n(i);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 p=e=>a().createElement("svg",m({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 20h15.002L21 23l1.27-1.27-20-20.01L1 2.99l6.172 6.175a4.007 4.007 0 002.66 2.662l2.23 2.23A10.754 10.754 0 0011 14c-2.67 0-8 1.34-8 4v2zm8-16a3.987 3.987 0 00-2.795 1.137l5.656 5.659A3.999 3.999 0 0011 4z",fill:"#000",fillOpacity:.54})),d=(0,n(79692).Z)({notMatch:{display:"flex","& svg":{width:"14px",height:"14px"}}}),f=()=>{const e=d();return a().createElement("div",{className:e.notMatch},a().createElement(p,null)," ",u().text("Not a match"))};var g=n(77245);const h=e=>{let{entitiesMap:t,entity:n,match:r,metadata:i,variant:u=g.g.all}=e;if(!r.matchRules&&!r.negativeRules)return null;const m=(0,s.Pcm)(r),p=(0,s.LS0)(i,n.type,(r.matchRules||[]).concat(r.negativeRules||[])),d=p.filter((e=>{let{uri:t}=e;return t!==s.h_8})).length!==p.length,h=!m&&!d,v=d&&u!==g.g.excludeNotMatch;return a().createElement(a().Fragment,null,m?a().createElement(o.Z,{transitiveMatchRules:(0,s.wB1)(i,r,t)}):null,h?a().createElement(c.Z,{variant:u,matchRules:p,Component:l.Z}):null,v?a().createElement(f,null):null)}},41022:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(24328),a=n.n(r),s=n(87918),l=n.n(s);const o=e=>{let{isMlMatch:t=!1}=e;return a().createElement(a().Fragment,null,t?l().text("Match IQ"):l().text("Match rules"))}},48636:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),s=n(41022);const l=(0,n(79692).Z)({title:{fontWeight:500,marginBottom:"9px"},body:{fontWeight:"normal",marginLeft:"16px"},container:{padding:"8px",fontSize:"12px",lineHeight:"14px"},negativeRuleIcon:{position:"relative",marginRight:"4px",top:"1px"}});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 c=e=>a().createElement("svg",o({width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{d:"M5 0C2.24 0 0 2.24 0 5C0 7.76 2.24 10 5 10C7.76 10 10 7.76 10 5C10 2.24 7.76 0 5 0ZM7.5 5.5H2.5V4.5H7.5V5.5Z",fill:"white",fillOpacity:"0.54"})),i=e=>{let{isMlMatch:t=!1,matchRules:n}=e;const r=l();return a().createElement("div",{className:r.container},a().createElement("div",{className:r.title},a().createElement(s.Z,{isMlMatch:t})," "),a().createElement("div",{className:r.body},n.map((e=>a().createElement("div",{key:e.uri},"- ",e.negativeRule&&a().createElement(c,{className:r.negativeRuleIcon}),`${e.label}`)))))}},68479:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(24328),a=n.n(r),s=n(71153),l=n.n(s),o=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"},negativeRuleIcon:{position:"relative",marginRight:"4px",top:"1px"}})));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 u=e=>a().createElement("svg",i({width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{d:"M5 0C2.24 0 0 2.24 0 5C0 7.76 2.24 10 5 10C7.76 10 10 7.76 10 5C10 2.24 7.76 0 5 0ZM7.5 5.5H2.5V4.5H7.5V5.5Z",fill:"black",fillOpacity:"0.54"})),m=e=>{let{isMlMatch:t,matchRules:n,className:r}=e;const s=c();return a().createElement("div",{"data-reltio-id":"simple-match-rules",className:l()(s.container,r)},a().createElement("div",{className:s.title},a().createElement(o.Z,{isMlMatch:t})),a().createElement("div",{className:s.labelsContainer},n.map((e=>a().createElement("div",{key:e.uri},"- ",e.negativeRule&&a().createElement(u,{className:s.negativeRuleIcon}),`${e.label}`)))))}},74615:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),a=n.n(r),s=n(48636),l=n(68479),o=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 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=>a().createElement("svg",u({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 p=n(87918),d=n.n(p);const f=(0,o.Z)(c.Z),g=e=>{let{isMlMatch:t=!1,matchRules:n}=e;const o=i(),[c,u]=(0,r.useState)(!1),p=(0,r.useCallback)((()=>u((e=>!e))),[]);return a().createElement("div",{className:o.container},a().createElement(f,{tooltipTitle:a().createElement(s.Z,{matchRules:n,isMlMatch:t}),tooltipPlacement:"bottom-start",onExpand:p,expanded:c},t?a().createElement(a().Fragment,null,a().createElement(m,{className:o.icon}),d().text("Match IQ")):d().text("Rules")),c?a().createElement(l.Z,{className:o.rulesContainer,matchRules:n,isMlMatch:t}):null)}},91044:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(24328),a=n.n(r),s=n(13980),l=n.n(s),o=n(17440),c=n(67958),i=n(77245);const u=(0,n(79692).Z)({container:{display:"flex",flexDirection:"column","& :not(:last-child)":{marginBottom:"2px"}}});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 p=e=>{let{matchRules:t,Component:n,variant:r=i.g.all}=e,s=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["matchRules","Component","variant"]);const l=u(),[p,d]=(0,c.UkJ)(t),{all:f,simple:g,excludeNotMatch:h}=i.g,v=[f,g,h].includes(r)&&!(0,o.isEmpty)(d),E=[f,h].includes(r)&&!(0,o.isEmpty)(p);return a().createElement("div",{className:l.container},v?a().createElement(n,m({matchRules:d},s)):null,E?a().createElement(n,m({isMlMatch:!0,matchRules:p},s)):null)};p.propTypes={matchRules:c.p3$,Component:l().func};const d=p},93301:(e,t,n)=>{n.d(t,{Z:()=>x});var r=n(24328),a=n.n(r),s=n(87918),l=n.n(s),o=n(2014),c=n(19592),i=n(68479),u=n(91044),m=n(79692);const p=(0,m.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 s=p(),[l,o]=(0,r.useState)(!1),m=(0,r.useCallback)((()=>o((e=>!e))),[]);return a().createElement("div",{"data-reltio-id":"transitive-match-rule",className:s.container},a().createElement("div",{onClick:m,className:s.badge},a().createElement(c.Z,{expanded:l}),a().createElement("div",{className:s.label},t)),l?a().createElement(u.Z,{Component:i.Z,matchRules:n,className:s.matchLabels}):null)},f=(0,m.Z)({container:{display:"flex",flexDirection:"column","& :not(:last-child)":{marginBottom:"2px"}}});var g=n(83348),h=n(48636);const v=(0,m.Z)({ruleWrapper:{paddingTop:"8px"},label:{fontWeight:500,fontSize:"12px"}}),E=e=>{let{transitiveMatchRules:t}=e;const n=v();return a().createElement(a().Fragment,null,t.map(((e,t)=>{let{label:r,matchRules:s}=e;return a().createElement("div",{key:t,className:n.ruleWrapper},a().createElement("div",{className:n.label},r),a().createElement(h.Z,{matchRules:s}))})))};function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}const y=(0,g.Z)(o.Z),x=e=>{let{transitiveMatchRules:t}=e;const n=f(),[s,o]=(0,r.useState)(!1),c=(0,r.useCallback)((()=>o((e=>!e))),[]);return a().createElement("div",{className:n.container},a().createElement(y,{tooltipTitle:a().createElement(E,{transitiveMatchRules:t}),tooltipPlacement:"bottom-start",onExpand:c,expanded:s},l().text("Transitive matches")),s?t.map(((e,t)=>a().createElement(d,b({key:t},e)))):null)}},77245:(e,t,n)=>{let r;n.d(t,{g:()=>r}),function(e){e.all="all",e.simple="simple",e.excludeNotMatch="excludeNotMatch"}(r||(r={}))},93428:(e,t,n)=>{n.d(t,{H:()=>d});var r=n(24328),a=n.n(r),s=n(87918),l=n.n(s);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 c=e=>a().createElement("svg",o({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),u=n(98808),m=n(37432);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 d=(0,r.forwardRef)(((e,t)=>{let{className:n,mode:r=u.N.iconButton,onMenuClose:s=i.ZT,disabled:o=!1,entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onSuccess:v,onError:E}=e,b=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[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:y}=(0,m._)({entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onError:E,onSuccess:v});return a().createElement(u.K,p({className:n,disabled:o,mode:r,label:l().text("Merge"),icon:c,onClick:y,onMenuClose:s,ref:t},b))}));d.displayName="mergeButton"},30885:(e,t,n)=>{n.d(t,{i:()=>d});var r=n(98808),a=n(24328),s=n.n(a);function l(){return l=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},l.apply(this,arguments)}const o=e=>s().createElement("svg",l({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),s().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),u=n.n(i),m=n(59119);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 d=(0,a.forwardRef)(((e,t)=>{let{className:n,mode:a=r.N.iconButton,onMenuClose:l=c.ZT,disabled:i=!1,entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onError:v,onSuccess:E}=e,b=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","mode","onMenuClose","disabled","entity","entities","onStartRequest","onFinishRequest","onError","onSuccess"]);const{sendMarkAsNotMatchRequest:y}=(0,m.m)({entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onError:v,onSuccess:E});return s().createElement(r.K,p({className:n,disabled:i,mode:a,label:u().text("Not a match"),icon:o,onClick:y,onMenuClose:l,ref:t},b))}));d.displayName="notMatchButton"},17308:(e,t,n)=>{n.d(t,{P:()=>m});var r=n(24328),a=n.n(r),s=n(87685);const l=(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 o=n(94079),c=n(87918),i=n.n(c),u=n(8818);const m=e=>{let{onClose:t,mainTitle:n,secondTitle:r,content:c,rightContent:m}=e;const p=l();return a().createElement("div",{className:p.container},a().createElement(u.k,{size:"L",icon:s.default,onClick:t,className:p.icon,tooltipTitle:i().text("Close")}),c||a().createElement(a().Fragment,null,a().createElement(o.Typography,{variant:"h6"},n),r&&a().createElement(a().Fragment,null,a().createElement(o.Divider,{orientation:"vertical",flexItem:!0,className:p.divider}),a().createElement(o.Typography,{variant:"body1",color:"textSecondary",className:p.secondTitle},r)),m))}},30078:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),s=n(87918),l=n.n(s),o=n(24737),c=n(5434);const i=e=>{let{taskId:t,assignee:n,isTaskOpen:r}=e;const{assignee:s,getAssignees:i,updateAssignee:u,updateRequestIsInProgress:m,readOnly:p}=(0,c.r)({taskId:t,assignee:n,isOpen:r}),d=m||p;return a().createElement(o.Z,{isDisabled:d,getOptions:i,onChange:u,hideSelectedOptions:!1,label:l().text("Assigned to"),value:s,defaultOptions:!0,TextFieldProps:{disabled:d},height:40})}},46628:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),s=n(43054),l=n(10186),o=n(55847),c=n(22385);const i=e=>{let{taskId:t,possibleActions:n,assignee:r,isTaskOpen:i}=e;const{actions:u,actionRequestIsInProgress:m}=(0,l.t)({taskId:t,possibleActions:n,assignee:r,isOpen:i});return u.length>0?a().createElement(o.Z,{buttonComponent:c.Z,buttonProps:{icon:s.Z,size:"L",disabled:m},menuId:"workflow-actions",menuItems:u}):null}},89140:(e,t,n)=>{n.d(t,{V:()=>M});var r=n(24328),a=n.n(r),s=n(17440),l=n(94079),o=n(94842),c=n(13980),i=n.n(c),u=n(87918),m=n.n(u),p=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"}}))),v=(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"}}))),E=(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)"}}}))),b=(0,g.Z)((e=>({messageContainer:{borderBottom:"1px solid rgba(0,0,0,0.3)",paddingBottom:"7px",marginBottom:"7px"}}))),y=e=>{let{author:t,classes:n,message:r,time:s}=e;const o=h();return a().createElement("div",{className:o.comment},a().createElement(l.Avatar,{className:o.avatar},a().createElement(p.Z,{className:o.icon})),a().createElement("div",{className:f()(o.info,n.messageContainer)},a().createElement("div",{className:o.firstLine},a().createElement("div",{className:o.author},t),a().createElement("span",{className:o.date},m().date(s,"L LT"))),a().createElement("div",{className:o.text},r)))};y.defaultProps={classes:{}},y.propTypes={classes:i().object,author:i().string,id:i().string,message:i().string,time:i().number};const x=e=>{let{comments:t,onClick:n}=e;const r=v();return a().createElement(a().Fragment,null,a().createElement(y,t[0]),a().createElement("div",{className:r.delimiter},a().createElement(l.IconButton,{className:r.circleButton,onClick:n},t.length-2)),a().createElement(y,t[t.length-1]))};x.propTypes={comments:i().arrayOf(i().shape({author:i().string,id:i().string,message:i().string,time:i().number})),onClick:i().func};const C=e=>{let{comments:t}=e;const n=b();return t.map((e=>{let{author:t,id:r,message:s,time:l}=e;return a().createElement(y,{classes:{messageContainer:n.messageContainer},key:r,author:t,message:s,time:l})}))};C.propTypes={comments:i().arrayOf(i().shape({author:i().string,id:i().string,message:i().string,time:i().number}))};var S=n(43477),O=n(22385);const w=e=>e.target.value,M=e=>{let{processInstanceComments:t,taskId:n,isTaskOpen:c}=e;const i=E(),[u,p]=(0,r.useState)(!1),[d,f]=(0,r.useState)(""),{comments:g,writeComment:h,readOnly:v}=(0,S.W)({processInstanceComments:t,taskId:n,isOpen:c}),b=(0,r.useCallback)((()=>{h(d),f("")}),[d,h]),y=(0,s.pipe)(w,f);return a().createElement("div",{className:i.container},a().createElement("div",{className:i.title}," ",m().text("Comments")," "),a().createElement("div",{className:i.commentsContainer},u||g.length<3?a().createElement(C,{comments:g}):a().createElement(x,{onClick:()=>p(!0),comments:g})),!v&&a().createElement(l.Input,{endAdornment:a().createElement(l.InputAdornment,{position:"end"},a().createElement(O.Z,{icon:o.Z,disabled:0===d.length,onClick:b})),classes:{root:i.filledInputRoot},placeholder:m().text("Write a comment"),value:d,onKeyPress:(0,s.when)((0,s.propEq)("key","Enter"),b),onChange:y,disableUnderline:!0}))};M.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,{l:()=>o,R:()=>c});var r=n(87918),a=n.n(r),s=n(67958),l=n(585);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};console.error(e),l.Z.addError({title:a().text("Error"),message:e.errorMessage||a().text("Something went wrong...")})},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.error;(null==t?void 0:t.errorCode)!==s.Xt7.WORKFLOW_IS_NOT_REGISTERED_ERROR&&o(t)}},21380:(e,t,n)=>{n.d(t,{rc:()=>a,Xs:()=>s,tg:()=>l});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/"))},s=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)},l=e=>void 0===e||!0===e},10186:(e,t,n)=>{n.d(t,{t:()=>u});var r=n(24328),a=n(52730),s=n(67958),l=n(49885),o=n(75813),c=n(94150),i=n(21380);const u=e=>{let{possibleActions:t,assignee:n,taskId:u,isOpen:m}=e;const{onActionSuccess:p}=(0,r.useContext)(c.O)||{},d=(0,a.useSelector)(l.ZP.selectors.getWorkflowPath),f=(0,a.useSelector)(l.ZP.selectors.getWorkflowEnvironmentUrl),g=(0,a.useSelector)(l.ZP.selectors.getTenant),h=(0,a.useSelector)(l.ZP.selectors.getUserName),[v,E]=(0,r.useState)(!1),b=(0,r.useCallback)((e=>()=>{d&&u&&(E(!0),(0,s.TZ_)({taskId:u,workflowPath:d,environment:f,tenant:g,action:e}).then((()=>{null==p||p(e)})).catch(o.R).finally((()=>{E(!1)})))}),[d,u,f,g,p]);return{actions:(0,r.useMemo)((()=>h===n&&(0,i.tg)(m)?(t||[]).map((e=>{let{action:t,label:n}=e;return{text:n,onClick:b(t)}})):[]),[t,b,h,n,m]),actionRequestIsInProgress:v}}},5434:(e,t,n)=>{n.d(t,{r:()=>f});var r=n(24328),a=n(17440),s=n(52730),l=n(67958),o=n(49885),c=n(85229),i=n(94150),u=n(75813),m=n(22994),p=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,s.useSelector)(o.ZP.selectors.getWorkflowPath),v=(0,s.useSelector)(o.ZP.selectors.getWorkflowEnvironmentUrl),E=(0,s.useSelector)(o.ZP.selectors.getTenant),b=(0,c._)(),y=(0,c._)(),[x,C]=(0,r.useState)(null),[S,O]=(0,r.useState)(),[w,M]=(0,r.useState)(!1),k=(0,m.Z)()("UPDATE_TASK")&&(0,p.tg)(f);(0,r.useEffect)((()=>{C(d(t))}),[t]);const P=(0,r.useCallback)((e=>{if(h&&k&&n){const t=(0,a.filter)((t=>t.value.toLowerCase().includes(e)));return S?Promise.resolve(t(S)):y((0,l.j2$)({taskId:n,workflowPath:h,environment:v,tenant:E})).then((e=>{const{data:n}=e,r=n.sort(((e,t)=>l.P6Y.strings.sort("asc",e,t))).map(d);return O(r),t(r)})).catch(u.R)}}),[h,n,v,E,S,O,k]),_=(0,r.useCallback)((e=>{if(h&&k&&n){const{value:t}=e;M(!0),b((0,l._C4)({taskId:n,workflowPath:h,environment:v,tenant:E,assignee:t})).then((()=>{C(d(t)),null==g||g(n,{assignee:t})})).catch(u.R).finally((()=>{M(!1)}))}}),[h,n,v,E,k]);return{assignee:x,getAssignees:P,updateAssignee:_,updateRequestIsInProgress:w,readOnly:!k}}},22994:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(52730),a=n(49885);const s=()=>{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),s=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowEnvironmentConfigJar),l=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowDefinition),o=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowConfigJar),c=(0,r.useSelector)(a.ZP.selectors.getCanUserViewProcessInstanceSearchQuery),i=(0,r.useSelector)(a.ZP.selectors.getCanUserUpdateWorkflowDataTask),u=(0,r.useSelector)(a.ZP.selectors.getCanUserUpdateProcessInstance),m=(0,r.useSelector)(a.ZP.selectors.getCanUserReadWorkflowDataTask),p=(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),v=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobsSyncBusinessProcessData),E=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobs),b=(0,r.useSelector)(a.ZP.selectors.getCanUserCreateWorkflowEnvironmentConfigJar),y=(0,r.useSelector)(a.ZP.selectors.getCanUserRegisterConfigEnvironments),x=(0,r.useSelector)(a.ZP.selectors.getCanUserCreateWorkflowConfigJar);return r=>{if(!e)return!1;switch(r){case"VIEW_PROCESS_DEFINITIONS":return l;case"DEPLOY_GENERIC_PROCESS_DEFINITION":return p;case"VIEW_JOBS":return n;case"START_JOB":return E||v&&h&&g&&f;case"VIEW_CUSTOM_JARS":return o||s;case"UPDATE_PROCESS_INSTANCE":return u;case"VIEW_TASKS":return m;case"REGISTER_TENANT":return y;case"START_PROCESS_INSTANCE":case"START_PROCESS_INSTANCE_SEARCH_QUERY":return t;case"VIEW_PROCESS_INSTANCE_COMMENTS":case"VIEW_PROCESS_INSTANCES":case"VIEW_PROCESS_INSTANCE_COUNT":return c;case"UPDATE_TASK":return i;case"DEPLOY_TENANT_PROCESS_DEFINITION":return d;case"DEPLOY_CUSTOM_JAR":return x&&b}return!1}}},43477:(e,t,n)=>{n.d(t,{W:()=>p});var r=n(24328),a=n(67958),s=n(49885),l=n(52730),o=n(85229),c=n(94150),i=n(75813),u=n(22994),m=n(21380);const p=e=>{let{processInstanceComments:t,taskId:n,isOpen:p}=e;const{updateTaskState:d}=(0,r.useContext)(c.O)||{},f=(0,l.useSelector)(s.ZP.selectors.getWorkflowPath),g=(0,l.useSelector)(s.ZP.selectors.getWorkflowEnvironmentUrl),h=(0,l.useSelector)(s.ZP.selectors.getTenant),v=(0,o._)(),[E,b]=(0,r.useState)([]),[y,x]=(0,r.useState)(!1),C=(0,u.Z)()("UPDATE_TASK")&&(0,m.tg)(p);(0,r.useEffect)((()=>{b(t||[])}),[t]);const S=(0,r.useCallback)((e=>{C&&(x(!0),v((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;b(t||[]),null==d||d(n,{processInstanceComments:t})})).catch(i.R).finally((()=>x(!1))))}),[g,n,h,f,v,d,C]);return{comments:E,requestIsInProgress:y,writeComment:S,readOnly:!C}}},4109:(e,t,n)=>{n.d(t,{b:()=>c});var r=n(24328),a=n(52730),s=n(49885),l=n(94150),o=n(39450);const c=()=>{const{loadTasks:e}=(0,r.useContext)(l.O)||{},t=(0,r.useContext)(o.m),n=(0,a.useSelector)(s.ZP.selectors.getEntityUri),c=(0,a.useDispatch)();return(0,r.useCallback)((r=>{"Delete"===r?c(s.ui.actions.entityDeletionFinished()):(c(s.N5.entity.actions.loadEntity({viewId:t,uri:n})),null==e||e())}),[c,n,e,t])}},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"},86361:(e,t,n)=>{n.d(t,{o:()=>l});var r=n(24328),a=n(17440);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l=e=>{let{actions:t,dispatch:n}=e;return(0,r.useMemo)((()=>Object.entries(t).reduce(((e,t)=>{let[r,l]=t;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}({},e,{[r]:(0,a.pipe)(l,n)})}),{})),[n,t])}},8159:(e,t,n)=>{n.d(t,{X:()=>a});var r=n(24328);const a=()=>{const e=(0,r.useRef)(!1);return(0,r.useEffect)((()=>(e.current=!0,()=>{e.current=!1}))),e}},59119:(e,t,n)=>{n.d(t,{m:()=>i});var r=n(67958),a=n(52730),s=n(49885),l=n(24328),o=n(31276),c=n(8159);const i=e=>{let{entities:t,entity:n,onFinishRequest:i,onStartRequest:u,onSuccess:m,onError:p=o.ZT}=e;const d=(0,c.X)(),f=(0,a.useSelector)(s.ZP.selectors.getTenant),g=(0,a.useSelector)(s.ZP.selectors.getDtssPath),[h,v]=(0,l.useState)(!1);return{isPending:h,sendMarkAsNotMatchRequest:(0,l.useCallback)((()=>{null==u||u(),v(!0);const e={dtssPath:g,customerTenant:f,entity:n,entities:t};((0,r.biM)(n)?(0,r.bMg)(e):(0,r.fZN)(e)).then((()=>{null==m||m()})).catch(p).finally((()=>{null==i||i(),d.current&&v(!1)}))}),[g,t,n,d,i,u,p,m,f])}}},28741:(e,t,n)=>{n.d(t,{s:()=>u});var r=n(24328),a=n(52730),s=n(49885),l=n(67958),o=n(20449),c=n(85229),i=n(17440);const u=e=>{let{enabled:t,entity:n,filter:u,rules:m,onFinishLoading:p,onStartLoading:d,options:f,page:g,rowsPerPage:h,sorting:v,markMatchedValues:E}=e;const{order:b,field:y}=v||{},[x,C]=(0,r.useState)(0),[S,O]=(0,r.useState)([]),[w,M]=(0,r.useState)({}),k=(0,a.useSelector)(s.ZP.selectors.getTenant),P=(0,a.useSelector)(s.ZP.selectors.getDtssPath),_=(0,a.useSelector)(s.ZP.selectors.getDataTenants),{activityFilter:R,globalFilter:Z}=(0,a.useSelector)(s.ZP.selectors.getGlobalSearchRequestOptions)||{},N="boolean"==typeof f.showInactiveEntities?f.showInactiveEntities?l.YJ7.ALL:l.YJ7.ACTIVE_ONLY:R,T=(0,r.useMemo)((()=>({dtssPath:P,dataTenants:_,entity:n,customerTenant:k,dtssRequest:l.Rgl})),[P,_,n,k]),I=(0,r.useCallback)((0,l.U_T)(T,l.SP6),[T]),j=(0,o.a)(I),L=(0,o.a)(l.bFH),F=(0,i.prop)("uri",n),D=(0,c._)(),A=(0,r.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t||(0,l.ZiX)(F))return C(0),O([]),void M({});null==d||d(),D((0,l.biM)(n)?L({dtssPath:P,entity:n,customerTenant:k,offset:g*h,max:h,force:e}):j({entityUri:F,offset:g*h,max:h,filter:(0,l.vyX)(Z,u)||"",rules:m,sort:y,order:b,force:e,markMatchedValues:E,deep:f.showTransitiveMatches?void 0:1,activeness:N})).then((e=>{const{response:t,total:n,originalResponse:r}=e;C(n),(0,l.B1H)(r).length>0&&M((0,l.KPC)(r)),O(t)})).finally((()=>{null==p||p()}))}),[Z,N,P,t,F,y,u,m,E,L,j,p,d,f,b,g,h,D,k]);return(0,r.useEffect)((()=>{A()}),[A]),{total:x,matches:S,entitiesMap:w,loadMatches:(0,r.useCallback)((()=>{A(!0)}),[A])}}},37432:(e,t,n)=>{n.d(t,{_:()=>m});var r=n(24328),a=n(52730),s=n(49885),l=n(67958),o=n(31276),c=n(8159),i=n(17440);const u=e=>(null==e?void 0:e.uri)&&(0,l.WgC)(e.uri),m=e=>{let{entities:t,entity:n,onFinishRequest:m,onStartRequest:p,onSuccess:d,onError:f=o.ZT}=e;const g=(0,c.X)(),h=(0,a.useSelector)(s.ZP.selectors.getTenant),v=(0,a.useSelector)(s.ZP.selectors.getDtssPath),[E,b]=(0,r.useState)(!1),y=(0,a.useDispatch)();return{isPending:E,sendMergeAllRequest:(0,r.useCallback)((()=>{null==p||p(),b(!0);const e={dtssPath:v,customerTenant:h,entity:n,entities:t};((0,l.biM)(n)?(0,l.uJQ)(e):(0,l.OxG)(e)).then((e=>{null==d||d();const r=((e,t,n)=>{const r=(e=>{var t;return null===(t=e.find(u))||void 0===t?void 0:t.uri})(n);if(r)return{winnerUri:r,losersUris:(0,i.pipe)((0,i.reject)(l.biM),(0,i.map)((0,i.prop)("uri")),(0,i.reject)((0,i.equals)(r)))([e,...t])}})(n,t,e);if(r){const{winnerUri:e,losersUris:t}=r;y(s.yC.actions.updateSearchNavigationDataOnMerge({winnerUri:e,losersUris:t}))}})).catch(f).finally((()=>{null==m||m(),g.current&&b(!1)}))}),[v,t,n,f,m,p,d,h,y])}}},20449:(e,t,n)=>{n.d(t,{a:()=>s});var r=n(24328),a=n(17440);const s=e=>(0,r.useCallback)((e=>{let t={},n=[];return async r=>{let{max:s,offset:l,force:o}=r,c=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(r,["max","offset","force"]),i=o;const u=Object.keys(t);if(i=i||!(0,a.equals)(Object.keys(c),u),!i)for(const e of u)i=i||!(0,a.equals)(t[e],c[e]);return i&&(n=await e(c),t=c),{response:n.slice(l,l+s),total:n.length,originalResponse:n}}})(e),[e])},60641:(e,t,n)=>{n.d(t,{w:()=>o});var r=n(24328),a=n(20562);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const o=e=>{let{getSavedState:t,saveState:n,entityTypeUri:l}=e;const[o,c]=(0,r.useState)({}),[i,u]=(0,r.useState)(null),[m,p]=(0,r.useState)(!1);(0,a.D)((()=>{i&&(c(s({},o,i)),u(null))}),[l]);const d=(0,r.useCallback)((e=>{if(!l)return;const t={[l]:e};u(t),n(s({},o,t))}),[l,n,o]);return(0,r.useEffect)((()=>{t().then((e=>{c(e||{})})).then((e=>p(!0))).catch((e=>p(!0)))}),[]),{isLoaded:m&&!!l,savedState:o[l],updateSavedState:d}}}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[9113],{26180:(e,t,n)=>{n.d(t,{ZP:()=>g});var r=n(17440),a=n(31276);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const o="CHANGE_COLUMNS",c="TOGGLE_FILTERS",i="CHANGE_FILTER",u="TOGGLE_SORT",m="CHANGE_PAGE",p="CHANGE_ROWS_PER_PAGE",d={changeColumns:(0,a.zD)(o),toggleFilters:(0,a.zD)(c),changeFilter:(0,a.zD)(i),toggleSort:(0,a.zD)(u),changePage:(0,a.zD)(m),changeRowsPerPage:(0,a.zD)(p)},f=(e,t)=>{const n=(0,r.difference)(e.visibleColumns,t),a=e=>n.includes(e);return(0,r.evolve)({visibleColumns:(0,r.always)(t),sorting:(0,r.when)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a(e.field)}),(()=>{const[e]=t;return{field:e,order:"asc"}})),filters:e=>(0,r.keys)(e).reduce(((e,t)=>a(t)?(0,r.dissoc)(t,e):e),e)},e)},g={reducer:(e,t)=>{switch(t.type){case o:{const n=t.payload;return f(e,n)}case c:{const t=!e.filters;return s({},e,{filters:t?{}:null,page:t?e.page:0})}case i:{const{columnId:n,filter:a}=t.payload;return(0,r.evolve)({filters:a?(0,r.assoc)(n,a):(0,r.dissoc)(n),page:(0,r.always)(0)},e)}case u:{const n=t.payload,l=(0,r.path)(["sorting","field"],e),o=(0,r.path)(["sorting","order"],e);return s({},e,{sorting:{field:n,order:(0,a.Dh)(n===l?o:null)},page:0})}case m:return s({},e,{page:t.payload});case p:return s({},e,{rowsPerPage:t.payload});default:return e}},actions:d,changeVisibleColumns:f}},2014:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(24328),a=n.n(r),s=n(71153),l=n.n(s),o=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 u=(0,r.forwardRef)(((e,t)=>{let{children:n,expanded:r,onExpand:s,className:u}=e,m=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children","expanded","onExpand","className"]);const p=c();return a().createElement("div",i({onClick:s,ref:t,className:l()(p.container,u,{[p.expanded]:r})},m),a().createElement(o.Z,{expanded:r}),a().createElement("div",{className:p.label},n))}));u.displayName="MatchRuleBadge";const m=u},22071:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),s=n(67958),l=n(74615),o=n(93301),c=n(91044),i=n(87918),u=n.n(i);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 p=e=>a().createElement("svg",m({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 20h15.002L21 23l1.27-1.27-20-20.01L1 2.99l6.172 6.175a4.007 4.007 0 002.66 2.662l2.23 2.23A10.754 10.754 0 0011 14c-2.67 0-8 1.34-8 4v2zm8-16a3.987 3.987 0 00-2.795 1.137l5.656 5.659A3.999 3.999 0 0011 4z",fill:"#000",fillOpacity:.54})),d=(0,n(79692).Z)({notMatch:{display:"flex","& svg":{width:"14px",height:"14px"}}}),f=()=>{const e=d();return a().createElement("div",{className:e.notMatch},a().createElement(p,null)," ",u().text("Not a match"))};var g=n(77245);const h=e=>{let{entitiesMap:t,entity:n,match:r,metadata:i,variant:u=g.g.all}=e;if(!r.matchRules&&!r.negativeRules)return null;const m=(0,s.Pcm)(r),p=(0,s.LS0)(i,n.type,(r.matchRules||[]).concat(r.negativeRules||[])),d=p.filter((e=>{let{uri:t}=e;return t!==s.h_8})).length!==p.length,h=!m&&!d,v=d&&u!==g.g.excludeNotMatch;return a().createElement(a().Fragment,null,m?a().createElement(o.Z,{transitiveMatchRules:(0,s.wB1)(i,r,t)}):null,h?a().createElement(c.Z,{variant:u,matchRules:p,Component:l.Z}):null,v?a().createElement(f,null):null)}},41022:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(24328),a=n.n(r),s=n(87918),l=n.n(s);const o=e=>{let{isMlMatch:t=!1}=e;return a().createElement(a().Fragment,null,t?l().text("Match IQ"):l().text("Match rules"))}},48636:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),s=n(41022);const l=(0,n(79692).Z)({title:{fontWeight:500,marginBottom:"9px"},body:{fontWeight:"normal",marginLeft:"16px"},container:{padding:"8px",fontSize:"12px",lineHeight:"14px"},negativeRuleIcon:{position:"relative",marginRight:"4px",top:"1px"}});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 c=e=>a().createElement("svg",o({width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{d:"M5 0C2.24 0 0 2.24 0 5C0 7.76 2.24 10 5 10C7.76 10 10 7.76 10 5C10 2.24 7.76 0 5 0ZM7.5 5.5H2.5V4.5H7.5V5.5Z",fill:"white",fillOpacity:"0.54"})),i=e=>{let{isMlMatch:t=!1,matchRules:n}=e;const r=l();return a().createElement("div",{className:r.container},a().createElement("div",{className:r.title},a().createElement(s.Z,{isMlMatch:t})," "),a().createElement("div",{className:r.body},n.map((e=>a().createElement("div",{key:e.uri},"- ",e.negativeRule&&a().createElement(c,{className:r.negativeRuleIcon}),`${e.label}`)))))}},68479:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(24328),a=n.n(r),s=n(71153),l=n.n(s),o=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"},negativeRuleIcon:{position:"relative",marginRight:"4px",top:"1px"}})));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 u=e=>a().createElement("svg",i({width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{d:"M5 0C2.24 0 0 2.24 0 5C0 7.76 2.24 10 5 10C7.76 10 10 7.76 10 5C10 2.24 7.76 0 5 0ZM7.5 5.5H2.5V4.5H7.5V5.5Z",fill:"black",fillOpacity:"0.54"})),m=e=>{let{isMlMatch:t,matchRules:n,className:r}=e;const s=c();return a().createElement("div",{"data-reltio-id":"simple-match-rules",className:l()(s.container,r)},a().createElement("div",{className:s.title},a().createElement(o.Z,{isMlMatch:t})),a().createElement("div",{className:s.labelsContainer},n.map((e=>a().createElement("div",{key:e.uri},"- ",e.negativeRule&&a().createElement(u,{className:s.negativeRuleIcon}),`${e.label}`)))))}},74615:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),a=n.n(r),s=n(48636),l=n(68479),o=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 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=>a().createElement("svg",u({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 p=n(87918),d=n.n(p);const f=(0,o.Z)(c.Z),g=e=>{let{isMlMatch:t=!1,matchRules:n}=e;const o=i(),[c,u]=(0,r.useState)(!1),p=(0,r.useCallback)((()=>u((e=>!e))),[]);return a().createElement("div",{className:o.container},a().createElement(f,{tooltipTitle:a().createElement(s.Z,{matchRules:n,isMlMatch:t}),tooltipPlacement:"bottom-start",onExpand:p,expanded:c},t?a().createElement(a().Fragment,null,a().createElement(m,{className:o.icon}),d().text("Match IQ")):d().text("Rules")),c?a().createElement(l.Z,{className:o.rulesContainer,matchRules:n,isMlMatch:t}):null)}},91044:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(24328),a=n.n(r),s=n(13980),l=n.n(s),o=n(17440),c=n(67958),i=n(77245);const u=(0,n(79692).Z)({container:{display:"flex",flexDirection:"column","& :not(:last-child)":{marginBottom:"2px"}}});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 p=e=>{let{matchRules:t,Component:n,variant:r=i.g.all}=e,s=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["matchRules","Component","variant"]);const l=u(),[p,d]=(0,c.UkJ)(t),{all:f,simple:g,excludeNotMatch:h}=i.g,v=[f,g,h].includes(r)&&!(0,o.isEmpty)(d),E=[f,h].includes(r)&&!(0,o.isEmpty)(p);return a().createElement("div",{className:l.container},v?a().createElement(n,m({matchRules:d},s)):null,E?a().createElement(n,m({isMlMatch:!0,matchRules:p},s)):null)};p.propTypes={matchRules:c.p3$,Component:l().func};const d=p},93301:(e,t,n)=>{n.d(t,{Z:()=>x});var r=n(24328),a=n.n(r),s=n(87918),l=n.n(s),o=n(2014),c=n(19592),i=n(68479),u=n(91044),m=n(79692);const p=(0,m.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 s=p(),[l,o]=(0,r.useState)(!1),m=(0,r.useCallback)((()=>o((e=>!e))),[]);return a().createElement("div",{"data-reltio-id":"transitive-match-rule",className:s.container},a().createElement("div",{onClick:m,className:s.badge},a().createElement(c.Z,{expanded:l}),a().createElement("div",{className:s.label},t)),l?a().createElement(u.Z,{Component:i.Z,matchRules:n,className:s.matchLabels}):null)},f=(0,m.Z)({container:{display:"flex",flexDirection:"column","& :not(:last-child)":{marginBottom:"2px"}}});var g=n(83348),h=n(48636);const v=(0,m.Z)({ruleWrapper:{paddingTop:"8px"},label:{fontWeight:500,fontSize:"12px"}}),E=e=>{let{transitiveMatchRules:t}=e;const n=v();return a().createElement(a().Fragment,null,t.map(((e,t)=>{let{label:r,matchRules:s}=e;return a().createElement("div",{key:t,className:n.ruleWrapper},a().createElement("div",{className:n.label},r),a().createElement(h.Z,{matchRules:s}))})))};function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}const y=(0,g.Z)(o.Z),x=e=>{let{transitiveMatchRules:t}=e;const n=f(),[s,o]=(0,r.useState)(!1),c=(0,r.useCallback)((()=>o((e=>!e))),[]);return a().createElement("div",{className:n.container},a().createElement(y,{tooltipTitle:a().createElement(E,{transitiveMatchRules:t}),tooltipPlacement:"bottom-start",onExpand:c,expanded:s},l().text("Transitive matches")),s?t.map(((e,t)=>a().createElement(d,b({key:t},e)))):null)}},77245:(e,t,n)=>{let r;n.d(t,{g:()=>r}),function(e){e.all="all",e.simple="simple",e.excludeNotMatch="excludeNotMatch"}(r||(r={}))},93428:(e,t,n)=>{n.d(t,{H:()=>d});var r=n(24328),a=n.n(r),s=n(87918),l=n.n(s);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 c=e=>a().createElement("svg",o({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),u=n(98808),m=n(37432);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 d=(0,r.forwardRef)(((e,t)=>{let{className:n,mode:r=u.N.iconButton,onMenuClose:s=i.ZT,disabled:o=!1,entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onSuccess:v,onError:E}=e,b=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[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:y}=(0,m._)({entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onError:E,onSuccess:v});return a().createElement(u.K,p({className:n,disabled:o,mode:r,label:l().text("Merge"),icon:c,onClick:y,onMenuClose:s,ref:t},b))}));d.displayName="mergeButton"},30885:(e,t,n)=>{n.d(t,{i:()=>d});var r=n(98808),a=n(24328),s=n.n(a);function l(){return l=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},l.apply(this,arguments)}const o=e=>s().createElement("svg",l({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),s().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),u=n.n(i),m=n(59119);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 d=(0,a.forwardRef)(((e,t)=>{let{className:n,mode:a=r.N.iconButton,onMenuClose:l=c.ZT,disabled:i=!1,entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onError:v,onSuccess:E}=e,b=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["className","mode","onMenuClose","disabled","entity","entities","onStartRequest","onFinishRequest","onError","onSuccess"]);const{sendMarkAsNotMatchRequest:y}=(0,m.m)({entity:d,entities:f,onStartRequest:g,onFinishRequest:h,onError:v,onSuccess:E});return s().createElement(r.K,p({className:n,disabled:i,mode:a,label:u().text("Not a match"),icon:o,onClick:y,onMenuClose:l,ref:t},b))}));d.displayName="notMatchButton"},17308:(e,t,n)=>{n.d(t,{P:()=>m});var r=n(24328),a=n.n(r),s=n(87685);const l=(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 o=n(94079),c=n(87918),i=n.n(c),u=n(8818);const m=e=>{let{onClose:t,mainTitle:n,secondTitle:r,content:c,rightContent:m}=e;const p=l();return a().createElement("div",{className:p.container},a().createElement(u.k,{size:"L",icon:s.default,onClick:t,className:p.icon,tooltipTitle:i().text("Close")}),c||a().createElement(a().Fragment,null,a().createElement(o.Typography,{variant:"h6"},n),r&&a().createElement(a().Fragment,null,a().createElement(o.Divider,{orientation:"vertical",flexItem:!0,className:p.divider}),a().createElement(o.Typography,{variant:"body1",color:"textSecondary",className:p.secondTitle},r)),m))}},30078:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),s=n(87918),l=n.n(s),o=n(24737),c=n(5434);const i=e=>{let{taskId:t,assignee:n,isTaskOpen:r}=e;const{assignee:s,getAssignees:i,updateAssignee:u,updateRequestIsInProgress:m,readOnly:p}=(0,c.r)({taskId:t,assignee:n,isOpen:r}),d=m||p;return a().createElement(o.Z,{isDisabled:d,getOptions:i,onChange:u,hideSelectedOptions:!1,label:l().text("Assigned to"),value:s,defaultOptions:!0,TextFieldProps:{disabled:d},height:40})}},46628:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),s=n(43054),l=n(10186),o=n(55847),c=n(22385);const i=e=>{let{taskId:t,possibleActions:n,assignee:r,isTaskOpen:i}=e;const{actions:u,actionRequestIsInProgress:m}=(0,l.t)({taskId:t,possibleActions:n,assignee:r,isOpen:i});return u.length>0?a().createElement(o.Z,{buttonComponent:c.Z,buttonProps:{icon:s.Z,size:"L",disabled:m},menuId:"workflow-actions",menuItems:u}):null}},89140:(e,t,n)=>{n.d(t,{V:()=>M});var r=n(24328),a=n.n(r),s=n(17440),l=n(94079),o=n(94842),c=n(13980),i=n.n(c),u=n(87918),m=n.n(u),p=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"}}))),v=(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"}}))),E=(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)"}}}))),b=(0,g.Z)((e=>({messageContainer:{borderBottom:"1px solid rgba(0,0,0,0.3)",paddingBottom:"7px",marginBottom:"7px"}}))),y=e=>{let{author:t,classes:n,message:r,time:s}=e;const o=h();return a().createElement("div",{className:o.comment},a().createElement(l.Avatar,{className:o.avatar},a().createElement(p.Z,{className:o.icon})),a().createElement("div",{className:f()(o.info,n.messageContainer)},a().createElement("div",{className:o.firstLine},a().createElement("div",{className:o.author},t),a().createElement("span",{className:o.date},m().date(s,"L LT"))),a().createElement("div",{className:o.text},r)))};y.defaultProps={classes:{}},y.propTypes={classes:i().object,author:i().string,id:i().string,message:i().string,time:i().number};const x=e=>{let{comments:t,onClick:n}=e;const r=v();return a().createElement(a().Fragment,null,a().createElement(y,t[0]),a().createElement("div",{className:r.delimiter},a().createElement(l.IconButton,{className:r.circleButton,onClick:n},t.length-2)),a().createElement(y,t[t.length-1]))};x.propTypes={comments:i().arrayOf(i().shape({author:i().string,id:i().string,message:i().string,time:i().number})),onClick:i().func};const C=e=>{let{comments:t}=e;const n=b();return t.map((e=>{let{author:t,id:r,message:s,time:l}=e;return a().createElement(y,{classes:{messageContainer:n.messageContainer},key:r,author:t,message:s,time:l})}))};C.propTypes={comments:i().arrayOf(i().shape({author:i().string,id:i().string,message:i().string,time:i().number}))};var S=n(43477),O=n(22385);const w=e=>e.target.value,M=e=>{let{processInstanceComments:t,taskId:n,isTaskOpen:c}=e;const i=E(),[u,p]=(0,r.useState)(!1),[d,f]=(0,r.useState)(""),{comments:g,writeComment:h,readOnly:v}=(0,S.W)({processInstanceComments:t,taskId:n,isOpen:c}),b=(0,r.useCallback)((()=>{h(d),f("")}),[d,h]),y=(0,s.pipe)(w,f);return a().createElement("div",{className:i.container},a().createElement("div",{className:i.title}," ",m().text("Comments")," "),a().createElement("div",{className:i.commentsContainer},u||g.length<3?a().createElement(C,{comments:g}):a().createElement(x,{onClick:()=>p(!0),comments:g})),!v&&a().createElement(l.Input,{endAdornment:a().createElement(l.InputAdornment,{position:"end"},a().createElement(O.Z,{icon:o.Z,disabled:0===d.length,onClick:b})),classes:{root:i.filledInputRoot},placeholder:m().text("Write a comment"),value:d,onKeyPress:(0,s.when)((0,s.propEq)("key","Enter"),b),onChange:y,disableUnderline:!0}))};M.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,{l:()=>o,R:()=>c});var r=n(87918),a=n.n(r),s=n(67958),l=n(585);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};console.error(e),l.Z.addError({title:a().text("Error"),message:e.errorMessage||a().text("Something went wrong...")})},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.error;(null==t?void 0:t.errorCode)!==s.Xt7.WORKFLOW_IS_NOT_REGISTERED_ERROR&&o(t)}},21380:(e,t,n)=>{n.d(t,{rc:()=>a,Xs:()=>s,tg:()=>l});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/"))},s=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)},l=e=>void 0===e||!0===e},10186:(e,t,n)=>{n.d(t,{t:()=>u});var r=n(24328),a=n(52730),s=n(67958),l=n(49885),o=n(75813),c=n(94150),i=n(21380);const u=e=>{let{possibleActions:t,assignee:n,taskId:u,isOpen:m}=e;const{onActionSuccess:p}=(0,r.useContext)(c.O)||{},d=(0,a.useSelector)(l.ZP.selectors.getWorkflowPath),f=(0,a.useSelector)(l.ZP.selectors.getWorkflowEnvironmentUrl),g=(0,a.useSelector)(l.ZP.selectors.getTenant),h=(0,a.useSelector)(l.ZP.selectors.getUserName),[v,E]=(0,r.useState)(!1),b=(0,r.useCallback)((e=>()=>{d&&u&&(E(!0),(0,s.TZ_)({taskId:u,workflowPath:d,environment:f,tenant:g,action:e}).then((()=>{null==p||p(e)})).catch(o.R).finally((()=>{E(!1)})))}),[d,u,f,g,p]);return{actions:(0,r.useMemo)((()=>h===n&&(0,i.tg)(m)?(t||[]).map((e=>{let{action:t,label:n}=e;return{text:n,onClick:b(t)}})):[]),[t,b,h,n,m]),actionRequestIsInProgress:v}}},5434:(e,t,n)=>{n.d(t,{r:()=>f});var r=n(24328),a=n(17440),s=n(52730),l=n(67958),o=n(49885),c=n(85229),i=n(94150),u=n(75813),m=n(22994),p=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,s.useSelector)(o.ZP.selectors.getWorkflowPath),v=(0,s.useSelector)(o.ZP.selectors.getWorkflowEnvironmentUrl),E=(0,s.useSelector)(o.ZP.selectors.getTenant),b=(0,c._)(),y=(0,c._)(),[x,C]=(0,r.useState)(null),[S,O]=(0,r.useState)(),[w,M]=(0,r.useState)(!1),k=(0,m.Z)()("UPDATE_TASK")&&(0,p.tg)(f);(0,r.useEffect)((()=>{C(d(t))}),[t]);const P=(0,r.useCallback)((e=>{if(h&&k&&n){const t=(0,a.filter)((t=>t.value.toLowerCase().includes(e)));return S?Promise.resolve(t(S)):y((0,l.j2$)({taskId:n,workflowPath:h,environment:v,tenant:E})).then((e=>{const{data:n}=e,r=n.sort(((e,t)=>l.P6Y.strings.sort("asc",e,t))).map(d);return O(r),t(r)})).catch(u.R)}}),[h,n,v,E,S,O,k]),_=(0,r.useCallback)((e=>{if(h&&k&&n){const{value:t}=e;M(!0),b((0,l._C4)({taskId:n,workflowPath:h,environment:v,tenant:E,assignee:t})).then((()=>{C(d(t)),null==g||g(n,{assignee:t})})).catch(u.R).finally((()=>{M(!1)}))}}),[h,n,v,E,k]);return{assignee:x,getAssignees:P,updateAssignee:_,updateRequestIsInProgress:w,readOnly:!k}}},22994:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(52730),a=n(49885);const s=()=>{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),s=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowEnvironmentConfigJar),l=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowDefinition),o=(0,r.useSelector)(a.ZP.selectors.getCanUserViewWorkflowConfigJar),c=(0,r.useSelector)(a.ZP.selectors.getCanUserViewProcessInstanceSearchQuery),i=(0,r.useSelector)(a.ZP.selectors.getCanUserUpdateWorkflowDataTask),u=(0,r.useSelector)(a.ZP.selectors.getCanUserUpdateProcessInstance),m=(0,r.useSelector)(a.ZP.selectors.getCanUserReadWorkflowDataTask),p=(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),v=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobsSyncBusinessProcessData),E=(0,r.useSelector)(a.ZP.selectors.getCanUserExecuteWorkflowJobs),b=(0,r.useSelector)(a.ZP.selectors.getCanUserCreateWorkflowEnvironmentConfigJar),y=(0,r.useSelector)(a.ZP.selectors.getCanUserRegisterConfigEnvironments),x=(0,r.useSelector)(a.ZP.selectors.getCanUserCreateWorkflowConfigJar);return r=>{if(!e)return!1;switch(r){case"VIEW_PROCESS_DEFINITIONS":return l;case"DEPLOY_GENERIC_PROCESS_DEFINITION":return p;case"VIEW_JOBS":return n;case"START_JOB":return E||v&&h&&g&&f;case"VIEW_CUSTOM_JARS":return o||s;case"UPDATE_PROCESS_INSTANCE":return u;case"VIEW_TASKS":return m;case"REGISTER_TENANT":return y;case"START_PROCESS_INSTANCE":case"START_PROCESS_INSTANCE_SEARCH_QUERY":return t;case"VIEW_PROCESS_INSTANCE_COMMENTS":case"VIEW_PROCESS_INSTANCES":case"VIEW_PROCESS_INSTANCE_COUNT":return c;case"UPDATE_TASK":return i;case"DEPLOY_TENANT_PROCESS_DEFINITION":return d;case"DEPLOY_CUSTOM_JAR":return x&&b}return!1}}},43477:(e,t,n)=>{n.d(t,{W:()=>p});var r=n(24328),a=n(67958),s=n(49885),l=n(52730),o=n(85229),c=n(94150),i=n(75813),u=n(22994),m=n(21380);const p=e=>{let{processInstanceComments:t,taskId:n,isOpen:p}=e;const{updateTaskState:d}=(0,r.useContext)(c.O)||{},f=(0,l.useSelector)(s.ZP.selectors.getWorkflowPath),g=(0,l.useSelector)(s.ZP.selectors.getWorkflowEnvironmentUrl),h=(0,l.useSelector)(s.ZP.selectors.getTenant),v=(0,o._)(),[E,b]=(0,r.useState)([]),[y,x]=(0,r.useState)(!1),C=(0,u.Z)()("UPDATE_TASK")&&(0,m.tg)(p);(0,r.useEffect)((()=>{b(t||[])}),[t]);const S=(0,r.useCallback)((e=>{C&&(x(!0),v((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;b(t||[]),null==d||d(n,{processInstanceComments:t})})).catch(i.R).finally((()=>x(!1))))}),[g,n,h,f,v,d,C]);return{comments:E,requestIsInProgress:y,writeComment:S,readOnly:!C}}},4109:(e,t,n)=>{n.d(t,{b:()=>c});var r=n(24328),a=n(52730),s=n(49885),l=n(94150),o=n(47898);const c=()=>{const{loadTasks:e}=(0,r.useContext)(l.O)||{},t=(0,r.useContext)(o.m),n=(0,a.useSelector)(s.ZP.selectors.getEntityUri),c=(0,a.useDispatch)();return(0,r.useCallback)((r=>{"Delete"===r?c(s.ui.actions.entityDeletionFinished()):(c(s.N5.entity.actions.loadEntity({viewId:t,uri:n})),null==e||e())}),[c,n,e,t])}},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"},86361:(e,t,n)=>{n.d(t,{o:()=>l});var r=n(24328),a=n(17440);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l=e=>{let{actions:t,dispatch:n}=e;return(0,r.useMemo)((()=>Object.entries(t).reduce(((e,t)=>{let[r,l]=t;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}({},e,{[r]:(0,a.pipe)(l,n)})}),{})),[n,t])}},8159:(e,t,n)=>{n.d(t,{X:()=>a});var r=n(24328);const a=()=>{const e=(0,r.useRef)(!1);return(0,r.useEffect)((()=>(e.current=!0,()=>{e.current=!1}))),e}},59119:(e,t,n)=>{n.d(t,{m:()=>i});var r=n(67958),a=n(52730),s=n(49885),l=n(24328),o=n(31276),c=n(8159);const i=e=>{let{entities:t,entity:n,onFinishRequest:i,onStartRequest:u,onSuccess:m,onError:p=o.ZT}=e;const d=(0,c.X)(),f=(0,a.useSelector)(s.ZP.selectors.getTenant),g=(0,a.useSelector)(s.ZP.selectors.getDtssPath),[h,v]=(0,l.useState)(!1);return{isPending:h,sendMarkAsNotMatchRequest:(0,l.useCallback)((()=>{null==u||u(),v(!0);const e={dtssPath:g,customerTenant:f,entity:n,entities:t};((0,r.biM)(n)?(0,r.bMg)(e):(0,r.fZN)(e)).then((()=>{null==m||m()})).catch(p).finally((()=>{null==i||i(),d.current&&v(!1)}))}),[g,t,n,d,i,u,p,m,f])}}},28741:(e,t,n)=>{n.d(t,{s:()=>u});var r=n(24328),a=n(52730),s=n(49885),l=n(67958),o=n(20449),c=n(85229),i=n(17440);const u=e=>{let{enabled:t,entity:n,filter:u,rules:m,onFinishLoading:p,onStartLoading:d,options:f,page:g,rowsPerPage:h,sorting:v,markMatchedValues:E}=e;const{order:b,field:y}=v||{},[x,C]=(0,r.useState)(0),[S,O]=(0,r.useState)([]),[w,M]=(0,r.useState)({}),k=(0,a.useSelector)(s.ZP.selectors.getTenant),P=(0,a.useSelector)(s.ZP.selectors.getDtssPath),_=(0,a.useSelector)(s.ZP.selectors.getDataTenants),{activityFilter:R,globalFilter:Z}=(0,a.useSelector)(s.ZP.selectors.getGlobalSearchRequestOptions)||{},N="boolean"==typeof f.showInactiveEntities?f.showInactiveEntities?l.YJ7.ALL:l.YJ7.ACTIVE_ONLY:R,T=(0,r.useMemo)((()=>({dtssPath:P,dataTenants:_,entity:n,customerTenant:k,dtssRequest:l.Rgl})),[P,_,n,k]),I=(0,r.useCallback)((0,l.U_T)(T,l.SP6),[T]),j=(0,o.a)(I),L=(0,o.a)(l.bFH),F=(0,i.prop)("uri",n),D=(0,c._)(),A=(0,r.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t||(0,l.ZiX)(F))return C(0),O([]),void M({});null==d||d(),D((0,l.biM)(n)?L({dtssPath:P,entity:n,customerTenant:k,offset:g*h,max:h,force:e}):j({entityUri:F,offset:g*h,max:h,filter:(0,l.vyX)(Z,u)||"",rules:m,sort:y,order:b,force:e,markMatchedValues:E,deep:f.showTransitiveMatches?void 0:1,activeness:N})).then((e=>{const{response:t,total:n,originalResponse:r}=e;C(n),(0,l.B1H)(r).length>0&&M((0,l.KPC)(r)),O(t)})).finally((()=>{null==p||p()}))}),[Z,N,P,t,F,y,u,m,E,L,j,p,d,f,b,g,h,D,k]);return(0,r.useEffect)((()=>{A()}),[A]),{total:x,matches:S,entitiesMap:w,loadMatches:(0,r.useCallback)((()=>{A(!0)}),[A])}}},37432:(e,t,n)=>{n.d(t,{_:()=>m});var r=n(24328),a=n(52730),s=n(49885),l=n(67958),o=n(31276),c=n(8159),i=n(17440);const u=e=>(null==e?void 0:e.uri)&&(0,l.WgC)(e.uri),m=e=>{let{entities:t,entity:n,onFinishRequest:m,onStartRequest:p,onSuccess:d,onError:f=o.ZT}=e;const g=(0,c.X)(),h=(0,a.useSelector)(s.ZP.selectors.getTenant),v=(0,a.useSelector)(s.ZP.selectors.getDtssPath),[E,b]=(0,r.useState)(!1),y=(0,a.useDispatch)();return{isPending:E,sendMergeAllRequest:(0,r.useCallback)((()=>{null==p||p(),b(!0);const e={dtssPath:v,customerTenant:h,entity:n,entities:t};((0,l.biM)(n)?(0,l.uJQ)(e):(0,l.OxG)(e)).then((e=>{null==d||d();const r=((e,t,n)=>{const r=(e=>{var t;return null===(t=e.find(u))||void 0===t?void 0:t.uri})(n);if(r)return{winnerUri:r,losersUris:(0,i.pipe)((0,i.reject)(l.biM),(0,i.map)((0,i.prop)("uri")),(0,i.reject)((0,i.equals)(r)))([e,...t])}})(n,t,e);if(r){const{winnerUri:e,losersUris:t}=r;y(s.yC.actions.updateSearchNavigationDataOnMerge({winnerUri:e,losersUris:t}))}})).catch(f).finally((()=>{null==m||m(),g.current&&b(!1)}))}),[v,t,n,f,m,p,d,h,y])}}},20449:(e,t,n)=>{n.d(t,{a:()=>s});var r=n(24328),a=n(17440);const s=e=>(0,r.useCallback)((e=>{let t={},n=[];return async r=>{let{max:s,offset:l,force:o}=r,c=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(r,["max","offset","force"]),i=o;const u=Object.keys(t);if(i=i||!(0,a.equals)(Object.keys(c),u),!i)for(const e of u)i=i||!(0,a.equals)(t[e],c[e]);return i&&(n=await e(c),t=c),{response:n.slice(l,l+s),total:n.length,originalResponse:n}}})(e),[e])},60641:(e,t,n)=>{n.d(t,{w:()=>o});var r=n(24328),a=n(20562);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const o=e=>{let{getSavedState:t,saveState:n,entityTypeUri:l}=e;const[o,c]=(0,r.useState)({}),[i,u]=(0,r.useState)(null),[m,p]=(0,r.useState)(!1);(0,a.D)((()=>{i&&(c(s({},o,i)),u(null))}),[l]);const d=(0,r.useCallback)((e=>{if(!l)return;const t={[l]:e};u(t),n(s({},o,t))}),[l,n,o]);return(0,r.useEffect)((()=>{t().then((e=>{c(e||{})})).then((e=>p(!0))).catch((e=>p(!0)))}),[]),{isLoaded:m&&!!l,savedState:o[l],updateSavedState:d}}}}]);
2
2
  //# sourceMappingURL=9113.js.map