@reltio/remotes 1.4.1102 → 1.4.1105

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/5400.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5400],{79821:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(24328),o=r.n(n),l=r(52730),i=r(87638),a=r(16299),s=r(97991);const c=(0,r(79692).Z)({icon:{maxHeight:"25px",maxWidth:"25px",marginRight:"16px"}}),u=e=>{let{group:t,metadata:r}=e;const n=c(),u=(0,l.useSelector)(i.ZP.selectors.getAbsoluteImagePath),p=(0,a.XH8)(r,{type:t.id}),d=(0,a.vPL)(u,p);return o().createElement(s.Z,{className:n.icon,icon:d,avatarText:t.title[0]})}},99757:(e,t,r)=>{r.d(t,{Z:()=>V});var n=r(24328),o=r.n(n),l=r(87918),i=r.n(l),a=r(71153),s=r.n(a),c=r(17440),u=r(97820),p=r(54763),d=r(45767),m=r(88611),b=r(22385),f=r(79692);const h=(0,f.Z)({attribute:{cursor:"pointer",lineHeight:"16px",flexBasis:"100%",display:"flex",alignItems:"center",padding:"0 10px 0 16px",width:"calc(100% - 32px)","&$attributeWithValue":{borderBottom:"1px solid rgba(0,0,0,0.38)"},"&$disabled":{cursor:"default"}},disabled:{},attributeWithValue:{},noSelect:{},name:{fontSize:"14px",color:"rgba(0,0,0,0.87)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",direction:"rtl",textAlign:"left",flex:"1 0",width:"0","& $noSelect":{color:"rgba(0,0,0,0.38)"},"&$disabled":{color:"rgba(0,0,0,0.26)","& $noSelect":{color:"rgba(0,0,0,0.26)"}}}}),g=(0,c.either)((0,c.prop)("title"),(0,c.prop)("fieldName")),y=e=>{let{value:t,getLabel:r=g,onSelectAttributeClick:n,disabled:l=!1}=e;const a=h(),c=t&&r(t);return o().createElement("div",{onClick:l?void 0:n,className:s()(a.attribute,{[a.attributeWithValue]:!!c},{[a.disabled]:l})},o().createElement(m.C,{value:c},o().createElement("div",{className:s()(a.name,{[a.disabled]:l})},c||o().createElement("span",{className:a.noSelect},i().text("Select attribute")))),o().createElement(b.Z,{size:"M",icon:d.Z,disabled:l}))};var x=r(16299);function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){v(e,t,r[t])}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const O=(0,c.eqBy)((0,c.pick)(["fieldName","uri","entityTypeUri"])),C=(e,t)=>t&&!!t.find(O(e)),S=(e,t)=>e.title.toLowerCase().includes(t.toLowerCase()),I=(e,t)=>S(e,t)||(e.children||[]).some((e=>I(e,t))),E=(e,t)=>e.findIndex(O(t)),k=(0,x.fW1)("title"),j=function(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const i=S(e,n);return[{item:n?w({},e,{filterText:n}):e,level:o,groupId:t,groupName:r}].concat(e.children?e.children.filter((e=>l||i||I(e,n))).flatMap((e=>j(e,t,r,n,o+1,l||i))):[]).flat()},P=(0,c.curry)(((e,t)=>t.map((t=>({item:t,items:t.attributes.filter((t=>I(t,e))).map((r=>j(r,t.id,t.title,e)))}))).filter((e=>e.items.length))));var T=r(52730),N=r(94079),L=r(87638),R=r(7785),Z=r(44890),D=r(27239),A=r(79821);const F=(0,f.Z)({subHeader:{backgroundColor:"#f5f5f5",padding:"0 16px",margin:0,display:"flex",alignItems:"center",color:"rgba(0,0,0,0.84)",fontSize:"14px",fontWeight:500}});function B(){return B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B.apply(this,arguments)}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$(e,t,r[t])}))}return e}function $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const z=(0,n.memo)((e=>{let{selectedAttributes:t,onItemClick:r,focusIndex:n,hideCheckBox:l}=e,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["selectedAttributes","onItemClick","focusIndex","hideCheckBox"]);const a=F(),s=(0,T.useSelector)(L.ZP.selectors.getMetadata);return o().createElement(Z.Z,B({getItemSize:(e,t)=>t.items?40:28,renderItem:(e,i,a)=>{let{item:s,level:c,groupId:u,groupName:p}=i;const d=C(s,t),m=a===n;return o().createElement(R.Z,{key:`item-${u}-${s.fieldName}`,onClick:r,checked:d,data:W({},s,{groupName:p}),notSelectable:s.notSelectable,hideCheckBox:l,label:o().createElement(D.Z,{text:s.title,highlight:s.filterText}),labelInText:s.title,level:c,style:e,isFocused:m,groupId:u,LogoIcon:s.LogoIcon})},renderGroupTitle:(e,t)=>o().createElement(N.ListItem,{component:"div",className:a.subHeader,style:e,key:`group-${t.item.id}`},t.item.needGroupIcon&&o().createElement(A.Z,{group:t.item,metadata:s}),t.item.title),focusIndex:n},i))}));var M=r(56656);const H=(0,f.Z)({selector:{minWidth:"200px",alignItems:"stretch",background:"rgba(0,0,0, 0.0267)",boxSizing:"border-box",borderRadius:"4px",display:"flex"}}),V=(0,n.memo)((e=>{let{className:t,itemsGroups:r,value:l,getLabel:a,onSelect:d,onRestoreFocus:m=c.identity,onOpenPopup:b=c.identity,disableRestoreFocus:f=!1,disableEnforceFocus:h=!1,single:g=!1,ungroup:x=!1,disabled:v=!1,hideCheckBox:S=!1}=e;const I=H(),[j,T]=(0,n.useState)(null),N=(0,n.useCallback)((()=>T(null)),[]),L=!!j,[R,Z]=(0,n.useState)(""),D=(0,n.useCallback)((()=>Z("")),[]),[A,F]=(0,n.useState)([]),B=(0,n.useCallback)((()=>F([])),[]),W=(0,n.useMemo)((()=>P(R,r)),[r,R]),$=(0,n.useMemo)((()=>(0,c.pipe)((0,c.when)((0,c.always)(x),(0,c.chain)((0,c.pipe)((0,c.prop)("items"),c.flatten,(0,c.map)((0,c.pick)(["item","level"]))))),M.LG)(W)),[x,W]),V=(0,n.useMemo)((()=>Math.max(k(W),308)),[W]),G=(0,c.pipe)((0,c.tap)((0,c.pipe)(B,D,N)),m),U=(0,n.useRef)(),K=(0,n.useCallback)(((e,t)=>{d({checked:t,attribute:e,index:t?A.length:E(A,e),selectedAttributes:A}),g?(F(t?[e]:[]),G({})):(F((e=>{let{attribute:t,selectedAttributes:r,checked:n}=e;return n?r.concat(t):r.filter((e=>!O(t,e)))})({selectedAttributes:A,attribute:e,checked:t})),U.current&&U.current.focus())}),[A,d,g,G,U]),X=(0,n.useCallback)((e=>{let{onListItemClick:t,selectedAttributes:r}=e;return e=>{let{item:n,groupData:o}=e;const l=C(n,r);t(w({},n,{groupName:o.groupName}),!l)}})({onListItemClick:K,selectedAttributes:A}),[K,A]),{focusIndex:_,handleKeyDown:q}=(0,p.t)({items:$,open:L,onSelectFocusedItem:X,selectedItems:A,onClose:G});return o().createElement("div",{className:s()(I.selector,t),"data-reltio-id":"attribute-selector"},o().createElement(y,{value:l,getLabel:a,onSelectAttributeClick:e=>{b(),T(e.currentTarget)},disabled:v}),o().createElement(u.Z,{open:L,anchorEl:j,onClose:G,onSearch:Z,title:i().text("Select attribute"),containerWidth:V,containerHeight:507,searchInputOnKeyDown:q,anchorOrigin:{horizontal:"right",vertical:"bottom"},searchInputRef:U,disableRestoreFocus:f,disableEnforceFocus:h},o().createElement(z,{items:$,onItemClick:K,selectedAttributes:A,width:V,height:400,focusIndex:_,hideCheckBox:S})))}))},74566:(e,t,r)=>{r.d(t,{Z:()=>m});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(73038),s=r(58241),c=r(71153),u=r.n(c);const p=(0,r(79692).Z)((()=>({hidden:{visibility:"hidden"}}))),d=e=>{let{rowIndex:t,rowValue:r,className:l}=e;const i=p(),{toggleRowCollapse:c,getIsRowCollapsible:d,getIsRowCollapsed:m}=(0,n.useContext)(a.x),b=d(r),f=m(t);return o().createElement(s.Z,{className:u()(l,{[i.hidden]:!b}),isOpen:!f,onClick:e=>{c(t),e.stopPropagation()}})};d.propTypes={rowIndex:i().number,rowValue:i().object,className:i().string};const m=d},43290:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(24328),o=r.n(n),l=r(71153),i=r.n(l),a=r(17440);const s=(0,r(79692).Z)((e=>({bar:{backgroundColor:e.palette.secondary.main,opacity:.12,position:"absolute",minHeight:"20px",minWidth:"5px",borderRadius:"2px",top:0,left:0,height:"100%"}}))),c=e=>(0,a.is)(Number,e),u=e=>{let{className:t,width:r=0,maxWidth:l}=e;const a=s(),u=(0,n.useCallback)((e=>(l?100*e/l:0)+"%"),[l]);return r?o().createElement("div",{className:i()(a.bar,t),style:{width:c(r)?u(r):r}}):null}},89119:(e,t,r)=>{r.d(t,{Z:()=>S});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(87918),s=r.n(a),c=r(71153),u=r.n(c),p=r(17440),d=r(16299),m=r(97820),b=r(7785),f=r(56656),h=r(44890),g=r(54763),y=r(27239);const x=(0,r(79692).Z)((()=>({popupContainer:{},container:{"&$popupContainer":{height:"408px",minWidth:"200px"}}})));function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){O(e,t,r[t])}))}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const C=e=>{let{open:t,anchorEl:r,data:l,onSearch:i,onClose:a,titleText:s,filterText:c,onListItemClick:O,selected:C,hideCheckBox:S,renderGroupTitle:I}=e,E=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["open","anchorEl","data","onSearch","onClose","titleText","filterText","onListItemClick","selected","hideCheckBox","renderGroupTitle"]);const k=(0,n.useCallback)((e=>e.label.toLowerCase().includes(c.toLowerCase())),[c]),j=(0,n.useCallback)((e=>k(e)||(e.children||[]).some(j)),[k]),P=(0,n.useMemo)((()=>{const e=(0,p.curry)(((e,r,n,o)=>[{item:v({},r,{filterText:c}),level:e,groupId:n,groupName:o},...t(r.children||[],n,o,e+1)])),t=function(t,r,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const l=t=>e(o,t,r,n),i=t.filter(j);return(I?p.map:p.chain)(l,i)};return t}),[c,I,j]),T=(0,n.useCallback)((e=>e.map((e=>({item:e,items:P(e.attributes,e.id,e.label)}))).filter((e=>e.items.length))),[P]),N=(0,n.useCallback)((e=>{let{item:t}=e;O(t,!C.find((e=>e.id===t.id||e.id.includes(`${t.id}.`))))}),[O,C]),L=(0,n.useMemo)((()=>(I?T:P)(l)),[l,I,T,P]),R=(0,n.useMemo)((()=>(0,f.LG)(L)),[L]),{focusIndex:Z,handleKeyDown:D}=(0,g.t)({items:R,open:t,onSelectFocusedItem:N,selectedItems:C}),A=(0,n.useRef)(null);A.current=Z;const F=(0,n.useCallback)(((e,t,r)=>{let{item:n,level:l=0}=t;const i=!!C.find((e=>e.id===n.id||e.id.includes(`${n.id}.`))),a=A.current===r;return o().createElement(b.Z,{key:n.id,onClick:O,checked:i,level:l,data:n,label:o().createElement(y.Z,{text:n.label,highlight:n.filterText}),labelInText:n.label,style:e,hideCheckBox:S,isFocused:a,notSelectable:n.notSelectable,LogoIcon:n.LogoIcon})}),[S,O,C]),B=(0,d.fW1)("label")(L)||308,W=x();return o().createElement(m.Z,w({open:t,className:u()(W.container,W.popupContainer),anchorEl:r,onClose:a,onSearch:i,title:s,containerWidth:B,searchInputOnKeyDown:D},E),o().createElement(h.Z,{height:300,renderItem:F,items:R,hideSubtitles:!0,getItemSize:()=>32,containerWidth:B,focusIndex:Z,renderGroupTitle:I}))};C.propTypes={open:i().bool,hideCheckBox:i().bool,anchorEl:i().any,selected:i().array,data:i().array,filterText:i().string,titleText:i().string,onClose:i().func,onListItemClick:i().func,onSearch:i().func,renderGroupTitle:i().func},C.defaultProps={data:[],selected:[],titleText:s().text("Show/hide columns"),filterText:""};const S=C},27652:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(24328),o=r.n(n),l=r(4190),i=r(60364);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}const s=e=>{let{open:t=!0,children:r}=e,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["open","children"]);const[c,u]=(0,n.useState)(t),p=(0,i.Z)().transitions.duration.leavingScreen;return(0,n.useEffect)((()=>{if(t!==c){if(!t){const e=setTimeout((()=>{u(!1)}),p);return()=>clearTimeout(e)}u(!0)}}),[t,p,c]),o().createElement(l.ZP,a({open:t},s),c&&r)};s.displayName="Drawer";const c=s},59725:(e,t,r)=>{r.d(t,{Q:()=>c});var n=r(24328),o=r.n(n),l=r(87918),i=r.n(l),a=r(16299),s=r(42520);const c=(0,n.memo)((e=>{let{entityTypes:t,selectedEntityTypes:r,single:l,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d={},ListLabelProps:m={},disabled:b=!1}=e;const f=(0,n.useMemo)((()=>t.filter(a.oDv)),[t]);return o().createElement(s.S,{items:f,selectedItemsUris:r,single:l,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d,ListLabelProps:m,disabled:b,label:i().text("Entity type"),dataReltioId:"entity-type-selector",selectionPopupTitle:i().text("Select entity types")})}));c.displayName="EntityTypesSelector"},42520:(e,t,r)=>{r.d(t,{S:()=>T});var n=r(24328),o=r.n(n),l=r(71153),i=r.n(l),a=r(17440),s=r(16299),c=r(94079),u=r(83543),p=r(79692);const d=(0,p.Z)({listLabelContainer:{display:"flex",alignItems:"center",position:"relative",overflow:"hidden",whiteSpace:"nowrap",justifyContent:"space-between",height:"100%",width:"100%"},listLabel:{visibility:"hidden",position:"absolute",overflow:"hidden"},visibleItemsLabel:{textOverflow:"ellipsis",marginRight:"5px",overflow:"hidden",flex:1,flexBasis:"auto"},hiddenCount:{color:"rgba(0,0,0,0.87)",fontSize:"13px",lineHeight:"15px",padding:"5px 8px",borderRadius:"16px",backgroundColor:"rgba(0,0,0,.12)"}}),m=(e,t)=>{const{childNodes:r,clientLeft:n,clientWidth:o}=t;if(r.length>0){const[t]=Array.from(r),l=document.createRange();l.setStart(t,0);for(let r=0;r<e.length;r++){l.setEnd(t,l.endOffset+e[r].length);const{width:i}=l.getBoundingClientRect();if(n+i>o)return r;r!==e.length-1&&l.setEnd(t,l.endOffset+", ".length)}}return-1},b=e=>e.join(", "),f=e=>`calc(${(0,a.isNil)(e)?"100%":`${e}px`} - 35px)`,h=e=>{let{list:t,maxWidth:r}=e;const l=d(),i=(0,n.useRef)(),[a,s]=(0,n.useState)(0);(0,n.useEffect)((()=>{s(((e,t)=>{const r=e.length,n=((e,t)=>{if(t){const r=m(e,t);return-1===r?0:e.length-r}return 0})(e,t);return r-Math.max(1,r-n)})(t,i.current))}),[t]);const u=b(t),p=a>0,h=p?b(t.slice(0,-a)):u;return o().createElement(c.Tooltip,{title:p?u:""},o().createElement("div",{className:l.listLabelContainer},o().createElement("div",{style:{width:f(r)},className:l.listLabel,ref:i},u),o().createElement("div",{className:l.visibleItemsLabel},h),p&&o().createElement("div",{className:l.hiddenCount},`+${a}`)))};var g=r(22385),y=r(97820),x=r(54763),w=r(7785),v=r(27239),O=r(44890);function C(){return C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(this,arguments)}const S=(0,a.always)(32),I=(0,n.memo)((e=>{let{selectedItems:t,onItemClick:r,focusIndex:n,width:l,height:i}=e,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["selectedItems","onItemClick","focusIndex","width","height"]);return o().createElement(O.Z,C({getItemSize:S,renderItem:(e,l,i)=>{let{item:a}=l;const s=!!t.find((e=>a.uri===e)),c=i===n;return o().createElement(w.Z,{key:a.uri,onClick:r,checked:s,data:a,label:o().createElement(v.Z,{text:a.label,highlight:a.filterText}),labelInText:a.label,style:e,isFocused:c,hideIcon:!0,LogoIcon:a.LogoIcon})},focusIndex:n,fixedTitle:!1,disableHorizontalScrollbar:!0,width:l,height:i},a))}));I.displayName="SelectMetadataTypesList";const E=(0,p.Z)({root:{borderRadius:"4px 4px 0 0",margin:0,fontSize:"14px",letterSpacing:0,lineHeight:"16px"},inputLabel:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%",top:"calc(50% - 23px)"},inputText:{display:"flex",flexGrow:1,alignItems:"center",height:"25px",width:"calc(100% - 53px)",paddingTop:"18px",paddingBottom:"4px",color:"rgba(0,0,0,0.87)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},input:{width:0,cursor:"pointer","&[disabled]":{backgroundColor:"transparent",cursor:"default"},"&$emptyInput":{width:"100%"}},emptyInput:{},disabledInput:{},disabledPointer:{},disabledUnderline:{},inputRoot:{flex:1,paddingRight:"4px",fontSize:"14px",letterSpacing:0,lineHeight:"16px","&$disabledInput":{backgroundColor:"rgba(0, 0, 0, 0.03)",cursor:"pointer","&$disabledPointer":{cursor:"default"},"&$disabledUnderline::before":{borderBottomStyle:"solid"}}},icon:{transform:"rotate(0deg)",transition:"transform 0.35s ease"},"popup-opened-icon":{transform:"rotate(-180deg)"}});function k(){return k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},k.apply(this,arguments)}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){P(e,t,r[t])}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const T=(0,n.memo)((e=>{let{placeholder:t,classes:r={},items:l,selectedItemsUris:p,onChange:d,ListLabelProps:m={},disabled:b,enableEmptyValueUnderline:f,single:w,label:v,dataReltioId:O,selectionPopupTitle:C}=e;const S=E(),[P,T]=(0,n.useState)(!1),N=(0,n.useCallback)((()=>T(!0)),[]),L=(0,n.useCallback)((()=>T(!1)),[]),[R,Z]=(0,n.useState)(""),D=(0,n.useCallback)((()=>Z("")),[]),A=(0,n.useCallback)((0,a.pipe)(D,L),[L,D]),F=l.filter((e=>{let{label:t}=e;return s.P6Y.strings.search(t,R)})).map(((e,t)=>({item:{item:j({},e,{filterText:R})},index:t}))),B=(0,n.useMemo)((()=>p.map((e=>l.find((0,a.propEq)("uri",e)))).map((0,a.prop)("label"))),[p,l]),W=(0,n.useCallback)(((e,t)=>{w?(d(t?[e.uri]:[]),A()):d(t?p.concat(e.uri):p.filter((t=>t!==e.uri)))}),[p,d,w,A]),$=(0,n.useCallback)((e=>{let{item:t}=e;const r=!p.includes(t.uri);W(t,r)}),[p,W]),{focusIndex:z,handleKeyDown:M}=(0,x.t)({items:F,open:P,onSelectFocusedItem:$,selectedItems:p,onClose:A}),H=(0,n.useRef)(),V=H.current?H.current.getBoundingClientRect().width:0,G=Math.max(V,255),U=0===p.length;return o().createElement(o().Fragment,null,o().createElement(c.TextField,{label:v,ref:H,InputProps:{startAdornment:U&&!t?null:o().createElement("div",{className:i()(S.inputText,r.inputText)},U?o().createElement("div",null,t):o().createElement(h,k({},m,{list:B}))),classes:{root:S.inputRoot,input:i()(S.input,r.input,{[S.emptyInput]:U&&!t}),disabled:i()(S.disabledInput,{[S.disabledPointer]:b}),underline:S.disabledUnderline},endAdornment:o().createElement(g.Z,{size:"L",icon:u.Z,iconClassName:i()(S.icon,{[S["popup-opened-icon"]]:P}),disabled:b}),readOnly:!0,disabled:!0,disableUnderline:U&&!f},inputProps:{tabIndex:-1},InputLabelProps:{classes:{root:i()(S.inputLabel,r.label)}},value:"",onClick:b?void 0:N,classes:{root:i()(S.root,r.root)},margin:"dense",variant:"filled",disabled:b,"data-reltio-id":O}),o().createElement(y.Z,{open:P,anchorEl:H.current,onClose:A,onSearch:Z,title:C,containerWidth:G,containerHeight:355,searchInputOnKeyDown:M,transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"left",vertical:"bottom"},PaperProps:{"data-reltio-id":`${O}-popup`}},o().createElement(I,{items:F,onItemClick:W,selectedItems:p,width:G,height:245,focusIndex:z})))}));T.displayName="MetadataTypesSelector"},23598:(e,t,r)=>{r.d(t,{Z:()=>C});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(71153),s=r.n(a),c=r(79692);const u=(0,c.Z)((()=>({row:{display:"flex",marginBottom:"12px"},rowItem:{paddingRight:"10px",display:"flex"},fullWidth:{flexGrow:"1",flexBasis:"0",overflow:"hidden"},hidden:{visibility:"hidden"}})));var p=r(87918),d=r.n(p),m=r(6782);const b="46px",f=(0,c.Z)((e=>({readOnlyLogicOperatorContainer:{display:"flex",alignItems:"center",marginRight:"40px",width:"76px",fontSize:"14px",color:e.palette.text.secondary,maxHeight:b},readOnlyFilter:{display:"flex",alignItems:"center",fontSize:"14px",color:e.palette.text.secondary,width:"50px",marginLeft:"12px",maxHeight:b}}))),h=e=>{let{className:t,rowData:r}=e;const n=f();return o().createElement("div",{className:s()(n.readOnlyLogicOperatorContainer,t)},r&&r.operator?(0,m.Z)(r.operator):d().text("Where"))};h.propTypes={className:i().string,rowData:i().object};const g=h;var y=r(16299);const x=e=>{let{className:t,rowData:r}=e;const n=f();return o().createElement("div",{className:s()(n.readOnlyFilter,t)},r&&r.filter?(0,y.XS2)(r.filter):d().text("equals"))};x.propTypes={className:i().string,rowData:i().object};const w=x;var v=r(94656);const O=e=>{let{classes:t={},rowData:r,previousRowData:n,LogicOperatorComponent:l=g,AttributeSelectorComponent:i,FilterSelectorComponent:a=w,ValuesEditorComponent:c,ActionsComponent:p,filterSelectorRef:d,attributeSelectorProps:m={}}=e,b=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["classes","rowData","previousRowData","LogicOperatorComponent","AttributeSelectorComponent","FilterSelectorComponent","ValuesEditorComponent","ActionsComponent","filterSelectorRef","attributeSelectorProps"]);const f=u();return o().createElement("div",{className:s()(f.row,t.root)},o().createElement(l,{className:t.logicOperatorContainer,rowContext:b,rowData:n}),o().createElement("div",{className:s()(f.rowItem,t.attributeSelectorContainer)},o().createElement(i,{attributeSelectorProps:m,rowContext:b,rowData:r})),o().createElement("div",{className:s()(f.rowItem,t.filterSelectorContainer)},o().createElement(a,{textFieldInputRef:d,rowContext:b,rowData:r})),o().createElement("div",{className:s()(f.rowItem,f.fullWidth,t.valuesEditorContainer)},o().createElement(c,{rowContext:b,rowData:r})),o().createElement("div",{className:s()(f.rowItem,t.actionsContainer,{[f.hidden]:!r})},o().createElement(p,{rowContext:b,rowData:r})))};O.propTypes={classes:i().shape({root:i().string,logicOperatorContainer:i().string,attributeSelectorContainer:i().string,filterSelectorContainer:i().string,valuesEditorContainer:i().string,actionsContainer:i().string}),rowData:v.Xw,previousRowData:v.Xw,LogicOperatorComponent:i().elementType,AttributeSelectorComponent:i().elementType,FilterSelectorComponent:i().elementType,ValuesEditorComponent:i().elementType,ActionsComponent:i().elementType,filterSelectorRef:i().object,attributeSelectorProps:i().shape({onRestoreFocus:i().func,onOpen:i().func,disablePopoverRestoreFocus:i().bool})};const C=(0,n.memo)(O)},41315:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(17440),s=r(23598),c=r(94656);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}const p=e=>{let{className:t,rowClasses:r,rowsData:n,lastRowAttributeSelectorProps:l,filterSelectorRef:i,filterSelectorRefIndex:c}=e,p=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["className","rowClasses","rowsData","lastRowAttributeSelectorProps","filterSelectorRef","filterSelectorRefIndex"]);const d=(e,t,n)=>{const d=t>0?(0,a.path)([t-1],n):null,m=t===n.length?{attributeSelectorProps:l}:{};return o().createElement(s.Z,u({key:e&&e.id,rowData:e,previousRowData:d,classes:r,filterSelectorRef:t===c?i:void 0},p,m))};return o().createElement("div",{className:t},n.map(d),d(null,n.length,n))};p.propTypes={className:i().string,rowClasses:i().shape({root:i().string,logicOperatorContainer:i().string,attributeSelectorContainer:i().string,filterSelectorContainer:i().string,valuesEditorContainer:i().string,actionsContainer:i().string}),rowsData:i().arrayOf(c.Xw),LogicOperatorComponent:i().elementType,AttributeSelectorComponent:i().elementType,FilterSelectorComponent:i().elementType,ValuesEditorComponent:i().elementType,ActionsComponent:i().elementType,filterSelectorRef:i().object,filterSelectorRefIndex:i().number,lastRowAttributeSelectorProps:i().shape({onRestoreFocus:i().func,onOpen:i().func,disablePopoverRestoreFocus:i().bool})};const d=(0,n.memo)(p)},50905:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(54573),o=r(17440);const l={BY_LABEL:(0,n.c)({stringify:(0,o.prop)("label")})}}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5400],{79821:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(24328),o=r.n(n),l=r(52730),i=r(87638),a=r(99493),s=r(97991);const c=(0,r(79692).Z)({icon:{maxHeight:"25px",maxWidth:"25px",marginRight:"16px"}}),u=e=>{let{group:t,metadata:r}=e;const n=c(),u=(0,l.useSelector)(i.ZP.selectors.getAbsoluteImagePath),p=(0,a.XH8)(r,{type:t.id}),d=(0,a.vPL)(u,p);return o().createElement(s.Z,{className:n.icon,icon:d,avatarText:t.title[0]})}},99757:(e,t,r)=>{r.d(t,{Z:()=>V});var n=r(24328),o=r.n(n),l=r(87918),i=r.n(l),a=r(71153),s=r.n(a),c=r(17440),u=r(97820),p=r(54763),d=r(45767),m=r(88611),b=r(22385),f=r(79692);const h=(0,f.Z)({attribute:{cursor:"pointer",lineHeight:"16px",flexBasis:"100%",display:"flex",alignItems:"center",padding:"0 10px 0 16px",width:"calc(100% - 32px)","&$attributeWithValue":{borderBottom:"1px solid rgba(0,0,0,0.38)"},"&$disabled":{cursor:"default"}},disabled:{},attributeWithValue:{},noSelect:{},name:{fontSize:"14px",color:"rgba(0,0,0,0.87)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",direction:"rtl",textAlign:"left",flex:"1 0",width:"0","& $noSelect":{color:"rgba(0,0,0,0.38)"},"&$disabled":{color:"rgba(0,0,0,0.26)","& $noSelect":{color:"rgba(0,0,0,0.26)"}}}}),g=(0,c.either)((0,c.prop)("title"),(0,c.prop)("fieldName")),y=e=>{let{value:t,getLabel:r=g,onSelectAttributeClick:n,disabled:l=!1}=e;const a=h(),c=t&&r(t);return o().createElement("div",{onClick:l?void 0:n,className:s()(a.attribute,{[a.attributeWithValue]:!!c},{[a.disabled]:l})},o().createElement(m.C,{value:c},o().createElement("div",{className:s()(a.name,{[a.disabled]:l})},c||o().createElement("span",{className:a.noSelect},i().text("Select attribute")))),o().createElement(b.Z,{size:"M",icon:d.Z,disabled:l}))};var x=r(99493);function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){v(e,t,r[t])}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const O=(0,c.eqBy)((0,c.pick)(["fieldName","uri","entityTypeUri"])),C=(e,t)=>t&&!!t.find(O(e)),S=(e,t)=>e.title.toLowerCase().includes(t.toLowerCase()),I=(e,t)=>S(e,t)||(e.children||[]).some((e=>I(e,t))),E=(e,t)=>e.findIndex(O(t)),k=(0,x.fW1)("title"),j=function(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const i=S(e,n);return[{item:n?w({},e,{filterText:n}):e,level:o,groupId:t,groupName:r}].concat(e.children?e.children.filter((e=>l||i||I(e,n))).flatMap((e=>j(e,t,r,n,o+1,l||i))):[]).flat()},P=(0,c.curry)(((e,t)=>t.map((t=>({item:t,items:t.attributes.filter((t=>I(t,e))).map((r=>j(r,t.id,t.title,e)))}))).filter((e=>e.items.length))));var T=r(52730),N=r(94079),L=r(87638),R=r(7785),Z=r(44890),D=r(27239),A=r(79821);const F=(0,f.Z)({subHeader:{backgroundColor:"#f5f5f5",padding:"0 16px",margin:0,display:"flex",alignItems:"center",color:"rgba(0,0,0,0.84)",fontSize:"14px",fontWeight:500}});function B(){return B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B.apply(this,arguments)}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$(e,t,r[t])}))}return e}function $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const z=(0,n.memo)((e=>{let{selectedAttributes:t,onItemClick:r,focusIndex:n,hideCheckBox:l}=e,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["selectedAttributes","onItemClick","focusIndex","hideCheckBox"]);const a=F(),s=(0,T.useSelector)(L.ZP.selectors.getMetadata);return o().createElement(Z.Z,B({getItemSize:(e,t)=>t.items?40:28,renderItem:(e,i,a)=>{let{item:s,level:c,groupId:u,groupName:p}=i;const d=C(s,t),m=a===n;return o().createElement(R.Z,{key:`item-${u}-${s.fieldName}`,onClick:r,checked:d,data:W({},s,{groupName:p}),notSelectable:s.notSelectable,hideCheckBox:l,label:o().createElement(D.Z,{text:s.title,highlight:s.filterText}),labelInText:s.title,level:c,style:e,isFocused:m,groupId:u,LogoIcon:s.LogoIcon})},renderGroupTitle:(e,t)=>o().createElement(N.ListItem,{component:"div",className:a.subHeader,style:e,key:`group-${t.item.id}`},t.item.needGroupIcon&&o().createElement(A.Z,{group:t.item,metadata:s}),t.item.title),focusIndex:n},i))}));var M=r(56656);const H=(0,f.Z)({selector:{minWidth:"200px",alignItems:"stretch",background:"rgba(0,0,0, 0.0267)",boxSizing:"border-box",borderRadius:"4px",display:"flex"}}),V=(0,n.memo)((e=>{let{className:t,itemsGroups:r,value:l,getLabel:a,onSelect:d,onRestoreFocus:m=c.identity,onOpenPopup:b=c.identity,disableRestoreFocus:f=!1,disableEnforceFocus:h=!1,single:g=!1,ungroup:x=!1,disabled:v=!1,hideCheckBox:S=!1}=e;const I=H(),[j,T]=(0,n.useState)(null),N=(0,n.useCallback)((()=>T(null)),[]),L=!!j,[R,Z]=(0,n.useState)(""),D=(0,n.useCallback)((()=>Z("")),[]),[A,F]=(0,n.useState)([]),B=(0,n.useCallback)((()=>F([])),[]),W=(0,n.useMemo)((()=>P(R,r)),[r,R]),$=(0,n.useMemo)((()=>(0,c.pipe)((0,c.when)((0,c.always)(x),(0,c.chain)((0,c.pipe)((0,c.prop)("items"),c.flatten,(0,c.map)((0,c.pick)(["item","level"]))))),M.LG)(W)),[x,W]),V=(0,n.useMemo)((()=>Math.max(k(W),308)),[W]),G=(0,c.pipe)((0,c.tap)((0,c.pipe)(B,D,N)),m),U=(0,n.useRef)(),K=(0,n.useCallback)(((e,t)=>{d({checked:t,attribute:e,index:t?A.length:E(A,e),selectedAttributes:A}),g?(F(t?[e]:[]),G({})):(F((e=>{let{attribute:t,selectedAttributes:r,checked:n}=e;return n?r.concat(t):r.filter((e=>!O(t,e)))})({selectedAttributes:A,attribute:e,checked:t})),U.current&&U.current.focus())}),[A,d,g,G,U]),X=(0,n.useCallback)((e=>{let{onListItemClick:t,selectedAttributes:r}=e;return e=>{let{item:n,groupData:o}=e;const l=C(n,r);t(w({},n,{groupName:o.groupName}),!l)}})({onListItemClick:K,selectedAttributes:A}),[K,A]),{focusIndex:_,handleKeyDown:q}=(0,p.t)({items:$,open:L,onSelectFocusedItem:X,selectedItems:A,onClose:G});return o().createElement("div",{className:s()(I.selector,t),"data-reltio-id":"attribute-selector"},o().createElement(y,{value:l,getLabel:a,onSelectAttributeClick:e=>{b(),T(e.currentTarget)},disabled:v}),o().createElement(u.Z,{open:L,anchorEl:j,onClose:G,onSearch:Z,title:i().text("Select attribute"),containerWidth:V,containerHeight:507,searchInputOnKeyDown:q,anchorOrigin:{horizontal:"right",vertical:"bottom"},searchInputRef:U,disableRestoreFocus:f,disableEnforceFocus:h},o().createElement(z,{items:$,onItemClick:K,selectedAttributes:A,width:V,height:400,focusIndex:_,hideCheckBox:S})))}))},74566:(e,t,r)=>{r.d(t,{Z:()=>m});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(73038),s=r(58241),c=r(71153),u=r.n(c);const p=(0,r(79692).Z)((()=>({hidden:{visibility:"hidden"}}))),d=e=>{let{rowIndex:t,rowValue:r,className:l}=e;const i=p(),{toggleRowCollapse:c,getIsRowCollapsible:d,getIsRowCollapsed:m}=(0,n.useContext)(a.x),b=d(r),f=m(t);return o().createElement(s.Z,{className:u()(l,{[i.hidden]:!b}),isOpen:!f,onClick:e=>{c(t),e.stopPropagation()}})};d.propTypes={rowIndex:i().number,rowValue:i().object,className:i().string};const m=d},43290:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(24328),o=r.n(n),l=r(71153),i=r.n(l),a=r(17440);const s=(0,r(79692).Z)((e=>({bar:{backgroundColor:e.palette.secondary.main,opacity:.12,position:"absolute",minHeight:"20px",minWidth:"5px",borderRadius:"2px",top:0,left:0,height:"100%"}}))),c=e=>(0,a.is)(Number,e),u=e=>{let{className:t,width:r=0,maxWidth:l}=e;const a=s(),u=(0,n.useCallback)((e=>(l?100*e/l:0)+"%"),[l]);return r?o().createElement("div",{className:i()(a.bar,t),style:{width:c(r)?u(r):r}}):null}},89119:(e,t,r)=>{r.d(t,{Z:()=>S});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(87918),s=r.n(a),c=r(71153),u=r.n(c),p=r(17440),d=r(99493),m=r(97820),b=r(7785),f=r(56656),h=r(44890),g=r(54763),y=r(27239);const x=(0,r(79692).Z)((()=>({popupContainer:{},container:{"&$popupContainer":{height:"408px",minWidth:"200px"}}})));function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){O(e,t,r[t])}))}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const C=e=>{let{open:t,anchorEl:r,data:l,onSearch:i,onClose:a,titleText:s,filterText:c,onListItemClick:O,selected:C,hideCheckBox:S,renderGroupTitle:I}=e,E=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["open","anchorEl","data","onSearch","onClose","titleText","filterText","onListItemClick","selected","hideCheckBox","renderGroupTitle"]);const k=(0,n.useCallback)((e=>e.label.toLowerCase().includes(c.toLowerCase())),[c]),j=(0,n.useCallback)((e=>k(e)||(e.children||[]).some(j)),[k]),P=(0,n.useMemo)((()=>{const e=(0,p.curry)(((e,r,n,o)=>[{item:v({},r,{filterText:c}),level:e,groupId:n,groupName:o},...t(r.children||[],n,o,e+1)])),t=function(t,r,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const l=t=>e(o,t,r,n),i=t.filter(j);return(I?p.map:p.chain)(l,i)};return t}),[c,I,j]),T=(0,n.useCallback)((e=>e.map((e=>({item:e,items:P(e.attributes,e.id,e.label)}))).filter((e=>e.items.length))),[P]),N=(0,n.useCallback)((e=>{let{item:t}=e;O(t,!C.find((e=>e.id===t.id||e.id.includes(`${t.id}.`))))}),[O,C]),L=(0,n.useMemo)((()=>(I?T:P)(l)),[l,I,T,P]),R=(0,n.useMemo)((()=>(0,f.LG)(L)),[L]),{focusIndex:Z,handleKeyDown:D}=(0,g.t)({items:R,open:t,onSelectFocusedItem:N,selectedItems:C}),A=(0,n.useRef)(null);A.current=Z;const F=(0,n.useCallback)(((e,t,r)=>{let{item:n,level:l=0}=t;const i=!!C.find((e=>e.id===n.id||e.id.includes(`${n.id}.`))),a=A.current===r;return o().createElement(b.Z,{key:n.id,onClick:O,checked:i,level:l,data:n,label:o().createElement(y.Z,{text:n.label,highlight:n.filterText}),labelInText:n.label,style:e,hideCheckBox:S,isFocused:a,notSelectable:n.notSelectable,LogoIcon:n.LogoIcon})}),[S,O,C]),B=(0,d.fW1)("label")(L)||308,W=x();return o().createElement(m.Z,w({open:t,className:u()(W.container,W.popupContainer),anchorEl:r,onClose:a,onSearch:i,title:s,containerWidth:B,searchInputOnKeyDown:D},E),o().createElement(h.Z,{height:300,renderItem:F,items:R,hideSubtitles:!0,getItemSize:()=>32,containerWidth:B,focusIndex:Z,renderGroupTitle:I}))};C.propTypes={open:i().bool,hideCheckBox:i().bool,anchorEl:i().any,selected:i().array,data:i().array,filterText:i().string,titleText:i().string,onClose:i().func,onListItemClick:i().func,onSearch:i().func,renderGroupTitle:i().func},C.defaultProps={data:[],selected:[],titleText:s().text("Show/hide columns"),filterText:""};const S=C},27652:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(24328),o=r.n(n),l=r(4190),i=r(60364);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}const s=e=>{let{open:t=!0,children:r}=e,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["open","children"]);const[c,u]=(0,n.useState)(t),p=(0,i.Z)().transitions.duration.leavingScreen;return(0,n.useEffect)((()=>{if(t!==c){if(!t){const e=setTimeout((()=>{u(!1)}),p);return()=>clearTimeout(e)}u(!0)}}),[t,p,c]),o().createElement(l.ZP,a({open:t},s),c&&r)};s.displayName="Drawer";const c=s},59725:(e,t,r)=>{r.d(t,{Q:()=>c});var n=r(24328),o=r.n(n),l=r(87918),i=r.n(l),a=r(99493),s=r(42520);const c=(0,n.memo)((e=>{let{entityTypes:t,selectedEntityTypes:r,single:l,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d={},ListLabelProps:m={},disabled:b=!1}=e;const f=(0,n.useMemo)((()=>t.filter(a.oDv)),[t]);return o().createElement(s.S,{items:f,selectedItemsUris:r,single:l,placeholder:c,enableEmptyValueUnderline:u,onChange:p,classes:d,ListLabelProps:m,disabled:b,label:i().text("Entity type"),dataReltioId:"entity-type-selector",selectionPopupTitle:i().text("Select entity types")})}));c.displayName="EntityTypesSelector"},42520:(e,t,r)=>{r.d(t,{S:()=>T});var n=r(24328),o=r.n(n),l=r(71153),i=r.n(l),a=r(17440),s=r(99493),c=r(94079),u=r(83543),p=r(79692);const d=(0,p.Z)({listLabelContainer:{display:"flex",alignItems:"center",position:"relative",overflow:"hidden",whiteSpace:"nowrap",justifyContent:"space-between",height:"100%",width:"100%"},listLabel:{visibility:"hidden",position:"absolute",overflow:"hidden"},visibleItemsLabel:{textOverflow:"ellipsis",marginRight:"5px",overflow:"hidden",flex:1,flexBasis:"auto"},hiddenCount:{color:"rgba(0,0,0,0.87)",fontSize:"13px",lineHeight:"15px",padding:"5px 8px",borderRadius:"16px",backgroundColor:"rgba(0,0,0,.12)"}}),m=(e,t)=>{const{childNodes:r,clientLeft:n,clientWidth:o}=t;if(r.length>0){const[t]=Array.from(r),l=document.createRange();l.setStart(t,0);for(let r=0;r<e.length;r++){l.setEnd(t,l.endOffset+e[r].length);const{width:i}=l.getBoundingClientRect();if(n+i>o)return r;r!==e.length-1&&l.setEnd(t,l.endOffset+", ".length)}}return-1},b=e=>e.join(", "),f=e=>`calc(${(0,a.isNil)(e)?"100%":`${e}px`} - 35px)`,h=e=>{let{list:t,maxWidth:r}=e;const l=d(),i=(0,n.useRef)(),[a,s]=(0,n.useState)(0);(0,n.useEffect)((()=>{s(((e,t)=>{const r=e.length,n=((e,t)=>{if(t){const r=m(e,t);return-1===r?0:e.length-r}return 0})(e,t);return r-Math.max(1,r-n)})(t,i.current))}),[t]);const u=b(t),p=a>0,h=p?b(t.slice(0,-a)):u;return o().createElement(c.Tooltip,{title:p?u:""},o().createElement("div",{className:l.listLabelContainer},o().createElement("div",{style:{width:f(r)},className:l.listLabel,ref:i},u),o().createElement("div",{className:l.visibleItemsLabel},h),p&&o().createElement("div",{className:l.hiddenCount},`+${a}`)))};var g=r(22385),y=r(97820),x=r(54763),w=r(7785),v=r(27239),O=r(44890);function C(){return C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(this,arguments)}const S=(0,a.always)(32),I=(0,n.memo)((e=>{let{selectedItems:t,onItemClick:r,focusIndex:n,width:l,height:i}=e,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["selectedItems","onItemClick","focusIndex","width","height"]);return o().createElement(O.Z,C({getItemSize:S,renderItem:(e,l,i)=>{let{item:a}=l;const s=!!t.find((e=>a.uri===e)),c=i===n;return o().createElement(w.Z,{key:a.uri,onClick:r,checked:s,data:a,label:o().createElement(v.Z,{text:a.label,highlight:a.filterText}),labelInText:a.label,style:e,isFocused:c,hideIcon:!0,LogoIcon:a.LogoIcon})},focusIndex:n,fixedTitle:!1,disableHorizontalScrollbar:!0,width:l,height:i},a))}));I.displayName="SelectMetadataTypesList";const E=(0,p.Z)({root:{borderRadius:"4px 4px 0 0",margin:0,fontSize:"14px",letterSpacing:0,lineHeight:"16px"},inputLabel:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%",top:"calc(50% - 23px)"},inputText:{display:"flex",flexGrow:1,alignItems:"center",height:"25px",width:"calc(100% - 53px)",paddingTop:"18px",paddingBottom:"4px",color:"rgba(0,0,0,0.87)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},input:{width:0,cursor:"pointer","&[disabled]":{backgroundColor:"transparent",cursor:"default"},"&$emptyInput":{width:"100%"}},emptyInput:{},disabledInput:{},disabledPointer:{},disabledUnderline:{},inputRoot:{flex:1,paddingRight:"4px",fontSize:"14px",letterSpacing:0,lineHeight:"16px","&$disabledInput":{backgroundColor:"rgba(0, 0, 0, 0.03)",cursor:"pointer","&$disabledPointer":{cursor:"default"},"&$disabledUnderline::before":{borderBottomStyle:"solid"}}},icon:{transform:"rotate(0deg)",transition:"transform 0.35s ease"},"popup-opened-icon":{transform:"rotate(-180deg)"}});function k(){return k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},k.apply(this,arguments)}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){P(e,t,r[t])}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const T=(0,n.memo)((e=>{let{placeholder:t,classes:r={},items:l,selectedItemsUris:p,onChange:d,ListLabelProps:m={},disabled:b,enableEmptyValueUnderline:f,single:w,label:v,dataReltioId:O,selectionPopupTitle:C}=e;const S=E(),[P,T]=(0,n.useState)(!1),N=(0,n.useCallback)((()=>T(!0)),[]),L=(0,n.useCallback)((()=>T(!1)),[]),[R,Z]=(0,n.useState)(""),D=(0,n.useCallback)((()=>Z("")),[]),A=(0,n.useCallback)((0,a.pipe)(D,L),[L,D]),F=l.filter((e=>{let{label:t}=e;return s.P6Y.strings.search(t,R)})).map(((e,t)=>({item:{item:j({},e,{filterText:R})},index:t}))),B=(0,n.useMemo)((()=>p.map((e=>l.find((0,a.propEq)("uri",e)))).map((0,a.prop)("label"))),[p,l]),W=(0,n.useCallback)(((e,t)=>{w?(d(t?[e.uri]:[]),A()):d(t?p.concat(e.uri):p.filter((t=>t!==e.uri)))}),[p,d,w,A]),$=(0,n.useCallback)((e=>{let{item:t}=e;const r=!p.includes(t.uri);W(t,r)}),[p,W]),{focusIndex:z,handleKeyDown:M}=(0,x.t)({items:F,open:P,onSelectFocusedItem:$,selectedItems:p,onClose:A}),H=(0,n.useRef)(),V=H.current?H.current.getBoundingClientRect().width:0,G=Math.max(V,255),U=0===p.length;return o().createElement(o().Fragment,null,o().createElement(c.TextField,{label:v,ref:H,InputProps:{startAdornment:U&&!t?null:o().createElement("div",{className:i()(S.inputText,r.inputText)},U?o().createElement("div",null,t):o().createElement(h,k({},m,{list:B}))),classes:{root:S.inputRoot,input:i()(S.input,r.input,{[S.emptyInput]:U&&!t}),disabled:i()(S.disabledInput,{[S.disabledPointer]:b}),underline:S.disabledUnderline},endAdornment:o().createElement(g.Z,{size:"L",icon:u.Z,iconClassName:i()(S.icon,{[S["popup-opened-icon"]]:P}),disabled:b}),readOnly:!0,disabled:!0,disableUnderline:U&&!f},inputProps:{tabIndex:-1},InputLabelProps:{classes:{root:i()(S.inputLabel,r.label)}},value:"",onClick:b?void 0:N,classes:{root:i()(S.root,r.root)},margin:"dense",variant:"filled",disabled:b,"data-reltio-id":O}),o().createElement(y.Z,{open:P,anchorEl:H.current,onClose:A,onSearch:Z,title:C,containerWidth:G,containerHeight:355,searchInputOnKeyDown:M,transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"left",vertical:"bottom"},PaperProps:{"data-reltio-id":`${O}-popup`}},o().createElement(I,{items:F,onItemClick:W,selectedItems:p,width:G,height:245,focusIndex:z})))}));T.displayName="MetadataTypesSelector"},23598:(e,t,r)=>{r.d(t,{Z:()=>C});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(71153),s=r.n(a),c=r(79692);const u=(0,c.Z)((()=>({row:{display:"flex",marginBottom:"12px"},rowItem:{paddingRight:"10px",display:"flex"},fullWidth:{flexGrow:"1",flexBasis:"0",overflow:"hidden"},hidden:{visibility:"hidden"}})));var p=r(87918),d=r.n(p),m=r(6782);const b="46px",f=(0,c.Z)((e=>({readOnlyLogicOperatorContainer:{display:"flex",alignItems:"center",marginRight:"40px",width:"76px",fontSize:"14px",color:e.palette.text.secondary,maxHeight:b},readOnlyFilter:{display:"flex",alignItems:"center",fontSize:"14px",color:e.palette.text.secondary,width:"50px",marginLeft:"12px",maxHeight:b}}))),h=e=>{let{className:t,rowData:r}=e;const n=f();return o().createElement("div",{className:s()(n.readOnlyLogicOperatorContainer,t)},r&&r.operator?(0,m.Z)(r.operator):d().text("Where"))};h.propTypes={className:i().string,rowData:i().object};const g=h;var y=r(99493);const x=e=>{let{className:t,rowData:r}=e;const n=f();return o().createElement("div",{className:s()(n.readOnlyFilter,t)},r&&r.filter?(0,y.XS2)(r.filter):d().text("equals"))};x.propTypes={className:i().string,rowData:i().object};const w=x;var v=r(94656);const O=e=>{let{classes:t={},rowData:r,previousRowData:n,LogicOperatorComponent:l=g,AttributeSelectorComponent:i,FilterSelectorComponent:a=w,ValuesEditorComponent:c,ActionsComponent:p,filterSelectorRef:d,attributeSelectorProps:m={}}=e,b=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["classes","rowData","previousRowData","LogicOperatorComponent","AttributeSelectorComponent","FilterSelectorComponent","ValuesEditorComponent","ActionsComponent","filterSelectorRef","attributeSelectorProps"]);const f=u();return o().createElement("div",{className:s()(f.row,t.root)},o().createElement(l,{className:t.logicOperatorContainer,rowContext:b,rowData:n}),o().createElement("div",{className:s()(f.rowItem,t.attributeSelectorContainer)},o().createElement(i,{attributeSelectorProps:m,rowContext:b,rowData:r})),o().createElement("div",{className:s()(f.rowItem,t.filterSelectorContainer)},o().createElement(a,{textFieldInputRef:d,rowContext:b,rowData:r})),o().createElement("div",{className:s()(f.rowItem,f.fullWidth,t.valuesEditorContainer)},o().createElement(c,{rowContext:b,rowData:r})),o().createElement("div",{className:s()(f.rowItem,t.actionsContainer,{[f.hidden]:!r})},o().createElement(p,{rowContext:b,rowData:r})))};O.propTypes={classes:i().shape({root:i().string,logicOperatorContainer:i().string,attributeSelectorContainer:i().string,filterSelectorContainer:i().string,valuesEditorContainer:i().string,actionsContainer:i().string}),rowData:v.Xw,previousRowData:v.Xw,LogicOperatorComponent:i().elementType,AttributeSelectorComponent:i().elementType,FilterSelectorComponent:i().elementType,ValuesEditorComponent:i().elementType,ActionsComponent:i().elementType,filterSelectorRef:i().object,attributeSelectorProps:i().shape({onRestoreFocus:i().func,onOpen:i().func,disablePopoverRestoreFocus:i().bool})};const C=(0,n.memo)(O)},41315:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),o=r.n(n),l=r(13980),i=r.n(l),a=r(17440),s=r(23598),c=r(94656);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}const p=e=>{let{className:t,rowClasses:r,rowsData:n,lastRowAttributeSelectorProps:l,filterSelectorRef:i,filterSelectorRefIndex:c}=e,p=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["className","rowClasses","rowsData","lastRowAttributeSelectorProps","filterSelectorRef","filterSelectorRefIndex"]);const d=(e,t,n)=>{const d=t>0?(0,a.path)([t-1],n):null,m=t===n.length?{attributeSelectorProps:l}:{};return o().createElement(s.Z,u({key:e&&e.id,rowData:e,previousRowData:d,classes:r,filterSelectorRef:t===c?i:void 0},p,m))};return o().createElement("div",{className:t},n.map(d),d(null,n.length,n))};p.propTypes={className:i().string,rowClasses:i().shape({root:i().string,logicOperatorContainer:i().string,attributeSelectorContainer:i().string,filterSelectorContainer:i().string,valuesEditorContainer:i().string,actionsContainer:i().string}),rowsData:i().arrayOf(c.Xw),LogicOperatorComponent:i().elementType,AttributeSelectorComponent:i().elementType,FilterSelectorComponent:i().elementType,ValuesEditorComponent:i().elementType,ActionsComponent:i().elementType,filterSelectorRef:i().object,filterSelectorRefIndex:i().number,lastRowAttributeSelectorProps:i().shape({onRestoreFocus:i().func,onOpen:i().func,disablePopoverRestoreFocus:i().bool})};const d=(0,n.memo)(p)},50905:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(54573),o=r(17440);const l={BY_LABEL:(0,n.c)({stringify:(0,o.prop)("label")})}}}]);
package/5580.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5580],{58662:(e,t,a)=>{a.d(t,{Z:()=>v});var n=a(13980),r=a.n(n),l=a(24328),o=a.n(l),i=a(71153),c=a.n(i),s=a(94079),p=a(87918),u=a.n(p),d=a(31276),f=a(17440);const m=(0,a(79692).Z)({pagination:{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"56px",borderTop:"1px solid rgba(0,0,0,0.12)",boxShadow:"none"},caption:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px"},selectRoot:{marginLeft:"5px",marginRight:"36px"},select:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px",textAlign:"right"},actions:{marginLeft:"32px"}});function h(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),n.forEach((function(t){g(e,t,a[t])}))}return e}function g(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const y=e=>{let{classes:t={},count:a,rowsPerPageOptions:n,page:r,onChangePage:i,rowsPerPage:p,onChangeRowsPerPage:g,basicTableRef:y,labelRowsPerPage:v}=e;const E=m(),b=(0,l.useCallback)((()=>{(0,f.pathOr)(f.identity,["current","resetScrollbarPosition"],y)()}),[y]),x=(0,l.useCallback)((e=>{i(e),b()}),[i,b]),O=(0,l.useCallback)((e=>{i(0),g(e),b()}),[i,g,b]);return o().createElement(s.TablePagination,{classes:h({},t,{root:c()(E.pagination,t.root),select:c()(E.select,t.select),caption:E.caption,selectRoot:E.selectRoot,actions:E.actions}),component:"div",labelRowsPerPage:v||u().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:a,count:n}=e;return u().text("${fromRow}-${toRow} of ${countRows}",{fromRow:u().number(t,"0,0"),toRow:u().number(a,"0,0"),countRows:u().number(n,"0,0")})},count:a,rowsPerPageOptions:n,page:r,onChangePage:(0,f.pipe)((0,f.nthArg)(1),x),rowsPerPage:p,onChangeRowsPerPage:(0,f.pipe)(d.NA,O)})};y.propTypes={classes:r().object,rowsPerPageOptions:r().arrayOf(r().number),count:r().number,page:r().number,onChangePage:r().func,rowsPerPage:r().number,onChangeRowsPerPage:r().func,basicTableRef:r().shape({current:r().object}),labelRowsPerPage:r().string};const v=o().memo(y)},10237:(e,t,a)=>{a.d(t,{Z:()=>f});var n=a(27556),r=a(13980),l=a.n(r),o=a(24328),i=a.n(o);function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),n.forEach((function(t){s(e,t,a[t])}))}return e}function s(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const p=(0,a(79692).Z)((e=>({"basic-view__paper":c({display:"flex",flexDirection:"column"},e.basicView)})));function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},u.apply(this,arguments)}const d=(0,o.forwardRef)(((e,t)=>{let{children:a,className:r}=e,l=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["children","className"]);const o=p();return i().createElement(n.Z,u({ref:t,className:r,classes:{root:o["basic-view__paper"]}},l),a)}));d.displayName="BasicView",d.propTypes={children:l().node,className:l().string};const f=d},92778:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(24328),r=a.n(n),l=a(15223),o=a(94079);const i=(0,a(79692).Z)({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(this,arguments)}const s=e=>{let{title:t,children:a=null,classes:n={}}=e,s=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["title","children","classes"]);const p=i();return r().createElement(l.Z,c({className:n.root,classes:{root:p.toolbar}},s),r().createElement(o.Typography,{className:n.title,classes:{root:p.title},variant:"h6"},t),a)}},58241:(e,t,a)=>{a.d(t,{Z:()=>u});var n=a(24328),r=a.n(n),l=a(71153),o=a.n(l),i=a(8818),c=a(38016);const s=(0,a(79692).Z)({collapseButton:{cursor:"pointer"},expandLess:{transform:"rotate( -180deg )"}});function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},p.apply(this,arguments)}const u=e=>{let{isOpen:t=!1,tooltipTitle:a}=e,n=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["isOpen","tooltipTitle"]);const l=s(),u={icon:c.Z,className:l.collapseButton,iconClassName:o()({[l.expandLess]:t})},d={tooltipTitle:a};return r().createElement(i.k,p({},u,d,n))}},37699:(e,t,a)=>{a.d(t,{Z:()=>x});var n=a(24328),r=a.n(n),l=a(13980),o=a.n(l),i=a(87918),c=a.n(i),s=a(58697),p=a.n(s),u=a(17440),d=a(23147),f=a(94079),m=a(22385),h=a(16299),g=a(43305),y=a(8459);const v=(0,a(79692).Z)((e=>({container:{display:"flex",flexDirection:"column",minHeight:"182px"},header:{display:"flex",paddingLeft:"10px",backgroundColor:"#FFFFFF"},title:{marginLeft:"10px",color:e.palette.text.primary,fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px"},dateRangeContainer:{display:"flex",flexGrow:1,whiteSpace:"nowrap",cursor:"default",paddingTop:"8px"},dateInput:{margin:"0 7px"},actionButtons:{display:"flex",justifyContent:"flex-end",height:"48px",margin:"0px 8px"},button:{width:"96px"}}))),E=(e,t)=>(0,u.pathOr)(null,[t],e),b=(0,n.forwardRef)(((e,t)=>{let{onCancel:a,onApply:l,values:o,type:i}=e;const s=v(),u=(0,n.useRef)(p()()),b=(0,n.useRef)(p()()),[x,O]=(0,n.useState)(null),[w,R]=(0,n.useState)(null);r().useEffect((()=>{O(E(o,0)),R(E(o,1))}),[o]);const M=i===h.oS0.TYPE_TIMESTAMP?g.Z:y.Z,P=i===h.oS0.TYPE_TIMESTAMP?c().text("Pick date and time"):c().text("Pick date");return r().createElement("div",{className:s.container,ref:t,onKeyDown:e=>"Tab"===e.key&&e.stopPropagation()},r().createElement(f.Toolbar,{disableGutters:!0,classes:{root:s.header}},r().createElement(m.Z,{size:"L",icon:d.Z,onClick:a}),r().createElement(f.Typography,{className:s.title},P)),r().createElement("div",{className:s.dateRangeContainer},r().createElement(M,{id:u.current,label:"From",variant:"filled",value:x,onChange:e=>{O(e)},className:s.dateInput,margin:"dense"}),r().createElement(M,{id:b.current,label:"To",variant:"filled",value:w,onChange:e=>{R(e)},className:s.dateInput,margin:"dense"})),r().createElement("div",{className:s.actionButtons},r().createElement(f.Button,{color:"primary",onClick:()=>{l(x&&w&&x>w?[w,x]:[x,w])},className:s.button},c().text("Update"))))}));b.propTypes={onCancel:o().func.isRequired,onApply:o().func.isRequired,values:o().arrayOf(o().instanceOf(Date)),type:o().string},b.displayName="DateRangePicker";const x=b},55847:(e,t,a)=>{a.d(t,{Z:()=>b});var n=a(24328),r=a.n(n),l=a(71153),o=a.n(l),i=a(17440),c=a(94079),s=a(48348),p=a(20562),u=a(83348),d=a(79692),f=a(41128);const m=(0,d.Z)((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,f.U1)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,f.U1)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),h=(0,u.Z)(c.MenuItem),g=(0,n.forwardRef)(((e,t)=>{let{item:a,onMenuClose:n=i.identity}=e;const l=m(),{disabled:o,text:s,tooltip:p,onClick:u,id:d=""}=a;return r().createElement(h,{tooltipTitle:p,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{n(e),u(e)},disabled:o,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${d}`},r().createElement(c.Typography,{classes:{root:l.menuText}},s))}));g.displayName="MenuItemRenderer";const y=g;function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},v.apply(this,arguments)}function E(e){let{className:t,menuId:a,buttonComponent:l=c.Button,buttonContent:u,menuItems:d=[],buttonProps:f={},popoverProps:h={},onMenuOpen:g=i.identity,onMenuClose:E=i.identity,MenuItemRenderer:b=y}=e;const x=l,O=m(),w=(0,n.useRef)(),[R,M]=(0,n.useState)(!1);(0,p.D)((()=>{R?g():E()}),[R]);const P=(0,n.useCallback)((e=>{null==e||e.stopPropagation(),M((e=>!e))}),[]);return r().createElement(r().Fragment,null,r().createElement(x,v({ref:w,className:o()(O.buttonRoot,{[O.selected]:R},t),onClick:P,"aria-pressed":R,"aria-controls":R?a:void 0,"aria-haspopup":"true"},f),u),r().createElement(s.Z,v({id:a,variant:"menu",open:R,autoFocus:!1,classes:{paper:O.paper},anchorEl:w.current,onClose:P,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:R}},h),d.map(((e,t)=>r().createElement(b,{item:e,key:t,onMenuClose:P})))))}E.displayName="DropDownMenuButton";const b=E},6230:(e,t,a)=>{a.d(t,{J:()=>s});var n=a(24328),r=a.n(n),l=a(87918),o=a.n(l),i=a(15689);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(this,arguments)}const s=e=>r().createElement(i.Z,c({message:o().text("No data available")},e))},63072:(e,t,a)=>{a.d(t,{b:()=>o});var n=a(24328),r=a(16299),l=a(56764);const o=e=>{let{filter:t,max:a,offset:o,entityUri:i}=e;return(0,n.useCallback)((async()=>{const e=(0,l.U)(t),n=await(0,r.k6v)({filter:e,max:a,offset:o,entityUri:i}),{total:c}=await(0,r.FEC)({filter:e,entityUri:i});return{data:n,total:c}}),[t,a,o,i])}},96808:(e,t,a)=>{a.d(t,{Z:()=>m});var n=a(13980),r=a.n(n),l=a(24328),o=a.n(l),i=a(71153),c=a.n(i),s=a(10161),p=a(83543),u=a(22385);function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},d.apply(this,arguments)}const f=e=>{const{selectProps:{classes:t,menuIsOpen:a},innerProps:n}=e,r=(0,s.m)();return o().createElement(u.Z,d({},n,{icon:p.Z,className:t.dropdownIndicator,size:"L",iconClassName:c()({[r.expanded]:a})}))};f.propTypes={innerProps:r().object.isRequired,selectProps:r().shape({classes:r().shape({dropdownIndicator:r().string}).isRequired,menuIsOpen:r().bool.isRequired}).isRequired};const m=f},24489:(e,t,a)=>{a.r(t),a.d(t,{default:()=>_});var n=a(8598),r=a(36138),l=a(22664),o=a(39450),i=a(585),c=a(24328),s=a.n(c),p=a(52730),u=a(44443),d=a(67885),f=a(6230),m=a(2256),h=a(88234),g=a(10237),y=a(92778),v=a(4094),E=a(93438),b=a(87638),x=a(16299),O=a(87918),w=a.n(O),R=a(17440),M=a(67218),P=a(63072),z=a(94079),C=a(43266);function S(){return S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},S.apply(this,arguments)}const j=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return s().createElement("svg",S({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),s().createElement("mask",{id:"svg2440373321a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},s().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),s().createElement("g",{mask:"url(#svg2440373321a)"},s().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:".3"}),s().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),s().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),s().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),s().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),s().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),s().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),s().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),s().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),s().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),s().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),s().createElement("path",{opacity:".5",d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".3",d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".8",d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),s().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".2",d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),s().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),s().createElement("g",{filter:"url(#filter0_d)"},s().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),s().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),s().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),s().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),s().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),s().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),s().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#paint0_linear)"}),s().createElement("g",{filter:"url(#filter1_d)"},s().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),s().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),s().createElement("g",{filter:"url(#filter2_d)"},s().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),s().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),s().createElement("defs",null,s().createElement("filter",{id:"filter0_d",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},s().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s().createElement("feOffset",{dy:"2"}),s().createElement("feGaussianBlur",{stdDeviation:"2"}),s().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),s().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),s().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),s().createElement("filter",{id:"filter1_d",x:"51.688",y:"62.625",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},s().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s().createElement("feOffset",{dy:"2"}),s().createElement("feGaussianBlur",{stdDeviation:"2"}),s().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),s().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),s().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),s().createElement("filter",{id:"filter2_d",x:"51.688",y:"44.063",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},s().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s().createElement("feOffset",{dy:"2"}),s().createElement("feGaussianBlur",{stdDeviation:"2"}),s().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),s().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),s().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),s().createElement("linearGradient",{id:"paint0_linear",x1:"68.438",y1:"71.571",x2:"60.119",y2:"58.801",gradientUnits:"userSpaceOnUse"},s().createElement("stop",{stopOpacity:"0"}),s().createElement("stop",{offset:"1"}))))};var B=a(79692);const k=(0,B.Z)((e=>({errorContainer:e=>{let{height:t}=e;return{height:t?`${t}px`:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)"}},errorIcon:{height:"88px",width:"88px",marginBottom:"20px",paddingTop:"36px"},refreshButton:{color:e.palette.primary.main,marginTop:"10px"},refreshIcon:{width:"24px",height:"24px"}}))),I=e=>{let{height:t,onRefresh:a,message:n}=e;const r=k({height:t});return s().createElement("div",{className:r.errorContainer},s().createElement(j,{className:r.errorIcon}),s().createElement(z.Typography,null,n),a&&s().createElement(z.Button,{className:r.refreshButton,startIcon:s().createElement(C.Z,{color:"primary",className:r.refreshIcon}),onClick:a},s().createElement(z.Typography,{variant:"button"},w().text("Refresh"))))},Z=(0,B.Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),T=()=>{const e=Z();return s().createElement(z.LinearProgress,{color:"secondary",className:e.loader})},N=[10,25,50,100],[F]=N,D=(0,B.Z)((()=>({viewContent:{overflow:"hidden",position:"relative",fontFamily:"Roboto, Helvetica, Arial, sans-serif",padding:"4px 17px 24px",display:"flex",flexDirection:"column"},activityLog:{flex:1,overflowY:"auto"},headerRoot:{lineHeight:"23px",minHeight:38,borderBottom:"1px solid rgba(0,0,0,0.12)"},headerTitle:{fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px"},basicView:{top:0,bottom:0,left:0,right:0,display:"flex",alignItems:"stretch",height:"100%"}}))),A=(0,c.memo)((e=>{let{config:t}=e;const[a,n]=(0,c.useState)(0),{exportTypes:r,caption:l}=t,o=D(),i=(0,p.useSelector)(b.ZP.selectors.getMetadata),O=(0,p.useSelector)(b.ZP.selectors.getEntity),z=(0,x.nt9)(i,null==O?void 0:O.type),C=null==O?void 0:O.uri,[S,j]=(0,c.useState)(F),B=(0,c.useMemo)((()=>{return e=F,N.filter((t=>t!==e)).concat(e).sort(R.subtract);var e}),[]),[k,Z]=(0,c.useState)({users:[],activities:[],attributes:[],sources:[],dateRange:{type:d.K.WITHIN,period:[4,"months"]}}),{state:A,data:H,total:_,reload:L}=(e=>{let{filter:t,max:a,offset:n,entityUri:r}=e;const[l,o]=(0,c.useState)([]),[i,s]=(0,c.useState)(0),[p,u]=(0,c.useState)(d.o.INIT),f=(0,M._)(),m=e=>{console.error(e),u(d.o.ERROR),o([]),s(0)},h=(0,P.b)({filter:t,max:a,offset:n,entityUri:r}),g=(0,c.useCallback)((()=>{if(!r)return;u(d.o.LOADING);const e=(0,R.pipe)(h,f,(0,R.andThen)((e=>{let{data:t,total:a}=e;u(d.o.LOADED),o(t),s(a)})),(0,R.otherwise)(m));e()}),[h]),y=()=>{try{g()}catch(e){m(e)}};return(0,c.useEffect)((()=>{y()}),[g]),{state:p,data:l,total:i,reload:y}})({filter:k,max:S,offset:a*S,entityUri:C}),U=(0,c.useCallback)((e=>{Z(e),n(0)}),[]);return s().createElement(g.Z,{className:o.basicView},s().createElement(y.Z,{title:l||w().text("Activity Log"),classes:{root:o.headerRoot,title:o.headerTitle}}),s().createElement(v.Z,{className:o.viewContent},s().createElement(E.Z,{value:k,onChange:U,entityType:z,entityUri:C,exportTypes:r}),(()=>{switch(A){case d.o.LOADED:return H&&0!==H.length?s().createElement(m.Z,{error:s().createElement(I,{message:w().text("Something went wrong")})},s().createElement("div",{className:o.activityLog},s().createElement(u.Z,{handleHeight:!0},(e=>{let{width:t=0,height:r=0}=e;return s().createElement(h.Z,{width:t,height:r+3,activities:H,count:_,page:a,onChangePage:n,rowsPerPage:S,onChangeRowsPerPage:j,rowsPerPageOptions:B})})))):s().createElement(f.J,null);case d.o.LOADING:return s().createElement(T,null);case d.o.ERROR:return s().createElement(I,{message:w().text("Error Loading Data"),onRefresh:L});default:return s().createElement("div",null,"Loading...")}})()))})),H=(0,r.createGenerateClassName)({productionPrefix:"profileActivityLog",disableGlobal:!0}),_=e=>{let{config:t,store:a,onResize:c}=e;return s().createElement(p.Provider,{store:a},s().createElement(o.m.Provider,{value:t.id},s().createElement(r.StylesProvider,{generateClassName:H},s().createElement(l.MuiPickersUtilsProvider,{utils:n.Z},s().createElement(u.Z,{handleHeight:!0,onResize:(e,t)=>null==c?void 0:c(Math.floor(e),Math.floor(t))}),s().createElement(A,{config:t}),s().createElement(i.Z,null)))))}}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5580],{58662:(e,t,a)=>{a.d(t,{Z:()=>v});var n=a(13980),r=a.n(n),l=a(24328),o=a.n(l),i=a(71153),c=a.n(i),s=a(94079),p=a(87918),u=a.n(p),d=a(31276),f=a(17440);const m=(0,a(79692).Z)({pagination:{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"56px",borderTop:"1px solid rgba(0,0,0,0.12)",boxShadow:"none"},caption:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px"},selectRoot:{marginLeft:"5px",marginRight:"36px"},select:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px",textAlign:"right"},actions:{marginLeft:"32px"}});function h(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),n.forEach((function(t){g(e,t,a[t])}))}return e}function g(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const y=e=>{let{classes:t={},count:a,rowsPerPageOptions:n,page:r,onChangePage:i,rowsPerPage:p,onChangeRowsPerPage:g,basicTableRef:y,labelRowsPerPage:v}=e;const E=m(),b=(0,l.useCallback)((()=>{(0,f.pathOr)(f.identity,["current","resetScrollbarPosition"],y)()}),[y]),x=(0,l.useCallback)((e=>{i(e),b()}),[i,b]),O=(0,l.useCallback)((e=>{i(0),g(e),b()}),[i,g,b]);return o().createElement(s.TablePagination,{classes:h({},t,{root:c()(E.pagination,t.root),select:c()(E.select,t.select),caption:E.caption,selectRoot:E.selectRoot,actions:E.actions}),component:"div",labelRowsPerPage:v||u().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:a,count:n}=e;return u().text("${fromRow}-${toRow} of ${countRows}",{fromRow:u().number(t,"0,0"),toRow:u().number(a,"0,0"),countRows:u().number(n,"0,0")})},count:a,rowsPerPageOptions:n,page:r,onChangePage:(0,f.pipe)((0,f.nthArg)(1),x),rowsPerPage:p,onChangeRowsPerPage:(0,f.pipe)(d.NA,O)})};y.propTypes={classes:r().object,rowsPerPageOptions:r().arrayOf(r().number),count:r().number,page:r().number,onChangePage:r().func,rowsPerPage:r().number,onChangeRowsPerPage:r().func,basicTableRef:r().shape({current:r().object}),labelRowsPerPage:r().string};const v=o().memo(y)},10237:(e,t,a)=>{a.d(t,{Z:()=>f});var n=a(27556),r=a(13980),l=a.n(r),o=a(24328),i=a.n(o);function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),n.forEach((function(t){s(e,t,a[t])}))}return e}function s(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const p=(0,a(79692).Z)((e=>({"basic-view__paper":c({display:"flex",flexDirection:"column"},e.basicView)})));function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},u.apply(this,arguments)}const d=(0,o.forwardRef)(((e,t)=>{let{children:a,className:r}=e,l=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["children","className"]);const o=p();return i().createElement(n.Z,u({ref:t,className:r,classes:{root:o["basic-view__paper"]}},l),a)}));d.displayName="BasicView",d.propTypes={children:l().node,className:l().string};const f=d},92778:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(24328),r=a.n(n),l=a(15223),o=a(94079);const i=(0,a(79692).Z)({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(this,arguments)}const s=e=>{let{title:t,children:a=null,classes:n={}}=e,s=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["title","children","classes"]);const p=i();return r().createElement(l.Z,c({className:n.root,classes:{root:p.toolbar}},s),r().createElement(o.Typography,{className:n.title,classes:{root:p.title},variant:"h6"},t),a)}},58241:(e,t,a)=>{a.d(t,{Z:()=>u});var n=a(24328),r=a.n(n),l=a(71153),o=a.n(l),i=a(8818),c=a(38016);const s=(0,a(79692).Z)({collapseButton:{cursor:"pointer"},expandLess:{transform:"rotate( -180deg )"}});function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},p.apply(this,arguments)}const u=e=>{let{isOpen:t=!1,tooltipTitle:a}=e,n=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["isOpen","tooltipTitle"]);const l=s(),u={icon:c.Z,className:l.collapseButton,iconClassName:o()({[l.expandLess]:t})},d={tooltipTitle:a};return r().createElement(i.k,p({},u,d,n))}},37699:(e,t,a)=>{a.d(t,{Z:()=>x});var n=a(24328),r=a.n(n),l=a(13980),o=a.n(l),i=a(87918),c=a.n(i),s=a(58697),p=a.n(s),u=a(17440),d=a(23147),f=a(94079),m=a(22385),h=a(99493),g=a(43305),y=a(8459);const v=(0,a(79692).Z)((e=>({container:{display:"flex",flexDirection:"column",minHeight:"182px"},header:{display:"flex",paddingLeft:"10px",backgroundColor:"#FFFFFF"},title:{marginLeft:"10px",color:e.palette.text.primary,fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px"},dateRangeContainer:{display:"flex",flexGrow:1,whiteSpace:"nowrap",cursor:"default",paddingTop:"8px"},dateInput:{margin:"0 7px"},actionButtons:{display:"flex",justifyContent:"flex-end",height:"48px",margin:"0px 8px"},button:{width:"96px"}}))),E=(e,t)=>(0,u.pathOr)(null,[t],e),b=(0,n.forwardRef)(((e,t)=>{let{onCancel:a,onApply:l,values:o,type:i}=e;const s=v(),u=(0,n.useRef)(p()()),b=(0,n.useRef)(p()()),[x,O]=(0,n.useState)(null),[w,R]=(0,n.useState)(null);r().useEffect((()=>{O(E(o,0)),R(E(o,1))}),[o]);const M=i===h.oS0.TYPE_TIMESTAMP?g.Z:y.Z,P=i===h.oS0.TYPE_TIMESTAMP?c().text("Pick date and time"):c().text("Pick date");return r().createElement("div",{className:s.container,ref:t,onKeyDown:e=>"Tab"===e.key&&e.stopPropagation()},r().createElement(f.Toolbar,{disableGutters:!0,classes:{root:s.header}},r().createElement(m.Z,{size:"L",icon:d.Z,onClick:a}),r().createElement(f.Typography,{className:s.title},P)),r().createElement("div",{className:s.dateRangeContainer},r().createElement(M,{id:u.current,label:"From",variant:"filled",value:x,onChange:e=>{O(e)},className:s.dateInput,margin:"dense"}),r().createElement(M,{id:b.current,label:"To",variant:"filled",value:w,onChange:e=>{R(e)},className:s.dateInput,margin:"dense"})),r().createElement("div",{className:s.actionButtons},r().createElement(f.Button,{color:"primary",onClick:()=>{l(x&&w&&x>w?[w,x]:[x,w])},className:s.button},c().text("Update"))))}));b.propTypes={onCancel:o().func.isRequired,onApply:o().func.isRequired,values:o().arrayOf(o().instanceOf(Date)),type:o().string},b.displayName="DateRangePicker";const x=b},55847:(e,t,a)=>{a.d(t,{Z:()=>b});var n=a(24328),r=a.n(n),l=a(71153),o=a.n(l),i=a(17440),c=a(94079),s=a(48348),p=a(20562),u=a(83348),d=a(79692),f=a(41128);const m=(0,d.Z)((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,f.U1)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,f.U1)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),h=(0,u.Z)(c.MenuItem),g=(0,n.forwardRef)(((e,t)=>{let{item:a,onMenuClose:n=i.identity}=e;const l=m(),{disabled:o,text:s,tooltip:p,onClick:u,id:d=""}=a;return r().createElement(h,{tooltipTitle:p,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{n(e),u(e)},disabled:o,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${d}`},r().createElement(c.Typography,{classes:{root:l.menuText}},s))}));g.displayName="MenuItemRenderer";const y=g;function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},v.apply(this,arguments)}function E(e){let{className:t,menuId:a,buttonComponent:l=c.Button,buttonContent:u,menuItems:d=[],buttonProps:f={},popoverProps:h={},onMenuOpen:g=i.identity,onMenuClose:E=i.identity,MenuItemRenderer:b=y}=e;const x=l,O=m(),w=(0,n.useRef)(),[R,M]=(0,n.useState)(!1);(0,p.D)((()=>{R?g():E()}),[R]);const P=(0,n.useCallback)((e=>{null==e||e.stopPropagation(),M((e=>!e))}),[]);return r().createElement(r().Fragment,null,r().createElement(x,v({ref:w,className:o()(O.buttonRoot,{[O.selected]:R},t),onClick:P,"aria-pressed":R,"aria-controls":R?a:void 0,"aria-haspopup":"true"},f),u),r().createElement(s.Z,v({id:a,variant:"menu",open:R,autoFocus:!1,classes:{paper:O.paper},anchorEl:w.current,onClose:P,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:R}},h),d.map(((e,t)=>r().createElement(b,{item:e,key:t,onMenuClose:P})))))}E.displayName="DropDownMenuButton";const b=E},6230:(e,t,a)=>{a.d(t,{J:()=>s});var n=a(24328),r=a.n(n),l=a(87918),o=a.n(l),i=a(15689);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(this,arguments)}const s=e=>r().createElement(i.Z,c({message:o().text("No data available")},e))},63072:(e,t,a)=>{a.d(t,{b:()=>o});var n=a(24328),r=a(99493),l=a(56764);const o=e=>{let{filter:t,max:a,offset:o,entityUri:i}=e;return(0,n.useCallback)((async()=>{const e=(0,l.U)(t),n=await(0,r.k6v)({filter:e,max:a,offset:o,entityUri:i}),{total:c}=await(0,r.FEC)({filter:e,entityUri:i});return{data:n,total:c}}),[t,a,o,i])}},96808:(e,t,a)=>{a.d(t,{Z:()=>m});var n=a(13980),r=a.n(n),l=a(24328),o=a.n(l),i=a(71153),c=a.n(i),s=a(10161),p=a(83543),u=a(22385);function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},d.apply(this,arguments)}const f=e=>{const{selectProps:{classes:t,menuIsOpen:a},innerProps:n}=e,r=(0,s.m)();return o().createElement(u.Z,d({},n,{icon:p.Z,className:t.dropdownIndicator,size:"L",iconClassName:c()({[r.expanded]:a})}))};f.propTypes={innerProps:r().object.isRequired,selectProps:r().shape({classes:r().shape({dropdownIndicator:r().string}).isRequired,menuIsOpen:r().bool.isRequired}).isRequired};const m=f},24489:(e,t,a)=>{a.r(t),a.d(t,{default:()=>_});var n=a(8598),r=a(36138),l=a(22664),o=a(39450),i=a(585),c=a(24328),s=a.n(c),p=a(52730),u=a(44443),d=a(67885),f=a(6230),m=a(2256),h=a(88234),g=a(10237),y=a(92778),v=a(4094),E=a(93438),b=a(87638),x=a(99493),O=a(87918),w=a.n(O),R=a(17440),M=a(67218),P=a(63072),z=a(94079),C=a(43266);function S(){return S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},S.apply(this,arguments)}const j=e=>{let{styles:t={}}=e,a=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,["styles"]);return s().createElement("svg",S({width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),s().createElement("mask",{id:"svg2440373321a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"88",height:"88"},s().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),s().createElement("g",{mask:"url(#svg2440373321a)"},s().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:".3"}),s().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),s().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),s().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),s().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),s().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),s().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),s().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),s().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),s().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),s().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),s().createElement("path",{opacity:".5",d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".3",d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".8",d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),s().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".2",d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),s().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),s().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),s().createElement("g",{filter:"url(#filter0_d)"},s().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),s().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),s().createElement("path",{opacity:".15",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),s().createElement("path",{opacity:".3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),s().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),s().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),s().createElement("path",{opacity:".05",fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#paint0_linear)"}),s().createElement("g",{filter:"url(#filter1_d)"},s().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),s().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),s().createElement("g",{filter:"url(#filter2_d)"},s().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),s().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),s().createElement("defs",null,s().createElement("filter",{id:"filter0_d",x:"36.219",y:"37.875",width:"42.375",height:"42.375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},s().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s().createElement("feOffset",{dy:"2"}),s().createElement("feGaussianBlur",{stdDeviation:"2"}),s().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),s().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),s().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),s().createElement("filter",{id:"filter1_d",x:"51.688",y:"62.625",width:"11.438",height:"11.438",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},s().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s().createElement("feOffset",{dy:"2"}),s().createElement("feGaussianBlur",{stdDeviation:"2"}),s().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),s().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),s().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),s().createElement("filter",{id:"filter2_d",x:"51.688",y:"44.063",width:"11.438",height:"23.813",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},s().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s().createElement("feOffset",{dy:"2"}),s().createElement("feGaussianBlur",{stdDeviation:"2"}),s().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),s().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),s().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),s().createElement("linearGradient",{id:"paint0_linear",x1:"68.438",y1:"71.571",x2:"60.119",y2:"58.801",gradientUnits:"userSpaceOnUse"},s().createElement("stop",{stopOpacity:"0"}),s().createElement("stop",{offset:"1"}))))};var B=a(79692);const k=(0,B.Z)((e=>({errorContainer:e=>{let{height:t}=e;return{height:t?`${t}px`:"auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.54)"}},errorIcon:{height:"88px",width:"88px",marginBottom:"20px",paddingTop:"36px"},refreshButton:{color:e.palette.primary.main,marginTop:"10px"},refreshIcon:{width:"24px",height:"24px"}}))),I=e=>{let{height:t,onRefresh:a,message:n}=e;const r=k({height:t});return s().createElement("div",{className:r.errorContainer},s().createElement(j,{className:r.errorIcon}),s().createElement(z.Typography,null,n),a&&s().createElement(z.Button,{className:r.refreshButton,startIcon:s().createElement(C.Z,{color:"primary",className:r.refreshIcon}),onClick:a},s().createElement(z.Typography,{variant:"button"},w().text("Refresh"))))},Z=(0,B.Z)({loader:{width:"100%",top:0,left:0,position:"absolute",borderRadius:"2px"}}),T=()=>{const e=Z();return s().createElement(z.LinearProgress,{color:"secondary",className:e.loader})},N=[10,25,50,100],[F]=N,D=(0,B.Z)((()=>({viewContent:{overflow:"hidden",position:"relative",fontFamily:"Roboto, Helvetica, Arial, sans-serif",padding:"4px 17px 24px",display:"flex",flexDirection:"column"},activityLog:{flex:1,overflowY:"auto"},headerRoot:{lineHeight:"23px",minHeight:38,borderBottom:"1px solid rgba(0,0,0,0.12)"},headerTitle:{fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px"},basicView:{top:0,bottom:0,left:0,right:0,display:"flex",alignItems:"stretch",height:"100%"}}))),A=(0,c.memo)((e=>{let{config:t}=e;const[a,n]=(0,c.useState)(0),{exportTypes:r,caption:l}=t,o=D(),i=(0,p.useSelector)(b.ZP.selectors.getMetadata),O=(0,p.useSelector)(b.ZP.selectors.getEntity),z=(0,x.nt9)(i,null==O?void 0:O.type),C=null==O?void 0:O.uri,[S,j]=(0,c.useState)(F),B=(0,c.useMemo)((()=>{return e=F,N.filter((t=>t!==e)).concat(e).sort(R.subtract);var e}),[]),[k,Z]=(0,c.useState)({users:[],activities:[],attributes:[],sources:[],dateRange:{type:d.K.WITHIN,period:[4,"months"]}}),{state:A,data:H,total:_,reload:L}=(e=>{let{filter:t,max:a,offset:n,entityUri:r}=e;const[l,o]=(0,c.useState)([]),[i,s]=(0,c.useState)(0),[p,u]=(0,c.useState)(d.o.INIT),f=(0,M._)(),m=e=>{console.error(e),u(d.o.ERROR),o([]),s(0)},h=(0,P.b)({filter:t,max:a,offset:n,entityUri:r}),g=(0,c.useCallback)((()=>{if(!r)return;u(d.o.LOADING);const e=(0,R.pipe)(h,f,(0,R.andThen)((e=>{let{data:t,total:a}=e;u(d.o.LOADED),o(t),s(a)})),(0,R.otherwise)(m));e()}),[h]),y=()=>{try{g()}catch(e){m(e)}};return(0,c.useEffect)((()=>{y()}),[g]),{state:p,data:l,total:i,reload:y}})({filter:k,max:S,offset:a*S,entityUri:C}),U=(0,c.useCallback)((e=>{Z(e),n(0)}),[]);return s().createElement(g.Z,{className:o.basicView},s().createElement(y.Z,{title:l||w().text("Activity Log"),classes:{root:o.headerRoot,title:o.headerTitle}}),s().createElement(v.Z,{className:o.viewContent},s().createElement(E.Z,{value:k,onChange:U,entityType:z,entityUri:C,exportTypes:r}),(()=>{switch(A){case d.o.LOADED:return H&&0!==H.length?s().createElement(m.Z,{error:s().createElement(I,{message:w().text("Something went wrong")})},s().createElement("div",{className:o.activityLog},s().createElement(u.Z,{handleHeight:!0},(e=>{let{width:t=0,height:r=0}=e;return s().createElement(h.Z,{width:t,height:r+3,activities:H,count:_,page:a,onChangePage:n,rowsPerPage:S,onChangeRowsPerPage:j,rowsPerPageOptions:B})})))):s().createElement(f.J,null);case d.o.LOADING:return s().createElement(T,null);case d.o.ERROR:return s().createElement(I,{message:w().text("Error Loading Data"),onRefresh:L});default:return s().createElement("div",null,"Loading...")}})()))})),H=(0,r.createGenerateClassName)({productionPrefix:"profileActivityLog",disableGlobal:!0}),_=e=>{let{config:t,store:a,onResize:c}=e;return s().createElement(p.Provider,{store:a},s().createElement(o.m.Provider,{value:t.id},s().createElement(r.StylesProvider,{generateClassName:H},s().createElement(l.MuiPickersUtilsProvider,{utils:n.Z},s().createElement(u.Z,{handleHeight:!0,onResize:(e,t)=>null==c?void 0:c(Math.floor(e),Math.floor(t))}),s().createElement(A,{config:t}),s().createElement(i.Z,null)))))}}}]);
package/5709.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5709],{85709:(e,t,n)=>{n.d(t,{Z:()=>O});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),i=n(45053),s=n(25461),c=n(14838),p=n(24998),u=n(94656),d=n(88473),f=n(13688),m=n(73038),g=n(17440),y=n(22273);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 h=(0,r.forwardRef)(((e,t)=>{let{columnsData:n,rowsData:l,context:o,sorting:u,onSort:h,renderRowCell:v=c.Z,getRowCellHeight:O=s.Z,filters:x,onFilter:w,headRowHeight:E,maxRowValuesCount:T=1/0}=e,C=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["columnsData","rowsData","context","sorting","onSort","renderRowCell","getRowCellHeight","filters","onFilter","headRowHeight","maxRowValuesCount"]);const D=(0,r.useMemo)((()=>(0,d.XJ)(n,x,w)),[n,x,w]),{tableRowsData:P,collapseContextValue:j}=(0,y.Z)({rowsData:l,columnsData:n,renderRowCell:v,getRowCellHeight:O,maxRowValuesCount:T});return a().createElement(m.x.Provider,{value:j},a().createElement(f.X.Provider,{value:o},a().createElement(i.default,b({defaultRowHeight:48},C,{fixHead:P.length>0,headData:D,rowsData:P,sortField:(0,g.prop)("field",u),sortOrder:(0,g.prop)("order",u),onSort:h,headRowHeight:x?E+p.S:E,ref:t}))))})),v={columnsData:o().arrayOf(u.hy).isRequired,rowsData:o().arrayOf(o().object).isRequired,context:o().object,sorting:u.nI,onSort:o().func,filters:o().objectOf(u.Dq),onFilter:o().func,renderRowCell:o().func,getRowCellHeight:o().func,headRowHeight:o().number,maxRowValuesCount:o().number,defaultColumnWidth:o().number,defaultColumnMinWidth:o().number,classes:o().shape({highlightRow:o().string,cellBorder:o().string,dragColumnBody:o().string,dragColumnHead:o().string,draggableHeadCell:o().string,cellWrapper:o().string,cellContentWrapper:o().string,hoveredRowRightContentContainer:o().string,hoveredRowRightContentWrapper:o().string})};h.propTypes=v,h.displayName="BasicTable";const O=h},67353:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l);const i=e=>{const t=t=>{let{columnFilter:n}=t,r=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,["columnFilter"]);return a().createElement("div",{style:{display:"flex",flexDirection:"column",height:"100%"}},a().createElement("div",{style:{display:"flex",flex:1}},a().createElement(e,r)),n)};return t.propTypes={columnFilter:o().node},t}},64091:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(13980),a=n.n(r),l=n(24328),o=n.n(l);const i=(0,n(79692).Z)({defaultWrapper:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",padding:"15px 25px 0 25px"},blobWrapper:{position:"relative",overflowY:"auto",overflowX:"hidden",whiteSpace:"pre",maxHeight:"100px",boxSizing:"border-box",padding:"15px 25px 0 25px"}}),s=e=>{e.stopPropagation()},c=e=>{let{value:t}=e;const n=i();return o().createElement("div",{className:n.blobWrapper,onScroll:s},t)};c.propTypes={value:a().node};const p=c;var u=n(72768),d=n(16299),f=n(88611);const m=e=>{const t=i(),{value:n,columnData:{dataTypeDefinition:r}}=e;if(r.type===d.oS0.TYPE_BLOB)return o().createElement(p,e);{const e=o().createElement(u.Z,{value:n,dataTypeDefinition:r});return o().createElement(f.C,{value:e},o().createElement("div",{className:t.defaultWrapper},e))}};m.propTypes={value:a().any,columnData:a().shape({dataTypeDefinition:a().object})};const g=m},73038:(e,t,n)=>{n.d(t,{x:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="RowCollapseContext"},13688:(e,t,n)=>{n.d(t,{X:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="TableContext"},88473:(e,t,n)=>{n.d(t,{LY:()=>le,XJ:()=>re,CA:()=>ne});var r=n(64091),a=n(24328),l=n.n(a),o=n(13980),i=n.n(o),s=n(83543),c=n(94079),p=n(87638),u=n(16299),d=n(52730);const f=(0,n(79692).Z)({"filter-chip":{flex:1,maxWidth:"100%",overflow:"hidden",justifyContent:"flex-start",marginRight:"-8px","&, &:focus":{backgroundColor:"rgba(0,0,0,0)"}},"filter-chip__label":{color:"rgba(0,0,0,0.87)",flex:1,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},"filter-chip__option-label":{color:"rgba(0,0,0,0.54)"}});var m=n(88611);const g=e=>{let{filterOption:t,filterValue:n,onDelete:r,dataTypeDefinition:a}=e;const o=(0,u.wNf)(t.value),i=t.label+(o?": ":""),s=f(),g=(0,d.useSelector)(p.ZP.selectors.getAttributePresentations),y=(0,u.mB6)({attributePresentations:g,dataTypeDefinition:a}),b=(0,u.mOr)(y,n),h=o?(0,u.Gzu)(t.value,b):"";return l().createElement(c.Chip,{label:l().createElement(m.C,{value:i+h},l().createElement("div",{className:s["filter-chip__label"]},l().createElement("span",{className:s["filter-chip__option-label"]},i),h)),classes:{root:s["filter-chip"],label:s["filter-chip__label"]},onDelete:r})};g.propTypes={filterValue:u.NMQ,filterOption:i().shape({value:i().string,label:i().string}),onDelete:i().func,dataTypeDefinition:i().object};const y=g;var b=n(17440),h=n(79026),v=n(24754),O=n(72436);function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const E=e=>{let{value:t,onChange:n,filterOptions:r,dataTypeDefinition:a,classes:o,valueEditorProps:i}=e;const s=(0,O.$B)(),[c]=r,p=t.filter||c.value,d=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){w(e,t,n[t])}))}return e}({},t,{filter:p}),f=(0,u.wNf)(p);return l().createElement(l().Fragment,null,l().createElement(h.Z,{TextFieldProps:O.pf,className:o.option,value:p,entries:r,onChange:(0,b.pipe)((0,b.assoc)("filter",b.__,d),(0,b.assoc)("values",[]),n),classes:{root:s.root,icon:s.icon}}),f&&l().createElement(v.Z,x({filter:d,onChange:(0,b.pipe)((0,b.assoc)("values",b.__,d),n),dataTypeDefinition:a},i)))};E.propTypes={value:u.vAw,onChange:i().func,filterOptions:i().arrayOf(i().shape({value:i().string,label:i().string})),dataTypeDefinition:i().object,classes:i().object,valueEditorProps:i().object};const T=E;var C=n(94656),D=n(24998),P=n(99341);const j=e=>{let{columnId:t,dataTypeDefinition:n,filter:r,filterOptionsData:o,onFilter:i}=e;const p=(0,D.y)(),[d,f]=(0,a.useState)(null),[m,g]=(0,a.useState)(r),h=(0,a.useRef)(null),v=(0,P.su)({id:t,dataTypeDefinition:n},m),O=e=>{e!==r&&i({columnId:t,filter:e})},x=()=>O(),w=()=>{(0,u.GMd)(v)?O(m):x(),f(null)},E=e=>o&&o.find((0,b.propEq)("value",e)),C=e=>(0,b.pipe)(E,(0,b.prop)("dataTypeDefinition"),(0,b.defaultTo)((0,u.l1V)(n,e)))(e),j=u.wSh.fromNull(o).map((0,b.pluck)("value")).orSome((0,u.Hyb)(n)).map((e=>{return{value:e,label:(t=e,(0,b.pipe)(E,(0,b.prop)("label"),(0,b.defaultTo)((0,u.XS2)(t)))(t))};var t}));return l().createElement("div",{ref:h,className:p.columnFilter},r&&l().createElement(y,{filterValue:r.value,filterOption:j.find((0,b.propEq)("value",r.filter)),onDelete:x,dataTypeDefinition:C(r.filter)}),l().createElement(c.IconButton,{className:p.dropDownButton,onClick:e=>f(e.currentTarget),disableFocusRipple:!0},l().createElement(s.Z,null)),l().createElement(c.Popover,{PaperProps:{style:{width:`${h.current?h.current.getBoundingClientRect().width:0}px`}},open:!!d,anchorEl:d,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},classes:{paper:p.filterMenu},onEnter:()=>g(r),onClose:w},l().createElement(T,{classes:{option:p["filter-editor__option"]},value:v,onChange:(0,b.pipe)(P.GU,g),filterOptions:j,dataTypeDefinition:C(v.filter),valueEditorProps:{TextFieldProps:{onKeyPress:e=>{"Enter"===e.key&&(e.stopPropagation(),e.preventDefault(),w())}},fullWidth:!0}})))};j.propTypes={columnId:i().string,dataTypeDefinition:i().object,filter:C.Dq,onFilter:i().func,filterOptionsData:i().arrayOf(i().shape({value:i().string,label:i().string,dataTypeDefinition:i().object}))};const S=j;function R(){return R=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},R.apply(this,arguments)}const _=e=>{let{filter:t,onFilter:n,filterable:r,filterOptions:a,dataTypeDefinition:o}=e;return e=>{const s=i=>{const{headCellData:{id:s}}=i,c=(0,D.y)(),p=r?l().createElement(S,{columnId:s,dataTypeDefinition:o,filter:t,filterOptionsData:a,onFilter:n}):l().createElement("div",{className:c.columnFilter});return l().createElement(e,R({},i,{columnFilter:p}))};return s.propTypes={headCellData:i().shape({id:i().string})},s}};function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const N="total",k=".",F=(0,b.pipe)((0,b.split)(k),(0,b.dropLast)(1),(0,b.join)(k)),Z=(0,b.pipe)((0,b.split)(k),(0,b.dropLast)(1),(0,b.join)(k),(0,b.unless)(b.length,(0,b.always)(N))),A=(0,b.pipe)(F,Z),M=(e,t)=>(0,b.pipe)((0,b.pickBy)(((e,n)=>F(n)===t)),b.values,b.sum)(e),V=(e,t)=>{const n=A(t),r=(0,b.propOr)(0,n,e),a=M(e,F(t));if(a>r){const t=(0,b.assoc)(n,a,e);return n===N?t:V(t,n)}return e},L=(e,t)=>{let[n,r]=t;const a=Z(n),l=(0,b.propOr)(0,a,e)-M(e,n);if(l>0){const t=`${n}.${r.length-1}`,a=e[t];return(0,b.assoc)(t,a+l,e)}return e},z=(0,b.pipe)((0,b.reduce)(((e,t)=>V(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){I(e,t,n[t])}))}return e}({},e,{[t]:1}),t)),{}),(e=>(0,b.pipe)((0,b.omit)([N]),b.keys,(0,b.groupBy)(F),b.toPairs,(0,b.reduce)(L,e))(e))),H=(0,b.addIndex)(b.chain),W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const[n]=e;return Array.isArray(n)?H(((e,n)=>W(e,[...t,n])),e):{indexPath:t,values:e}},B=(0,b.curry)(((e,t)=>(0,b.pipe)((0,b.zip)(b.__,t.indexPath),b.unnest,(0,b.join)(k))(e)));var q=n(92332),Y=n(67353);function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$(e,t,n[t])}))}return e}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const X=(0,b.pipe)(((e,t,n,a)=>(l,o)=>{const i=e.findIndex((0,b.propEq)("id",o)),s=e[i],{rowCellValueRenderer:c=r.Z}=e[i];return l.map(((e,r)=>G({},e,{values:t({columnIndex:i,columnData:s,rowIndex:n,rowValue:a,cellIndex:r,cell:e,CellValueRenderer:c})})))}),b.mapObjIndexed),J=(e,t,n,r)=>a=>t?(0,b.mapObjIndexed)(((e,t,n,r)=>(a,l)=>{const o=e.findIndex((0,b.propEq)("id",l)),i=e[o];return a.map(((e,a)=>G({},e,{height:t({columnIndex:o,columnData:i,rowIndex:n,rowValue:r,cellIndex:a,cell:e})})))})(e,t,n,r),a):a,K=(0,b.pipe)((0,b.chain)((0,b.pluck)("nestedKey")),(0,b.reject)(b.isNil),b.uniq),U=(0,b.pipe)(b.values,K,z),Q=e=>{const t=U(e);return(0,b.isEmpty)(t)?e:(0,b.map)((e=>(0,b.map)((t=>G({},t,{rowSpan:e[t.nestedKey||N]}))))(t),e)},ee=e=>(0,b.reduce)(((t,n)=>{let{id:r,nestedPath:a}=n;return(0,b.assoc)(r,(l=a,o=e[r],l&&!(0,b.isEmpty)(o)?((e,t)=>(0,b.pipe)(W,(e=>(0,b.map)((t=>G({},t,{nestedKey:B(e,t)}))))(e))(t))(l,o):[{values:(0,u.VGB)(o)}]),t);var l,o}),{}),te=e=>(0,b.unless)((()=>e===1/0),(0,b.map)((0,b.pipe)((0,b.reject)((t=>{let{indexPath:n}=t;return n&&n.some((t=>t>e-1))})),(0,b.map)((0,b.evolve)({values:(0,b.slice)(0,e)}))))),ne=function(e,t,n,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(0,b.always)(1/0);return e.map((0,b.pipe)(((e,l)=>(0,b.pipe)(ee(e),te(a(l)),Q,J(t,r,l,e),X(t,n,l,e))(t)),(0,b.objOf)("data")))},re=(e,t,n)=>e.map((e=>{let{id:r,label:a,sortable:l,filterable:o=!0,resizable:i,draggable:s,autoResize:c=!0,initialWidth:p,minWidth:u,dataTypeDefinition:d,filterOptions:f,headCellRenderer:m=(0,Y.Z)(q.default)}=e;return{id:r,label:a,sortable:l,resizable:i,draggable:s,initialWidth:p,minWidth:u,autoResize:c,renderer:(0,b.unless)((()=>(0,b.isNil)(t)),_({dataTypeDefinition:d,filterable:o,filter:(0,b.prop)(r,t),filterOptions:f,onFilter:n}))(m)}})),ae=(0,b.reduce)(((e,t)=>{const n=(0,b.pipe)((0,b.chain)((0,b.propOr)([],"indexPath")),(0,b.map)((0,b.add)(1)),(0,b.reduce)(b.max,0))(t),r=(0,b.pipe)((0,b.pluck)("values"),(0,b.pluck)("length"),(0,b.reduce)(b.max,0))(t);return Math.max(e,n,r)}),0),le=(e,t)=>(0,b.pipe)(ee(t),b.values,ae)(e)},25461:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(16299);const a=e=>{var t;let{columnData:n,cell:a}=e;const l=a.values.length;switch(null==n||null===(t=n.dataTypeDefinition)||void 0===t?void 0:t.type){case r.oS0.TYPE_BLOB:return 100*l;case r.oS0.TYPE_IMAGE:return 79*l+15;default:return 33*Math.max(l,1)+15}}},14838:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(24328),a=n.n(r);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=>{let{cell:t,CellValueRenderer:n}=e,r=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["cell","CellValueRenderer"]);return t.values.map(((e,t)=>a().createElement(n,l({key:t,value:e},r))))}},22273:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),a=n(17440),l=n(88473),o=n(30634),i=n(20562);const s=e=>{let{rowsData:t,columnsData:n,renderRowCell:s,getRowCellHeight:c,maxRowValuesCount:p}=e;const[u,d]=(0,r.useState)([]),f=(0,r.useCallback)((e=>u.includes(e)?1/0:p),[u,p]),m=(0,r.useMemo)((()=>(0,l.CA)(t,n,s,c,f)),[t,n,s,c,f]),g=(0,r.useCallback)((e=>{d((t=>{const n=t.findIndex((0,a.equals)(e));return-1===n?t.concat(e):(0,a.remove)(n,1,t)}))}),[]),y=(0,r.useCallback)((e=>(0,l.LY)(n,e)>p),[p,n]),b=(0,r.useCallback)((e=>!u.includes(e)),[u]),h=(0,r.useMemo)((()=>({toggleRowCollapse:g,getIsRowCollapsible:y,getIsRowCollapsed:b})),[g,y,b]),v=(0,o.D)(t);return(0,i.D)((()=>{u.length>0&&d((0,a.filter)((e=>{const n=t[e]||{},r=v[e]||{};return n.rawValue===r.rawValue&&y(n)})))}),[t]),{tableRowsData:m,collapseContextValue:h}}},99341:(e,t,n)=>{n.d(t,{Tz:()=>i,su:()=>l,GU:()=>o});var r=n(16299),a=n(17440);const l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{fieldName:e.id,filter:t.filter,values:[t.value],type:e.dataTypeDefinition.type}},o=e=>{let{filter:t,values:n}=e;return{filter:t,value:n[0]}},i=(e,t)=>r.wSh.fromNull(t).map((t=>Object.entries(t).map((t=>{let[n,r]=t;const o=e.find((0,a.propEq)("id",n));return l(o,r)})))).map((0,r.Uqd)()).orSome("")},24998:(e,t,n)=>{n.d(t,{S:()=>a,y:()=>l});var r=n(79692);const a=40,l=(0,r.Z)({columnFilter:{backgroundColor:"rgba(0,0,0,0.03)",display:"flex",height:`${a}px`,alignItems:"center"},dropDownButton:{marginLeft:"auto",padding:"6px"},filterMenu:{marginTop:"3px",borderRadius:"2px",padding:"15px 20px",boxSizing:"border-box",display:"flex",flexDirection:"column",minWidth:"454px"},"filter-editor__option":{fontSize:"13px",color:"rgba(0,0,0,0.54)"}})},37699:(e,t,n)=>{n.d(t,{Z:()=>x});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),i=n(87918),s=n.n(i),c=n(58697),p=n.n(c),u=n(17440),d=n(23147),f=n(94079),m=n(22385),g=n(16299),y=n(43305),b=n(8459);const h=(0,n(79692).Z)((e=>({container:{display:"flex",flexDirection:"column",minHeight:"182px"},header:{display:"flex",paddingLeft:"10px",backgroundColor:"#FFFFFF"},title:{marginLeft:"10px",color:e.palette.text.primary,fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px"},dateRangeContainer:{display:"flex",flexGrow:1,whiteSpace:"nowrap",cursor:"default",paddingTop:"8px"},dateInput:{margin:"0 7px"},actionButtons:{display:"flex",justifyContent:"flex-end",height:"48px",margin:"0px 8px"},button:{width:"96px"}}))),v=(e,t)=>(0,u.pathOr)(null,[t],e),O=(0,r.forwardRef)(((e,t)=>{let{onCancel:n,onApply:l,values:o,type:i}=e;const c=h(),u=(0,r.useRef)(p()()),O=(0,r.useRef)(p()()),[x,w]=(0,r.useState)(null),[E,T]=(0,r.useState)(null);a().useEffect((()=>{w(v(o,0)),T(v(o,1))}),[o]);const C=i===g.oS0.TYPE_TIMESTAMP?y.Z:b.Z,D=i===g.oS0.TYPE_TIMESTAMP?s().text("Pick date and time"):s().text("Pick date");return a().createElement("div",{className:c.container,ref:t,onKeyDown:e=>"Tab"===e.key&&e.stopPropagation()},a().createElement(f.Toolbar,{disableGutters:!0,classes:{root:c.header}},a().createElement(m.Z,{size:"L",icon:d.Z,onClick:n}),a().createElement(f.Typography,{className:c.title},D)),a().createElement("div",{className:c.dateRangeContainer},a().createElement(C,{id:u.current,label:"From",variant:"filled",value:x,onChange:e=>{w(e)},className:c.dateInput,margin:"dense"}),a().createElement(C,{id:O.current,label:"To",variant:"filled",value:E,onChange:e=>{T(e)},className:c.dateInput,margin:"dense"})),a().createElement("div",{className:c.actionButtons},a().createElement(f.Button,{color:"primary",onClick:()=>{l(x&&E&&x>E?[E,x]:[x,E])},className:c.button},s().text("Update"))))}));O.propTypes={onCancel:o().func.isRequired,onApply:o().func.isRequired,values:o().arrayOf(o().instanceOf(Date)),type:o().string},O.displayName="DateRangePicker";const x=O},96808:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(13980),a=n.n(r),l=n(24328),o=n.n(l),i=n(71153),s=n.n(i),c=n(10161),p=n(83543),u=n(22385);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 f=e=>{const{selectProps:{classes:t,menuIsOpen:n},innerProps:r}=e,a=(0,c.m)();return o().createElement(u.Z,d({},r,{icon:p.Z,className:t.dropdownIndicator,size:"L",iconClassName:s()({[a.expanded]:n})}))};f.propTypes={innerProps:a().object.isRequired,selectProps:a().shape({classes:a().shape({dropdownIndicator:a().string}).isRequired,menuIsOpen:a().bool.isRequired}).isRequired};const m=f},46923:(e,t,n)=>{n.d(t,{Z:()=>T});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),i=n(71153),s=n.n(i),c=n(95038),p=n.n(c),u=n(87918),d=n.n(u),f=n(17440),m=n(16299),g=n(94079);const y=(0,n(79692).Z)((e=>({dropdownIndicator:{transition:"transform .15s ease",cursor:"pointer",color:"rgba(0, 0, 0, 0.54)"},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0},underline:{"&:after":{transform:"scaleX(1)"}},inputLabel:{color:e.palette.primary.main},adornedEnd:{paddingRight:4},inputRoot:{fontSize:"14px",letterSpacing:0,lineHeight:"16px"}})));var b=n(96808),h=n(37699);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 O=p().localeData().longDateFormat("L"),x=(0,f.curry)(((e,t,n,r)=>(0,f.cond)([[m.O27,(0,f.always)({value:"",label:""})],[(0,f.is)(Array),n=>({value:n,label:n.map((n=>((e,t,n)=>(0,f.isNil)(e)?`${n}`:`${(0,m.mB6)({dataTypeDefinition:t},e)}`)(n,t,e))).join(" — ")})],[(0,f.is)(String),e=>r.find((0,f.propEq)("value",e))]])(n))),w=(0,f.pipe)(m.VQ1,(0,f.defaultTo)([]),(0,f.map)((e=>e&&new Date(e)))),E=e=>{let{label:t,values:n,options:l,getValuesDateRange:o=w,onChange:i=f.identity,dataTypeDefinition:c={},TextFieldProps:p={}}=e,u=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["label","values","options","getValuesDateRange","onChange","dataTypeDefinition","TextFieldProps"]);const E=O+(c.type===m.oS0.TYPE_TIMESTAMP?" HH:MM":""),T=(0,r.useMemo)((()=>l||Object.values(m.lL_).map((e=>({value:e,label:(0,m.mm2)(e)})))),[l]),C=(0,r.useRef)(null),[D,P]=(0,r.useState)(!1),[j,S]=(0,r.useState)(),R=y(),_=e=>{e===m.lL_.PICK_DATE?S(e):(P(!1),S(),i(e))},I=(0,r.useCallback)((()=>P((e=>!e))),[]),N=()=>{S(),P(!1)};return a().createElement(a().Fragment,null,a().createElement(g.TextField,v({},p,u,{label:t,value:x(E,c,j||n,T).label,onClick:I,variant:"filled",margin:"dense",ref:C,InputProps:{endAdornment:a().createElement(b.Z,{selectProps:{classes:R,menuIsOpen:D},innerProps:{}}),classes:{root:R.inputRoot,underline:s()({[R.underline]:D}),adornedEnd:R.adornedEnd},disableUnderline:(0,f.isNil)(n),readOnly:!0},InputLabelProps:{classes:{root:D?R.inputLabel:void 0},shrink:!(0,f.isNil)(t)},placeholder:d().text(`${E} — ${E}`)})),a().createElement(g.Menu,{variant:"menu",open:D,autoFocus:!1,classes:{paper:R.paper},anchorEl:C.current,onClose:N,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:D,style:{width:j?"100%":(0,f.prop)("clientWidth",C.current)}}},j?a().createElement(h.Z,{values:o(n),onCancel:N,onApply:_,type:c.type}):T.map((e=>a().createElement(g.MenuItem,{key:e.value,value:e.value,onClick:()=>_(e.value),className:R.menuItem},a().createElement(g.Typography,{classes:{root:R.menuText}},e.label))))))};E.propTypes={label:o().string,values:o().oneOfType([o().string,o().array]),options:o().arrayOf(o().shape({value:o().string,label:o().string})),getValuesDateRange:o().func,onChange:o().func,dataTypeDefinition:o().object,TextFieldProps:o().object};const T=E},24754:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(25310),a=n(13980),l=n.n(a),o=n(24328),i=n.n(o),s=n(87918),c=n.n(s),p=n(16299),u=n(17440),d=n(58697),f=n.n(d),m=n(94079);const g=(0,n(79692).Z)({"range-editor":{width:"100%"},"range-editor__control":{marginTop:"10px",paddingTop:"15px","& > label + *":{marginTop:0}},"range-inline-editor":{display:"flex",alignItems:"center",flexGrow:1},"range-editor__dash":{padding:"0 5px"}});function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}const b=e=>{let{value:t=new Array(2),onChange:n,orientation:a="vertical"}=e,l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["value","onChange","orientation"]);const s=g(),p=(0,o.useRef)(f()()),d=(0,o.useRef)(f()()),b=i().createElement(r.Z,y({id:p.current,value:t[0],onChange:(0,u.pipe)((0,u.update)(0,u.__,t),n)},l)),h=i().createElement(r.Z,y({id:d.current,value:t[1],onChange:(0,u.pipe)((0,u.update)(1,u.__,t),n)},l));return"horizontal"===a?i().createElement("div",{className:s["range-inline-editor"]},b,i().createElement("div",{className:s["range-editor__dash"]},"—"),h):i().createElement("div",{className:s["range-editor"]},i().createElement(m.FormControl,{fullWidth:!0,className:s["range-editor__control"]},i().createElement(m.InputLabel,{htmlFor:p.current,shrink:!0},c().text("From")),b),i().createElement(m.FormControl,{fullWidth:!0,className:s["range-editor__control"]},i().createElement(m.InputLabel,{htmlFor:d.current,shrink:!0},c().text("To")),h))};b.propTypes={value:l().arrayOf(l().any),onChange:l().func,fieldName:l().string,orientation:l().oneOf(["horizontal","vertical"]),dataTypeDefinition:l().object,classes:l().object};const h=b;var v=n(46923);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 x=e=>{let{filter:{values:t=[],fieldName:n,filter:a},onChange:l,dataTypeDefinition:o,orientation:s}=e,d=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["filter","onChange","dataTypeDefinition","orientation"]);const{type:f}=o,m=(0,p.mOr)((e=>t=>{switch(e){case p.oS0.TYPE_DATE:return(0,p.J6D)(t)?t:p.P6Y.dates.toLocalDate(t);case p.oS0.TYPE_LOCAL_DATE:case p.oS0.TYPE_TIMESTAMP:case p.oS0.TYPE_ACTIVENESS_DATE:return(0,p.J6D)(t)?t:new Date(t);default:return t}})(f))(t[0]),g=(0,u.pipe)((0,p.mOr)((e=>t=>{switch(e){case p.oS0.TYPE_DATE:return(0,p.J6D)(t)?t:Date.UTC(t.getFullYear(),t.getMonth(),t.getDate());case p.oS0.TYPE_LOCAL_DATE:case p.oS0.TYPE_ACTIVENESS_DATE:case p.oS0.TYPE_TIMESTAMP:return(0,p.J6D)(t)?t:t.valueOf();default:return t}})(f)),p.FTe,l);if((0,p._zi)(a))return i().createElement(v.Z,O({},d,{values:m,onChange:g,dataTypeDefinition:o,label:c().text("Date Range")}));if((0,p.fp6)(a))return i().createElement(h,O({},d,{value:m,onChange:g,fieldName:n,dataTypeDefinition:o,orientation:s}));{const e=(0,p.ymH)(a)?{multiple:!0}:{};return i().createElement(r.Z,O({},d,e,{fieldName:n,value:m,onChange:g,dataTypeDefinition:o}))}};x.propTypes={filter:p.vAw,orientation:l().oneOf(["horizontal","vertical"]),onChange:l().func,dataTypeDefinition:l().object,classes:l().object};const w=x}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5709],{85709:(e,t,n)=>{n.d(t,{Z:()=>O});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),i=n(45053),s=n(25461),c=n(14838),p=n(24998),u=n(94656),d=n(88473),f=n(13688),m=n(73038),g=n(17440),y=n(22273);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 h=(0,r.forwardRef)(((e,t)=>{let{columnsData:n,rowsData:l,context:o,sorting:u,onSort:h,renderRowCell:v=c.Z,getRowCellHeight:O=s.Z,filters:x,onFilter:w,headRowHeight:E,maxRowValuesCount:T=1/0}=e,C=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["columnsData","rowsData","context","sorting","onSort","renderRowCell","getRowCellHeight","filters","onFilter","headRowHeight","maxRowValuesCount"]);const D=(0,r.useMemo)((()=>(0,d.XJ)(n,x,w)),[n,x,w]),{tableRowsData:P,collapseContextValue:j}=(0,y.Z)({rowsData:l,columnsData:n,renderRowCell:v,getRowCellHeight:O,maxRowValuesCount:T});return a().createElement(m.x.Provider,{value:j},a().createElement(f.X.Provider,{value:o},a().createElement(i.default,b({defaultRowHeight:48},C,{fixHead:P.length>0,headData:D,rowsData:P,sortField:(0,g.prop)("field",u),sortOrder:(0,g.prop)("order",u),onSort:h,headRowHeight:x?E+p.S:E,ref:t}))))})),v={columnsData:o().arrayOf(u.hy).isRequired,rowsData:o().arrayOf(o().object).isRequired,context:o().object,sorting:u.nI,onSort:o().func,filters:o().objectOf(u.Dq),onFilter:o().func,renderRowCell:o().func,getRowCellHeight:o().func,headRowHeight:o().number,maxRowValuesCount:o().number,defaultColumnWidth:o().number,defaultColumnMinWidth:o().number,classes:o().shape({highlightRow:o().string,cellBorder:o().string,dragColumnBody:o().string,dragColumnHead:o().string,draggableHeadCell:o().string,cellWrapper:o().string,cellContentWrapper:o().string,hoveredRowRightContentContainer:o().string,hoveredRowRightContentWrapper:o().string})};h.propTypes=v,h.displayName="BasicTable";const O=h},67353:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l);const i=e=>{const t=t=>{let{columnFilter:n}=t,r=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,["columnFilter"]);return a().createElement("div",{style:{display:"flex",flexDirection:"column",height:"100%"}},a().createElement("div",{style:{display:"flex",flex:1}},a().createElement(e,r)),n)};return t.propTypes={columnFilter:o().node},t}},64091:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(13980),a=n.n(r),l=n(24328),o=n.n(l);const i=(0,n(79692).Z)({defaultWrapper:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",padding:"15px 25px 0 25px"},blobWrapper:{position:"relative",overflowY:"auto",overflowX:"hidden",whiteSpace:"pre",maxHeight:"100px",boxSizing:"border-box",padding:"15px 25px 0 25px"}}),s=e=>{e.stopPropagation()},c=e=>{let{value:t}=e;const n=i();return o().createElement("div",{className:n.blobWrapper,onScroll:s},t)};c.propTypes={value:a().node};const p=c;var u=n(72768),d=n(99493),f=n(88611);const m=e=>{const t=i(),{value:n,columnData:{dataTypeDefinition:r}}=e;if(r.type===d.oS0.TYPE_BLOB)return o().createElement(p,e);{const e=o().createElement(u.Z,{value:n,dataTypeDefinition:r});return o().createElement(f.C,{value:e},o().createElement("div",{className:t.defaultWrapper},e))}};m.propTypes={value:a().any,columnData:a().shape({dataTypeDefinition:a().object})};const g=m},73038:(e,t,n)=>{n.d(t,{x:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="RowCollapseContext"},13688:(e,t,n)=>{n.d(t,{X:()=>a});var r=n(24328);const a=n.n(r)().createContext(null);a.displayName="TableContext"},88473:(e,t,n)=>{n.d(t,{LY:()=>le,XJ:()=>re,CA:()=>ne});var r=n(64091),a=n(24328),l=n.n(a),o=n(13980),i=n.n(o),s=n(83543),c=n(94079),p=n(87638),u=n(99493),d=n(52730);const f=(0,n(79692).Z)({"filter-chip":{flex:1,maxWidth:"100%",overflow:"hidden",justifyContent:"flex-start",marginRight:"-8px","&, &:focus":{backgroundColor:"rgba(0,0,0,0)"}},"filter-chip__label":{color:"rgba(0,0,0,0.87)",flex:1,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},"filter-chip__option-label":{color:"rgba(0,0,0,0.54)"}});var m=n(88611);const g=e=>{let{filterOption:t,filterValue:n,onDelete:r,dataTypeDefinition:a}=e;const o=(0,u.wNf)(t.value),i=t.label+(o?": ":""),s=f(),g=(0,d.useSelector)(p.ZP.selectors.getAttributePresentations),y=(0,u.mB6)({attributePresentations:g,dataTypeDefinition:a}),b=(0,u.mOr)(y,n),h=o?(0,u.Gzu)(t.value,b):"";return l().createElement(c.Chip,{label:l().createElement(m.C,{value:i+h},l().createElement("div",{className:s["filter-chip__label"]},l().createElement("span",{className:s["filter-chip__option-label"]},i),h)),classes:{root:s["filter-chip"],label:s["filter-chip__label"]},onDelete:r})};g.propTypes={filterValue:u.NMQ,filterOption:i().shape({value:i().string,label:i().string}),onDelete:i().func,dataTypeDefinition:i().object};const y=g;var b=n(17440),h=n(79026),v=n(24754),O=n(72436);function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const E=e=>{let{value:t,onChange:n,filterOptions:r,dataTypeDefinition:a,classes:o,valueEditorProps:i}=e;const s=(0,O.$B)(),[c]=r,p=t.filter||c.value,d=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){w(e,t,n[t])}))}return e}({},t,{filter:p}),f=(0,u.wNf)(p);return l().createElement(l().Fragment,null,l().createElement(h.Z,{TextFieldProps:O.pf,className:o.option,value:p,entries:r,onChange:(0,b.pipe)((0,b.assoc)("filter",b.__,d),(0,b.assoc)("values",[]),n),classes:{root:s.root,icon:s.icon}}),f&&l().createElement(v.Z,x({filter:d,onChange:(0,b.pipe)((0,b.assoc)("values",b.__,d),n),dataTypeDefinition:a},i)))};E.propTypes={value:u.vAw,onChange:i().func,filterOptions:i().arrayOf(i().shape({value:i().string,label:i().string})),dataTypeDefinition:i().object,classes:i().object,valueEditorProps:i().object};const T=E;var C=n(94656),D=n(24998),P=n(99341);const j=e=>{let{columnId:t,dataTypeDefinition:n,filter:r,filterOptionsData:o,onFilter:i}=e;const p=(0,D.y)(),[d,f]=(0,a.useState)(null),[m,g]=(0,a.useState)(r),h=(0,a.useRef)(null),v=(0,P.su)({id:t,dataTypeDefinition:n},m),O=e=>{e!==r&&i({columnId:t,filter:e})},x=()=>O(),w=()=>{(0,u.GMd)(v)?O(m):x(),f(null)},E=e=>o&&o.find((0,b.propEq)("value",e)),C=e=>(0,b.pipe)(E,(0,b.prop)("dataTypeDefinition"),(0,b.defaultTo)((0,u.l1V)(n,e)))(e),j=u.wSh.fromNull(o).map((0,b.pluck)("value")).orSome((0,u.Hyb)(n)).map((e=>{return{value:e,label:(t=e,(0,b.pipe)(E,(0,b.prop)("label"),(0,b.defaultTo)((0,u.XS2)(t)))(t))};var t}));return l().createElement("div",{ref:h,className:p.columnFilter},r&&l().createElement(y,{filterValue:r.value,filterOption:j.find((0,b.propEq)("value",r.filter)),onDelete:x,dataTypeDefinition:C(r.filter)}),l().createElement(c.IconButton,{className:p.dropDownButton,onClick:e=>f(e.currentTarget),disableFocusRipple:!0},l().createElement(s.Z,null)),l().createElement(c.Popover,{PaperProps:{style:{width:`${h.current?h.current.getBoundingClientRect().width:0}px`}},open:!!d,anchorEl:d,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},classes:{paper:p.filterMenu},onEnter:()=>g(r),onClose:w},l().createElement(T,{classes:{option:p["filter-editor__option"]},value:v,onChange:(0,b.pipe)(P.GU,g),filterOptions:j,dataTypeDefinition:C(v.filter),valueEditorProps:{TextFieldProps:{onKeyPress:e=>{"Enter"===e.key&&(e.stopPropagation(),e.preventDefault(),w())}},fullWidth:!0}})))};j.propTypes={columnId:i().string,dataTypeDefinition:i().object,filter:C.Dq,onFilter:i().func,filterOptionsData:i().arrayOf(i().shape({value:i().string,label:i().string,dataTypeDefinition:i().object}))};const S=j;function R(){return R=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},R.apply(this,arguments)}const _=e=>{let{filter:t,onFilter:n,filterable:r,filterOptions:a,dataTypeDefinition:o}=e;return e=>{const s=i=>{const{headCellData:{id:s}}=i,c=(0,D.y)(),p=r?l().createElement(S,{columnId:s,dataTypeDefinition:o,filter:t,filterOptionsData:a,onFilter:n}):l().createElement("div",{className:c.columnFilter});return l().createElement(e,R({},i,{columnFilter:p}))};return s.propTypes={headCellData:i().shape({id:i().string})},s}};function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const N="total",k=".",F=(0,b.pipe)((0,b.split)(k),(0,b.dropLast)(1),(0,b.join)(k)),Z=(0,b.pipe)((0,b.split)(k),(0,b.dropLast)(1),(0,b.join)(k),(0,b.unless)(b.length,(0,b.always)(N))),A=(0,b.pipe)(F,Z),M=(e,t)=>(0,b.pipe)((0,b.pickBy)(((e,n)=>F(n)===t)),b.values,b.sum)(e),V=(e,t)=>{const n=A(t),r=(0,b.propOr)(0,n,e),a=M(e,F(t));if(a>r){const t=(0,b.assoc)(n,a,e);return n===N?t:V(t,n)}return e},L=(e,t)=>{let[n,r]=t;const a=Z(n),l=(0,b.propOr)(0,a,e)-M(e,n);if(l>0){const t=`${n}.${r.length-1}`,a=e[t];return(0,b.assoc)(t,a+l,e)}return e},z=(0,b.pipe)((0,b.reduce)(((e,t)=>V(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){I(e,t,n[t])}))}return e}({},e,{[t]:1}),t)),{}),(e=>(0,b.pipe)((0,b.omit)([N]),b.keys,(0,b.groupBy)(F),b.toPairs,(0,b.reduce)(L,e))(e))),H=(0,b.addIndex)(b.chain),W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const[n]=e;return Array.isArray(n)?H(((e,n)=>W(e,[...t,n])),e):{indexPath:t,values:e}},B=(0,b.curry)(((e,t)=>(0,b.pipe)((0,b.zip)(b.__,t.indexPath),b.unnest,(0,b.join)(k))(e)));var q=n(92332),Y=n(67353);function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$(e,t,n[t])}))}return e}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const X=(0,b.pipe)(((e,t,n,a)=>(l,o)=>{const i=e.findIndex((0,b.propEq)("id",o)),s=e[i],{rowCellValueRenderer:c=r.Z}=e[i];return l.map(((e,r)=>G({},e,{values:t({columnIndex:i,columnData:s,rowIndex:n,rowValue:a,cellIndex:r,cell:e,CellValueRenderer:c})})))}),b.mapObjIndexed),J=(e,t,n,r)=>a=>t?(0,b.mapObjIndexed)(((e,t,n,r)=>(a,l)=>{const o=e.findIndex((0,b.propEq)("id",l)),i=e[o];return a.map(((e,a)=>G({},e,{height:t({columnIndex:o,columnData:i,rowIndex:n,rowValue:r,cellIndex:a,cell:e})})))})(e,t,n,r),a):a,K=(0,b.pipe)((0,b.chain)((0,b.pluck)("nestedKey")),(0,b.reject)(b.isNil),b.uniq),U=(0,b.pipe)(b.values,K,z),Q=e=>{const t=U(e);return(0,b.isEmpty)(t)?e:(0,b.map)((e=>(0,b.map)((t=>G({},t,{rowSpan:e[t.nestedKey||N]}))))(t),e)},ee=e=>(0,b.reduce)(((t,n)=>{let{id:r,nestedPath:a}=n;return(0,b.assoc)(r,(l=a,o=e[r],l&&!(0,b.isEmpty)(o)?((e,t)=>(0,b.pipe)(W,(e=>(0,b.map)((t=>G({},t,{nestedKey:B(e,t)}))))(e))(t))(l,o):[{values:(0,u.VGB)(o)}]),t);var l,o}),{}),te=e=>(0,b.unless)((()=>e===1/0),(0,b.map)((0,b.pipe)((0,b.reject)((t=>{let{indexPath:n}=t;return n&&n.some((t=>t>e-1))})),(0,b.map)((0,b.evolve)({values:(0,b.slice)(0,e)}))))),ne=function(e,t,n,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(0,b.always)(1/0);return e.map((0,b.pipe)(((e,l)=>(0,b.pipe)(ee(e),te(a(l)),Q,J(t,r,l,e),X(t,n,l,e))(t)),(0,b.objOf)("data")))},re=(e,t,n)=>e.map((e=>{let{id:r,label:a,sortable:l,filterable:o=!0,resizable:i,draggable:s,autoResize:c=!0,initialWidth:p,minWidth:u,dataTypeDefinition:d,filterOptions:f,headCellRenderer:m=(0,Y.Z)(q.default)}=e;return{id:r,label:a,sortable:l,resizable:i,draggable:s,initialWidth:p,minWidth:u,autoResize:c,renderer:(0,b.unless)((()=>(0,b.isNil)(t)),_({dataTypeDefinition:d,filterable:o,filter:(0,b.prop)(r,t),filterOptions:f,onFilter:n}))(m)}})),ae=(0,b.reduce)(((e,t)=>{const n=(0,b.pipe)((0,b.chain)((0,b.propOr)([],"indexPath")),(0,b.map)((0,b.add)(1)),(0,b.reduce)(b.max,0))(t),r=(0,b.pipe)((0,b.pluck)("values"),(0,b.pluck)("length"),(0,b.reduce)(b.max,0))(t);return Math.max(e,n,r)}),0),le=(e,t)=>(0,b.pipe)(ee(t),b.values,ae)(e)},25461:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(99493);const a=e=>{var t;let{columnData:n,cell:a}=e;const l=a.values.length;switch(null==n||null===(t=n.dataTypeDefinition)||void 0===t?void 0:t.type){case r.oS0.TYPE_BLOB:return 100*l;case r.oS0.TYPE_IMAGE:return 79*l+15;default:return 33*Math.max(l,1)+15}}},14838:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(24328),a=n.n(r);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=>{let{cell:t,CellValueRenderer:n}=e,r=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["cell","CellValueRenderer"]);return t.values.map(((e,t)=>a().createElement(n,l({key:t,value:e},r))))}},22273:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),a=n(17440),l=n(88473),o=n(30634),i=n(20562);const s=e=>{let{rowsData:t,columnsData:n,renderRowCell:s,getRowCellHeight:c,maxRowValuesCount:p}=e;const[u,d]=(0,r.useState)([]),f=(0,r.useCallback)((e=>u.includes(e)?1/0:p),[u,p]),m=(0,r.useMemo)((()=>(0,l.CA)(t,n,s,c,f)),[t,n,s,c,f]),g=(0,r.useCallback)((e=>{d((t=>{const n=t.findIndex((0,a.equals)(e));return-1===n?t.concat(e):(0,a.remove)(n,1,t)}))}),[]),y=(0,r.useCallback)((e=>(0,l.LY)(n,e)>p),[p,n]),b=(0,r.useCallback)((e=>!u.includes(e)),[u]),h=(0,r.useMemo)((()=>({toggleRowCollapse:g,getIsRowCollapsible:y,getIsRowCollapsed:b})),[g,y,b]),v=(0,o.D)(t);return(0,i.D)((()=>{u.length>0&&d((0,a.filter)((e=>{const n=t[e]||{},r=v[e]||{};return n.rawValue===r.rawValue&&y(n)})))}),[t]),{tableRowsData:m,collapseContextValue:h}}},99341:(e,t,n)=>{n.d(t,{Tz:()=>i,su:()=>l,GU:()=>o});var r=n(99493),a=n(17440);const l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{fieldName:e.id,filter:t.filter,values:[t.value],type:e.dataTypeDefinition.type}},o=e=>{let{filter:t,values:n}=e;return{filter:t,value:n[0]}},i=(e,t)=>r.wSh.fromNull(t).map((t=>Object.entries(t).map((t=>{let[n,r]=t;const o=e.find((0,a.propEq)("id",n));return l(o,r)})))).map((0,r.Uqd)()).orSome("")},24998:(e,t,n)=>{n.d(t,{S:()=>a,y:()=>l});var r=n(79692);const a=40,l=(0,r.Z)({columnFilter:{backgroundColor:"rgba(0,0,0,0.03)",display:"flex",height:`${a}px`,alignItems:"center"},dropDownButton:{marginLeft:"auto",padding:"6px"},filterMenu:{marginTop:"3px",borderRadius:"2px",padding:"15px 20px",boxSizing:"border-box",display:"flex",flexDirection:"column",minWidth:"454px"},"filter-editor__option":{fontSize:"13px",color:"rgba(0,0,0,0.54)"}})},37699:(e,t,n)=>{n.d(t,{Z:()=>x});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),i=n(87918),s=n.n(i),c=n(58697),p=n.n(c),u=n(17440),d=n(23147),f=n(94079),m=n(22385),g=n(99493),y=n(43305),b=n(8459);const h=(0,n(79692).Z)((e=>({container:{display:"flex",flexDirection:"column",minHeight:"182px"},header:{display:"flex",paddingLeft:"10px",backgroundColor:"#FFFFFF"},title:{marginLeft:"10px",color:e.palette.text.primary,fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px"},dateRangeContainer:{display:"flex",flexGrow:1,whiteSpace:"nowrap",cursor:"default",paddingTop:"8px"},dateInput:{margin:"0 7px"},actionButtons:{display:"flex",justifyContent:"flex-end",height:"48px",margin:"0px 8px"},button:{width:"96px"}}))),v=(e,t)=>(0,u.pathOr)(null,[t],e),O=(0,r.forwardRef)(((e,t)=>{let{onCancel:n,onApply:l,values:o,type:i}=e;const c=h(),u=(0,r.useRef)(p()()),O=(0,r.useRef)(p()()),[x,w]=(0,r.useState)(null),[E,T]=(0,r.useState)(null);a().useEffect((()=>{w(v(o,0)),T(v(o,1))}),[o]);const C=i===g.oS0.TYPE_TIMESTAMP?y.Z:b.Z,D=i===g.oS0.TYPE_TIMESTAMP?s().text("Pick date and time"):s().text("Pick date");return a().createElement("div",{className:c.container,ref:t,onKeyDown:e=>"Tab"===e.key&&e.stopPropagation()},a().createElement(f.Toolbar,{disableGutters:!0,classes:{root:c.header}},a().createElement(m.Z,{size:"L",icon:d.Z,onClick:n}),a().createElement(f.Typography,{className:c.title},D)),a().createElement("div",{className:c.dateRangeContainer},a().createElement(C,{id:u.current,label:"From",variant:"filled",value:x,onChange:e=>{w(e)},className:c.dateInput,margin:"dense"}),a().createElement(C,{id:O.current,label:"To",variant:"filled",value:E,onChange:e=>{T(e)},className:c.dateInput,margin:"dense"})),a().createElement("div",{className:c.actionButtons},a().createElement(f.Button,{color:"primary",onClick:()=>{l(x&&E&&x>E?[E,x]:[x,E])},className:c.button},s().text("Update"))))}));O.propTypes={onCancel:o().func.isRequired,onApply:o().func.isRequired,values:o().arrayOf(o().instanceOf(Date)),type:o().string},O.displayName="DateRangePicker";const x=O},96808:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(13980),a=n.n(r),l=n(24328),o=n.n(l),i=n(71153),s=n.n(i),c=n(10161),p=n(83543),u=n(22385);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 f=e=>{const{selectProps:{classes:t,menuIsOpen:n},innerProps:r}=e,a=(0,c.m)();return o().createElement(u.Z,d({},r,{icon:p.Z,className:t.dropdownIndicator,size:"L",iconClassName:s()({[a.expanded]:n})}))};f.propTypes={innerProps:a().object.isRequired,selectProps:a().shape({classes:a().shape({dropdownIndicator:a().string}).isRequired,menuIsOpen:a().bool.isRequired}).isRequired};const m=f},46923:(e,t,n)=>{n.d(t,{Z:()=>T});var r=n(24328),a=n.n(r),l=n(13980),o=n.n(l),i=n(71153),s=n.n(i),c=n(95038),p=n.n(c),u=n(87918),d=n.n(u),f=n(17440),m=n(99493),g=n(94079);const y=(0,n(79692).Z)((e=>({dropdownIndicator:{transition:"transform .15s ease",cursor:"pointer",color:"rgba(0, 0, 0, 0.54)"},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0},underline:{"&:after":{transform:"scaleX(1)"}},inputLabel:{color:e.palette.primary.main},adornedEnd:{paddingRight:4},inputRoot:{fontSize:"14px",letterSpacing:0,lineHeight:"16px"}})));var b=n(96808),h=n(37699);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 O=p().localeData().longDateFormat("L"),x=(0,f.curry)(((e,t,n,r)=>(0,f.cond)([[m.O27,(0,f.always)({value:"",label:""})],[(0,f.is)(Array),n=>({value:n,label:n.map((n=>((e,t,n)=>(0,f.isNil)(e)?`${n}`:`${(0,m.mB6)({dataTypeDefinition:t},e)}`)(n,t,e))).join(" — ")})],[(0,f.is)(String),e=>r.find((0,f.propEq)("value",e))]])(n))),w=(0,f.pipe)(m.VQ1,(0,f.defaultTo)([]),(0,f.map)((e=>e&&new Date(e)))),E=e=>{let{label:t,values:n,options:l,getValuesDateRange:o=w,onChange:i=f.identity,dataTypeDefinition:c={},TextFieldProps:p={}}=e,u=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["label","values","options","getValuesDateRange","onChange","dataTypeDefinition","TextFieldProps"]);const E=O+(c.type===m.oS0.TYPE_TIMESTAMP?" HH:MM":""),T=(0,r.useMemo)((()=>l||Object.values(m.lL_).map((e=>({value:e,label:(0,m.mm2)(e)})))),[l]),C=(0,r.useRef)(null),[D,P]=(0,r.useState)(!1),[j,S]=(0,r.useState)(),R=y(),_=e=>{e===m.lL_.PICK_DATE?S(e):(P(!1),S(),i(e))},I=(0,r.useCallback)((()=>P((e=>!e))),[]),N=()=>{S(),P(!1)};return a().createElement(a().Fragment,null,a().createElement(g.TextField,v({},p,u,{label:t,value:x(E,c,j||n,T).label,onClick:I,variant:"filled",margin:"dense",ref:C,InputProps:{endAdornment:a().createElement(b.Z,{selectProps:{classes:R,menuIsOpen:D},innerProps:{}}),classes:{root:R.inputRoot,underline:s()({[R.underline]:D}),adornedEnd:R.adornedEnd},disableUnderline:(0,f.isNil)(n),readOnly:!0},InputLabelProps:{classes:{root:D?R.inputLabel:void 0},shrink:!(0,f.isNil)(t)},placeholder:d().text(`${E} — ${E}`)})),a().createElement(g.Menu,{variant:"menu",open:D,autoFocus:!1,classes:{paper:R.paper},anchorEl:C.current,onClose:N,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:D,style:{width:j?"100%":(0,f.prop)("clientWidth",C.current)}}},j?a().createElement(h.Z,{values:o(n),onCancel:N,onApply:_,type:c.type}):T.map((e=>a().createElement(g.MenuItem,{key:e.value,value:e.value,onClick:()=>_(e.value),className:R.menuItem},a().createElement(g.Typography,{classes:{root:R.menuText}},e.label))))))};E.propTypes={label:o().string,values:o().oneOfType([o().string,o().array]),options:o().arrayOf(o().shape({value:o().string,label:o().string})),getValuesDateRange:o().func,onChange:o().func,dataTypeDefinition:o().object,TextFieldProps:o().object};const T=E},24754:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(25310),a=n(13980),l=n.n(a),o=n(24328),i=n.n(o),s=n(87918),c=n.n(s),p=n(99493),u=n(17440),d=n(58697),f=n.n(d),m=n(94079);const g=(0,n(79692).Z)({"range-editor":{width:"100%"},"range-editor__control":{marginTop:"10px",paddingTop:"15px","& > label + *":{marginTop:0}},"range-inline-editor":{display:"flex",alignItems:"center",flexGrow:1},"range-editor__dash":{padding:"0 5px"}});function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}const b=e=>{let{value:t=new Array(2),onChange:n,orientation:a="vertical"}=e,l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["value","onChange","orientation"]);const s=g(),p=(0,o.useRef)(f()()),d=(0,o.useRef)(f()()),b=i().createElement(r.Z,y({id:p.current,value:t[0],onChange:(0,u.pipe)((0,u.update)(0,u.__,t),n)},l)),h=i().createElement(r.Z,y({id:d.current,value:t[1],onChange:(0,u.pipe)((0,u.update)(1,u.__,t),n)},l));return"horizontal"===a?i().createElement("div",{className:s["range-inline-editor"]},b,i().createElement("div",{className:s["range-editor__dash"]},"—"),h):i().createElement("div",{className:s["range-editor"]},i().createElement(m.FormControl,{fullWidth:!0,className:s["range-editor__control"]},i().createElement(m.InputLabel,{htmlFor:p.current,shrink:!0},c().text("From")),b),i().createElement(m.FormControl,{fullWidth:!0,className:s["range-editor__control"]},i().createElement(m.InputLabel,{htmlFor:d.current,shrink:!0},c().text("To")),h))};b.propTypes={value:l().arrayOf(l().any),onChange:l().func,fieldName:l().string,orientation:l().oneOf(["horizontal","vertical"]),dataTypeDefinition:l().object,classes:l().object};const h=b;var v=n(46923);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 x=e=>{let{filter:{values:t=[],fieldName:n,filter:a},onChange:l,dataTypeDefinition:o,orientation:s}=e,d=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["filter","onChange","dataTypeDefinition","orientation"]);const{type:f}=o,m=(0,p.mOr)((e=>t=>{switch(e){case p.oS0.TYPE_DATE:return(0,p.J6D)(t)?t:p.P6Y.dates.toLocalDate(t);case p.oS0.TYPE_LOCAL_DATE:case p.oS0.TYPE_TIMESTAMP:case p.oS0.TYPE_ACTIVENESS_DATE:return(0,p.J6D)(t)?t:new Date(t);default:return t}})(f))(t[0]),g=(0,u.pipe)((0,p.mOr)((e=>t=>{switch(e){case p.oS0.TYPE_DATE:return(0,p.J6D)(t)?t:Date.UTC(t.getFullYear(),t.getMonth(),t.getDate());case p.oS0.TYPE_LOCAL_DATE:case p.oS0.TYPE_ACTIVENESS_DATE:case p.oS0.TYPE_TIMESTAMP:return(0,p.J6D)(t)?t:t.valueOf();default:return t}})(f)),p.FTe,l);if((0,p._zi)(a))return i().createElement(v.Z,O({},d,{values:m,onChange:g,dataTypeDefinition:o,label:c().text("Date Range")}));if((0,p.fp6)(a))return i().createElement(h,O({},d,{value:m,onChange:g,fieldName:n,dataTypeDefinition:o,orientation:s}));{const e=(0,p.ymH)(a)?{multiple:!0}:{};return i().createElement(r.Z,O({},d,e,{fieldName:n,value:m,onChange:g,dataTypeDefinition:o}))}};x.propTypes={filter:p.vAw,orientation:l().oneOf(["horizontal","vertical"]),onChange:l().func,dataTypeDefinition:l().object,classes:l().object};const w=x}}]);