@reltio/remotes 1.4.1417 → 1.4.1418
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/1375.js +1 -1
- package/1375.js.map +1 -1
- package/1400.js +2 -0
- package/1400.js.map +1 -0
- package/1478.js +1 -1
- package/2114.js +1 -1
- package/2491.js +1 -1
- package/2890.js +1 -1
- package/{8183.js → 3118.js} +2 -2
- package/3118.js.map +1 -0
- package/3273.js +1 -1
- package/3273.js.map +1 -1
- package/3294.js +2 -0
- package/3294.js.map +1 -0
- package/3469.js +2 -0
- package/3469.js.map +1 -0
- package/3540.js +1 -1
- package/3575.js +1 -1
- package/3937.js +2 -0
- package/3937.js.map +1 -0
- package/4015.js +1 -1
- package/{5937.js → 4183.js} +2 -2
- package/{5937.js.map → 4183.js.map} +1 -1
- package/4407.js +1 -1
- package/447.js +1 -1
- package/461.js +1 -1
- package/461.js.map +1 -1
- package/4843.js +1 -1
- package/4889.js +1 -1
- package/4889.js.map +1 -1
- package/5400.js +1 -1
- package/5400.js.map +1 -1
- package/5706.js +1 -1
- package/5706.js.map +1 -1
- package/5709.js +1 -1
- package/{4881.css → 5756.css} +1 -1
- package/{4881.css.map → 5756.css.map} +1 -1
- package/5756.js +2 -0
- package/5756.js.map +1 -0
- package/6103.js +1 -1
- package/6233.js +1 -1
- package/6233.js.map +1 -1
- package/6312.js +1 -1
- package/6312.js.map +1 -1
- package/6617.js +1 -1
- package/6669.js +1 -1
- package/755.js +2 -0
- package/755.js.map +1 -0
- package/8051.js +1 -1
- package/84.js +1 -1
- package/84.js.map +1 -1
- package/8443.js +1 -1
- package/8448.js +1 -1
- package/8847.js +1 -1
- package/9043.js +1 -1
- package/9043.js.map +1 -1
- package/9258.js +1 -1
- package/9258.js.map +1 -1
- package/9364.js +1 -1
- package/9364.js.map +1 -1
- package/9852.js +2 -0
- package/9852.js.map +1 -0
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/remoteEntry.js.map +1 -1
- package/4143.js +0 -2
- package/4143.js.map +0 -1
- package/4670.js +0 -2
- package/4670.js.map +0 -1
- package/4881.js +0 -2
- package/4881.js.map +0 -1
- package/5720.js +0 -2
- package/5720.js.map +0 -1
- package/7776.js +0 -2
- package/7776.js.map +0 -1
- package/8183.js.map +0 -1
- package/8225.js +0 -2
- package/8225.js.map +0 -1
- package/9630.js +0 -2
- package/9630.js.map +0 -1
package/2491.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[2491],{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(57014),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(57014),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(84504);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:()=>P});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 S=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})}))};S.propTypes={comments:i().arrayOf(i().shape({author:i().string,id:i().string,message:i().string,time:i().number}))};var C=n(43477),O=n(22385);const w=e=>e.target.value,P=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,C.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(S,{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}))};P.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:()=>o});var r=n(87918),a=n.n(r),s=n(57014),l=n(585);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{errorMessage:t,errorCode:n}=e;n!==s.Xt7.WORKFLOW_IS_NOT_REGISTERED_ERROR&&(console.error(e),l.Z.addError({title:a().text("Error"),message:t||a().text("Something went wrong...")}))}},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(57014),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(57014),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,S]=(0,r.useState)(null),[C,O]=(0,r.useState)(),[w,P]=(0,r.useState)(!1),k=(0,m.Z)()("UPDATE_TASK")&&(0,p.tg)(f);(0,r.useEffect)((()=>{S(d(t))}),[t]);const M=(0,r.useCallback)((e=>{if(h&&k&&n){const t=(0,a.filter)((t=>t.value.toLowerCase().includes(e)));return C?Promise.resolve(t(C)):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,C,O,k]),_=(0,r.useCallback)((e=>{if(h&&k&&n){const{value:t}=e;P(!0),b((0,l._C4)({taskId:n,workflowPath:h,environment:v,tenant:E,assignee:t})).then((()=>{S(d(t)),null==g||g(n,{assignee:t})})).catch(u.R).finally((()=>{P(!1)}))}}),[h,n,v,E,k]);return{assignee:x,getAssignees:M,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(57014),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),S=(0,u.Z)()("UPDATE_TASK")&&(0,m.tg)(p);(0,r.useEffect)((()=>{b(t||[])}),[t]);const C=(0,r.useCallback)((e=>{S&&(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,S]);return{comments:E,requestIsInProgress:y,writeComment:C,readOnly:!S}}},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(57014),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(57014),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,S]=(0,r.useState)(0),[C,O]=(0,r.useState)([]),[w,P]=(0,r.useState)({}),k=(0,a.useSelector)(s.ZP.selectors.getTenant),M=(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:M,dataTenants:_,entity:n,customerTenant:k,dtssRequest:l.Rgl})),[M,_,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 S(0),O([]),void P({});null==d||d(),D((0,l.biM)(n)?L({dtssPath:M,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;S(n),(0,l.B1H)(r).length>0&&P((0,l.KPC)(r)),O(t)})).finally((()=>{null==p||p()}))}),[Z,N,M,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:C,entitiesMap:w,loadMatches:(0,r.useCallback)((()=>{A(!0)}),[A])}}},84504:(e,t,n)=>{n.d(t,{_:()=>i});var r=n(24328),a=n(52730),s=n(49885),l=n(57014),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,r.useState)(!1);return{isPending:h,sendMergeAllRequest:(0,r.useCallback)((()=>{null==u||u(),v(!0);const e={dtssPath:g,customerTenant:f,entity:n,entities:t};((0,l.biM)(n)?(0,l.uJQ)(e):(0,l.OxG)(e)).then((()=>{null==m||m()})).catch(p).finally((()=>{null==i||i(),d.current&&v(!1)}))}),[g,t,n,p,i,u,m,f])}}},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=>{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,savedState:o[l],updateSavedState:d}}},17554:(e,t,n)=>{n.d(t,{U:()=>o});var r=n(24328),a=n(52730),s=n(57014),l=n(49885);const o=()=>{const[e,t]=(0,r.useState)([]),n=(0,a.useSelector)(l.ZP.selectors.getTenant),o=(0,a.useSelector)(l.ZP.selectors.getServicesPath),c=e=>{console.warn("Users error",e),t([])};return(0,r.useEffect)((()=>{(0,s.kz_)({tenant:n,servicesPath:o}).then((e=>t(e))).catch(c)}),[n,o]),e}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[2491],{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(27950),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(27950),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(84504);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:()=>P});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 S=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})}))};S.propTypes={comments:i().arrayOf(i().shape({author:i().string,id:i().string,message:i().string,time:i().number}))};var C=n(43477),O=n(22385);const w=e=>e.target.value,P=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,C.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(S,{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}))};P.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:()=>o});var r=n(87918),a=n.n(r),s=n(27950),l=n(585);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{errorMessage:t,errorCode:n}=e;n!==s.Xt7.WORKFLOW_IS_NOT_REGISTERED_ERROR&&(console.error(e),l.Z.addError({title:a().text("Error"),message:t||a().text("Something went wrong...")}))}},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(27950),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(27950),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,S]=(0,r.useState)(null),[C,O]=(0,r.useState)(),[w,P]=(0,r.useState)(!1),k=(0,m.Z)()("UPDATE_TASK")&&(0,p.tg)(f);(0,r.useEffect)((()=>{S(d(t))}),[t]);const M=(0,r.useCallback)((e=>{if(h&&k&&n){const t=(0,a.filter)((t=>t.value.toLowerCase().includes(e)));return C?Promise.resolve(t(C)):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,C,O,k]),_=(0,r.useCallback)((e=>{if(h&&k&&n){const{value:t}=e;P(!0),b((0,l._C4)({taskId:n,workflowPath:h,environment:v,tenant:E,assignee:t})).then((()=>{S(d(t)),null==g||g(n,{assignee:t})})).catch(u.R).finally((()=>{P(!1)}))}}),[h,n,v,E,k]);return{assignee:x,getAssignees:M,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(27950),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),S=(0,u.Z)()("UPDATE_TASK")&&(0,m.tg)(p);(0,r.useEffect)((()=>{b(t||[])}),[t]);const C=(0,r.useCallback)((e=>{S&&(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,S]);return{comments:E,requestIsInProgress:y,writeComment:C,readOnly:!S}}},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(27950),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(27950),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,S]=(0,r.useState)(0),[C,O]=(0,r.useState)([]),[w,P]=(0,r.useState)({}),k=(0,a.useSelector)(s.ZP.selectors.getTenant),M=(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:M,dataTenants:_,entity:n,customerTenant:k,dtssRequest:l.Rgl})),[M,_,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 S(0),O([]),void P({});null==d||d(),D((0,l.biM)(n)?L({dtssPath:M,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;S(n),(0,l.B1H)(r).length>0&&P((0,l.KPC)(r)),O(t)})).finally((()=>{null==p||p()}))}),[Z,N,M,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:C,entitiesMap:w,loadMatches:(0,r.useCallback)((()=>{A(!0)}),[A])}}},84504:(e,t,n)=>{n.d(t,{_:()=>i});var r=n(24328),a=n(52730),s=n(49885),l=n(27950),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,r.useState)(!1);return{isPending:h,sendMergeAllRequest:(0,r.useCallback)((()=>{null==u||u(),v(!0);const e={dtssPath:g,customerTenant:f,entity:n,entities:t};((0,l.biM)(n)?(0,l.uJQ)(e):(0,l.OxG)(e)).then((()=>{null==m||m()})).catch(p).finally((()=>{null==i||i(),d.current&&v(!1)}))}),[g,t,n,p,i,u,m,f])}}},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=>{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,savedState:o[l],updateSavedState:d}}},17554:(e,t,n)=>{n.d(t,{U:()=>o});var r=n(24328),a=n(52730),s=n(27950),l=n(49885);const o=()=>{const[e,t]=(0,r.useState)([]),n=(0,a.useSelector)(l.ZP.selectors.getTenant),o=(0,a.useSelector)(l.ZP.selectors.getServicesPath),c=e=>{console.warn("Users error",e),t([])};return(0,r.useEffect)((()=>{(0,s.kz_)({tenant:n,servicesPath:o}).then((e=>t(e))).catch(c)}),[n,o]),e}}}]);
|
|
2
2
|
//# sourceMappingURL=2491.js.map
|
package/2890.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[2890],{67486:(e,t,r)=>{r.d(t,{d:()=>o});var a=r(24328),n=r(57014),l=r(56764);const o=e=>{let{filter:t,max:r,offset:o}=e;return(0,a.useCallback)((async()=>{const e=(0,l.U)(t),a=await(0,n.qF1)({filter:e,max:r,offset:o}),{total:i}=await(0,n._X$)({filter:e});return{data:a,total:i}}),[t,r,o])}},40801:(e,t,r)=>{r.d(t,{Z:()=>u});var a=r(24328),n=r.n(a),l=r(2899),o=r(57014);var i=r(80001),c=r(99256);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},s.apply(this,arguments)}const u=e=>{let{width:t,height:r,data:a,options:u={},onItemClick:h}=e;const{barChart:p,cartesianGrid:d,bar:m,tooltip:g,xAxis:f,yAxis:y}=(e=>{let{margin:t,isHorizontal:r,isLabelRotated:a}=e;return{barChart:{layout:r?"vertical":"horizontal",barCategoryGap:"30%",margin:t},bar:{dataKey:"value",fill:r?"#9FC3FF":"#0072CE"},xAxis:{type:r?"number":"category",dataKey:r?"":"label",tick:{fill:"#000",opacity:"0.54"},angle:a?-45:0,textAnchor:a?"end":"middle",stroke:"#666"},yAxis:{dataKey:r?"label":"",type:r?"category":"number",tick:{fill:"#000",opacity:r?"0.87":"0.54",width:r?150:void 0},tickFormatter:o.k7L,stroke:"#666",tickCount:8,mirror:r},cartesianGrid:{strokeDasharray:"3 3",stroke:"#666",strokeOpacity:"0.4",vertical:!r},tooltip:{cursor:{fill:"#000",opacity:"0.1"}}}})(u),b=h&&(e=>{let{group:t}=e;return h(t)}),v=(0,c.d)(b);return n().createElement(l.vz,s({width:t,height:r,data:a},p),n().createElement(l.q3,d),n().createElement(l.u,s({content:n().createElement(i.W,null)},g)),n().createElement(l.$Q,s({},m,{shape:n().createElement(l.Ae,{className:v}),onClick:b})),n().createElement(l.Kc,f),n().createElement(l.B2,y))}},66675:(e,t,r)=>{r.d(t,{Z:()=>G});var a=r(24328),n=r.n(a),l=r(40801),o=r(79527),i=r(3292),c=r(83535),s=r(2899),u=r(62097),h=r(84123);var p=r(22279);function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){m(e,t,r[t])}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=r(84900),f=r(17440),y=r(57014),b=r(80001);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 E=()=>{const[e,t]=(0,a.useState)({active:!1});return{tooltipState:e,showTooltip:(0,a.useCallback)(((e,r)=>{t({active:!0,label:e.label,coordinate:r,payload:[{value:e.value,payload:e,name:e.label}]})}),[]),hideTooltip:(0,a.useCallback)((()=>{t((e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){v(e,t,r[t])}))}return e}({},e,{active:!1})))}),[])}};var w=r(79692);const x=(0,w.Z)({bubbleChart:{position:"relative",cursor:"default"}});var O=r(99256);function k(){return k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},k.apply(this,arguments)}const C=(0,g.Z)((e=>{let{width:t,height:r,data:l,options:o={},onItemClick:i}=e;const c=x(),{showLegend:m=!0,margin:g}=o,v={x:(0,f.propOr)(0,"left",g),y:(0,f.propOr)(0,"top",g),width:t-(0,f.propOr)(0,"left",g)-(0,f.propOr)(0,"right",g),height:r-(0,f.propOr)(0,"top",g)-(0,f.propOr)(0,"bottom",g)},w=(0,p.Z)(t),[C,j]=(0,a.useState)({width:0,height:0}),{rect:P,legendProps:S}=((e,t,r)=>{const{layout:a}=t;return"vertical"===a?{rect:d({},e,{width:e.width-r.width}),legendProps:t}:"horizontal"===a?{rect:d({},e,{height:e.height-r.height}),legendProps:d({},t,{width:e.width})}:{rect:e,legendProps:t}})(v,w,C),N=(e=>{let{data:t,width:r,height:n}=e;return(0,a.useMemo)((()=>0===r||0===n?[]:(0,u.Z)().size([r,n]).padding(2)((0,h.ZP)({children:t}).sum((e=>e.value)).sort(((e,t)=>t.value-e.value))).leaves()),[t,n,r])})({data:l,width:P.width,height:P.height}),{tooltipState:R,showTooltip:W,hideTooltip:A}=E(),D=(0,O.d)(i),Z=(0,a.useMemo)((()=>N.map((e=>{const t=P.x+e.x,r=P.y+e.y;return n().createElement("circle",{key:e.data.label,cx:t,cy:r,r:e.r,onMouseEnter:()=>W(e.data,{x:t,y:r}),onMouseLeave:()=>A(),onClick:i&&(()=>i(e.data.group)),fill:(0,y.f4_)(e.data.label),className:D},n().createElement("animate",{attributeName:"r",from:0,to:e.r,dur:"0.5s"}))}))),[N,A,P.x,P.y,W,i,D]);return n().createElement("div",{className:c.bubbleChart,style:{width:t,height:r}},n().createElement("svg",{width:t,height:r},Z),m&&n().createElement(s.De,k({},S,{payload:(l||[]).map((e=>({id:e.label,type:"square",color:(0,y.f4_)(e.label),value:`${e.label} (${e.percent}%)`}))),chartWidth:t,chartHeight:r,margin:g,onBBoxUpdate:j})),n().createElement(s.u,k({viewBox:P,content:n().createElement(b.W,null)},R)))}));function j(){return j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},j.apply(this,arguments)}const P=e=>{let{payload:t,onClick:r}=e,a=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},l=Object.keys(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,["payload","onClick"]);const l=(0,O.d)(r);return n().createElement(s.oT,j({className:l,payload:t,onClick:r&&(()=>r(t.group))},a))},S=e=>{let{width:t,height:r,data:a,options:l={},onItemClick:o}=e;const{cartesianGrid:i,tooltip:c,xAxis:u,yAxis:h,lineChart:p,line:d}=(e=>{let{margin:t,isLabelRotated:r}=e;return{lineChart:{layout:"horizontal",margin:t},xAxis:{type:"category",dataKey:"label",tick:{fill:"#000",opacity:"0.54"},angle:r?-45:0,textAnchor:r?"end":"middle",stroke:"#666"},yAxis:{dataKey:"",type:"number",tick:{fill:"#000",opacity:"0.54",width:void 0},tickFormatter:y.k7L,stroke:"#666",tickCount:8},cartesianGrid:{strokeDasharray:"3 3",stroke:"#666",strokeOpacity:"0.4"},tooltip:{cursor:{fill:"#000",opacity:"0.1"}},line:{type:"linear",dataKey:"value",stroke:"#4BAFFF",strokeWidth:3,dot:{strokeWidth:2,r:5},activeDot:{strokeWidth:2,r:5,stroke:"#4BAFFF"}}}})(l);return n().createElement(s.wW,j({width:t,height:r,data:a},p),n().createElement(s.q3,i),n().createElement(s.Kc,u),n().createElement(s.B2,h),n().createElement(s.u,j({content:n().createElement(b.W,null)},c)),n().createElement(s.x1,j({},d,{activeDot:n().createElement(P,j({},d.activeDot,{onClick:o}))})))};var N=r(27865),R=r(40098),W=r(98842),A=r(78854);var D=r(94079),Z=r(71153),M=r.n(Z);const z=(0,w.Z)((e=>({legendContainer:e=>{let{width:t}=e;return{width:`${t}px`,top:"5%",height:"90%",position:"relative"}},alignTop:{top:0},alignBottom:{bottom:0},legendBar:e=>{let{colors:t}=e;return{background:`linear-gradient(to top, ${t.join(", ")})`,width:"15px",position:"absolute",top:0,right:0,bottom:0}},legendLabel:t=>{let{width:r}=t;return{position:"absolute",fontSize:"13px",lineHeight:"15px",fontWeight:"normal",color:e.palette.text.primary,width:r-15+"px",textAlign:"right",right:"15px",paddingRight:"10px",boxSizing:"border-box",overflowWrap:"break-word"}}}))),L=e=>{let{minValue:t,maxValue:r,colors:a,width:l}=e;const o=z({colors:a,width:l});return n().createElement("div",{className:o.legendContainer},n().createElement(D.Typography,{className:M()(o.legendLabel,o.alignTop)},(0,y.k7L)(r)),n().createElement("div",{className:o.legendBar}),n().createElement(D.Typography,{className:M()(o.legendLabel,o.alignBottom)},(0,y.k7L)(t)))},$=(0,w.Z)({mapChart:{position:"relative",cursor:"default",display:"flex"},geography:{"&:focus":{outline:"none"}}});function B(){return B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},B.apply(this,arguments)}const F=["#CDE0FE","#0160AD"],T=(0,g.Z)((e=>{let{data:t,width:r,height:l,options:o,onItemClick:i}=e;const c=$(),{geoUrl:u,geoIdName:h,showLegend:p=!0}=o||{},d=(0,f.pluck)("value",t),m=Math.min(...d),g=Math.max(...d),y=r<75?0:r-75*(p?1:0),v=(0,R.Z)().domain([m,g]).range(F),w=(e=>{const[t,r]=(0,a.useState)(null);return(0,a.useEffect)((()=>{fetch(e).then((e=>{if(!e.ok)throw Error(e.statusText);return e.json()})).then((e=>{r(e)})).catch((t=>{console.warn(`Could not load map ${e} :`,t)}))}),[]),t})(u||"https://s3.amazonaws.com/reltio-ui-files/map_resources/us-albers.json"),x=u?o.projection:"geoAlbersUsa",k=(0,a.useMemo)((()=>w?W[x||"geoEqualEarth"]().fitSize([y,l],(0,A.Z)(w,w.objects[Object.keys(w.objects)[0]])):void 0),[w,y,l,x]),{tooltipState:C,showTooltip:j,hideTooltip:P}=E(),S=(0,O.d)(i);return n().createElement("div",{className:c.mapChart,style:{width:r,height:l}},n().createElement(N.MapProvider,{width:y,height:l,projection:k,projectionConfig:{}},n().createElement("svg",{width:y,height:l,viewBox:`0 0 ${y} ${l}`,className:"rsm-svg"},n().createElement(N.Geographies,{geography:w},(e=>{let{geographies:r}=e;return r.map((e=>{const r=e.properties[h||"name"],a=e.properties.name,l=t.find((e=>{let{group:t}=e;return t===r}));return n().createElement(N.Geography,{key:e.rsmKey,geography:e,fill:l?v(l.value):"#EEE",stroke:"#FFF",className:M()(c.geography,S),onMouseEnter:e=>{const t=l||{label:a,value:0,percent:0,group:r},n=e.target.parentElement.parentElement.getBoundingClientRect(),o={x:e.clientX-n.x,y:e.clientY-n.y};j(t,o)},onMouseLeave:()=>P(),onClick:i&&(()=>i(r))})}))})))),p&&n().createElement(L,{width:75,minValue:m,maxValue:g,colors:F}),n().createElement(s.u,B({viewBox:{x:0,y:0,width:y,height:l},content:n().createElement(b.W,null)},C)))}));var I=r(71641),V=r.n(I);const K=(0,w.Z)({container:{position:"relative","& text":{transition:"transform .5s",userSelect:"none",animation:"$fadeInOpacity ease-in","&:nth-child(4n+1)":{animationDuration:"0.25s"},"&:nth-child(4n+2)":{animationDuration:"1.5s"},"&:nth-child(4n+3)":{animationDuration:"1s"},"&:nth-child(4n+4)":{animationDuration:"0.5s"}}},"@keyframes fadeInOpacity":{"0%":{opacity:0},"100%":{opacity:1}}});function H(){return H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},H.apply(this,arguments)}const X=(0,g.Z)((e=>{let{width:t,height:r,data:l,options:o={},onItemClick:i}=e;const{tooltipState:c,showTooltip:u,hideTooltip:h}=E(),{maxFontSize:p}=o,d=K(),m=(0,O.d)(i),g=(0,a.useMemo)((()=>({x:0,y:0,width:t||0,height:r||0})),[t,r]),f=(e=>{let{data:t,width:r,height:n,maxFontSize:l=40}=e;return(0,a.useMemo)((()=>{if(!r||!n)return[];const e=t.map((e=>e.value)),a=Math.min(...e),o=Math.max(...e),i=Math.log(12),c=(Math.log(l)-i)/(o-a||1);return V()().size([r,n]).words(t.map((e=>({text:e.label,size:Math.floor(Math.exp(i+c*(e.value-a))),font:"Roboto",data:e})))).random((()=>.5)).fontSize((e=>e.size)).rotate(0).padding(3).start().words()}),[t,r,n,l])})({data:l,width:t,height:r,maxFontSize:p}),v=(0,a.useMemo)((()=>{const e=g.width/2,t=g.height/2;return n().createElement("g",{transform:`translate(${e},${t})`},f.map((r=>{let{text:a,data:l,x:o,y:c,size:s}=r;return n().createElement("text",{key:a,onMouseEnter:()=>u(l,{x:e+o,y:t+c}),onMouseLeave:()=>h(),fill:(0,y.f4_)(a),textAnchor:"middle",transform:`translate(${o},${c})`,fontSize:s,className:m,onClick:i&&(()=>i(l.group))},a)})))}),[g.width,g.height,f,m,i,u,h]);return n().createElement("div",{className:d.container},n().createElement("svg",{width:g.width,height:g.height},v),n().createElement(s.u,H({offset:5,viewBox:g,content:n().createElement(b.W,null)},c)))}));function _(){return _=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_.apply(this,arguments)}class G{static build(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e){case y.$XE.BAR:return n().createElement(l.Z,t);case y.$XE.DONUT:return n().createElement(o.Z,_({},t,{isDonut:!0}));case y.$XE.PIE:return n().createElement(o.Z,t);case y.$XE.TREE:return n().createElement(i.Z,t);case y.$XE.TABLE:return n().createElement(c.Z,t);case y.$XE.BUBBLE:return n().createElement(C,t);case y.$XE.LINE:return n().createElement(S,t);case y.$XE.MAP:return n().createElement(T,t);case y.$XE.CLOUD:return n().createElement(X,t);default:return n().createElement("div",null)}}}},22279:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(24328),n=r.n(a),l=r(71153),o=r.n(l);const i=(0,r(79692).Z)({wrapper:{width:"100%",display:"flex",justifyContent:"center",margin:"auto",flexWrap:"wrap","&.alignRight":{display:"grid",gridAutoRows:"min-content",gridTemplateColumns:"1fr","&.isTwoCols":{gridTemplateColumns:"1fr 1fr",minWidth:"141px",maxWidth:"282px"}}},item:{display:"flex",alignItems:"baseline","&:not(:last-child)":{marginRight:10}},itemColor:{width:12,height:12,marginRight:10,flexShrink:0},value:{fontSize:"14px",lineHeight:"27px",letterSpacing:"0.5px"}}),c=e=>{let{payload:t,alignRight:r}=e;const a=t.length>8,l=i();return n().createElement("div",{className:o()(l.wrapper,{isTwoCols:a},{alignRight:r})},t.map((e=>n().createElement("div",{key:e.id,className:l.item},n().createElement("div",{style:{background:e.color},className:l.itemColor}),n().createElement("span",{className:l.value},e.value)))))},s=e=>{const t=e>550;return{layout:t?"vertical":"horizontal",align:t?"right":"center",verticalAlign:t?"middle":"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:t?"100%":"50%",maxWidth:t?"50%":"100%"},content:n().createElement(c,{alignRight:t})}}},80001:(e,t,r)=>{r.d(t,{W:()=>i});const a=(0,r(79692).Z)({tooltipWrapper:{borderRadius:"4px",background:"rgba(0, 0, 0, 0.54)",padding:"6px 8px 7px 8px",textAlign:"center",color:"#FFFFFF","& p":{fontSize:"12px",lineHeight:"14px",padding:0,margin:0}},tooltipTitle:{fontWeight:500},tooltipValue:{fontWeight:"normal"},tooltipValueBold:{fontWeight:500},tooltipPercent:{fontWeight:"normal"}});var n=r(24328),l=r.n(n),o=r(17440);const i=e=>{var t;let{payload:r,active:n}=e;const i=a(),c=null==r||null===(t=r[0])||void 0===t?void 0:t.payload,s=(null==c?void 0:c.localizedValue)||(null==c?void 0:c.value),u=null==c?void 0:c.label,h=null==c?void 0:c.percent;return n&&l().createElement("div",{className:i.tooltipWrapper},l().createElement("p",{className:i.tooltipTitle},u),(0,o.isNil)(h)?l().createElement("p",{className:i.tooltipValue},"Value: ",s):l().createElement("p",{className:i.tooltipValueBold},s,l().createElement("span",{className:i.tooltipPercent}," (",h,"%)")))}},84900:(e,t,r)=>{r.d(t,{n:()=>s,Z:()=>u});var a=r(24328),n=r.n(a),l=r(57014),o=r(17440);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},i.apply(this,arguments)}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=e=>{const t=(0,l.QK6)((0,o.pluck)("value",e),1);return e.map(((e,r)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){c(e,t,r[t])}))}return e}({},e,{percent:t[r]})))},u=e=>{const t=t=>{let{data:r}=t,l=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},l=Object.keys(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(t,["data"]);const o=(0,a.useMemo)((()=>r&&s(r)),[r]);return n().createElement(e,i({data:o},l))};return t.displayName="WithPercents",t}},79527:(e,t,r)=>{r.d(t,{Z:()=>m});var a=r(24328),n=r.n(a),l=r(2899),o=r(57014),i=r(84900),c=r(22279);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},s.apply(this,arguments)}const u=e=>{let{cx:t,cy:r,midAngle:a,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u,fill:h,percent:p,value:d,label:m}=e;const g=Math.PI/180,f=Math.sin(-g*a),y=Math.cos(-g*a),b=t+(i+30)*y,v=r+(i+30)*f,E=b+20*(y>=0?1:-1),w=v,x=E+12*(y>=0?1:-1),O=y>=0?"start":"end",k=`M${t+(i+10)*y},${r+(i+10)*f}L${b},${v}L${E},${w}`,C={cx:t,cy:r,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u,fill:h};return n().createElement("g",null,n().createElement(l.LD,C),n().createElement(l.LD,s({},C,{innerRadius:i+6,outerRadius:i+10})),n().createElement("path",{d:k,stroke:h,fill:"none"}),n().createElement("circle",{cx:E,cy:w,r:2,fill:h}),n().createElement("text",{x,y:w,textAnchor:O,fill:"#444",fontSize:12,fontWeight:500},m),n().createElement("text",{x,y:w,dy:14,textAnchor:O,fill:"#000",opacity:.6,fontSize:12},n().createElement("tspan",{fontWeight:500},d),n().createElement("tspan",{fontWeight:400},` (${p}%)`)))};var h=r(80001),p=r(99256);function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},d.apply(this,arguments)}const m=(0,i.Z)((e=>{let{width:t,height:r,data:i,options:s={},isDonut:m,onItemClick:g}=e;const{showLegend:f=!0,margin:y,showActiveShape:b}=s,[v,E]=(0,a.useState)(-1),w=g&&(e=>{let{group:t}=e;return g(t)}),x=(0,p.d)(w);return n().createElement(l.uc,{width:t,height:r,margin:y},!b&&n().createElement(l.u,{content:n().createElement(h.W,null)}),f&&n().createElement(l.De,d({},(0,c.Z)(t),{payload:(i||[]).map((e=>({id:e.label,type:"square",color:(0,o.f4_)(e.label),value:`${e.label} (${e.percent}%)`})))})),n().createElement(l.by,{dataKey:"value",data:i,activeIndex:v,activeShape:b?u:void 0,onMouseEnter:b?(e,t)=>E(t):void 0,onMouseLeave:b?()=>E(-1):void 0,innerRadius:m?b?"50%":"60%":0,outerRadius:b?"70%":"80%",onClick:w},(i||[]).map(((e,t)=>n().createElement(l.bL,{key:t,fill:(0,o.f4_)(e.label),className:x})))))}))},83535:(e,t,r)=>{r.d(t,{Z:()=>S});var a=r(24328),n=r.n(a),l=r(87918),o=r.n(l),i=r(85709),c=r(71153),s=r.n(c),u=r(92332),h=r(95613),p=r(79692);const d={content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"},m=(0,p.Z)((e=>({headCell:{display:"flex",alignItems:"center",height:"100%","&>div":{padding:"0 16px"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden","&:after":d},attribute:{color:e.palette.text.primary,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",whiteSpace:"nowrap",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"0 16px","&:after":d},numberContainer:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px",height:"100%"},number:{fontSize:"13px",lineHeight:"15px",fontWeight:"normal",color:e.palette.text.primary,width:"40px",flexShrink:0},colorBarContainer:{position:"relative",width:"100%",marginLeft:"16px",height:"20px","&>div":{opacity:1,backgroundColor:"#0072CE"}}})));function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},g.apply(this,arguments)}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){y(e,t,r[t])}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const b=e=>{let{className:t,headCellData:r}=e,a=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},l=Object.keys(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,["className","headCellData"]);const l=m();return n().createElement("div",{className:s()(l.headCell,t)},n().createElement(u.default,g({},a,{headCellData:f({},r,{label:n().createElement(h.Z,{value:r.label},n().createElement("div",{className:l.headLabel},r.label))})})))};var v=r(32528),E=r(99256);const w=(0,v.Z)(((e,t)=>{let{onItemClick:r}=e,{rowValue:{group:a}}=t;return{onClick:r&&(()=>{r(a)})}}))((e=>{let{value:t="",onClick:r}=e;const a=m(),l=(0,E.d)(r);return n().createElement(h.Z,{value:t},n().createElement("div",{className:s()(a.attribute,l),onClick:r},t))}));var x=r(17440),O=r(57014),k=r(94079),C=r(43290);const j=e=>{let{value:t,columnData:{maxValue:r}}=e;const a=m();return n().createElement("div",{className:a.numberContainer},n().createElement(k.Typography,{className:a.number},(0,O.k7L)(t,9999)),!(0,x.isNil)(r)&&n().createElement("div",{className:a.colorBarContainer},n().createElement(C.Z,{width:t,maxWidth:r})))},P=(0,p.Z)({tableContainer:e=>{let{width:t,height:r}=e;return{height:r,width:t,display:"flex",flexDirection:"column"}},cellBorder:{borderLeft:"none",borderRight:"none"}}),S=e=>{let{width:t,height:r,data:l,options:c={},basicTableRef:s,onItemClick:u}=e;const h=P({width:t,height:r}),{headers:[p,d]=[],showValues:m=!0}=c,g=(0,a.useMemo)((()=>({cellBorder:h.cellBorder})),[h]),f=(0,a.useMemo)((()=>Math.max(...l.map((e=>e.value)))),[l]),y=(0,a.useMemo)((()=>[{id:"label",label:p||o().text("Attributes"),resizable:!1,headCellRenderer:b,rowCellValueRenderer:w,initialWidth:.4*t},...m?[{id:"value",label:d||o().text("No of Profiles"),resizable:!1,headCellRenderer:b,rowCellValueRenderer:j,maxValue:f,initialWidth:.6*t}]:[]]),[f,t,d,p,m]),v=(0,a.useMemo)((()=>({onItemClick:u})),[u]);return n().createElement("div",{className:h.tableContainer},n().createElement(i.Z,{columnsData:y,rowsData:l,headRowHeight:48,getRowCellHeight:null,classes:g,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:s,context:v}))}},3292:(e,t,r)=>{r.d(t,{Z:()=>m});var a=r(24328),n=r.n(a),l=r(2899),o=r(80001);const i=(0,r(79692).Z)({treeBlock:{fill:"#6BAED6",stroke:"#fff",strokeOpacity:1},treeLabel:{fill:"black",fontSize:"14px",letterSpacing:0}});var c=r(99256),s=r(58697),u=r.n(s);function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const p=e=>{let{x:t,y:r,width:o,height:s,label:h,onClick:p,group:d}=e;const m=i(),g=(0,c.d)(p),f=(0,a.useRef)(u()()).current;return n().createElement("g",{className:g,onClick:p&&(()=>p(d))},n().createElement("clipPath",{id:f},n().createElement("rect",{x:t+2,y:r+2,width:o-4,height:s-4})),n().createElement("rect",{x:t,y:r,width:o,height:s,strokeWidth:2,className:m.treeBlock}),n().createElement(l.xv,{clipPath:`url(#${f})`,textAnchor:"middle",verticalAnchor:"middle",width:o,x:t+o/2,y:r+s/2,className:m.treeLabel},h))},d=e=>{const t=e.reduce(((e,t)=>e+t.value),0)/(10*e.length);return e.map((e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){h(e,t,r[t])}))}return e}({},e,{normalizedValue:e.value<t?t:e.value})))},m=e=>{let{data:t,width:r,height:a,onItemClick:i}=e;return n().createElement(l.WB,{dataKey:"normalizedValue",nameKey:"label",content:n().createElement(p,{onClick:i}),data:d(t),width:r,animationDuration:500,height:a},n().createElement(l.u,{content:n().createElement(o.W,null)}))}},99256:(e,t,r)=>{r.d(t,{d:()=>n});const a=(0,r(79692).Z)({clickable:{cursor:"pointer"}}),n=e=>{const t=a();return e?t.clickable:void 0}},98884:(e,t,r)=>{r.d(t,{DX:()=>c,Hc:()=>s,T:()=>u});var a=r(24328),n=r.n(a),l=r(67885);const o=(0,a.createContext)(null),i=(0,a.createContext)(null),c=e=>{let{children:t}=e;const[r,l]=(0,a.useState)(0),c=(0,a.useCallback)((()=>{l((e=>e+1))}),[l]);return n().createElement(i.Provider,{value:c},n().createElement(o.Provider,{value:r},t))},s=()=>{const e=(0,a.useContext)(i);if(void 0===e)throw new Error("useReloadAllFacets must be used within a ReloadFacetProvider");return e},u=e=>{let{state:t,reload:r}=e;const n=(0,a.useContext)(o);if(void 0===n)throw new Error("useReloadFacet must be used within a ReloadFacetProvider");(0,a.useEffect)((()=>{t!==l.o.LOADED&&t!==l.o.ERROR||r()}),[n])}},56259:(e,t,r)=>{r.d(t,{I:()=>n});var a=r(24328);const n=r.n(a)().createContext([]);n.displayName="SearchFiltersContext"}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[2890],{67486:(e,t,r)=>{r.d(t,{d:()=>o});var a=r(24328),n=r(27950),l=r(56764);const o=e=>{let{filter:t,max:r,offset:o}=e;return(0,a.useCallback)((async()=>{const e=(0,l.U)(t),a=await(0,n.qF1)({filter:e,max:r,offset:o}),{total:i}=await(0,n._X$)({filter:e});return{data:a,total:i}}),[t,r,o])}},40801:(e,t,r)=>{r.d(t,{Z:()=>u});var a=r(24328),n=r.n(a),l=r(2899),o=r(27950);var i=r(80001),c=r(99256);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},s.apply(this,arguments)}const u=e=>{let{width:t,height:r,data:a,options:u={},onItemClick:h}=e;const{barChart:p,cartesianGrid:d,bar:m,tooltip:g,xAxis:f,yAxis:y}=(e=>{let{margin:t,isHorizontal:r,isLabelRotated:a}=e;return{barChart:{layout:r?"vertical":"horizontal",barCategoryGap:"30%",margin:t},bar:{dataKey:"value",fill:r?"#9FC3FF":"#0072CE"},xAxis:{type:r?"number":"category",dataKey:r?"":"label",tick:{fill:"#000",opacity:"0.54"},angle:a?-45:0,textAnchor:a?"end":"middle",stroke:"#666"},yAxis:{dataKey:r?"label":"",type:r?"category":"number",tick:{fill:"#000",opacity:r?"0.87":"0.54",width:r?150:void 0},tickFormatter:o.k7L,stroke:"#666",tickCount:8,mirror:r},cartesianGrid:{strokeDasharray:"3 3",stroke:"#666",strokeOpacity:"0.4",vertical:!r},tooltip:{cursor:{fill:"#000",opacity:"0.1"}}}})(u),b=h&&(e=>{let{group:t}=e;return h(t)}),v=(0,c.d)(b);return n().createElement(l.vz,s({width:t,height:r,data:a},p),n().createElement(l.q3,d),n().createElement(l.u,s({content:n().createElement(i.W,null)},g)),n().createElement(l.$Q,s({},m,{shape:n().createElement(l.Ae,{className:v}),onClick:b})),n().createElement(l.Kc,f),n().createElement(l.B2,y))}},66675:(e,t,r)=>{r.d(t,{Z:()=>G});var a=r(24328),n=r.n(a),l=r(40801),o=r(79527),i=r(3292),c=r(83535),s=r(2899),u=r(62097),h=r(84123);var p=r(22279);function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){m(e,t,r[t])}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=r(84900),f=r(17440),y=r(27950),b=r(80001);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 E=()=>{const[e,t]=(0,a.useState)({active:!1});return{tooltipState:e,showTooltip:(0,a.useCallback)(((e,r)=>{t({active:!0,label:e.label,coordinate:r,payload:[{value:e.value,payload:e,name:e.label}]})}),[]),hideTooltip:(0,a.useCallback)((()=>{t((e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){v(e,t,r[t])}))}return e}({},e,{active:!1})))}),[])}};var w=r(79692);const x=(0,w.Z)({bubbleChart:{position:"relative",cursor:"default"}});var O=r(99256);function k(){return k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},k.apply(this,arguments)}const C=(0,g.Z)((e=>{let{width:t,height:r,data:l,options:o={},onItemClick:i}=e;const c=x(),{showLegend:m=!0,margin:g}=o,v={x:(0,f.propOr)(0,"left",g),y:(0,f.propOr)(0,"top",g),width:t-(0,f.propOr)(0,"left",g)-(0,f.propOr)(0,"right",g),height:r-(0,f.propOr)(0,"top",g)-(0,f.propOr)(0,"bottom",g)},w=(0,p.Z)(t),[C,j]=(0,a.useState)({width:0,height:0}),{rect:P,legendProps:S}=((e,t,r)=>{const{layout:a}=t;return"vertical"===a?{rect:d({},e,{width:e.width-r.width}),legendProps:t}:"horizontal"===a?{rect:d({},e,{height:e.height-r.height}),legendProps:d({},t,{width:e.width})}:{rect:e,legendProps:t}})(v,w,C),N=(e=>{let{data:t,width:r,height:n}=e;return(0,a.useMemo)((()=>0===r||0===n?[]:(0,u.Z)().size([r,n]).padding(2)((0,h.ZP)({children:t}).sum((e=>e.value)).sort(((e,t)=>t.value-e.value))).leaves()),[t,n,r])})({data:l,width:P.width,height:P.height}),{tooltipState:R,showTooltip:W,hideTooltip:A}=E(),D=(0,O.d)(i),Z=(0,a.useMemo)((()=>N.map((e=>{const t=P.x+e.x,r=P.y+e.y;return n().createElement("circle",{key:e.data.label,cx:t,cy:r,r:e.r,onMouseEnter:()=>W(e.data,{x:t,y:r}),onMouseLeave:()=>A(),onClick:i&&(()=>i(e.data.group)),fill:(0,y.f4_)(e.data.label),className:D},n().createElement("animate",{attributeName:"r",from:0,to:e.r,dur:"0.5s"}))}))),[N,A,P.x,P.y,W,i,D]);return n().createElement("div",{className:c.bubbleChart,style:{width:t,height:r}},n().createElement("svg",{width:t,height:r},Z),m&&n().createElement(s.De,k({},S,{payload:(l||[]).map((e=>({id:e.label,type:"square",color:(0,y.f4_)(e.label),value:`${e.label} (${e.percent}%)`}))),chartWidth:t,chartHeight:r,margin:g,onBBoxUpdate:j})),n().createElement(s.u,k({viewBox:P,content:n().createElement(b.W,null)},R)))}));function j(){return j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},j.apply(this,arguments)}const P=e=>{let{payload:t,onClick:r}=e,a=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},l=Object.keys(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,["payload","onClick"]);const l=(0,O.d)(r);return n().createElement(s.oT,j({className:l,payload:t,onClick:r&&(()=>r(t.group))},a))},S=e=>{let{width:t,height:r,data:a,options:l={},onItemClick:o}=e;const{cartesianGrid:i,tooltip:c,xAxis:u,yAxis:h,lineChart:p,line:d}=(e=>{let{margin:t,isLabelRotated:r}=e;return{lineChart:{layout:"horizontal",margin:t},xAxis:{type:"category",dataKey:"label",tick:{fill:"#000",opacity:"0.54"},angle:r?-45:0,textAnchor:r?"end":"middle",stroke:"#666"},yAxis:{dataKey:"",type:"number",tick:{fill:"#000",opacity:"0.54",width:void 0},tickFormatter:y.k7L,stroke:"#666",tickCount:8},cartesianGrid:{strokeDasharray:"3 3",stroke:"#666",strokeOpacity:"0.4"},tooltip:{cursor:{fill:"#000",opacity:"0.1"}},line:{type:"linear",dataKey:"value",stroke:"#4BAFFF",strokeWidth:3,dot:{strokeWidth:2,r:5},activeDot:{strokeWidth:2,r:5,stroke:"#4BAFFF"}}}})(l);return n().createElement(s.wW,j({width:t,height:r,data:a},p),n().createElement(s.q3,i),n().createElement(s.Kc,u),n().createElement(s.B2,h),n().createElement(s.u,j({content:n().createElement(b.W,null)},c)),n().createElement(s.x1,j({},d,{activeDot:n().createElement(P,j({},d.activeDot,{onClick:o}))})))};var N=r(27865),R=r(40098),W=r(98842),A=r(78854);var D=r(94079),Z=r(71153),M=r.n(Z);const z=(0,w.Z)((e=>({legendContainer:e=>{let{width:t}=e;return{width:`${t}px`,top:"5%",height:"90%",position:"relative"}},alignTop:{top:0},alignBottom:{bottom:0},legendBar:e=>{let{colors:t}=e;return{background:`linear-gradient(to top, ${t.join(", ")})`,width:"15px",position:"absolute",top:0,right:0,bottom:0}},legendLabel:t=>{let{width:r}=t;return{position:"absolute",fontSize:"13px",lineHeight:"15px",fontWeight:"normal",color:e.palette.text.primary,width:r-15+"px",textAlign:"right",right:"15px",paddingRight:"10px",boxSizing:"border-box",overflowWrap:"break-word"}}}))),L=e=>{let{minValue:t,maxValue:r,colors:a,width:l}=e;const o=z({colors:a,width:l});return n().createElement("div",{className:o.legendContainer},n().createElement(D.Typography,{className:M()(o.legendLabel,o.alignTop)},(0,y.k7L)(r)),n().createElement("div",{className:o.legendBar}),n().createElement(D.Typography,{className:M()(o.legendLabel,o.alignBottom)},(0,y.k7L)(t)))},$=(0,w.Z)({mapChart:{position:"relative",cursor:"default",display:"flex"},geography:{"&:focus":{outline:"none"}}});function B(){return B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},B.apply(this,arguments)}const F=["#CDE0FE","#0160AD"],T=(0,g.Z)((e=>{let{data:t,width:r,height:l,options:o,onItemClick:i}=e;const c=$(),{geoUrl:u,geoIdName:h,showLegend:p=!0}=o||{},d=(0,f.pluck)("value",t),m=Math.min(...d),g=Math.max(...d),y=r<75?0:r-75*(p?1:0),v=(0,R.Z)().domain([m,g]).range(F),w=(e=>{const[t,r]=(0,a.useState)(null);return(0,a.useEffect)((()=>{fetch(e).then((e=>{if(!e.ok)throw Error(e.statusText);return e.json()})).then((e=>{r(e)})).catch((t=>{console.warn(`Could not load map ${e} :`,t)}))}),[]),t})(u||"https://s3.amazonaws.com/reltio-ui-files/map_resources/us-albers.json"),x=u?o.projection:"geoAlbersUsa",k=(0,a.useMemo)((()=>w?W[x||"geoEqualEarth"]().fitSize([y,l],(0,A.Z)(w,w.objects[Object.keys(w.objects)[0]])):void 0),[w,y,l,x]),{tooltipState:C,showTooltip:j,hideTooltip:P}=E(),S=(0,O.d)(i);return n().createElement("div",{className:c.mapChart,style:{width:r,height:l}},n().createElement(N.MapProvider,{width:y,height:l,projection:k,projectionConfig:{}},n().createElement("svg",{width:y,height:l,viewBox:`0 0 ${y} ${l}`,className:"rsm-svg"},n().createElement(N.Geographies,{geography:w},(e=>{let{geographies:r}=e;return r.map((e=>{const r=e.properties[h||"name"],a=e.properties.name,l=t.find((e=>{let{group:t}=e;return t===r}));return n().createElement(N.Geography,{key:e.rsmKey,geography:e,fill:l?v(l.value):"#EEE",stroke:"#FFF",className:M()(c.geography,S),onMouseEnter:e=>{const t=l||{label:a,value:0,percent:0,group:r},n=e.target.parentElement.parentElement.getBoundingClientRect(),o={x:e.clientX-n.x,y:e.clientY-n.y};j(t,o)},onMouseLeave:()=>P(),onClick:i&&(()=>i(r))})}))})))),p&&n().createElement(L,{width:75,minValue:m,maxValue:g,colors:F}),n().createElement(s.u,B({viewBox:{x:0,y:0,width:y,height:l},content:n().createElement(b.W,null)},C)))}));var I=r(71641),V=r.n(I);const K=(0,w.Z)({container:{position:"relative","& text":{transition:"transform .5s",userSelect:"none",animation:"$fadeInOpacity ease-in","&:nth-child(4n+1)":{animationDuration:"0.25s"},"&:nth-child(4n+2)":{animationDuration:"1.5s"},"&:nth-child(4n+3)":{animationDuration:"1s"},"&:nth-child(4n+4)":{animationDuration:"0.5s"}}},"@keyframes fadeInOpacity":{"0%":{opacity:0},"100%":{opacity:1}}});function H(){return H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},H.apply(this,arguments)}const X=(0,g.Z)((e=>{let{width:t,height:r,data:l,options:o={},onItemClick:i}=e;const{tooltipState:c,showTooltip:u,hideTooltip:h}=E(),{maxFontSize:p}=o,d=K(),m=(0,O.d)(i),g=(0,a.useMemo)((()=>({x:0,y:0,width:t||0,height:r||0})),[t,r]),f=(e=>{let{data:t,width:r,height:n,maxFontSize:l=40}=e;return(0,a.useMemo)((()=>{if(!r||!n)return[];const e=t.map((e=>e.value)),a=Math.min(...e),o=Math.max(...e),i=Math.log(12),c=(Math.log(l)-i)/(o-a||1);return V()().size([r,n]).words(t.map((e=>({text:e.label,size:Math.floor(Math.exp(i+c*(e.value-a))),font:"Roboto",data:e})))).random((()=>.5)).fontSize((e=>e.size)).rotate(0).padding(3).start().words()}),[t,r,n,l])})({data:l,width:t,height:r,maxFontSize:p}),v=(0,a.useMemo)((()=>{const e=g.width/2,t=g.height/2;return n().createElement("g",{transform:`translate(${e},${t})`},f.map((r=>{let{text:a,data:l,x:o,y:c,size:s}=r;return n().createElement("text",{key:a,onMouseEnter:()=>u(l,{x:e+o,y:t+c}),onMouseLeave:()=>h(),fill:(0,y.f4_)(a),textAnchor:"middle",transform:`translate(${o},${c})`,fontSize:s,className:m,onClick:i&&(()=>i(l.group))},a)})))}),[g.width,g.height,f,m,i,u,h]);return n().createElement("div",{className:d.container},n().createElement("svg",{width:g.width,height:g.height},v),n().createElement(s.u,H({offset:5,viewBox:g,content:n().createElement(b.W,null)},c)))}));function _(){return _=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_.apply(this,arguments)}class G{static build(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e){case y.$XE.BAR:return n().createElement(l.Z,t);case y.$XE.DONUT:return n().createElement(o.Z,_({},t,{isDonut:!0}));case y.$XE.PIE:return n().createElement(o.Z,t);case y.$XE.TREE:return n().createElement(i.Z,t);case y.$XE.TABLE:return n().createElement(c.Z,t);case y.$XE.BUBBLE:return n().createElement(C,t);case y.$XE.LINE:return n().createElement(S,t);case y.$XE.MAP:return n().createElement(T,t);case y.$XE.CLOUD:return n().createElement(X,t);default:return n().createElement("div",null)}}}},22279:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(24328),n=r.n(a),l=r(71153),o=r.n(l);const i=(0,r(79692).Z)({wrapper:{width:"100%",display:"flex",justifyContent:"center",margin:"auto",flexWrap:"wrap","&.alignRight":{display:"grid",gridAutoRows:"min-content",gridTemplateColumns:"1fr","&.isTwoCols":{gridTemplateColumns:"1fr 1fr",minWidth:"141px",maxWidth:"282px"}}},item:{display:"flex",alignItems:"baseline","&:not(:last-child)":{marginRight:10}},itemColor:{width:12,height:12,marginRight:10,flexShrink:0},value:{fontSize:"14px",lineHeight:"27px",letterSpacing:"0.5px"}}),c=e=>{let{payload:t,alignRight:r}=e;const a=t.length>8,l=i();return n().createElement("div",{className:o()(l.wrapper,{isTwoCols:a},{alignRight:r})},t.map((e=>n().createElement("div",{key:e.id,className:l.item},n().createElement("div",{style:{background:e.color},className:l.itemColor}),n().createElement("span",{className:l.value},e.value)))))},s=e=>{const t=e>550;return{layout:t?"vertical":"horizontal",align:t?"right":"center",verticalAlign:t?"middle":"bottom",wrapperStyle:{display:"flex",overflowY:"auto",maxHeight:t?"100%":"50%",maxWidth:t?"50%":"100%"},content:n().createElement(c,{alignRight:t})}}},80001:(e,t,r)=>{r.d(t,{W:()=>i});const a=(0,r(79692).Z)({tooltipWrapper:{borderRadius:"4px",background:"rgba(0, 0, 0, 0.54)",padding:"6px 8px 7px 8px",textAlign:"center",color:"#FFFFFF","& p":{fontSize:"12px",lineHeight:"14px",padding:0,margin:0}},tooltipTitle:{fontWeight:500},tooltipValue:{fontWeight:"normal"},tooltipValueBold:{fontWeight:500},tooltipPercent:{fontWeight:"normal"}});var n=r(24328),l=r.n(n),o=r(17440);const i=e=>{var t;let{payload:r,active:n}=e;const i=a(),c=null==r||null===(t=r[0])||void 0===t?void 0:t.payload,s=(null==c?void 0:c.localizedValue)||(null==c?void 0:c.value),u=null==c?void 0:c.label,h=null==c?void 0:c.percent;return n&&l().createElement("div",{className:i.tooltipWrapper},l().createElement("p",{className:i.tooltipTitle},u),(0,o.isNil)(h)?l().createElement("p",{className:i.tooltipValue},"Value: ",s):l().createElement("p",{className:i.tooltipValueBold},s,l().createElement("span",{className:i.tooltipPercent}," (",h,"%)")))}},84900:(e,t,r)=>{r.d(t,{n:()=>s,Z:()=>u});var a=r(24328),n=r.n(a),l=r(27950),o=r(17440);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},i.apply(this,arguments)}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=e=>{const t=(0,l.QK6)((0,o.pluck)("value",e),1);return e.map(((e,r)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){c(e,t,r[t])}))}return e}({},e,{percent:t[r]})))},u=e=>{const t=t=>{let{data:r}=t,l=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},l=Object.keys(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(t,["data"]);const o=(0,a.useMemo)((()=>r&&s(r)),[r]);return n().createElement(e,i({data:o},l))};return t.displayName="WithPercents",t}},79527:(e,t,r)=>{r.d(t,{Z:()=>m});var a=r(24328),n=r.n(a),l=r(2899),o=r(27950),i=r(84900),c=r(22279);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},s.apply(this,arguments)}const u=e=>{let{cx:t,cy:r,midAngle:a,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u,fill:h,percent:p,value:d,label:m}=e;const g=Math.PI/180,f=Math.sin(-g*a),y=Math.cos(-g*a),b=t+(i+30)*y,v=r+(i+30)*f,E=b+20*(y>=0?1:-1),w=v,x=E+12*(y>=0?1:-1),O=y>=0?"start":"end",k=`M${t+(i+10)*y},${r+(i+10)*f}L${b},${v}L${E},${w}`,C={cx:t,cy:r,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u,fill:h};return n().createElement("g",null,n().createElement(l.LD,C),n().createElement(l.LD,s({},C,{innerRadius:i+6,outerRadius:i+10})),n().createElement("path",{d:k,stroke:h,fill:"none"}),n().createElement("circle",{cx:E,cy:w,r:2,fill:h}),n().createElement("text",{x,y:w,textAnchor:O,fill:"#444",fontSize:12,fontWeight:500},m),n().createElement("text",{x,y:w,dy:14,textAnchor:O,fill:"#000",opacity:.6,fontSize:12},n().createElement("tspan",{fontWeight:500},d),n().createElement("tspan",{fontWeight:400},` (${p}%)`)))};var h=r(80001),p=r(99256);function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},d.apply(this,arguments)}const m=(0,i.Z)((e=>{let{width:t,height:r,data:i,options:s={},isDonut:m,onItemClick:g}=e;const{showLegend:f=!0,margin:y,showActiveShape:b}=s,[v,E]=(0,a.useState)(-1),w=g&&(e=>{let{group:t}=e;return g(t)}),x=(0,p.d)(w);return n().createElement(l.uc,{width:t,height:r,margin:y},!b&&n().createElement(l.u,{content:n().createElement(h.W,null)}),f&&n().createElement(l.De,d({},(0,c.Z)(t),{payload:(i||[]).map((e=>({id:e.label,type:"square",color:(0,o.f4_)(e.label),value:`${e.label} (${e.percent}%)`})))})),n().createElement(l.by,{dataKey:"value",data:i,activeIndex:v,activeShape:b?u:void 0,onMouseEnter:b?(e,t)=>E(t):void 0,onMouseLeave:b?()=>E(-1):void 0,innerRadius:m?b?"50%":"60%":0,outerRadius:b?"70%":"80%",onClick:w},(i||[]).map(((e,t)=>n().createElement(l.bL,{key:t,fill:(0,o.f4_)(e.label),className:x})))))}))},83535:(e,t,r)=>{r.d(t,{Z:()=>S});var a=r(24328),n=r.n(a),l=r(87918),o=r.n(l),i=r(85709),c=r(71153),s=r.n(c),u=r(92332),h=r(95613),p=r(79692);const d={content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"},m=(0,p.Z)((e=>({headCell:{display:"flex",alignItems:"center",height:"100%","&>div":{padding:"0 16px"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden","&:after":d},attribute:{color:e.palette.text.primary,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",whiteSpace:"nowrap",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"0 16px","&:after":d},numberContainer:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px",height:"100%"},number:{fontSize:"13px",lineHeight:"15px",fontWeight:"normal",color:e.palette.text.primary,width:"40px",flexShrink:0},colorBarContainer:{position:"relative",width:"100%",marginLeft:"16px",height:"20px","&>div":{opacity:1,backgroundColor:"#0072CE"}}})));function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},g.apply(this,arguments)}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){y(e,t,r[t])}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const b=e=>{let{className:t,headCellData:r}=e,a=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},l=Object.keys(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,["className","headCellData"]);const l=m();return n().createElement("div",{className:s()(l.headCell,t)},n().createElement(u.default,g({},a,{headCellData:f({},r,{label:n().createElement(h.Z,{value:r.label},n().createElement("div",{className:l.headLabel},r.label))})})))};var v=r(32528),E=r(99256);const w=(0,v.Z)(((e,t)=>{let{onItemClick:r}=e,{rowValue:{group:a}}=t;return{onClick:r&&(()=>{r(a)})}}))((e=>{let{value:t="",onClick:r}=e;const a=m(),l=(0,E.d)(r);return n().createElement(h.Z,{value:t},n().createElement("div",{className:s()(a.attribute,l),onClick:r},t))}));var x=r(17440),O=r(27950),k=r(94079),C=r(43290);const j=e=>{let{value:t,columnData:{maxValue:r}}=e;const a=m();return n().createElement("div",{className:a.numberContainer},n().createElement(k.Typography,{className:a.number},(0,O.k7L)(t,9999)),!(0,x.isNil)(r)&&n().createElement("div",{className:a.colorBarContainer},n().createElement(C.Z,{width:t,maxWidth:r})))},P=(0,p.Z)({tableContainer:e=>{let{width:t,height:r}=e;return{height:r,width:t,display:"flex",flexDirection:"column"}},cellBorder:{borderLeft:"none",borderRight:"none"}}),S=e=>{let{width:t,height:r,data:l,options:c={},basicTableRef:s,onItemClick:u}=e;const h=P({width:t,height:r}),{headers:[p,d]=[],showValues:m=!0}=c,g=(0,a.useMemo)((()=>({cellBorder:h.cellBorder})),[h]),f=(0,a.useMemo)((()=>Math.max(...l.map((e=>e.value)))),[l]),y=(0,a.useMemo)((()=>[{id:"label",label:p||o().text("Attributes"),resizable:!1,headCellRenderer:b,rowCellValueRenderer:w,initialWidth:.4*t},...m?[{id:"value",label:d||o().text("No of Profiles"),resizable:!1,headCellRenderer:b,rowCellValueRenderer:j,maxValue:f,initialWidth:.6*t}]:[]]),[f,t,d,p,m]),v=(0,a.useMemo)((()=>({onItemClick:u})),[u]);return n().createElement("div",{className:h.tableContainer},n().createElement(i.Z,{columnsData:y,rowsData:l,headRowHeight:48,getRowCellHeight:null,classes:g,defaultColumnWidth:100,defaultColumnMinWidth:100,ref:s,context:v}))}},3292:(e,t,r)=>{r.d(t,{Z:()=>m});var a=r(24328),n=r.n(a),l=r(2899),o=r(80001);const i=(0,r(79692).Z)({treeBlock:{fill:"#6BAED6",stroke:"#fff",strokeOpacity:1},treeLabel:{fill:"black",fontSize:"14px",letterSpacing:0}});var c=r(99256),s=r(58697),u=r.n(s);function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const p=e=>{let{x:t,y:r,width:o,height:s,label:h,onClick:p,group:d}=e;const m=i(),g=(0,c.d)(p),f=(0,a.useRef)(u()()).current;return n().createElement("g",{className:g,onClick:p&&(()=>p(d))},n().createElement("clipPath",{id:f},n().createElement("rect",{x:t+2,y:r+2,width:o-4,height:s-4})),n().createElement("rect",{x:t,y:r,width:o,height:s,strokeWidth:2,className:m.treeBlock}),n().createElement(l.xv,{clipPath:`url(#${f})`,textAnchor:"middle",verticalAnchor:"middle",width:o,x:t+o/2,y:r+s/2,className:m.treeLabel},h))},d=e=>{const t=e.reduce(((e,t)=>e+t.value),0)/(10*e.length);return e.map((e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){h(e,t,r[t])}))}return e}({},e,{normalizedValue:e.value<t?t:e.value})))},m=e=>{let{data:t,width:r,height:a,onItemClick:i}=e;return n().createElement(l.WB,{dataKey:"normalizedValue",nameKey:"label",content:n().createElement(p,{onClick:i}),data:d(t),width:r,animationDuration:500,height:a},n().createElement(l.u,{content:n().createElement(o.W,null)}))}},99256:(e,t,r)=>{r.d(t,{d:()=>n});const a=(0,r(79692).Z)({clickable:{cursor:"pointer"}}),n=e=>{const t=a();return e?t.clickable:void 0}},98884:(e,t,r)=>{r.d(t,{DX:()=>c,Hc:()=>s,T:()=>u});var a=r(24328),n=r.n(a),l=r(67885);const o=(0,a.createContext)(null),i=(0,a.createContext)(null),c=e=>{let{children:t}=e;const[r,l]=(0,a.useState)(0),c=(0,a.useCallback)((()=>{l((e=>e+1))}),[l]);return n().createElement(i.Provider,{value:c},n().createElement(o.Provider,{value:r},t))},s=()=>{const e=(0,a.useContext)(i);if(void 0===e)throw new Error("useReloadAllFacets must be used within a ReloadFacetProvider");return e},u=e=>{let{state:t,reload:r}=e;const n=(0,a.useContext)(o);if(void 0===n)throw new Error("useReloadFacet must be used within a ReloadFacetProvider");(0,a.useEffect)((()=>{t!==l.o.LOADED&&t!==l.o.ERROR||r()}),[n])}},56259:(e,t,r)=>{r.d(t,{I:()=>n});var a=r(24328);const n=r.n(a)().createContext([]);n.displayName="SearchFiltersContext"}}]);
|
|
2
2
|
//# sourceMappingURL=2890.js.map
|
package/{8183.js → 3118.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[8183],{7785:(e,t,n)=>{n.d(t,{Z:()=>k});var r=n(24328),a=n.n(r),o=n(71153),l=n.n(o),i=n(87918),s=n.n(i),c=n(38402),p=n(94079),u=n(95613),d=n(57014),h=n(83348),m=n(55299),g=n(31276),f=n(71543);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 x=e=>a().createElement("svg",b({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{d:"M10 18h3v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1H8V8H6a1 1 0 01-1-1V3a1 1 0 011-1h6a1 1 0 011 1v4a1 1 0 01-1 1h-2v3h3v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1h-3v5z",fill:"#000",stroke:"none",strokeWidth:1,fillRule:"evenodd"}));function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}const y=e=>a().createElement("svg",v({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("rect",{fill:"#000",x:9,y:9,width:6,height:6,rx:1,stroke:"none",strokeWidth:1,fillRule:"evenodd"})),C=(0,n(79692).Z)({container:{"& > $marginWrapper:first-child":{paddingLeft:"4px"}},listItem:{paddingLeft:"1px",paddingTop:"2px",paddingBottom:"2px",transition:"none","&:hover":{"& $itemAfter":{background:"linear-gradient(to right, rgba(235, 235, 235, 0.2), rgba(235, 235, 235, 1) 100%)"}},"&$listItemFocus":{"& $itemAfter":{background:"linear-gradient(to right, rgba(219, 219, 219, 0.2), rgba(219, 219, 219, 1) 100%)"}},"&:focus":{outline:"none"}},listItemFocus:{},icon:{opacity:.29,width:"16px",height:"16px",flexShrink:0,marginRight:"6px",marginLeft:"8px"},recommendedIcon:{width:"18px",height:"18px",marginRight:"5px",marginLeft:"7px",flexShrink:0},logoIcon:{width:"18px",height:"18px",flexShrink:0,marginRight:"4px"},itemAfter:{position:"absolute",right:0,top:0,width:"40px",height:"100%",pointerEvents:"none",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)"},itemText:{padding:"0",margin:0,"& span":{fontSize:"0.8125rem",letterSpacing:"normal",whiteSpace:"nowrap"}},checkbox:{opacity:.34,padding:0,marginLeft:"14px","&$checked":{opacity:1,background:"none"}},checked:{},marginWrapper:{display:"flex",alignItems:"center"},defaultCursor:{cursor:"default"},itemTooltip:{margin:"4px 0"},marginText:{marginLeft:"21px"},itemTextWrapper:{display:"flex",alignItems:"center"}}),w=e=>{let{attrType:t={}}=e;const n=C(),r=(e=>{switch(e.type){case d.oS0.TYPE_IMAGE:case d.oS0.TYPE_NESTED:return f.Z;case d.oS0.TYPE_REFERENCE:return x;default:return y}})(t);return a().createElement(r,{className:n.icon})};var O=n(31269);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 E=(0,h.Z)((e=>a().createElement("svg",I({width:13,height:18,viewBox:"0 0 13 18",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("g",{transform:"translate(-3 -1)",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},a().createElement("path",{fill:"#FF4081",d:"M5.833 10h3.75v6.667l-3.75 1.666z"}),a().createElement("path",{fill:"#CE0C4E",d:"M13.333 10v8.333l-3.75-1.666V10z"}),a().createElement("circle",{fill:"#FFC058",cx:9.583,cy:7.917,r:6.25}),a().createElement("circle",{fill:"#FFCD7B",cx:9.583,cy:7.917,r:5.417}),a().createElement("path",{fill:"#FFFBB5",d:"M8.333 11.667L5 8.462l.933-.898 2.4 2.308L13.4 5l.933.897z"}))))),k=(0,r.memo)((e=>{let{groupId:t,data:n,checked:r=!1,isFocused:o=!1,isRequired:i=!1,label:h,labelInText:f,level:b,onClick:x=g.ZT,hideCheckBox:v=!1,hideIcon:y=!1,notSelectable:I=!1,disableHorizontalScrollbar:k=!1,style:P={},subItemMargin:S=20,LogoIcon:j,className:T}=e;const L=C(),{attrType:Z}=n||{},R=!(v&&(0,d.QZu)(Z)||I),N=!!j;return a().createElement(u.Z,{value:f||h,className:L.itemTooltip,placement:"bottom-end"},a().createElement(c.Z,{className:l()(L.container,L.listItem,{[L.defaultCursor]:!R},T),onClick:R?()=>x(n,!r,t):void 0,style:P,dense:!0,button:R,classes:{focusVisible:L.listItemFocus,selected:L.listItemFocus},selected:o,tabIndex:-1},!v&&a().createElement(p.Checkbox,{checked:r,disableRipple:!0,disabled:!R,className:l()(L.checkbox,{[L.checked]:r}),tabIndex:-1}),a().createElement(O.Z,{margin:S,level:b,className:L.marginWrapper},a().createElement(a().Fragment,null,!y&&(e=>"recommended"===t?a().createElement(E,{className:L.recommendedIcon,tooltipTitle:s().text("Recommended"),showForDisabled:!0}):a().createElement(w,{attrType:e}))(Z),a().createElement("div",{className:l()(L.itemTextWrapper,{[L.marginText]:y})},N&&a().createElement(j,{className:L.logoIcon}),a().createElement(p.ListItemText,{primary:a().createElement(a().Fragment,null,h,i&&a().createElement(m.Z,null)),className:L.itemText})))),R&&k&&a().createElement("div",{className:L.itemAfter})))}))},24737:(e,t,n)=>{n.d(t,{Z:()=>W});var r=n(24328),a=n.n(r),o=n(13980),l=n.n(o),i=n(71153),s=n.n(i),c=n(17440),p=n(94113),u=n(65549),d=n(79692);const h=(0,d.Z)((e=>({addLabel:{display:"flex",padding:"0 7px",height:"35px",alignItems:"center",fontSize:"13px",fontWeight:"500",color:e.palette.primary.main,cursor:"pointer",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",borderTop:"solid 1px rgba(0, 0, 0, 0.14)",backgroundColor:"rgba(0, 0, 0, 0.03)"},addIcon:{height:"18px",width:"18px",padding:"0 9px"}}))),m=(0,d.Z)({singleValue:{fontSize:"14px",lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"21px"}});var g=n(36179);const f=e=>{const{selectProps:{onCreate:t,createLabel:n,inputValue:r,components:o},children:l}=e,i=h();return a().createElement(g.Z,e,l,n&&!(0,c.prop)("Group",o)&&a().createElement("span",{className:i.addLabel,onClick:()=>t(r)},a().createElement(u.Z,{className:i.addIcon}),n))};f.propTypes={children:l().element.isRequired,selectProps:l().object.isRequired};const b=f;var x=n(18461),v=n(5190),y=n(31276),C=n(57014),w=n(72436),O=n(94079);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)}function E(e){const{selectProps:{menuIsOpen:t},innerProps:n,children:r}=e,o=m();return!t&&a().createElement(O.Typography,I({className:o.singleValue},n),r)}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){P(e,t,n[t])}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}E.propTypes={children:l().node,innerProps:l().object};const S=(0,d.Z)({control:{height:"auto"},dropdownIndicator:{transition:"transform .15s ease",padding:e=>(e.height-24)/2+"px 12px",cursor:"pointer",color:"rgba(0, 0, 0, 0.54)"},valueContainer:{marginLeft:"16px",width:0},formControl:{margin:0},filledInputRoot:{backgroundColor:"rgba(0, 0, 0, 0.03)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&.focused":{backgroundColor:"rgba(0, 0, 0, 0.03)"}},filledInputUnderline:{"&:before":{display:"none"}},inputLabel:{color:"rgba(0,0,0,0.6)",fontSize:"14px",lineHeight:"16px",paddingLeft:"4px","&.shrink":{paddingLeft:"4px"}}}),j={menu:e=>k({},e,{borderRadius:"0 0 4px 4px",backgroundColor:"#FFFFFFFF",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)",margin:0}),menuList:e=>k({},e,{maxHeight:"208px",padding:"8px 0"}),group:e=>k({},e,{padding:"0 0 8px 0"}),input:e=>k({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:"16px 0 0",padding:0}),option:e=>k({},e,{fontSize:"13px",lineHeight:"15px",height:"32px"})},T={menuList:e=>k({},e,{padding:0})},L={input:e=>k({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:0,padding:0})};function Z(){return Z=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},Z.apply(this,arguments)}function R(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){N(e,t,n[t])}))}return e}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const F=e=>{let{value:t,label:n,createLabel:o,getOptions:l,options:i,height:u=46,onChange:d=c.identity,onCreate:h,onClear:m=c.identity,components:g,textFieldInputRef:f,TextFieldProps:O,classes:I}=e,k=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["value","label","createLabel","getOptions","options","height","onChange","onCreate","onClear","components","textFieldInputRef","TextFieldProps","classes"]);const P=S({height:u}),N=(0,w.a6)(),[F,z]=(0,r.useState)(!1),W=(0,r.useRef)(null),D=l?x.Z:v.Z,B=(0,c.prop)("ClearIndicator",g)?{}:{IndicatorSeparator:y.Vd,ClearIndicator:y.Vd},H=h?(e,t)=>{h(e,t),z(!1)}:void 0,M=(0,c.prop)("Group",g)?T:{},A=(0,c.isEmpty)(n)?L:{},V=R({},j,M,A),U=R({},P,I);return a().createElement(D,Z({placeholder:"",defaultOptions:!0},k,{value:(0,c.defaultTo)(null,t),loadOptions:l,options:i,cacheOptions:!0,onChange:d,onCreate:H,onClear:m,createLabel:o,classes:U,styles:V,components:R({DropdownIndicator:p.Z,LoadingIndicator:y.Vd,SingleValue:E,Menu:b},B,g),menuPlacement:"auto",TextFieldProps:R({},O,{label:n,variant:"filled",margin:"dense",classes:R({},(0,c.prop)("classes",O),{root:s()(P.formControl,(0,c.path)(["classes","root"],O))}),inputProps:R({},(0,c.prop)("inputProps",O)),InputProps:R({},(0,c.prop)("InputProps",O),{classes:R({},(0,c.path)(["InputProps","classes"],O),{root:s()(P.filledInputRoot,(0,c.path)(["InputProps","classes","root"],O)),underline:s()({[N.filledInputUnderline]:(0,C.O27)(t)},(0,c.path)(["InputProps","classes","underline"],O)),focused:s()("focused",(0,c.path)(["InputProps","classes","focused"],O))})}),InputLabelProps:R({},(0,c.prop)("InputLabelProps",O),{classes:R({},(0,c.path)(["InputLabelProps","classes"],O),{root:s()(P.inputLabel,(0,c.path)(["InputLabelProps","classes","root"],O)),shrink:s()("shrink",(0,c.path)(["InputLabelProps","classes","shrink"],O))}),shrink:!(0,C.O27)(t)||void 0}),ref:f||W}),inputRef:f||W,menuIsOpen:F,onMenuOpen:()=>z(!0),onMenuClose:()=>z(!1)}))},z={value:l().oneOfType([l().object,l().array]),label:l().string.isRequired,getOptions:l().func,options:l().array,onChange:l().func,onCreate:l().func,onClear:l().func,createLabel:l().string,components:l().object,textFieldInputRef:l().object,TextFieldProps:l().object,height:l().number,classes:l().object};F.propTypes=z;const W=F},53180:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),o=n(52730),l=n(71153),i=n.n(l),s=n(94079),c=n(57014),p=n(49885);const u=e=>{let{entity:t,avatarClassName:n,imageClassName:r}=e;const l=(0,o.useSelector)(p.ZP.selectors.getMetadata),u=(0,o.useSelector)(p.ZP.selectors.getAbsoluteImagePath)||"",d=(0,c.uie)(l,u,t),h=(0,c.vPL)(u,(0,c.XH2)(l,t.type)),m=e=>{e.target.onError=null,e.target.src=(0,c.m5F)('\n<svg width="400px" height="400px" viewBox="0 0 400 400" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Group</title>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="Group" fill-rule="nonzero">\n <rect id="Rectangle" fill="#DFE5E9" x="0" y="0" width="400" height="400"></rect>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M5.68434189e-14,387.023257 L5.68434189e-14,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 5.68434189e-14,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n </g>\n </g>\n</svg>\n')};return a().createElement(s.Avatar,{className:i()(n,r),src:d,imgProps:{onError:m}},a().createElement("img",{className:r,src:h,alt:"fallback entity avatar",onError:m}))}},31254:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),a=n.n(r),o=n(52730),l=n(49885),i=n(98018);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=>{const t=(0,o.useSelector)(l.ZP.selectors.getAbsoluteImagePath)||"";return a().createElement(i.ZP,s({},e,{storagePath:(n=t,n.endsWith("/")?n:n+"/")}));var n}},31039:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),a=n.n(r),o=n(52730),l=n(39450),i=n(72383),s=n(49885);const c=(0,r.forwardRef)(((e,t)=>{let{value:n,children:c,screen:p,className:u}=e;const d=(0,o.useDispatch)(),h=(0,r.useContext)(l.m),{generateEntityUrl:m}=(0,r.useContext)(i.v),g=(0,o.useSelector)(s.ZP.selectors.getUIPath),f=(0,r.useCallback)((()=>{d(s.ui.actions.openEntity({uri:n,viewId:h,screen:p}))}),[h,n,d,p]);return a().createElement("a",{ref:t,href:(b=n,m({uiPath:g,uri:b,screen:p})),onClick:e=>{f(),e.stopPropagation(),e.preventDefault()},className:u},c);var b}));c.displayName="EntityUriLink";const p=c},99136:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),a=n.n(r),o=n(71153),l=n.n(o),i=n(94079);const s=(0,n(79692).Z)({loadingOverlay:{position:"absolute",width:"100%",height:"100%",top:0,left:0,opacity:.37,zIndex:10,backgroundColor:"#fff"},transparent:{backgroundColor:"transparent"},relativePosition:{"&$loadingOverlay":{position:"relative"}}}),c=e=>{let{transparent:t=!1,relativePosition:n=!1,className:r}=e;const o=s();return a().createElement(a().Fragment,null,a().createElement("div",{className:l()(o.loadingOverlay,r,{[o.transparent]:t,[o.relativePosition]:n})},a().createElement(i.LinearProgress,{color:"primary"})))}},83401:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),o=n(94079),l=n(71153),i=n.n(l),s=n(83348),c=n(79692),p=n(41128);const u=(0,c.Z)((e=>({button:{minWidth:"30px",padding:"8px 8px",justifyContent:"start",fill:"rgba(0,0,0,0.54)",textTransform:"none",borderColor:"rgba(0,0,0,0.12)"},icon:{color:"rgba(0,0,0,0.54)",width:"20px",height:"20px",marginRight:"8px"},title:{fontSize:"13px",lineHeight:"15px",letterSpacing:0},current:{"& $icon":{color:e.palette.primary.main},backgroundColor:(0,p.U1)(e.palette.primary.main,.12),fill:e.palette.primary.main,color:e.palette.primary.main,"&:hover":{backgroundColor:(0,p.U1)(e.palette.primary.main,.24)}}}))),d=(0,s.Z)(o.Button),h=e=>{let{className:t,classes:n={},modes:r=[],modeId:l,onChange:s}=e;const c=u();return a().createElement(o.ButtonGroup,{className:t},r.map((e=>{let{id:t,title:r,tooltipTitle:o,Icon:p,disabled:u}=e;return a().createElement(d,{disabled:u,showForDisabled:u&&!!o,key:String(t),className:i()(c.button,{[c.current]:l===t},n.button),tooltipTitle:o,onClick:(h=t,()=>s(h)),"data-reltio-id":`reltio-search-mode-${t}`},p&&a().createElement(p,{className:c.icon}),r&&a().createElement("div",{className:c.title},r));var h})))}},18461:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(27308);const a=(0,n(5407).Z)(r.ZP)},55299:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(24328),a=n.n(r);const o=(0,n(79692).Z)({mark:{color:"red"}}),l=()=>{const e=o();return a().createElement("span",{className:e.mark},"*")}},94574:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(71153),a=n.n(r),o=n(17440),l=n(24328),i=n.n(l),s=n(87918),c=n.n(s),p=n(29611),u=n(94079),d=n(87685),h=n(21853),m=n(31276),g=n(22385),f=n(63015);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)}function x(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){v(e,t,n[t])}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=(0,l.memo)((e=>{let{value:t,autofocus:n,onSearch:r=m.ZT,rootRef:s,classes:v={},height:y,placeholder:C=c().text("Search")}=e,w=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["value","autofocus","onSearch","rootRef","classes","height","placeholder"]);const O=(0,f.y)({height:y}),[I,E]=(0,l.useState)(""),k=(0,o.pipe)((0,o.tap)(r),E),P=(0,o.isNil)(t)?I:t;return i().createElement(p.Z,b({startAdornment:i().createElement(u.InputAdornment,{position:"start"},i().createElement(h.default,{className:O.icon})),endAdornment:i().createElement(u.InputAdornment,{position:"end"},P.length>0&&i().createElement(g.Z,{icon:d.default,className:O.clearButton,onClick:()=>k("")})),autoFocus:n,classes:x({},v,{input:a()(O.input,v.input),root:a()(O.container,v.root)}),placeholder:C,value:P,onChange:(0,o.pipe)(m.NA,k),disableUnderline:!0,ref:s},w))}))},63015:(e,t,n)=>{n.d(t,{y:()=>r});const r=(0,n(79692).Z)((()=>({container:e=>{let{height:t=36}=e;return{height:t,borderRadius:"2px",alignItems:"center",backgroundColor:"rgba(0,0,0,0.03)",minWidth:"100px"}},icon:{opacity:.67,marginLeft:"10px",marginRight:"6px"},input:{fontSize:"13px",width:"100%"},clearButton:{marginRight:"10px"},white:{backgroundColor:"rgb(255, 255, 255)",boxShadow:"0 1px 3px 0 rgba(0,0,0,0.24)"}})))},97820:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),o=n(71153),l=n.n(o),i=n(87918),s=n.n(i),c=n(79784),p=n(25480),u=n(94574);function d(){return d=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},d.apply(this,arguments)}const h=e=>{let{title:t,className:n,onSearch:r,hideTitle:o,hideSearchInput:i,headerPlacement:h="top",containerWidth:m,containerHeight:g,searchInputOnKeyDown:f,children:b,searchInputRef:x,anchorOrigin:v={vertical:"top",horizontal:"right"},transformOrigin:y={vertical:"top",horizontal:"right"}}=e,C=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["title","className","onSearch","hideTitle","hideSearchInput","headerPlacement","containerWidth","containerHeight","searchInputOnKeyDown","children","searchInputRef","anchorOrigin","transformOrigin"]);const w=(0,p.Z)({containerWidth:m,containerHeight:g}),O=a().createElement(a().Fragment,null,!o&&a().createElement("div",{className:w.header},t),!i&&a().createElement(u.Z,{onSearch:r,autofocus:!0,onKeyDown:f,inputRef:x,classes:{root:w.searchInputContainer},placeholder:s().text("Search & add attributes"),height:40}));return a().createElement(c.ZP,d({anchorOrigin:v,transformOrigin:y},C),a().createElement("div",{className:l()(w.container,n),style:{width:m}},"top"===h&&O,a().createElement("div",{className:w.list},b),"bottom"===h&&O))}},54763:(e,t,n)=>{n.d(t,{t:()=>l});var r=n(24328),a=n(17440),o=n(44890);const l=e=>{let{items:t,open:n,onSelectFocusedItem:l,selectedItems:i,onClose:s}=e;const[c,p]=(0,r.useState)(null),u=(0,r.useRef)(!1),d=(0,r.useCallback)((e=>{let n=null===e?d(-1):e;for(;null!==e&&n<t.length&&(n<=e||n>=0&&(0,o.c)(t[n]));)n+=1;return n!==t.length?n:d(-1)}),[t]),h=(0,r.useCallback)((e=>{let n=null===e?t.length-1:e;for(;null!==e&&n>=0&&(n>=e||(0,o.c)(t[n]));)n-=1;return n<0?t.length-1:n}),[t]),m=(0,r.useCallback)((()=>{if(!(0,a.isNil)(c)){const e=t[c].item;!e.item.notSelectable&&l({item:e.item,groupData:e})}}),[l,t,c]),g=(0,r.useCallback)((e=>{if(0!==t.length)switch(e.key){case"Down":case"ArrowDown":return p(d),e.preventDefault(),!1;case"Up":case"ArrowUp":return p(h),e.preventDefault(),!1;case"Enter":u.current=!0,m();break;case"Tab":s&&s(e);break;default:return}}),[t,d,h,m,s]);return(0,r.useEffect)((()=>{if(u.current){u.current=!1;const e=t.findIndex((e=>e.item.moveTo));e>-1&&p(e)}else p(null)}),[t,n,i]),{focusIndex:c,handleKeyDown:g}}},25480:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(79692);const a=(0,r.Z)((()=>({container:e=>{let{containerHeight:t=553,containerWidth:n}=e;return{display:"flex",flexDirection:"column",height:t,width:n,flexGrow:1}},header:{marginLeft:"16px",marginTop:"16px",marginBottom:"12px",fontSize:"16px",fontWeight:500,letterSpacing:"0.15px",lineHeight:"24px"},searchInputContainer:{margin:"0 16px 12px 16px",flexShrink:"0"},list:{flexGrow:1,height:0,overflow:"hidden",width:"100%",position:"relative","& ul":{paddingBottom:0,paddingTop:0}}})))},31517:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(24328),a=n.n(r),o=n(24737),l=n(13980),i=n.n(l),s=n(94079);const c=(0,n(79692).Z)({value:{color:"rgba(0, 0, 0, 0.87)"},placeholder:{color:"rgba(0, 0, 0, 0.38)",fontSize:"14px !important"}}),p=e=>{let{selectProps:{menuIsOpen:t},data:{label:n}}=e;const r=c();return!t&&a().createElement(s.Typography,{variant:"body2",classes:{root:r.value}},n)};p.propTypes={selectProps:i().shape({menuIsOpen:i().bool}),data:i().shape({label:i().string})};const u=p;function d(){return d=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},d.apply(this,arguments)}const h=e=>{const t=c(),{innerProps:n={},children:r}=e;return a().createElement(s.Typography,d({className:t.placeholder},n),r)};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)}h.propTypes={children:i().node,innerProps:i().object,selectProps:i().object.isRequired};const g={SingleValue:u,Placeholder:h},f=(0,r.memo)((e=>{let t=m({},e);return a().createElement(o.Z,m({components:g},t))}))},44890:(e,t,n)=>{n.d(t,{Z:()=>h,c:()=>u});var r=n(24328),a=n.n(r),o=n(13980),l=n.n(o),i=n(50166),s=n(44443);const c=(0,n(79692).Z)({stickyTitlesWrapper:{position:"absolute",top:0,"& > div":{zIndex:1,position:"absolute",top:0,width:"100%",visibility:"hidden"}}});var p=n(56656);const u=e=>e.titleItemIndex===e.index,d=e=>{let{items:t,getItemSize:n,renderItem:o,renderGroupTitle:l,width:d="100%",height:h,fixedTitle:m=!0,itemKey:g=(e=>e),disableHorizontalScrollbar:f,hideSubtitles:b,focusIndex:x=null,onInnerContainerResize:v}=e;const y=c(),C=(0,r.useRef)(null),w=(0,r.useRef)(null),O=(0,r.useRef)(null),I=(0,r.useRef)([0]),E={topMargin:0},k=(0,r.useMemo)((()=>!b||(t||[]).some((e=>null!==e.titleItemIndex))),[t,b]),P=(0,r.useCallback)((e=>{const r=I.current.length;let a=0;t.slice(r-1,e+1).forEach(((e,t)=>{const o=r+t-1;t>0&&(I.current[o]=I.current[o-1]+a),a=n(o,e.item)}))}),[n,t]),S=(0,r.useCallback)((e=>t[e].titleItemIndex),[t]),j=(0,r.useCallback)((e=>t[e]),[t]);(0,r.useEffect)((()=>{requestAnimationFrame((()=>{C.current&&C.current.scrollTo(0)}))}),[t.length]),(0,r.useEffect)((()=>{C.current&&C.current.resetAfterIndex(0),T();const e=(e=>{const t=e.findIndex((e=>e.item.moveTo));if(t>-1){P(t);const e=S(t);return{offset:I.current[t],titleHeight:n(e,j(e).item)}}})(t);if(e&&e.offset&&C.current){const{titleHeight:t}=e,n=e.offset-t;(n<C.current.state.scrollOffset||n>C.current.state.scrollOffset+h)&&requestAnimationFrame((()=>{C.current&&C.current.scrollTo(n-(h-t)/2)}))}}),[P,j,n,S,h,I,t,C]);const T=()=>{O.current&&w.current&&(O.current.style.width=w.current.offsetWidth+"px")},L=(0,r.useCallback)((e=>{let n=null,r=0;return t.some(((t,a)=>{P(a+10);const o=I.current[a+1];return e>=r&&e<o&&(n={index:a,offset:r,listItem:t}),r=o,n})),n}),[P,I,t]),Z=(0,r.useCallback)((e=>n(e,j(e).item)),[j,n]),R=(0,r.useCallback)((e=>{let{index:t,style:n,data:r}=e;const a=j(t);return a.item&&(u(a)&&l(n,a.item)||o(n,a.item,t,r))}),[j,l,o]),{handleOnItemsRendered:N}=(0,p.LW)({items:t,focusIndex:x,listRef:C}),F=(0,r.useCallback)((()=>t.filter((e=>u(e))).map((e=>(e=>a().createElement("div",{className:"stickyTitleItem",style:{visibility:"hidden"},"data-index":e.index,key:e.index},l({height:n(e.index,e.item)},e.item)))(e)))),[n,t,l]);return a().createElement(a().Fragment,null,a().createElement("div",{ref:O,className:y.stickyTitlesWrapper},m&&F()),v&&w.current&&a().createElement(s.Z,{handleHeight:!0,onResize:v,targetDomEl:w.current}),a().createElement(i.VariableSizeList,{ref:C,itemCount:t.length,itemSize:Z,width:d,height:h,itemKey:g,innerRef:w,onScroll:e=>{let{scrollOffset:r,scrollDirection:a}=e;if(!m||!k)return;const o=L(r),l=o&&S(o.index);var i;null!==l&&(i=l,O.current&&[...O.current.querySelectorAll(".stickyTitleItem")].forEach((e=>{e.dataset.index===i.toString()?(e.style.visibility="visible",E.index=i):e.style.visibility="hidden"}))),T();const s=null!==l&&n(l,j(l).item),c=L(r+s+E.topMargin);let p=0;if(c){switch(a){case"forward":c.offset-r>0&&u(c.listItem)&&(p=s-(c.offset-r));break;case"backward":{const e=l>-1&&(d=l,t.findIndex(((e,t)=>u(e)&&d<t))),n=(e=>(P(e),I.current[e]))(e);e>-1&&r<n&&s>=n-r&&(p=s-(n-r))}}(e=>{O.current&&(E.topMargin=-e,O.current.style.top=-e+"px")})(p)}var d},style:f?{overflowX:"hidden"}:void 0,overscanCount:5,onItemsRendered:N},R))};d.propTypes={items:l().arrayOf(l().object).isRequired,getItemSize:l().func.isRequired,renderItem:l().func.isRequired,width:l().oneOfType([l().number,l().string]),height:l().number.isRequired,renderGroupTitle:l().func,fixedTitle:l().bool,hideSubtitles:l().bool,itemKey:l().func,disableHorizontalScrollbar:l().bool,focusIndex:l().number,onInnerContainerResize:l().func};const h=d},56656:(e,t,n)=>{n.d(t,{LG:()=>o,LW:()=>l});var r=n(17440),a=n(24328);const o=e=>{const t=e=>(0,r.flatten)(e.map((e=>[e].concat(e.items?t(e.items):[]))));let n=null;return t(e).map(((e,t)=>(e&&e.items&&(n=t),{item:e,index:t,titleItemIndex:n})))},l=e=>{let{focusIndex:t,listRef:n,items:r}=e;const o=(0,a.useRef)(null),l=(0,a.useRef)(null),i=(0,a.useCallback)((e=>{let{visibleStartIndex:t,visibleStopIndex:n}=e;o.current=t,l.current=n}),[]);return(0,a.useEffect)((()=>{n.current&&null!==t&&0!==r.length&&(t<Math.max(o.current+3,0)?n.current.scrollToItem(Math.max(t-3,0),"start"):t>Math.min(l.current-3,r.length-1)&&n.current.scrollToItem(Math.min(t+3,r.length-1),"end"))}),[t,r.length,n]),{handleOnItemsRendered:i}}},72383:(e,t,n)=>{n.d(t,{v:()=>l});var r=n(24328),a=n.n(r),o=n(57014);const l=a().createContext({generateEntityUrl:o.OuZ,generateTagUrl:o.W$R});l.displayName="UrlGeneratorsContext"},39450:(e,t,n)=>{n.d(t,{m:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="ViewIdContext"},71543:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(24328),a=n.n(r);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 l=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",{d:"M14 11v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1h-3v1a1 1 0 01-1 1H6a1 1 0 01-1-1v-4a1 1 0 011-1h4a1 1 0 011 1v1h3z",fill:"#000",stroke:"none",strokeWidth:1,fillRule:"evenodd"}))}}]);
|
|
2
|
-
//# sourceMappingURL=
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[3118],{7785:(e,t,n)=>{n.d(t,{Z:()=>k});var r=n(24328),a=n.n(r),o=n(71153),l=n.n(o),i=n(87918),s=n.n(i),c=n(38402),p=n(94079),u=n(95613),d=n(27950),h=n(83348),m=n(55299),g=n(31276),f=n(71543);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 x=e=>a().createElement("svg",b({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{d:"M10 18h3v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1H8V8H6a1 1 0 01-1-1V3a1 1 0 011-1h6a1 1 0 011 1v4a1 1 0 01-1 1h-2v3h3v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1h-3v5z",fill:"#000",stroke:"none",strokeWidth:1,fillRule:"evenodd"}));function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}const y=e=>a().createElement("svg",v({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("rect",{fill:"#000",x:9,y:9,width:6,height:6,rx:1,stroke:"none",strokeWidth:1,fillRule:"evenodd"})),C=(0,n(79692).Z)({container:{"& > $marginWrapper:first-child":{paddingLeft:"4px"}},listItem:{paddingLeft:"1px",paddingTop:"2px",paddingBottom:"2px",transition:"none","&:hover":{"& $itemAfter":{background:"linear-gradient(to right, rgba(235, 235, 235, 0.2), rgba(235, 235, 235, 1) 100%)"}},"&$listItemFocus":{"& $itemAfter":{background:"linear-gradient(to right, rgba(219, 219, 219, 0.2), rgba(219, 219, 219, 1) 100%)"}},"&:focus":{outline:"none"}},listItemFocus:{},icon:{opacity:.29,width:"16px",height:"16px",flexShrink:0,marginRight:"6px",marginLeft:"8px"},recommendedIcon:{width:"18px",height:"18px",marginRight:"5px",marginLeft:"7px",flexShrink:0},logoIcon:{width:"18px",height:"18px",flexShrink:0,marginRight:"4px"},itemAfter:{position:"absolute",right:0,top:0,width:"40px",height:"100%",pointerEvents:"none",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)"},itemText:{padding:"0",margin:0,"& span":{fontSize:"0.8125rem",letterSpacing:"normal",whiteSpace:"nowrap"}},checkbox:{opacity:.34,padding:0,marginLeft:"14px","&$checked":{opacity:1,background:"none"}},checked:{},marginWrapper:{display:"flex",alignItems:"center"},defaultCursor:{cursor:"default"},itemTooltip:{margin:"4px 0"},marginText:{marginLeft:"21px"},itemTextWrapper:{display:"flex",alignItems:"center"}}),w=e=>{let{attrType:t={}}=e;const n=C(),r=(e=>{switch(e.type){case d.oS0.TYPE_IMAGE:case d.oS0.TYPE_NESTED:return f.Z;case d.oS0.TYPE_REFERENCE:return x;default:return y}})(t);return a().createElement(r,{className:n.icon})};var O=n(31269);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 E=(0,h.Z)((e=>a().createElement("svg",I({width:13,height:18,viewBox:"0 0 13 18",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("g",{transform:"translate(-3 -1)",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},a().createElement("path",{fill:"#FF4081",d:"M5.833 10h3.75v6.667l-3.75 1.666z"}),a().createElement("path",{fill:"#CE0C4E",d:"M13.333 10v8.333l-3.75-1.666V10z"}),a().createElement("circle",{fill:"#FFC058",cx:9.583,cy:7.917,r:6.25}),a().createElement("circle",{fill:"#FFCD7B",cx:9.583,cy:7.917,r:5.417}),a().createElement("path",{fill:"#FFFBB5",d:"M8.333 11.667L5 8.462l.933-.898 2.4 2.308L13.4 5l.933.897z"}))))),k=(0,r.memo)((e=>{let{groupId:t,data:n,checked:r=!1,isFocused:o=!1,isRequired:i=!1,label:h,labelInText:f,level:b,onClick:x=g.ZT,hideCheckBox:v=!1,hideIcon:y=!1,notSelectable:I=!1,disableHorizontalScrollbar:k=!1,style:P={},subItemMargin:S=20,LogoIcon:j,className:T}=e;const L=C(),{attrType:Z}=n||{},R=!(v&&(0,d.QZu)(Z)||I),N=!!j;return a().createElement(u.Z,{value:f||h,className:L.itemTooltip,placement:"bottom-end"},a().createElement(c.Z,{className:l()(L.container,L.listItem,{[L.defaultCursor]:!R},T),onClick:R?()=>x(n,!r,t):void 0,style:P,dense:!0,button:R,classes:{focusVisible:L.listItemFocus,selected:L.listItemFocus},selected:o,tabIndex:-1},!v&&a().createElement(p.Checkbox,{checked:r,disableRipple:!0,disabled:!R,className:l()(L.checkbox,{[L.checked]:r}),tabIndex:-1}),a().createElement(O.Z,{margin:S,level:b,className:L.marginWrapper},a().createElement(a().Fragment,null,!y&&(e=>"recommended"===t?a().createElement(E,{className:L.recommendedIcon,tooltipTitle:s().text("Recommended"),showForDisabled:!0}):a().createElement(w,{attrType:e}))(Z),a().createElement("div",{className:l()(L.itemTextWrapper,{[L.marginText]:y})},N&&a().createElement(j,{className:L.logoIcon}),a().createElement(p.ListItemText,{primary:a().createElement(a().Fragment,null,h,i&&a().createElement(m.Z,null)),className:L.itemText})))),R&&k&&a().createElement("div",{className:L.itemAfter})))}))},24737:(e,t,n)=>{n.d(t,{Z:()=>W});var r=n(24328),a=n.n(r),o=n(13980),l=n.n(o),i=n(71153),s=n.n(i),c=n(17440),p=n(94113),u=n(65549),d=n(79692);const h=(0,d.Z)((e=>({addLabel:{display:"flex",padding:"0 7px",height:"35px",alignItems:"center",fontSize:"13px",fontWeight:"500",color:e.palette.primary.main,cursor:"pointer",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",borderTop:"solid 1px rgba(0, 0, 0, 0.14)",backgroundColor:"rgba(0, 0, 0, 0.03)"},addIcon:{height:"18px",width:"18px",padding:"0 9px"}}))),m=(0,d.Z)({singleValue:{fontSize:"14px",lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"21px"}});var g=n(36179);const f=e=>{const{selectProps:{onCreate:t,createLabel:n,inputValue:r,components:o},children:l}=e,i=h();return a().createElement(g.Z,e,l,n&&!(0,c.prop)("Group",o)&&a().createElement("span",{className:i.addLabel,onClick:()=>t(r)},a().createElement(u.Z,{className:i.addIcon}),n))};f.propTypes={children:l().element.isRequired,selectProps:l().object.isRequired};const b=f;var x=n(18461),v=n(5190),y=n(31276),C=n(27950),w=n(72436),O=n(94079);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)}function E(e){const{selectProps:{menuIsOpen:t},innerProps:n,children:r}=e,o=m();return!t&&a().createElement(O.Typography,I({className:o.singleValue},n),r)}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){P(e,t,n[t])}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}E.propTypes={children:l().node,innerProps:l().object};const S=(0,d.Z)({control:{height:"auto"},dropdownIndicator:{transition:"transform .15s ease",padding:e=>(e.height-24)/2+"px 12px",cursor:"pointer",color:"rgba(0, 0, 0, 0.54)"},valueContainer:{marginLeft:"16px",width:0},formControl:{margin:0},filledInputRoot:{backgroundColor:"rgba(0, 0, 0, 0.03)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&.focused":{backgroundColor:"rgba(0, 0, 0, 0.03)"}},filledInputUnderline:{"&:before":{display:"none"}},inputLabel:{color:"rgba(0,0,0,0.6)",fontSize:"14px",lineHeight:"16px",paddingLeft:"4px","&.shrink":{paddingLeft:"4px"}}}),j={menu:e=>k({},e,{borderRadius:"0 0 4px 4px",backgroundColor:"#FFFFFFFF",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)",margin:0}),menuList:e=>k({},e,{maxHeight:"208px",padding:"8px 0"}),group:e=>k({},e,{padding:"0 0 8px 0"}),input:e=>k({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:"16px 0 0",padding:0}),option:e=>k({},e,{fontSize:"13px",lineHeight:"15px",height:"32px"})},T={menuList:e=>k({},e,{padding:0})},L={input:e=>k({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:0,padding:0})};function Z(){return Z=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},Z.apply(this,arguments)}function R(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){N(e,t,n[t])}))}return e}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const F=e=>{let{value:t,label:n,createLabel:o,getOptions:l,options:i,height:u=46,onChange:d=c.identity,onCreate:h,onClear:m=c.identity,components:g,textFieldInputRef:f,TextFieldProps:O,classes:I}=e,k=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["value","label","createLabel","getOptions","options","height","onChange","onCreate","onClear","components","textFieldInputRef","TextFieldProps","classes"]);const P=S({height:u}),N=(0,w.a6)(),[F,z]=(0,r.useState)(!1),W=(0,r.useRef)(null),D=l?x.Z:v.Z,B=(0,c.prop)("ClearIndicator",g)?{}:{IndicatorSeparator:y.Vd,ClearIndicator:y.Vd},H=h?(e,t)=>{h(e,t),z(!1)}:void 0,M=(0,c.prop)("Group",g)?T:{},A=(0,c.isEmpty)(n)?L:{},V=R({},j,M,A),U=R({},P,I);return a().createElement(D,Z({placeholder:"",defaultOptions:!0},k,{value:(0,c.defaultTo)(null,t),loadOptions:l,options:i,cacheOptions:!0,onChange:d,onCreate:H,onClear:m,createLabel:o,classes:U,styles:V,components:R({DropdownIndicator:p.Z,LoadingIndicator:y.Vd,SingleValue:E,Menu:b},B,g),menuPlacement:"auto",TextFieldProps:R({},O,{label:n,variant:"filled",margin:"dense",classes:R({},(0,c.prop)("classes",O),{root:s()(P.formControl,(0,c.path)(["classes","root"],O))}),inputProps:R({},(0,c.prop)("inputProps",O)),InputProps:R({},(0,c.prop)("InputProps",O),{classes:R({},(0,c.path)(["InputProps","classes"],O),{root:s()(P.filledInputRoot,(0,c.path)(["InputProps","classes","root"],O)),underline:s()({[N.filledInputUnderline]:(0,C.O27)(t)},(0,c.path)(["InputProps","classes","underline"],O)),focused:s()("focused",(0,c.path)(["InputProps","classes","focused"],O))})}),InputLabelProps:R({},(0,c.prop)("InputLabelProps",O),{classes:R({},(0,c.path)(["InputLabelProps","classes"],O),{root:s()(P.inputLabel,(0,c.path)(["InputLabelProps","classes","root"],O)),shrink:s()("shrink",(0,c.path)(["InputLabelProps","classes","shrink"],O))}),shrink:!(0,C.O27)(t)||void 0}),ref:f||W}),inputRef:f||W,menuIsOpen:F,onMenuOpen:()=>z(!0),onMenuClose:()=>z(!1)}))},z={value:l().oneOfType([l().object,l().array]),label:l().string.isRequired,getOptions:l().func,options:l().array,onChange:l().func,onCreate:l().func,onClear:l().func,createLabel:l().string,components:l().object,textFieldInputRef:l().object,TextFieldProps:l().object,height:l().number,classes:l().object};F.propTypes=z;const W=F},53180:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),a=n.n(r),o=n(52730),l=n(71153),i=n.n(l),s=n(94079),c=n(27950),p=n(49885);const u=e=>{let{entity:t,avatarClassName:n,imageClassName:r}=e;const l=(0,o.useSelector)(p.ZP.selectors.getMetadata),u=(0,o.useSelector)(p.ZP.selectors.getAbsoluteImagePath)||"",d=(0,c.uie)(l,u,t),h=(0,c.vPL)(u,(0,c.XH2)(l,t.type)),m=e=>{e.target.onError=null,e.target.src=(0,c.m5F)('\n<svg width="400px" height="400px" viewBox="0 0 400 400" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Group</title>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="Group" fill-rule="nonzero">\n <rect id="Rectangle" fill="#DFE5E9" x="0" y="0" width="400" height="400"></rect>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M5.68434189e-14,387.023257 L5.68434189e-14,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 5.68434189e-14,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n </g>\n </g>\n</svg>\n')};return a().createElement(s.Avatar,{className:i()(n,r),src:d,imgProps:{onError:m}},a().createElement("img",{className:r,src:h,alt:"fallback entity avatar",onError:m}))}},34e3:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),a=n.n(r),o=n(52730),l=n(49885),i=n(98018);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=>{const t=(0,o.useSelector)(l.ZP.selectors.getAbsoluteImagePath)||"";return a().createElement(i.ZP,s({},e,{storagePath:(n=t,n.endsWith("/")?n:n+"/")}));var n}},31039:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),a=n.n(r),o=n(52730),l=n(39450),i=n(72383),s=n(49885);const c=(0,r.forwardRef)(((e,t)=>{let{value:n,children:c,screen:p,className:u}=e;const d=(0,o.useDispatch)(),h=(0,r.useContext)(l.m),{generateEntityUrl:m}=(0,r.useContext)(i.v),g=(0,o.useSelector)(s.ZP.selectors.getUIPath),f=(0,r.useCallback)((()=>{d(s.ui.actions.openEntity({uri:n,viewId:h,screen:p}))}),[h,n,d,p]);return a().createElement("a",{ref:t,href:(b=n,m({uiPath:g,uri:b,screen:p})),onClick:e=>{f(),e.stopPropagation(),e.preventDefault()},className:u},c);var b}));c.displayName="EntityUriLink";const p=c},99136:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),a=n.n(r),o=n(71153),l=n.n(o),i=n(94079);const s=(0,n(79692).Z)({loadingOverlay:{position:"absolute",width:"100%",height:"100%",top:0,left:0,opacity:.37,zIndex:10,backgroundColor:"#fff"},transparent:{backgroundColor:"transparent"},relativePosition:{"&$loadingOverlay":{position:"relative"}}}),c=e=>{let{transparent:t=!1,relativePosition:n=!1,className:r}=e;const o=s();return a().createElement(a().Fragment,null,a().createElement("div",{className:l()(o.loadingOverlay,r,{[o.transparent]:t,[o.relativePosition]:n})},a().createElement(i.LinearProgress,{color:"primary"})))}},83401:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),o=n(94079),l=n(71153),i=n.n(l),s=n(83348),c=n(79692),p=n(41128);const u=(0,c.Z)((e=>({button:{minWidth:"30px",padding:"8px 8px",justifyContent:"start",fill:"rgba(0,0,0,0.54)",textTransform:"none",borderColor:"rgba(0,0,0,0.12)"},icon:{color:"rgba(0,0,0,0.54)",width:"20px",height:"20px",marginRight:"8px"},title:{fontSize:"13px",lineHeight:"15px",letterSpacing:0},current:{"& $icon":{color:e.palette.primary.main},backgroundColor:(0,p.U1)(e.palette.primary.main,.12),fill:e.palette.primary.main,color:e.palette.primary.main,"&:hover":{backgroundColor:(0,p.U1)(e.palette.primary.main,.24)}}}))),d=(0,s.Z)(o.Button),h=e=>{let{className:t,classes:n={},modes:r=[],modeId:l,onChange:s}=e;const c=u();return a().createElement(o.ButtonGroup,{className:t},r.map((e=>{let{id:t,title:r,tooltipTitle:o,Icon:p,disabled:u}=e;return a().createElement(d,{disabled:u,showForDisabled:u&&!!o,key:String(t),className:i()(c.button,{[c.current]:l===t},n.button),tooltipTitle:o,onClick:(h=t,()=>s(h)),"data-reltio-id":`reltio-search-mode-${t}`},p&&a().createElement(p,{className:c.icon}),r&&a().createElement("div",{className:c.title},r));var h})))}},18461:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(27308);const a=(0,n(5407).Z)(r.ZP)},55299:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(24328),a=n.n(r);const o=(0,n(79692).Z)({mark:{color:"red"}}),l=()=>{const e=o();return a().createElement("span",{className:e.mark},"*")}},94574:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(71153),a=n.n(r),o=n(17440),l=n(24328),i=n.n(l),s=n(87918),c=n.n(s),p=n(29611),u=n(94079),d=n(87685),h=n(21853),m=n(31276),g=n(22385),f=n(63015);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)}function x(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){v(e,t,n[t])}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=(0,l.memo)((e=>{let{value:t,autofocus:n,onSearch:r=m.ZT,rootRef:s,classes:v={},height:y,placeholder:C=c().text("Search")}=e,w=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["value","autofocus","onSearch","rootRef","classes","height","placeholder"]);const O=(0,f.y)({height:y}),[I,E]=(0,l.useState)(""),k=(0,o.pipe)((0,o.tap)(r),E),P=(0,o.isNil)(t)?I:t;return i().createElement(p.Z,b({startAdornment:i().createElement(u.InputAdornment,{position:"start"},i().createElement(h.default,{className:O.icon})),endAdornment:i().createElement(u.InputAdornment,{position:"end"},P.length>0&&i().createElement(g.Z,{icon:d.default,className:O.clearButton,onClick:()=>k("")})),autoFocus:n,classes:x({},v,{input:a()(O.input,v.input),root:a()(O.container,v.root)}),placeholder:C,value:P,onChange:(0,o.pipe)(m.NA,k),disableUnderline:!0,ref:s},w))}))},63015:(e,t,n)=>{n.d(t,{y:()=>r});const r=(0,n(79692).Z)((()=>({container:e=>{let{height:t=36}=e;return{height:t,borderRadius:"2px",alignItems:"center",backgroundColor:"rgba(0,0,0,0.03)",minWidth:"100px"}},icon:{opacity:.67,marginLeft:"10px",marginRight:"6px"},input:{fontSize:"13px",width:"100%"},clearButton:{marginRight:"10px"},white:{backgroundColor:"rgb(255, 255, 255)",boxShadow:"0 1px 3px 0 rgba(0,0,0,0.24)"}})))},97820:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),a=n.n(r),o=n(71153),l=n.n(o),i=n(87918),s=n.n(i),c=n(79784),p=n(25480),u=n(94574);function d(){return d=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},d.apply(this,arguments)}const h=e=>{let{title:t,className:n,onSearch:r,hideTitle:o,hideSearchInput:i,headerPlacement:h="top",containerWidth:m,containerHeight:g,searchInputOnKeyDown:f,children:b,searchInputRef:x,anchorOrigin:v={vertical:"top",horizontal:"right"},transformOrigin:y={vertical:"top",horizontal:"right"}}=e,C=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["title","className","onSearch","hideTitle","hideSearchInput","headerPlacement","containerWidth","containerHeight","searchInputOnKeyDown","children","searchInputRef","anchorOrigin","transformOrigin"]);const w=(0,p.Z)({containerWidth:m,containerHeight:g}),O=a().createElement(a().Fragment,null,!o&&a().createElement("div",{className:w.header},t),!i&&a().createElement(u.Z,{onSearch:r,autofocus:!0,onKeyDown:f,inputRef:x,classes:{root:w.searchInputContainer},placeholder:s().text("Search & add attributes"),height:40}));return a().createElement(c.ZP,d({anchorOrigin:v,transformOrigin:y},C),a().createElement("div",{className:l()(w.container,n),style:{width:m}},"top"===h&&O,a().createElement("div",{className:w.list},b),"bottom"===h&&O))}},54763:(e,t,n)=>{n.d(t,{t:()=>l});var r=n(24328),a=n(17440),o=n(44890);const l=e=>{let{items:t,open:n,onSelectFocusedItem:l,selectedItems:i,onClose:s}=e;const[c,p]=(0,r.useState)(null),u=(0,r.useRef)(!1),d=(0,r.useCallback)((e=>{let n=null===e?d(-1):e;for(;null!==e&&n<t.length&&(n<=e||n>=0&&(0,o.c)(t[n]));)n+=1;return n!==t.length?n:d(-1)}),[t]),h=(0,r.useCallback)((e=>{let n=null===e?t.length-1:e;for(;null!==e&&n>=0&&(n>=e||(0,o.c)(t[n]));)n-=1;return n<0?t.length-1:n}),[t]),m=(0,r.useCallback)((()=>{if(!(0,a.isNil)(c)){const e=t[c].item;!e.item.notSelectable&&l({item:e.item,groupData:e})}}),[l,t,c]),g=(0,r.useCallback)((e=>{if(0!==t.length)switch(e.key){case"Down":case"ArrowDown":return p(d),e.preventDefault(),!1;case"Up":case"ArrowUp":return p(h),e.preventDefault(),!1;case"Enter":u.current=!0,m();break;case"Tab":s&&s(e);break;default:return}}),[t,d,h,m,s]);return(0,r.useEffect)((()=>{if(u.current){u.current=!1;const e=t.findIndex((e=>e.item.moveTo));e>-1&&p(e)}else p(null)}),[t,n,i]),{focusIndex:c,handleKeyDown:g}}},25480:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(79692);const a=(0,r.Z)((()=>({container:e=>{let{containerHeight:t=553,containerWidth:n}=e;return{display:"flex",flexDirection:"column",height:t,width:n,flexGrow:1}},header:{marginLeft:"16px",marginTop:"16px",marginBottom:"12px",fontSize:"16px",fontWeight:500,letterSpacing:"0.15px",lineHeight:"24px"},searchInputContainer:{margin:"0 16px 12px 16px",flexShrink:"0"},list:{flexGrow:1,height:0,overflow:"hidden",width:"100%",position:"relative","& ul":{paddingBottom:0,paddingTop:0}}})))},31517:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(24328),a=n.n(r),o=n(24737),l=n(13980),i=n.n(l),s=n(94079);const c=(0,n(79692).Z)({value:{color:"rgba(0, 0, 0, 0.87)"},placeholder:{color:"rgba(0, 0, 0, 0.38)",fontSize:"14px !important"}}),p=e=>{let{selectProps:{menuIsOpen:t},data:{label:n}}=e;const r=c();return!t&&a().createElement(s.Typography,{variant:"body2",classes:{root:r.value}},n)};p.propTypes={selectProps:i().shape({menuIsOpen:i().bool}),data:i().shape({label:i().string})};const u=p;function d(){return d=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},d.apply(this,arguments)}const h=e=>{const t=c(),{innerProps:n={},children:r}=e;return a().createElement(s.Typography,d({className:t.placeholder},n),r)};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)}h.propTypes={children:i().node,innerProps:i().object,selectProps:i().object.isRequired};const g={SingleValue:u,Placeholder:h},f=(0,r.memo)((e=>{let t=m({},e);return a().createElement(o.Z,m({components:g},t))}))},44890:(e,t,n)=>{n.d(t,{Z:()=>h,c:()=>u});var r=n(24328),a=n.n(r),o=n(13980),l=n.n(o),i=n(50166),s=n(44443);const c=(0,n(79692).Z)({stickyTitlesWrapper:{position:"absolute",top:0,"& > div":{zIndex:1,position:"absolute",top:0,width:"100%",visibility:"hidden"}}});var p=n(56656);const u=e=>e.titleItemIndex===e.index,d=e=>{let{items:t,getItemSize:n,renderItem:o,renderGroupTitle:l,width:d="100%",height:h,fixedTitle:m=!0,itemKey:g=(e=>e),disableHorizontalScrollbar:f,hideSubtitles:b,focusIndex:x=null,onInnerContainerResize:v}=e;const y=c(),C=(0,r.useRef)(null),w=(0,r.useRef)(null),O=(0,r.useRef)(null),I=(0,r.useRef)([0]),E={topMargin:0},k=(0,r.useMemo)((()=>!b||(t||[]).some((e=>null!==e.titleItemIndex))),[t,b]),P=(0,r.useCallback)((e=>{const r=I.current.length;let a=0;t.slice(r-1,e+1).forEach(((e,t)=>{const o=r+t-1;t>0&&(I.current[o]=I.current[o-1]+a),a=n(o,e.item)}))}),[n,t]),S=(0,r.useCallback)((e=>t[e].titleItemIndex),[t]),j=(0,r.useCallback)((e=>t[e]),[t]);(0,r.useEffect)((()=>{requestAnimationFrame((()=>{C.current&&C.current.scrollTo(0)}))}),[t.length]),(0,r.useEffect)((()=>{C.current&&C.current.resetAfterIndex(0),T();const e=(e=>{const t=e.findIndex((e=>e.item.moveTo));if(t>-1){P(t);const e=S(t);return{offset:I.current[t],titleHeight:n(e,j(e).item)}}})(t);if(e&&e.offset&&C.current){const{titleHeight:t}=e,n=e.offset-t;(n<C.current.state.scrollOffset||n>C.current.state.scrollOffset+h)&&requestAnimationFrame((()=>{C.current&&C.current.scrollTo(n-(h-t)/2)}))}}),[P,j,n,S,h,I,t,C]);const T=()=>{O.current&&w.current&&(O.current.style.width=w.current.offsetWidth+"px")},L=(0,r.useCallback)((e=>{let n=null,r=0;return t.some(((t,a)=>{P(a+10);const o=I.current[a+1];return e>=r&&e<o&&(n={index:a,offset:r,listItem:t}),r=o,n})),n}),[P,I,t]),Z=(0,r.useCallback)((e=>n(e,j(e).item)),[j,n]),R=(0,r.useCallback)((e=>{let{index:t,style:n,data:r}=e;const a=j(t);return a.item&&(u(a)&&l(n,a.item)||o(n,a.item,t,r))}),[j,l,o]),{handleOnItemsRendered:N}=(0,p.LW)({items:t,focusIndex:x,listRef:C}),F=(0,r.useCallback)((()=>t.filter((e=>u(e))).map((e=>(e=>a().createElement("div",{className:"stickyTitleItem",style:{visibility:"hidden"},"data-index":e.index,key:e.index},l({height:n(e.index,e.item)},e.item)))(e)))),[n,t,l]);return a().createElement(a().Fragment,null,a().createElement("div",{ref:O,className:y.stickyTitlesWrapper},m&&F()),v&&w.current&&a().createElement(s.Z,{handleHeight:!0,onResize:v,targetDomEl:w.current}),a().createElement(i.VariableSizeList,{ref:C,itemCount:t.length,itemSize:Z,width:d,height:h,itemKey:g,innerRef:w,onScroll:e=>{let{scrollOffset:r,scrollDirection:a}=e;if(!m||!k)return;const o=L(r),l=o&&S(o.index);var i;null!==l&&(i=l,O.current&&[...O.current.querySelectorAll(".stickyTitleItem")].forEach((e=>{e.dataset.index===i.toString()?(e.style.visibility="visible",E.index=i):e.style.visibility="hidden"}))),T();const s=null!==l&&n(l,j(l).item),c=L(r+s+E.topMargin);let p=0;if(c){switch(a){case"forward":c.offset-r>0&&u(c.listItem)&&(p=s-(c.offset-r));break;case"backward":{const e=l>-1&&(d=l,t.findIndex(((e,t)=>u(e)&&d<t))),n=(e=>(P(e),I.current[e]))(e);e>-1&&r<n&&s>=n-r&&(p=s-(n-r))}}(e=>{O.current&&(E.topMargin=-e,O.current.style.top=-e+"px")})(p)}var d},style:f?{overflowX:"hidden"}:void 0,overscanCount:5,onItemsRendered:N},R))};d.propTypes={items:l().arrayOf(l().object).isRequired,getItemSize:l().func.isRequired,renderItem:l().func.isRequired,width:l().oneOfType([l().number,l().string]),height:l().number.isRequired,renderGroupTitle:l().func,fixedTitle:l().bool,hideSubtitles:l().bool,itemKey:l().func,disableHorizontalScrollbar:l().bool,focusIndex:l().number,onInnerContainerResize:l().func};const h=d},56656:(e,t,n)=>{n.d(t,{LG:()=>o,LW:()=>l});var r=n(17440),a=n(24328);const o=e=>{const t=e=>(0,r.flatten)(e.map((e=>[e].concat(e.items?t(e.items):[]))));let n=null;return t(e).map(((e,t)=>(e&&e.items&&(n=t),{item:e,index:t,titleItemIndex:n})))},l=e=>{let{focusIndex:t,listRef:n,items:r}=e;const o=(0,a.useRef)(null),l=(0,a.useRef)(null),i=(0,a.useCallback)((e=>{let{visibleStartIndex:t,visibleStopIndex:n}=e;o.current=t,l.current=n}),[]);return(0,a.useEffect)((()=>{n.current&&null!==t&&0!==r.length&&(t<Math.max(o.current+3,0)?n.current.scrollToItem(Math.max(t-3,0),"start"):t>Math.min(l.current-3,r.length-1)&&n.current.scrollToItem(Math.min(t+3,r.length-1),"end"))}),[t,r.length,n]),{handleOnItemsRendered:i}}},72383:(e,t,n)=>{n.d(t,{v:()=>l});var r=n(24328),a=n.n(r),o=n(27950);const l=a().createContext({generateEntityUrl:o.OuZ,generateTagUrl:o.W$R});l.displayName="UrlGeneratorsContext"},39450:(e,t,n)=>{n.d(t,{m:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="ViewIdContext"},71543:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(24328),a=n.n(r);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 l=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",{d:"M14 11v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1h-3v1a1 1 0 01-1 1H6a1 1 0 01-1-1v-4a1 1 0 011-1h4a1 1 0 011 1v1h3z",fill:"#000",stroke:"none",strokeWidth:1,fillRule:"evenodd"}))}}]);
|
|
2
|
+
//# sourceMappingURL=3118.js.map
|