@reltio/remotes 1.4.1084 → 1.4.1087
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/1396.js +1 -0
- package/1635.js +1 -0
- package/183.js +1 -0
- package/1867.js +1 -1
- package/1920.js +1 -0
- package/2605.js +1 -0
- package/2890.js +1 -0
- package/3100.js +2 -0
- package/{2521.js.LICENSE.txt → 3100.js.LICENSE.txt} +0 -0
- package/3405.js +1 -0
- package/350.js +1 -0
- package/3980.js +1 -0
- package/4132.js +1 -0
- package/4190.js +1 -0
- package/4277.js +1 -0
- package/4279.js +1 -0
- package/4361.js +1 -0
- package/4689.js +1 -0
- package/{727.css → 4765.css} +0 -0
- package/4765.js +1 -0
- package/4803.js +1 -1
- package/4843.js +1 -0
- package/4944.js +1 -0
- package/5400.js +1 -0
- package/5686.js +1 -0
- package/5701.js +1 -0
- package/5709.js +1 -0
- package/5714.js +1 -0
- package/5884.js +1 -0
- package/5888.js +1 -0
- package/597.js +1 -0
- package/6248.js +1 -0
- package/6250.js +1 -0
- package/6425.js +1 -0
- package/{590.css → 6596.css} +0 -0
- package/6596.js +1 -0
- package/663.js +1 -0
- package/6685.js +1 -0
- package/6897.js +2 -0
- package/{4589.js.LICENSE.txt → 6897.js.LICENSE.txt} +0 -0
- package/6947.js +2 -0
- package/{7478.js.LICENSE.txt → 6947.js.LICENSE.txt} +0 -0
- package/7215.js +1 -0
- package/{3247.css → 7560.css} +0 -0
- package/7560.js +1 -0
- package/7638.js +1 -0
- package/{5411.css → 77.css} +0 -0
- package/77.js +1 -0
- package/7737.js +1 -1
- package/781.js +2 -0
- package/{888.js.LICENSE.txt → 781.js.LICENSE.txt} +0 -0
- package/8047.js +1 -0
- package/8122.js +1 -0
- package/8238.js +1 -0
- package/8419.js +1 -0
- package/8421.js +1 -0
- package/845.js +1 -0
- package/8716.js +2 -0
- package/{6952.js.LICENSE.txt → 8716.js.LICENSE.txt} +0 -0
- package/{2400.js → 8753.js} +1 -1
- package/8789.js +1 -0
- package/8794.js +1 -1
- package/8969.js +1 -0
- package/9290.js +1 -0
- package/9446.js +1 -0
- package/9551.js +1 -0
- package/9678.js +1 -0
- package/9774.js +1 -0
- package/main.js +1 -1
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/1050.js +0 -1
- package/1071.js +0 -1
- package/1157.js +0 -1
- package/1466.js +0 -1
- package/1707.js +0 -1
- package/174.js +0 -1
- package/1962.js +0 -1
- package/229.js +0 -1
- package/2521.js +0 -2
- package/2547.js +0 -1
- package/2994.js +0 -1
- package/3027.js +0 -1
- package/3247.js +0 -1
- package/3319.js +0 -1
- package/3431.js +0 -1
- package/3628.js +0 -1
- package/3716.js +0 -1
- package/3845.js +0 -1
- package/4397.js +0 -1
- package/4478.js +0 -1
- package/4589.js +0 -2
- package/4614.js +0 -1
- package/5092.js +0 -1
- package/5108.js +0 -1
- package/5242.js +0 -1
- package/5406.js +0 -1
- package/5411.js +0 -1
- package/545.js +0 -1
- package/546.js +0 -1
- package/5674.js +0 -1
- package/5773.js +0 -1
- package/590.js +0 -1
- package/6115.js +0 -1
- package/614.js +0 -1
- package/6156.js +0 -1
- package/64.js +0 -1
- package/6517.js +0 -1
- package/6538.js +0 -1
- package/6817.js +0 -1
- package/6952.js +0 -2
- package/696.js +0 -1
- package/727.js +0 -1
- package/7478.js +0 -2
- package/7830.js +0 -1
- package/7890.js +0 -1
- package/8040.js +0 -1
- package/86.js +0 -1
- package/8732.js +0 -1
- package/8741.js +0 -1
- package/8862.js +0 -1
- package/888.js +0 -2
- package/8899.js +0 -1
- package/9002.js +0 -1
- package/9109.js +0 -1
- package/9147.js +0 -1
package/8421.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[8421],{48852:(e,t,l)=>{l.d(t,{l:()=>i});var a=l(24328),r=l.n(a);function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},n.apply(this,arguments)}const i=(e,t,l)=>{if(e&&t){const i=(0,a.memo)(l);return l=>r().createElement(e.Consumer,null,(e=>r().createElement(i,n({},l,t(e,l)))))}return l}},32528:(e,t,l)=>{l.d(t,{Z:()=>n});var a=l(13688),r=l(48852);const n=e=>t=>(0,r.l)(a.X,e,t)},58662:(e,t,l)=>{l.d(t,{Z:()=>g});var a=l(13980),r=l.n(a),n=l(24328),i=l.n(n),c=l(71153),o=l.n(c),p=l(94079),s=l(87918),d=l.n(s),f=l(31276),m=l(17440);const h=(0,l(79692).Z)({pagination:{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"56px",borderTop:"1px solid rgba(0,0,0,0.12)",boxShadow:"none"},caption:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px"},selectRoot:{marginLeft:"5px",marginRight:"36px"},select:{color:"rgba(0,0,0,0.6)",fontSize:"12px",lineHeight:"16px",textAlign:"right"},actions:{marginLeft:"32px"}});function u(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(l);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(l).filter((function(e){return Object.getOwnPropertyDescriptor(l,e).enumerable})))),a.forEach((function(t){y(e,t,l[t])}))}return e}function y(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}const E=e=>{let{classes:t={},count:l,rowsPerPageOptions:a,page:r,onChangePage:c,rowsPerPage:s,onChangeRowsPerPage:y,basicTableRef:E,labelRowsPerPage:g}=e;const v=h(),x=(0,n.useCallback)((()=>{(0,m.pathOr)(m.identity,["current","resetScrollbarPosition"],E)()}),[E]),_=(0,n.useCallback)((e=>{c(e),x()}),[c,x]),z=(0,n.useCallback)((e=>{c(0),y(e),x()}),[c,y,x]);return i().createElement(p.TablePagination,{classes:u({},t,{root:o()(v.pagination,t.root),select:o()(v.select,t.select),caption:v.caption,selectRoot:v.selectRoot,actions:v.actions}),component:"div",labelRowsPerPage:g||d().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:l,count:a}=e;return d().text("${fromRow}-${toRow} of ${countRows}",{fromRow:d().number(t,"0,0"),toRow:d().number(l,"0,0"),countRows:d().number(a,"0,0")})},count:l,rowsPerPageOptions:a,page:r,onChangePage:(0,m.pipe)((0,m.nthArg)(1),_),rowsPerPage:s,onChangeRowsPerPage:(0,m.pipe)(f.NA,z)})};E.propTypes={classes:r().object,rowsPerPageOptions:r().arrayOf(r().number),count:r().number,page:r().number,onChangePage:r().func,rowsPerPage:r().number,onChangeRowsPerPage:r().func,basicTableRef:r().shape({current:r().object}),labelRowsPerPage:r().string};const g=i().memo(E)},10237:(e,t,l)=>{l.d(t,{Z:()=>m});var a=l(27556),r=l(13980),n=l.n(r),i=l(24328),c=l.n(i);function o(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(l);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(l).filter((function(e){return Object.getOwnPropertyDescriptor(l,e).enumerable})))),a.forEach((function(t){p(e,t,l[t])}))}return e}function p(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}const s=(0,l(79692).Z)((e=>({"basic-view__paper":o({display:"flex",flexDirection:"column"},e.basicView)})));function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},d.apply(this,arguments)}const f=(0,i.forwardRef)(((e,t)=>{let{children:l,className:r}=e,n=function(e,t){if(null==e)return{};var l,a,r=function(e,t){if(null==e)return{};var l,a,r={},n=Object.keys(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||(r[l]=e[l]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(r[l]=e[l])}return r}(e,["children","className"]);const i=s();return c().createElement(a.Z,d({ref:t,className:r,classes:{root:i["basic-view__paper"]}},n),l)}));f.displayName="BasicView",f.propTypes={children:n().node,className:n().string};const m=f},58241:(e,t,l)=>{l.d(t,{Z:()=>d});var a=l(24328),r=l.n(a),n=l(71153),i=l.n(n),c=l(8818),o=l(38016);const p=(0,l(79692).Z)({collapseButton:{cursor:"pointer"},expandLess:{transform:"rotate( -180deg )"}});function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},s.apply(this,arguments)}const d=e=>{let{isOpen:t=!1,tooltipTitle:l}=e,a=function(e,t){if(null==e)return{};var l,a,r=function(e,t){if(null==e)return{};var l,a,r={},n=Object.keys(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||(r[l]=e[l]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(r[l]=e[l])}return r}(e,["isOpen","tooltipTitle"]);const n=p(),d={icon:o.Z,className:n.collapseButton,iconClassName:i()({[n.expandLess]:t})},f={tooltipTitle:l};return r().createElement(c.k,s({},d,f,a))}},21077:(e,t,l)=>{l.d(t,{B9:()=>m,tC:()=>f,ZP:()=>h});var a=l(24328),r=l.n(a),n=l(17440),i=l(94079);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},c.apply(this,arguments)}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},o.apply(this,arguments)}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},p.apply(this,arguments)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},s.apply(this,arguments)}const d=(0,l(79692).Z)((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"10px",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box","& $text":{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"24px",letterSpacing:"0.25px",textAlign:"center"},"& $secondaryText":{color:e.palette.text.secondary,fontSize:"15px",fontWeight:300,lineHeight:"18px",letterSpacing:"0.11px",textAlign:"center",paddingTop:"3px"}},embedded:{flexShrink:0,width:"190px",height:"190px",padding:"8px"},full:{width:"256px",height:"256px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:500,marginTop:"16px"},text:{},secondaryText:{},button:{minHeight:36,minWidth:64,maxWidth:500,padding:"10px 16px",borderRadius:"2px",boxShadow:"0 0 2px 0 rgba(0,0,0,0.12), 0 2px 2px 0 rgba(0,0,0,0.24), 0 0 8px 0 rgba(0,0,0,0.12), 0 8px 8px 0 rgba(0,0,0,0.24)",fontSize:"14px",fontWeight:500,lineHeight:"16px",marginTop:"24px"}})));let f;!function(e){e.full="full",e.embedded="embedded"}(f||(f={}));const m={SEARCH_RESULTS:e=>r().createElement("svg",c({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),r().createElement("defs",null,r().createElement("radialGradient",{cx:"50%",cy:"100%",fx:"50%",fy:"100%",r:"81.681%",gradientTransform:"matrix(.98998 0 0 .612 .005 .388)",id:"EmptySearchResults_svg__c"},r().createElement("stop",{stopColor:"#00BFFF",stopOpacity:.5,offset:"0%"}),r().createElement("stop",{stopColor:"#9EE8FF",stopOpacity:0,offset:"100%"})),r().createElement("radialGradient",{cx:"50%",cy:"111.651%",fx:"50%",fy:"111.651%",r:"87.693%",gradientTransform:"matrix(0 -.97693 .7263 0 -.31 1.605)",id:"EmptySearchResults_svg__f"},r().createElement("stop",{stopColor:"#91F8E5",stopOpacity:.6,offset:"0%"}),r().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),r().createElement("radialGradient",{cx:"50%",cy:"103.659%",fx:"50%",fy:"103.659%",r:"90.207%",gradientTransform:"matrix(0 -1 2.23905 0 -1.821 1.537)",id:"EmptySearchResults_svg__g"},r().createElement("stop",{stopColor:"#FFF",offset:"0%"}),r().createElement("stop",{stopColor:"#73FAFF",stopOpacity:.21,offset:"59.38%"}),r().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),r().createElement("linearGradient",{x1:"50%",y1:"170.771%",x2:"50%",y2:"10.303%",id:"EmptySearchResults_svg__e"},r().createElement("stop",{stopColor:"#91F8E5",offset:"0%"}),r().createElement("stop",{stopColor:"#99FCFF",stopOpacity:0,offset:"100%"})),r().createElement("filter",{x:"-25.9%",y:"-26.2%",width:"151.8%",height:"152.3%",filterUnits:"objectBoundingBox",id:"EmptySearchResults_svg__d"},r().createElement("feGaussianBlur",{stdDeviation:15,in:"SourceGraphic"})),r().createElement("circle",{id:"EmptySearchResults_svg__a",cx:128,cy:128,r:128})),r().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r().createElement("mask",{id:"EmptySearchResults_svg__b",fill:"#fff"},r().createElement("use",{xlinkHref:"#EmptySearchResults_svg__a"})),r().createElement("use",{fillOpacity:.2,fill:"#A792CD",xlinkHref:"#EmptySearchResults_svg__a"}),r().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},r().createElement("g",{transform:"translate(56 34)"},r().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},r().createElement("path",{d:"M0 6.99C0 3.13 3.137 0 7 0h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H7c-3.866 0-7-3.143-7-6.99V6.99z"}),r().createElement("path",{d:"M13 25.99c0-3.86 3.137-6.99 7-6.99h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H20c-3.866 0-7-3.143-7-6.99V25.99z",opacity:.4})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 45.833)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),r().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),r().createElement("path",{d:"M35.365.861h69.768a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M34.274 15.048h126.164a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),r().createElement("rect",{fill:"#645F6D",opacity:.5,x:21.756,y:17.46,width:87.022,height:12.004,rx:6.002}),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 87.302)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),r().createElement("rect",{fill:"#E3EBF4",x:0,y:1.091,width:20.668,height:20.734,rx:10.334}),r().createElement("path",{d:"M35.365.861h82.647a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M34.274 15.048H174.58a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M33.182 24.869h113.119a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 128.77)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),r().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),r().createElement("path",{d:"M35.365.861h110.929a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M34.274 15.048h92.443a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})))),r().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},r().createElement("path",{fill:"#446275",d:"M72.246 84.033l8.66 5-35.5 61.488-8.66-5-12.556-24.729-51.307-29.622 20.431-35.388 50.648 29.242z"}),r().createElement("path",{d:"M62.906 120.21l-80.091-46.24 10.5-18.188 50.647 29.242 28.284-.99 8.66 5-18 31.176z",fillOpacity:.2,fill:"#FFF"}),r().createElement("path",{d:"M27.566 75.558L3.877 109.065l-5.013-2.895 26.045-32.146 2.657 1.534zm9.467 5.466L13.345 114.53l-5.014-2.895L34.377 79.49l2.656 1.534zm8.158 4.71l-22.32 34.297-5.013-2.895L43.903 84.99l1.288.744z",fill:"#527585"}),r().createElement("path",{d:"M11.524 90.544l13.385-16.52 2.657 1.534-12.174 17.22-3.868-2.234zm9.467 5.467L34.377 79.49l2.656 1.534-12.174 17.22-3.868-2.233zm9.527 5.5L43.903 84.99l1.288.744-11.47 17.626-3.203-1.85z",fill:"#76A2B5",opacity:.6}),r().createElement("path",{d:"M.355 59.848l-23.689 33.507-5.013-2.895 26.045-32.146 2.657 1.534zm9.468 5.466L-13.866 98.82l-5.013-2.895L7.166 63.78l2.657 1.534zm8.158 4.71L-4.34 104.32l-5.014-2.895L16.692 69.28l1.289.744z",fillOpacity:.1,fill:"#000"}),r().createElement("g",null,r().createElement("path",{fill:"url(#EmptySearchResults_svg__c)",opacity:.993,filter:"url(#EmptySearchResults_svg__d)",d:"M.63 0h173.74L123 172H52z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"url(#EmptySearchResults_svg__e)",opacity:.3,d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"url(#EmptySearchResults_svg__f)",opacity:.3,d:"M4 2h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"url(#EmptySearchResults_svg__g)",d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),r().createElement("path",{fill:"#FFF",opacity:.196,d:"M212.363 205.344l-1 1.732L60.418 124.52l4.977-8.62z"})),r().createElement("path",{fill:"#76A2B5",d:"M73.112 84.533l-35.5 61.488-.866-.5 35.5-61.488z"}),r().createElement("path",{fill:"#F3F3F3",d:"M80.906 89.033l-35.5 61.488-.866-.5 35.5-61.488z"}),r().createElement("path",{fill:"#538196",d:"M55.112 115.71l-17.5 30.311-.866-.5 17.5-30.31z"})))),SELECT_ATTRIBUTES:e=>r().createElement("svg",o({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),r().createElement("mask",{id:"SelectAttributes_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},r().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),r().createElement("g",{mask:"url(#SelectAttributes_svg__a)"},r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#SelectAttributes_svg__paint0_linear_0_19219)"}),r().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#SelectAttributes_svg__paint1_linear_0_19219)"}),r().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#fff"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),r().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),r().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),r().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2V140.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),r().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),r().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#fff"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zM148 37a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),r().createElement("defs",null,r().createElement("linearGradient",{id:"SelectAttributes_svg__paint0_linear_0_19219",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),r().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),r().createElement("linearGradient",{id:"SelectAttributes_svg__paint1_linear_0_19219",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:.01}),r().createElement("stop",{offset:1})))),NO_DATA:e=>r().createElement("svg",p({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),r().createElement("defs",null,r().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__b"},r().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:0,offset:"0%"}),r().createElement("stop",{stopColor:"#F4F4F4",offset:"100%"})),r().createElement("linearGradient",{x1:"69.573%",y1:"86.747%",x2:"38.144%",y2:"33.403%",id:"NoData_svg__d"},r().createElement("stop",{stopColor:"#000",stopOpacity:0,offset:"0%"}),r().createElement("stop",{stopColor:"#000",offset:"100%"})),r().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__e"},r().createElement("stop",{stopColor:"#EEFBFF",offset:"0%"}),r().createElement("stop",{stopColor:"#0072CE",offset:"100%"})),r().createElement("filter",{x:"-7.7%",y:"-7.5%",width:"115.3%",height:"115%",filterUnits:"objectBoundingBox",id:"NoData_svg__f"},r().createElement("feOffset",{dx:0,dy:2,in:"SourceAlpha",result:"shadowOffsetOuter1"}),r().createElement("feGaussianBlur",{stdDeviation:2,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),r().createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0",type:"matrix",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),r().createElement("feMerge",null,r().createElement("feMergeNode",{in:"shadowMatrixOuter1"}),r().createElement("feMergeNode",{in:"SourceGraphic"}))),r().createElement("circle",{id:"NoData_svg__a",cx:128,cy:128,r:128})),r().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r().createElement("mask",{id:"NoData_svg__c",fill:"#fff"},r().createElement("use",{xlinkHref:"#NoData_svg__a"})),r().createElement("use",{fillOpacity:.1,fill:"#0072CE",xlinkHref:"#NoData_svg__a"}),r().createElement("path",{fill:"url(#NoData_svg__b)",mask:"url(#NoData_svg__c)",d:"M0 9h256v247H0z"}),r().createElement("g",{mask:"url(#NoData_svg__c)"},r().createElement("g",{transform:"translate(29 37)"},r().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},r().createElement("path",{fillOpacity:.8,opacity:.5,d:"M14.565 8h228.144v176.476H14.565z"}),r().createElement("path",{d:"M0 8.01C0 3.586 3.576 0 7.997 0h223.838a7.997 7.997 0 017.997 8.01v152.401c0 4.424-3.577 8.01-7.997 8.01H7.997A7.997 7.997 0 010 160.411V8.01z"})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 42.105)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),r().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),r().createElement("path",{d:"M32.488.791h64.093a3.509 3.509 0 110 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M31.486 13.824h115.902a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),r().createElement("rect",{fill:"#645F6D",opacity:.5,x:19.986,y:16.04,width:79.944,height:11.028,rx:5.514}),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 80.2)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),r().createElement("rect",{fill:"#E3EBF4",x:0,y:1.003,width:18.987,height:19.048,rx:9.493}),r().createElement("path",{d:"M32.488.791h75.925a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M31.486 13.824h128.893a2.506 2.506 0 110 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M30.483 22.846h103.918a1.504 1.504 0 010 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),r().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 118.296)"},r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),r().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),r().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),r().createElement("path",{d:"M32.488.791h101.906a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),r().createElement("path",{d:"M31.486 13.824h84.924a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),r().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})))),r().createElement("g",{mask:"url(#NoData_svg__c)"},r().createElement("path",{d:"M154.445 45.134v154.072H36.625V45.134h.811C35.508 62.52 41.07 80.609 54.12 93.944c22.74 23.235 59.61 23.235 82.352 0 13.05-13.335 18.612-31.424 16.683-48.81h1.29z",fill:"url(#NoData_svg__d)",opacity:.1,transform:"rotate(-30 291.014 34.548)"}),r().createElement("path",{d:"M27.473 93.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"url(#NoData_svg__e)",opacity:.2,transform:"translate(70 86)"}),r().createElement("g",{filter:"url(#NoData_svg__f)",strokeWidth:1,fill:"none",transform:"translate(70 86)"},r().createElement("path",{d:"M59.697 0c32.97 0 59.697 26.746 59.697 59.738 0 15.185-5.662 29.047-14.988 39.587l51.204 51.24a89.336 89.336 0 01-10.097 9.392l-51.38-51.416c-9.73 6.888-21.61 10.936-34.436 10.936C26.727 119.477 0 92.73 0 59.738 0 26.746 26.727 0 59.697 0zm0 17.756c-23.17 0-41.953 18.796-41.953 41.982s18.783 41.982 41.953 41.982 41.953-18.796 41.953-41.982-18.783-41.982-41.953-41.982z",fill:"#B5C8C9"}),r().createElement("path",{d:"M21.508 105.656C8.365 94.698 0 78.196 0 59.738 0 26.746 26.727 0 59.697 0c18.444 0 34.935 8.37 45.885 21.523l-9.794 9.8c-8.408-10.68-21.45-17.537-36.091-17.537-25.361 0-45.92 20.573-45.92 45.952 0 14.652 6.852 27.702 17.525 36.117l-9.794 9.8z",fillOpacity:.4,fill:"#FFF"})),r().createElement("path",{d:"M97.473 179.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"#D9F5FF",opacity:.4,style:{mixBlendMode:"soft-light"}}),r().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.87,fill:"#000",style:{mixBlendMode:"overlay"}}),r().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.38,fill:"#3C74B4"})))),ERROR:e=>r().createElement("svg",s({width:88,height:88,viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r().createElement("mask",{id:"Error_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:88,height:88},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),r().createElement("g",{mask:"url(#Error_svg__a)"},r().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:.3}),r().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),r().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),r().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),r().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),r().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),r().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),r().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),r().createElement("path",{opacity:.5,d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.3,d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.8,d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),r().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.2,d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),r().createElement("path",{opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),r().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),r().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),r().createElement("g",{filter:"url(#Error_svg__filter0_d)"},r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),r().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),r().createElement("path",{opacity:.15,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),r().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),r().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),r().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),r().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#Error_svg__paint0_linear)"}),r().createElement("g",{filter:"url(#Error_svg__filter1_d)"},r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),r().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),r().createElement("g",{filter:"url(#Error_svg__filter2_d)"},r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),r().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),r().createElement("defs",null,r().createElement("filter",{id:"Error_svg__filter0_d",x:36.219,y:37.875,width:42.375,height:42.375,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:2}),r().createElement("feGaussianBlur",{stdDeviation:2}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"Error_svg__filter1_d",x:51.688,y:62.625,width:11.438,height:11.438,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:2}),r().createElement("feGaussianBlur",{stdDeviation:2}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("filter",{id:"Error_svg__filter2_d",x:51.688,y:44.063,width:11.438,height:23.813,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r().createElement("feOffset",{dy:2}),r().createElement("feGaussianBlur",{stdDeviation:2}),r().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),r().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r().createElement("linearGradient",{id:"Error_svg__paint0_linear",x1:68.438,y1:71.571,x2:60.119,y2:58.801,gradientUnits:"userSpaceOnUse"},r().createElement("stop",{stopOpacity:0}),r().createElement("stop",{offset:1}))))},h=e=>{let{variant:t=f.full,LogoRenderer:l=m.SEARCH_RESULTS,text:a,secondaryText:c,buttonTitle:o,onClick:p=n.identity,access:s}=e;const h=d(),u=s&&o;return r().createElement("div",{className:h.root},r().createElement(l,{className:h[`${t}`]}),r().createElement("div",{className:h.textBox},r().createElement(i.Typography,{variant:"h5",classes:{h5:h.text}},a),c&&r().createElement(i.Typography,{variant:"subtitle1",classes:{subtitle1:h.secondaryText}},c)),u&&r().createElement(i.Button,{className:h.button,variant:"contained",color:"primary",onClick:p},o))}},68439:(e,t,l)=>{l.d(t,{Z:()=>f});var a=l(24328),r=l.n(a),n=l(52730),i=l(71153),c=l.n(i),o=l(94079),p=l(30830),s=l(87638);const d=(0,l(79692).Z)({"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",display:"inline-flex",marginRight:"12px",borderRadius:"2px"},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",display:"inline-flex",marginRight:"16px"}}),f=e=>{let{entity:t,className:l,size:a="small"}=e;const i=d(),f=(0,n.useSelector)(s.ZP.selectors.getMetadata),m=t.type,h=(0,p.nt9)(f,m)||{},u=(0,p.VD3)(f,h,"typeColor")||p.rSc.palette.primary.main;return r().createElement(o.Typography,{style:{backgroundColor:u,color:p.P6Y.Colors.getColor(u)?"#FFFFFF":"#212121"},className:c()(i[`entityType-${a}`],l),component:"div"},(0,p.jFi)(f,t))}},57304:(e,t,l)=>{l.d(t,{Z:()=>x});var a=l(24328),r=l.n(a),n=l(13980),i=l.n(n),c=l(71153),o=l.n(c),p=l(52730),s=l(17440),d=l(94079),f=l(87918),m=l.n(f),h=l(30830),u=l(87638),y=l(53180),E=l(68439);const g=(0,l(79692).Z)((e=>({profileBandWrapper:{flexShrink:0},profileBand:{display:"flex",padding:"16px 12px 16px 16px",alignItems:"flex-start",backgroundColor:"#fff",boxShadow:"inset 0 -1px 0 0 rgba(0,114,206,0.06), inset 0 1px 0 0 rgba(0,114,206,0.06);","&:after":{content:'""',minHeight:"inherit",fontSize:0}},inactive:{background:e.inactiveBackground},profileIcon:{marginRight:"12px"},imageProfileIcon:{width:"48px",height:"48px"},profileInfo:{display:"flex",flexDirection:"column",flex:"1 1 50%"},badge:{},label:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary,wordBreak:"break-word","&+ $specialInfo":{marginTop:"4px"}},secondaryLabel:{display:"inline-flex",color:e.palette.text.primary,marginTop:"2px",lineHeight:"16px",fontSize:"14px",fontWeight:400,"&+ $businessCard":{marginLeft:"12px"}},businessCard:{color:e.palette.text.secondary,display:"inline-flex",fontSize:"14px",marginTop:"4px",lineHeight:"1.2"},specialInfo:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",width:"100%",marginTop:"8px"},entityType:{display:"flex",flexWrap:"wrap"},entityId:{fontSize:"13px",color:e.palette.text.secondary,whiteSpace:"nowrap",cursor:"pointer","&:hover":{textDecoration:"underline"}}}))),v=e=>{let{className:t,entity:l,children:n,classes:i}=e;const c=g({classes:i}),f=(0,p.useSelector)(u.ZP.selectors.getMetadata),v=(0,a.useCallback)((()=>{navigator.clipboard.writeText((0,h.BTI)(l))}),[l]);if((0,s.isNil)(l))return null;const x=(0,h.idV)(l.label),_=l.secondaryLabel,z=(0,h.ptG)(f,l),b=(0,h.Fn9)(l),M=l.uri,B=(0,h.BTI)(l);return r().createElement("div",{className:o()(c.profileBandWrapper,t)},r().createElement("div",{className:o()(c.profileBand,{[c.inactive]:!b}),"data-entity-uri":M},r().createElement(y.Z,{key:l.uri,entity:l,avatarClassName:c.profileIcon,imageClassName:c.imageProfileIcon}),r().createElement("div",{className:c.profileInfo},r().createElement("div",null,r().createElement(d.Typography,{variant:"h6",className:c.label},x),_&&r().createElement(d.Typography,{variant:"subtitle2",className:c.secondaryLabel},_),z&&r().createElement(d.Typography,{variant:"subtitle1",className:c.businessCard},z)),r().createElement("div",{className:c.specialInfo},r().createElement("div",{className:c.entityType},r().createElement(E.Z,{entity:l,size:"medium",className:c.badge}),!(0,h.ZiX)(M)&&r().createElement(d.Tooltip,{title:m().text("Copy to clipboard")},r().createElement(d.Typography,{display:"inline",variant:"body2",className:c.entityId,onClick:v},m().text("Entity ID"),": ",B))))),n&&r().createElement("div",null,n)))};v.propTypes={className:i().string,entity:i().object,children:i().node,classes:i().object};const x=v},93517:(e,t,l)=>{l.d(t,{Z:()=>y});var a=l(24328),r=l.n(a),n=l(87918),i=l.n(n),c=l(71153),o=l.n(c),p=l(30830);const s=(0,l(79692).Z)((e=>({container:{display:"flex",padding:"16px",overflow:"hidden"},image:{width:"40px",height:"40px"},info:{marginLeft:"12px",overflow:"hidden",display:"flex",flexDirection:"column"},label:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:400,fontSize:"13px",lineHeight:"15px",color:e.palette.primary.main},secondaryLabel:{marginTop:"4px",fontWeight:400,fontSize:"10px",lineHeight:"12px",color:e.palette.text.secondary,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},link:{textDecoration:"none"},thirdRow:{display:"flex",alignItems:"center",marginTop:"auto",paddingTop:"4px"},entityId:{display:"flex",alignItems:"baseline",fontWeight:400,fontSize:"12px",lineHeight:"16px"},entityIdLabel:{color:e.palette.text.secondary},entityIdValue:{marginLeft:"8px",color:e.palette.text.primary}})));var d=l(53180),f=l(31039),m=l(88611),h=l(68439);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},u.apply(this,arguments)}const y=(0,a.memo)((e=>{let{entity:t,classes:l={}}=e,a=function(e,t){if(null==e)return{};var l,a,r=function(e,t){if(null==e)return{};var l,a,r={},n=Object.keys(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||(r[l]=e[l]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(r[l]=e[l])}return r}(e,["entity","classes"]);const n=s(),{secondaryLabel:c,label:y,container:E}=l,g=(0,p.idV)(t.label),{secondaryLabel:v}=t;return r().createElement("div",u({className:o()(n.container,E)},a),r().createElement(d.Z,{entity:t,imageClassName:n.image}),r().createElement("div",{className:n.info},r().createElement(f.Z,{value:(0,p.wwR)(t),className:n.link},r().createElement(m.C,{value:g,placement:"top",showOnExceededHeight:!0},r().createElement("div",{className:o()(n.label,y)},g))),v&&r().createElement(m.C,{value:v,placement:"top",showOnExceededHeight:!0},r().createElement("div",{className:o()(n.secondaryLabel,c)},v)),r().createElement("div",{className:n.thirdRow},r().createElement(h.Z,{entity:t,size:"medium"}),r().createElement("div",{className:n.entityId},r().createElement("div",{className:n.entityIdLabel},i().text("ID:")),r().createElement("div",{className:n.entityIdValue},(0,p.BTI)(t))))))}))}}]);
|
package/845.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[845],{20845:(e,t,n)=>{n.d(t,{_:()=>ba,t:()=>Ra});var r=n(24328),o=n.n(r),a=n(52730),l=n(8598),i=n(17440),s=n(36138),c=n(44443),u=n(22664),p=n(39450),m=n(585),d=n(30830);const g=o().createContext({getCurrentPerspectiveId:()=>"",setEntityUri:()=>{},showPerspective:()=>{}});var f=n(87918),b=n.n(f),h=n(3096),y=n.n(h),E=n(87638),v=n(2804),x=n(7718),w=n(3515),S=n(17554),C=n(61756),P=n(57730),O=n(76536),N=n(26481),T=n(49759),k=n(94150),Z=n(26005),R=n(99136),I=n(21077),j=n(67268),D=n(71153),L=n.n(D),A=n(8962);const M=o().createContext(null);M.displayName="SingleAttributeContext";var U=n(60995),F=n(10237),H=n(58662),V=n(94079),z=n(93416),B=n(75512),W=n(30553),_=n(91181),G=n(32152),q=n(36444),$=n(79692);const Q=(0,$.Z)((()=>({triggerButton:{minWidth:0,color:"rgba(0,0,0,0.54)",width:"36px"},popupContent:{paddingTop:"19px",paddingBottom:"23px",paddingLeft:"23px",paddingRight:"23px",maxWidth:"180px",width:"40%"},checkboxControlRoot:{marginTop:"6px",marginLeft:"-12px"},checkboxControlLabel:{fontSize:"0.85rem"},checkboxControlCheckbox:{marginRight:"5px"}}))),X=e=>{let{className:t}=e;const n=Q(),a=(0,r.useRef)(),[l,i]=(0,r.useState)(!1),{showInactive:s,toggleShowInactive:c}=(0,r.useContext)(M),u=()=>i((e=>!e));return o().createElement(o().Fragment,null,o().createElement(V.Button,{ref:a,classes:{root:L()(n.triggerButton,t)},onClick:u},o().createElement(q.Z,null)),o().createElement(V.Popover,{open:l,classes:{paper:n.popupContent},anchorEl:a.current,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},o().createElement(V.FormControlLabel,{classes:{root:n.checkboxControlRoot,label:n.checkboxControlLabel},control:o().createElement(V.Checkbox,{className:n.checkboxControlCheckbox,checked:s,onChange:e=>c(e.target.checked)}),label:b().text("Show inactive values")})))},Y=(0,$.Z)((()=>({root:{padding:"0 4px 0 16px"},totalCaption:{lineHeight:"19px",fontSize:"14px",letterSpacing:"0.24px",color:"rgba(0,0,0,0.6)",flexShrink:0,justifyContent:"flex-start",paddingTop:"16px",paddingBottom:"13px"},ovIcon:{marginTop:"2px",marginLeft:"5px"}}))),K=e=>{let{caption:t,totalVisibleValues:n,showInactiveValuesMenu:a}=e;const l=Y(),{searchQuery:i,setSearchQuery:s,setPage:c,totalNonVisibleValues:u,nonVisibleValues:p,attributeType:m}=(0,r.useContext)(M);return o().createElement(z.Z,{title:b().text(t),className:l.root},o().createElement(B.Z,{widthToHide:500},o().createElement(W.Z,{height:24,margin:16}),o().createElement(V.Typography,{className:l.totalCaption,variant:"caption"},b().number(n)," ",1===n?b().text("item"):b().text("items"))),o().createElement(_.Z,{nonOvTotal:u,className:l.ovIcon,nonOvValues:p,attributeType:m}),o().createElement(G.i,{query:i,onChange:e=>{s(e),c(0)}}),a&&o().createElement(X,null))};var J=n(65549),ee=n(93140),te=n(76134),ne=n(96698);const re=(0,$.Z)((e=>({moreButton:{padding:"9px 16px 9px 12px",backgroundColor:"rgba(98, 2, 238, 0)",marginBottom:"4px"},buttonLabel:{fontSize:"14px",fontWeight:500,lineHeight:"16px"},icon:{fontSize:"18px",marginRight:"8px"},divider:{margin:"0 -16px 8px",backgroundColor:"rgba(0,0,0,0.12)"},ovFalse:e.inactive}))),oe=d.nIW,ae=(e,t)=>"object"==typeof e?Object.values(e).some((e=>e.some((e=>{let{value:n}=e;return ae(n,t)})))):d.P6Y.strings.search(String(e),t),le=async e=>{let{metadata:t,entity:n,attributeTypeUri:r,defaultMaxValues:o=1/0,offset:a=0,searchQuery:l=""}=e;const s=(0,i.pipe)(d.XtP,(0,i.filter)((e=>{let{value:t}=e;return ae(t,l)})))(t,n,r),c=(0,i.filter)(d.OXP,s);return{[(0,d.xy8)(r)]:{[oe(r)]:c.slice(a,a+o),paging:{[r]:{totalOvValues:c.length,totalValues:s.length}}}}};function ie(){return ie=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},ie.apply(this,arguments)}function se(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){ce(e,t,n[t])}))}return e}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ue=[],pe=e=>{let{values:t,attributeType:n,parentUri:l,showInactive:s}=e;const c=re(),{uri:u,required:m,cardinality:g,name:f}=n,h=(0,a.useDispatch)(),y=(0,r.useContext)(p.m),v=(0,a.useSelector)(E.ZP.selectors.getEntity),x=(0,a.useSelector)((e=>E.ZP.selectors.getModifiedEntity(e,v.uri)||{})),w=(0,a.useSelector)((e=>E.ZP.selectors.getActiveErrorsForAttributesPager(e,l,n))),S=(0,a.useSelector)((e=>(0,d.tQX)(l,n,E.ZP.selectors.getProfileErrors(e)))),C=(0,a.useSelector)(E.ZP.selectors.getMode),P=(0,d.xy8)(n),O=(0,i.pipe)((0,i.pathOr)(ue,[P,f]),(0,i.map)((0,i.prop)("uri")))(v),N=(0,i.pathOr)(ue,[P,f],x),T=N.map((0,i.prop)("uri")),k=(0,d.ZiX)(v.uri),Z=(0,r.useRef)((0,d.gjI)({parentUri:l,attributeType:n})),R=(0,d.O27)(N),I=m&&R,j=I?[Z.current]:N.filter((0,i.pipe)((0,i.prop)("uri"),d.ZiX)),D=(0,r.useCallback)((e=>(0,i.pipe)(E.N5.actions.addAttributes,h)(e.map((e=>se({},e,{viewId:y}))))),[y,h]),A=(0,r.useCallback)((e=>(0,i.pipe)(E.N5.actions.modifyAttribute,h)(se({},e,{viewId:y}))),[y,h]),M=(0,r.useCallback)((e=>(0,i.pipe)(E.N5.actions.removeAttribute,h)(se({},e,{viewId:y}))),[y,h]),U=(0,r.useCallback)((0,i.pipe)(E.N5.errors.actions.errorDeactivated,h),[h]),F=(0,r.useCallback)((()=>{const e={parentUri:l,attributeType:n};return D(I&&!(0,d.YkM)(n.type)?[e,e]:[e])}),[D,l,n,I]),H=(0,d.Vg3)({attributeType:n,mode:C}),z={attributeType:n,errors:w,crosswalks:x.crosswalks,mode:C,onAddAttributes:D,onChangeAttribute:A,onDeactivateError:U,showNonOv:s};return o().createElement("div",null,o().createElement(ee.Z,{cardinality:g}),o().createElement(te.Z,{message:S}),H&&o().createElement(V.Button,{color:"primary",onClick:F,className:c.moreButton},o().createElement(J.Z,{classes:{root:c.icon}}),o().createElement("div",{className:c.buttonLabel},b().text("Add"))),j.map(((e,t)=>o().createElement(ne.Z,ie({key:e.uri},z,{attributeValue:e,lazy:I&&!m,showEmptyEditors:k,ownError:(0,d.ADq)(e,t,u,w),onDeleteAttribute:M})))),j.length>0&&t.length>0&&o().createElement(V.Divider,{className:c.divider}),t.map((e=>{const t=N.find((0,i.propEq)("uri",e.uri)),n=t||e,r=O.includes(n.uri)&&!T.includes(n.uri),a=!r&&t&&!((e,t)=>{const n=(0,i.is)(Object,e.value)||(0,i.is)(Object,t.value)?(0,i.over)((0,i.lensPath)(["value"]),(0,d.vKJ)({valueTransformer:(0,i.unless)(d.OXP,(0,i.omit)(["value"])),deleteEmptyComplex:!0})):i.identity;return(0,i.equals)(n(e),n(t))})(t,e),l=(0,i.cond)([[(0,i.always)(r),(0,i.always)("deleted")],[(0,i.always)(a),(0,i.always)("edited")]])();return o().createElement("div",{key:n.uri,className:L()({[c.ovFalse]:!(0,d.OXP)(n)})},o().createElement(ne.Z,ie({},z,{attributeValue:n,ownError:(0,d.ADq)(n,null,u,w),onDeleteAttribute:M,state:l})))})))};var me=n(81303);const de=(0,$.Z)((e=>({ovFalse:e.inactive}))),ge=e=>{let{values:t,attributeType:n,showInactive:r}=e;const a=de();return o().createElement(o().Fragment,null,t.map((e=>o().createElement("div",{key:e.uri,className:L()({[a.ovFalse]:!(0,d.OXP)(e)})},o().createElement(me.Z,{attributeValue:e,attributeType:n,showNonOv:r})))))},fe=(0,$.Z)((()=>({root:{display:"flex",flexDirection:"column"},content:{position:"relative",padding:"4px 16px 9px",overflow:"auto",flexGrow:1},noData:{fontSize:"13px",color:"rgba(0,0,0,0.54)"},pagination:{flexGrow:0,flexShrink:0}}))),be=e=>{let{config:t,className:n}=e;const{caption:l,max:i,showInactiveValuesMenu:s}=t,c=fe(),{values:u,totalVisibleValues:p,page:m,setPage:d,isLoading:g,hasPaging:f,attributeType:h,showInactive:y}=(0,r.useContext)(M),v=(0,a.useSelector)(E.ZP.selectors.getEntityUri),x=(0,a.useSelector)(E.ZP.selectors.getIsViewMode),w=(0,a.useSelector)(E.ZP.selectors.getIsEditableMode),S=(0,a.useSelector)(E.ZP.selectors.getPivotingAttributes),C=0!==u.length;return o().createElement(U.J.Provider,{value:S},o().createElement(F.Z,{className:L()(c.root,n)},o().createElement(K,{totalVisibleValues:p,caption:l,showInactiveValuesMenu:s}),o().createElement(V.Box,{className:c.content},(()=>{if(g)return o().createElement(R.Z,null);if(h){if(x&&C){const e={values:u,attributeType:h,showInactive:y};return o().createElement(ge,e)}if(w){const e={values:u,attributeType:h,parentUri:v,showInactive:y};return o().createElement(pe,e)}}return o().createElement(V.Typography,{className:c.noData},b().text("No data"))})()),f&&o().createElement(H.Z,{count:p,page:m,rowsPerPage:i,rowsPerPageOptions:[],onChangePage:d,classes:{root:c.pagination}})))};var he=n(67218),ye=n(20562);function Ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ve=(e,t,n)=>{const{attributeUri:o,max:l=15}=e,s=(0,a.useSelector)(E.ZP.selectors.getMetadata),[c,u]=(0,r.useState)([]),[p,m]=(0,r.useState)(null),[g,f]=(0,r.useState)(!1),b=(0,he._)(),h=(0,r.useRef)(null),y=(0,a.useDispatch)(),v=(0,a.useSelector)(E.ZP.selectors.getApiPath),x=(0,a.useSelector)(E.ZP.selectors.getTenant),w=n?E.ZP.selectors.getEntityWithDiff:E.ZP.selectors.getEntityWithoutDiff,S=(0,a.useSelector)(w),C=(0,a.useSelector)(E.ZP.selectors.getIsViewMode),P=(0,a.useSelector)(E.ZP.selectors.getIsHistoryModeEnabled),O=(0,a.useSelector)(E.ZP.selectors.getHistoryDiff),N=S.uri,T=oe(o),k=(0,d.xy8)(o);h.current=(0,d.JQy)(S,N,T);const Z=(0,r.useMemo)((()=>(0,d.zeJ)(s,o)),[s,o]),{globalFilter:R}=(0,a.useSelector)(E.ZP.selectors.getGlobalSearchRequestOptions),{showInactive:I}=t,j=(0,r.useCallback)((()=>{if(Z&&(0,d.Uty)(Z)&&!(0,d.ZiX)(N)&&(0,d.YOQ)(o)){f(!0);const{page:e,showInactive:n}=t,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["page","showInactive"]),a=(0,d.biM)(S)||P?le:d.KbL;b(a(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){Ee(e,t,n[t])}))}return e}({metadata:s,entity:S,apiPath:v,tenant:x,parentUri:N,defaultMaxValues:l,attributeTypeUri:o,offset:l*e,globalFilter:R,options:n?"":void 0},r))).then((e=>{const t=(0,i.path)([k],e),n=(0,i.pathOr)([],[T],t);P||y(E.N5.actions.processNextPageOfAttributeValues({parentUri:N,attributeTypeUri:o,attributeTypeName:T,values:n})),u(n.map((e=>{var t;return(null===(t=h.current)||void 0===t?void 0:t.find((0,i.propEq)("uri",e.uri)))||e}))),m((0,i.path)(["paging",o],t))})).finally((()=>{f(!1)}))}else u([]),m(null)}),[v,N,x,o,l,s,t,R,Z,P,O]);(0,r.useEffect)((()=>{j()}),[j]),(0,ye.D)((()=>{C&&j()}),[C]);const D=(0,i.partition)(d.OXP),[,L]=D(h.current||[]),A=I?[]:L,M=I?"totalValues":"totalOvValues",U=(0,i.ifElse)((0,i.has)(M),(0,i.prop)(M),(0,i.always)(c.length))(p),F=l<U,H=null!=p&&p.totalValues?p.totalValues-U:A.length;return{values:c,isLoading:g,hasPaging:F,totalVisibleValues:U,attributeType:Z,totalNonVisibleValues:H,nonVisibleValues:A}};function xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var we=n(37152),Se=n(31274),Ce=n(79026),Pe=n(8818),Oe=n(90324),Ne=n(70595);const Te=o().createContext(null);Te.displayName="RelationsViewStateContext";const ke=(0,$.Z)((e=>({button:{color:e.palette.text.secondary,width:"36px",minWidth:"36px"},popupContent:{padding:"19px 23px"},checkboxControlLabel:{fontSize:"0.85rem"},checkboxControlCheckbox:{marginRight:"5px"},divider:{backgroundColor:"rgba(0,0,0,0.1)",margin:"19px -23px"},title:{marginBottom:"30px"},sortControls:{display:"flex",alignItems:"center"},sortSelectorRoot:{flex:1,padding:"13px 16px",fontSize:"0.85rem"},sortSelectorMenuItem:{fontSize:"0.85rem"},sortOrderButton:{flexShrink:0,margin:"0 8px 0 7px"}}))),Ze=e=>{let{className:t}=e;const n=ke(),a=(0,r.useRef)(),{showInactive:l,toggleShowInactive:i,sortOrder:s,toggleSortOrder:c,sortOption:u,changeSortOption:p,sortOptions:m}=(0,r.useContext)(Te),[g,f]=(0,r.useState)(!1),h=()=>f((e=>!e)),y=!(0,d.O27)(m),E="asc"===s;return o().createElement(o().Fragment,null,o().createElement(V.Button,{ref:a,classes:{root:L()(n.button,t)},onClick:h},o().createElement(q.Z,null)),o().createElement(V.Popover,{open:g,classes:{paper:n.popupContent},anchorEl:a.current,onClose:h,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},o().createElement(V.FormControlLabel,{classes:{label:n.checkboxControlLabel},control:o().createElement(V.Checkbox,{className:n.checkboxControlCheckbox,checked:l||!1,onChange:i}),label:b().text("Show inactive Relationships")}),y&&o().createElement(o().Fragment,null,o().createElement(V.Divider,{className:n.divider}),o().createElement(V.Typography,{className:n.title,variant:"h6"},b().text("Sort by")),o().createElement("div",{className:n.sortControls},o().createElement(Ce.Z,{entries:m,TextFieldProps:{variant:"filled"},classes:{root:n.sortSelectorRoot,menuItem:n.sortSelectorMenuItem},fullWidth:!0,disableUnderline:!0,value:u,onChange:p,MenuProps:{getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"left"}}}),o().createElement(Pe.k,{tooltipTitle:E?b().text("Ascending"):b().text("Descending"),icon:E?Oe.Z:Ne.Z,onClick:c,className:n.sortOrderButton,size:"L"})))))};Ze.displayName="FilterButton";const Re=Ze,Ie=(0,$.Z)({header:{padding:"0 6px 0 16px"},totalCaption:{lineHeight:"19px",fontSize:"14px",letterSpacing:"0.24px",color:"rgba(0,0,0,0.6)",flexShrink:0,marginRight:"5px",justifyContent:"flex-start",paddingTop:"16px",paddingBottom:"13px"}});var je=n(61932),De=n(55847);const Le=o().createContext(null);function Ae(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){Me(e,t,n[t])}))}return e}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ue=Math.pow(2,31)-1,Fe=(0,$.Z)((()=>({tenant:{backgroundColor:"#0000EE",cursor:"pointer",position:"absolute",top:"8px",left:"22px",width:"10px",height:"10px",color:"white",fontSize:"10px",fontWeight:"bold",userSelect:"text",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center"},button:{position:"relative"},badge:{fontSize:"10px",height:"14px",minWidth:"14px",width:"14px",fontWeight:"bold",backgroundColor:"#FF4081",color:"#FFF"},badgePosition:{right:"5px",top:"4px"}})));var He=n(81137);const Ve=e=>{let{label:t}=e;const n=Fe();return o().createElement(V.Badge,{classes:{anchorOriginTopRightRectangle:n.badgePosition,badge:n.badge},badgeContent:t},o().createElement(je.Z,null))},ze=()=>{const{tenants:e,selectedTenant:t,onConfirmImport:n,onCancelConfirmation:l,onImportClick:i}=(()=>{var e;const t=(0,a.useSelector)(E.ZP.selectors.getDataTenants),n=(0,a.useDispatch)(),{config:o,reloadRelations:l}=(0,r.useContext)(Le),i=(0,a.useSelector)(E.ZP.selectors.getEntityUri),[s,c]=(0,r.useState)([]),[u,p]=(0,r.useState)(null),m=(0,a.useSelector)(E.ZP.selectors.getDtssPath),g=(0,a.useSelector)(E.ZP.selectors.getTenant),f=[Ae({},o.content,{offset:0,max:null!==(e=o.maxDtssImport)&&void 0!==e?e:Ue})],h=(0,r.useCallback)((()=>{c([]),o.importFromDT&&!(0,d.ZiX)(i)&&Promise.all((t||[]).map((e=>(0,d.QXb)({entityUri:i,content:f,dtssPath:m,customerTenant:g,dataTenant:e.id}).then((t=>{let{hasNonImportedConnections:n}=t;return Ae({},e,{hasNonImportedConnections:n})}))))).then((e=>e.filter((e=>e.hasNonImportedConnections)))).then(c)}),[i,m,g,o,t]),y=(0,r.useCallback)((()=>{(0,d.MOC)({entityUri:i,content:f,dtssPath:m,customerTenant:g,dataTenant:u.id}).then((()=>{l(),h()})).catch((e=>n(E.ui.actions.errorSet((0,d.xU7)(e,b().text("Something went wrong")))))),p(null)}),[i,m,g,o,h,l,u,p]);(0,r.useEffect)((()=>{h()}),[h]);const v=(0,r.useCallback)((()=>p(null)),[]),x=(0,r.useCallback)((e=>p(e)),[]);return{tenants:s,selectedTenant:u,onConfirmImport:y,onCancelConfirmation:v,onImportClick:x}})(),s=Fe(),c=1===e.length,u=c?0===e[0].label.indexOf("DT:")?e[0].label[3]:e[0].label[0]:e.length;return o().createElement(o().Fragment,null,!!e.length&&o().createElement(o().Fragment,null,c?o().createElement("div",{className:s.button},o().createElement(Pe.k,{size:"L",icon:je.Z,tooltipTitle:b().text("Import connections from ${label}",{label:e[0].label}),onClick:()=>i(e[0])}),o().createElement("div",{className:L()(s.tenant)},u)):o().createElement(De.Z,{menuId:"importDT-table-actions",buttonComponent:Pe.k,buttonProps:{tooltipTitle:b().text("Import connections"),size:"L",icon:()=>o().createElement(Ve,{label:u})},menuItems:e.map((e=>({onClick:()=>{i(e)},text:e.label})))}),o().createElement(He.Z,{open:!!t,title:b().text("Confirmation"),content:b().text("Import connections from ${label}?",{label:null==t?void 0:t.label}),discardCaption:b().text("Cancel"),saveCaption:b().text("Import"),onDiscard:l,onSave:n})))},Be=e=>{let{title:t,total:n}=e;const a=Ie(),{searchQuery:l,changeSearchQuery:i}=(0,r.useContext)(Te);return o().createElement(z.Z,{title:t||"",className:a.header},n>0&&o().createElement(B.Z,{widthToHide:400},o().createElement(W.Z,{height:24,margin:16}),o().createElement(V.Typography,{className:a.totalCaption,variant:"caption"},n>1?b().text("${count} items",{count:n}):b().text("${count} item",{count:n}))),o().createElement(G.i,{query:l,onChange:i}),o().createElement(ze,null),o().createElement(Re,null))};var We=n(11013),_e=n(27604),Ge=n(22983),qe=n(31254),$e=n(31039);const Qe=(0,$.Z)((e=>({tooltip:e.tooltip,tooltipContent:{minWidth:"165px",padding:"4px 2px 2px"},label:{fontSize:"11px",lineHeight:"13px",fontWeight:500,margin:0,color:"white"},secondaryLabel:{color:"rgba(255, 255, 255, 0.7)",fontSize:"10px",marginTop:"4px",fontWeight:500,lineHeight:"11px"},progress:{marginTop:"4px",color:"#FFFFFF"}})));function Xe(){return Xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xe.apply(this,arguments)}const Ye=e=>{let{label:t,entity:n,children:l}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["label","entity","children"]);const c=Qe(),u=(0,he._)(),p=(0,a.useSelector)(E.ZP.selectors.getTenant),m=(0,a.useSelector)(E.ZP.selectors.getDtssPath),[g,f]=(0,r.useState)(!1),[b,h]=(0,r.useState)(null);(0,r.useEffect)((()=>{h(null)}),[n]);const y=(0,r.useCallback)((()=>{if(null!=n&&n.entityUri&&(0,i.isNil)(b)){const e=(0,i.ifElse)(d.biM,(e=>(0,d.vTU)({entityUri:e.entityUri,dataTenant:e.dataTenant,customerTenant:p,dtssPath:m})),(e=>(0,d.XkT)(e.entityUri)));f(!0),u(e(n)).then((e=>{let{secondaryLabel:t}=e;h(t)})).finally((()=>{f(!1)}))}}),[m,n,p,u,b]),v=o().createElement("div",{className:c.tooltipContent},o().createElement("div",{className:c.label},t),g&&o().createElement(V.CircularProgress,{size:16,classes:{colorPrimary:c.progress}}),b&&o().createElement("div",{className:c.secondaryLabel},b));return o().createElement(V.Tooltip,Xe({onOpen:y,title:v,disableFocusListener:!0,classes:{tooltip:c.tooltip}},s),l)},Ke=(e,t)=>{const{entity:n,relation:r}=e;return{entityType:(0,d.nt9)(t,null==n?void 0:n.entityType),entityLabel:(0,d.idV)(null==n?void 0:n.entityLabel),preparedUri:(0,d.wwR)({uri:null==n?void 0:n.entityUri,dataTenant:null==n?void 0:n.dataTenant}),relationLabel:(null==r?void 0:r.relationLabel)||(0,d.Lmx)(t,null==r?void 0:r.relationType)}};var Je=n(77277);const et=(0,$.Z)((()=>({container:{display:"flex"}})));function tt(){return tt=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},tt.apply(this,arguments)}const nt=e=>{let{acceptRelation:t,ignoreRelation:n}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["acceptRelation","ignoreRelation"]);const a=et();return o().createElement("div",{className:a.container},o().createElement(Je.Z,tt({onClick:t,variant:"text",color:"primary"},r,{style:{alignSelf:"center"}}),b().text("Accept")),o().createElement(Je.Z,tt({onClick:n,variant:"text",color:"primary"},r,{style:{alignSelf:"center"}}),b().text("Ignore")))},rt=(0,$.Z)((e=>({container:{display:"flex",flexDirection:"column",marginBottom:"2px"},row:{display:"flex",alignItems:"center",flexDirection:"row",minHeight:"24px",padding:"0 16px"},rowInactive:{background:e.inactiveBackground},entityAvatar:{height:"12px",width:"12px",fontSize:"11px",marginRight:"8px"},entityLabelContainer:{textDecoration:"none",cursor:"pointer",paddingRight:"8px"},entityLabel:{color:e.palette.primary.main,fontSize:"13px",letterSpacing:0,lineHeight:"15px"},relationLabel:{color:e.palette.text.secondary,fontSize:"13px",letterSpacing:0,lineHeight:"15px"},editButtonsContent:{marginLeft:"auto",flex:"0 0 40px"},editButtons:{padding:0},removed:{color:e.palette.text.secondary,textDecoration:"line-through"},editedLabel:{fontStyle:"italic",color:e.palette.text.secondary,margin:"0 5px"}}))),ot=(0,r.memo)((e=>{let{connection:t,metadata:n,showControls:a,onRemoveRelation:l,onEditRelation:i,onAcceptRelation:s,onIgnoreRelation:c,renderRelationArrowButton:u}=e;const p=rt(),{entity:m,relation:g}=t,f=(0,d.$qe)(t),h=(0,d.xr3)(t),y=(0,d.iJH)(t),{entityType:E,entityLabel:v,preparedUri:x,relationLabel:w}=Ke(t,n),S=(0,d.Fn9)(g)&&(0,d.Fn9)(m),{canRemove:C,canUpdate:P}=(e=>{let{metadata:t,mode:n,connection:r,onRemoveRelation:o,onEditRelation:a}=e;if((n===d.ARY.Editing||n===d.ARY.Suggesting)&&r){const{relation:{relationType:e}}=r,l=(0,d.$qe)(r),i=(0,d.V3K)(t,e);return{canRemove:o&&!l&&(0,d.Edd)(n,i),canUpdate:a&&!l&&(0,d.Z5t)(n,i)}}return{canRemove:!1,canUpdate:!1}})({mode:d.ARY.Editing,onRemoveRelation:l,onEditRelation:i,metadata:n,connection:t}),O=(0,r.useCallback)((()=>l(t.relation.relationUri)),[l,t]),N=(0,r.useCallback)((()=>i(t)),[i,t]),T=(0,r.useCallback)((()=>{s(t)}),[s,t]),k=(0,r.useCallback)((()=>c(t)),[c,t]),Z=(C||P)&&a&&!t.suggested?o().createElement(o().Fragment,null,P&&o().createElement(Pe.k,{icon:_e.Z,size:"XS",onClick:N,tooltipTitle:b().text("Edit")}),C&&o().createElement(Pe.k,{icon:Ge.Z,size:"XS",onClick:O,tooltipTitle:b().text("Remove")})):void 0,R=t.suggested?o().createElement(nt,{acceptRelation:T,ignoreRelation:k,size:"small",disabled:y}):void 0,I=y?b().text("ignored"):b().text("edited");return o().createElement("div",{className:L()(p.container,{[p.rowInactive]:!S},{[p.removed]:f||y})},o().createElement("div",{className:p.row},u&&u(),o().createElement(qe.Z,{className:p.entityAvatar,entityType:E}),o().createElement($e.Z,{value:x,className:p.entityLabelContainer},o().createElement(Ye,{label:v,entity:m},o().createElement("span",{className:p.entityLabel},v)),(h||y)&&o().createElement(V.Typography,{variant:"caption",className:p.editedLabel},"(",I,")"),w&&o().createElement("span",{className:p.relationLabel},`, ${w}`)),o().createElement("div",{className:p.editButtonsContent},Z),R))})),at=(e,t)=>{const n=(e,t)=>(t?(0,d.VGB)(t):[]).map((t=>({type:t,direction:e===d.Nsj.IN?d.Nsj.IN:d.Nsj.OUT})));return n(d.Nsj.IN,e).concat(n(d.Nsj.OUT,t))[0]};function lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var it=n(98989),st=n(83543);const ct=(0,$.Z)({arrowIcon:{fontSize:"16px",marginRight:"6px"}}),ut=e=>{let{onClick:t,connection:n,config:r,showSecondLevel:a}=e;const l=ct(),{parentEntityUri:i}=n,{contentSecondLevel:s}=r,c={onClick:t,className:l.arrowIcon};return i||!s||(0,d.xvW)(n)?null:a?o().createElement(st.Z,c):o().createElement(it.Z,c)},pt=(0,$.Z)({row:{display:"flex",alignItems:"center",width:"100%"},secondLevelContent:{paddingLeft:"24px"}}),mt=e=>{let{config:t,connection:n,children:l}=e;const i=pt(),{showInactive:s}=(0,r.useContext)(Te),{connections:c,showSecondLevel:u,toggleShowSecondLevel:p,loadRelations:m,loading:g,total:f}=(e=>{let{config:t,connection:n,relationActivityFilter:o}=e;const l=(0,a.useDispatch)(),[i,s]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1),[p,m]=(0,r.useState)(0),{contentSecondLevel:g}=t,{entity:f}=n,b=(0,a.useSelector)((e=>E.ZP.selectors.getConnectionsWithDraftsByViewId(e,t.id,f.entityUri)))||[],{activityFilter:h}=(0,a.useSelector)(E.ZP.selectors.getGlobalSearchRequestOptions)||{},y=(0,r.useCallback)((()=>{const e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lt(e,t,n[t])}))}return e}({},g,{returnObjects:!0,returnDates:!0,activeness:{relation:o||d.Ng6.ALL,entity:h}});u(!0),(0,d.N6e)(f.entityUri,[e]).then((e=>{const{connections:n,total:r}=e[0];n&&l(E.N5.relations.actions.secondLevelRelationsLoaded({connections:n,parentEntityUri:f.entityUri,id:t.id})),m(r),u(!1)}))}),[t.id,g,l,f.entityUri,h,o]),v=(0,r.useCallback)((()=>{i||n.connections||y(),s((e=>!e))}),[y,n.connections,i]);return{connections:b,showSecondLevel:i,toggleShowSecondLevel:v,loadRelations:y,loading:c,total:p}})({config:t,connection:n,relationActivityFilter:s?d.Ng6.ALL:d.Ng6.ACTIVE_ONLY}),b=(0,r.useMemo)((()=>(0,d.Px$)(c)),[c]);return o().createElement(o().Fragment,null,l((()=>o().createElement(ut,{onClick:p,connection:n,config:t,showSecondLevel:u}))),u&&o().createElement(Se.X.Provider,{value:b},o().createElement("div",{className:i.secondLevelContent},o().createElement(Bt,{isLoading:g,config:t,loadRelations:m,connections:c,total:f,parentEntityUri:n.entity.entityUri}))))},dt=(0,$.Z)((e=>({moreButton:{padding:"9px 16px 9px 12px",backgroundColor:"rgba(98, 2, 238, 0)",marginBottom:"4px",marginLeft:"16px"},buttonLabel:{fontSize:"14px",fontWeight:500,lineHeight:"16px"},icon:{fontSize:"18px",marginRight:"8px"},divider:{margin:"0 0 8px",backgroundColor:"rgba(0,0,0,0.12)"},noData:{fontSize:"13px",color:e.palette.text.secondary,padding:"8px 16px"}}))),gt=e=>{let{className:t,connections:n=[],config:l,mode:s,noDataText:c,parentEntityUri:u}=e;const p=(0,a.useSelector)(E.ZP.selectors.getMetadata),m=(0,a.useSelector)((e=>E.ZP.selectors.getRelationToAddByViewId(e,l.id))),g=(0,a.useSelector)((e=>E.ZP.selectors.getRelationsToEditByViewId(e,l.id))),f=(0,a.useSelector)(E.ZP.selectors.getEntity),h=(0,a.useSelector)((e=>E.ZP.selectors.getCheckIfCanAddRelations(e,l.content))),y=(0,a.useDispatch)(),v=dt(),x=(0,r.useCallback)((()=>{const e=(0,d.vlo)({config:l,mode:s,metadata:p,parentEntityUri:u});(0,i.pipe)(E.N5.relations.actions.openRelationEditor(l.id),y)(e)}),[l,s,p,y,u]),w=(0,r.useCallback)((e=>{y(E.N5.relations.actions.closeRelationEditor(l.id,e)),y(E.N5.relations.actions.removeRelation(l.id,e));const t=n.find((t=>E.N5.relations.selectors.getRelationUriFromConnection(t)===e)),r=E.N5.relations.selectors.getEntityUriFromConnection(t);(0,d.ZiX)(r)&&y(E.N5.modifiedEntities.actions.entityDeleted(r))}),[l,n,y]),S=l.content,C=at(S.inRelations,S.outRelations),P=(0,r.useCallback)((e=>{const t=(0,i.pipe)((0,i.omit)(["suggested"]),(0,i.evolve)({relation:{relationType:(0,i.always)(C.type),object:(0,i.evolve)({type:(0,i.always)(C.type),attributes:(0,i.always)(null)})}}))(e);y(E.N5.relations.actions.addRelation(l.id,t))}),[y,l,C]),O=(0,r.useCallback)((e=>{y(E.N5.relations.actions.ignoreRelation(l.id,{relationType:C.type,relationDirection:C.direction,entityUri:e.entity.entityUri,relationUri:e.relation.relationUri}))}),[y,l,C]),[N,T]=(0,i.partition)(d.xvW,n),k=f&&h,Z=0===N.length&&0===T.length,R=e=>{var t,n;const r=g.find((t=>{var n,r;return(null==t||null===(n=t.relation)||void 0===n?void 0:n.relationUri)===(null==e||null===(r=e.relation)||void 0===r?void 0:r.relationUri)})),a=!l.allowOnlyCreateNew||(0,d.xvW)(e),c=`${null==e||null===(t=e.relation)||void 0===t?void 0:t.relationUri}-${null==e||null===(n=e.relation)||void 0===n?void 0:n.direction}`;return o().createElement(mt,{config:l,connection:e,key:c},(t=>r?o().createElement(We.Z,{connection:r,config:l,mode:s,metadata:p}):o().createElement(ot,{renderRelationArrowButton:t,connection:e,metadata:p,showControls:a,onRemoveRelation:w,onEditRelation:(0,i.pipe)(E.N5.relations.actions.openRelationEditor(l.id),y),onAcceptRelation:P,onIgnoreRelation:O})))},I=k&&(!m||m&&m.parentEntityUri===u),j=m&&m.parentEntityUri===u;return o().createElement("div",{className:t},I&&o().createElement(V.Button,{color:"primary",onClick:x,className:v.moreButton},o().createElement(J.Z,{classes:{root:v.icon}}),o().createElement("div",{className:v.buttonLabel},b().text("Add"))),j&&o().createElement(We.Z,{connection:m,config:l,mode:s,metadata:p}),N.map(R),N.length>0&&T.length>0&&o().createElement(V.Divider,{className:v.divider}),T.map(R),Z&&o().createElement(V.Typography,{className:v.noData},c))};var ft=n(19603),bt=n(94646),ht=n(78101),yt=n(80931);const Et=(0,$.Z)((e=>({attributesList:{paddingLeft:"46px",paddingRight:"16px",marginBottom:"10px",color:e.palette.text.secondary,fontSize:"13px",letterSpacing:0}})));function vt(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){xt(e,t,n[t])}))}return e}function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wt=e=>{let{connection:t,className:n}=e;const l=Et(),{relation:s}=t,c=(0,a.useSelector)(E.ZP.selectors.getEntityUri),u=(0,a.useSelector)(E.ZP.selectors.getMetadata),p=(0,r.useMemo)((()=>(0,d.xF8)(u,null==s?void 0:s.relationType)),[null==s?void 0:s.relationType,u]),m=(0,r.useMemo)((()=>vt({attributes:vt({},E.N5.relations.selectors.getRelationAttributesFromConnection(t))},(0,d.p2l)((null==t?void 0:t.relation)||{}))),[t]),g=(0,r.useMemo)((()=>(0,d.fyF)(p,m)),[p,m]).filter((e=>{let{values:t}=e;return!(0,d.O27)(t)})).length>0,f=(0,r.useMemo)((()=>(0,d.R$r)(m.attributes)),[m]),{getCommentsCount:h}=(0,r.useContext)(w.h);(0,r.useEffect)((()=>{!(0,i.isEmpty)(f)&&h(f)}),[h,f]);const y=(0,r.useMemo)((()=>(0,d.wp9)(d.q7e.RELATION,{entityUri:c,connection:t})),[t,c]);return g?o().createElement(ht.A.Provider,{value:y},o().createElement(yt.Z,{className:L()(l.attributesList,n),entity:m,attrTypes:p})):o().createElement("div",{className:L()(l.attributesList,n)},b().text("No attributes"))};var St=n(86602),Ct=n(82726);const Pt=e=>{let{show:t,onToggle:n,className:r}=e;return o().createElement(Pe.k,{className:r,tooltipTitle:t?b().text("Hide attributes of the relationship"):b().text("Show attributes of the relationship"),tooltipPlacement:"bottom-end",size:"XXS",icon:t?St.Z:Ct.Z,onClick:n})},Ot=(0,$.Z)((e=>({container:{display:"flex",flexDirection:"column",paddingBottom:"2px"},row:{display:"flex",alignItems:"flex-start",flexDirection:"row",minHeight:"16px",padding:"3px 16px 0 "},rowInactive:{background:e.inactiveBackground},entityAvatar:{height:"12px",width:"12px",fontSize:"11px",marginRight:"8px"},entityLabelContainer:{textDecoration:"none",cursor:"pointer",paddingRight:"8px"},entityLabel:{color:e.palette.primary.main,fontSize:"13px",letterSpacing:0,lineHeight:"15px"},relationLabel:{color:e.palette.text.secondary,fontSize:"13px",letterSpacing:0,lineHeight:"15px"},showDetails:{marginLeft:"auto"},attributesList:{paddingLeft:"46px",marginBottom:"10px",color:e.palette.text.secondary,fontSize:"13px",letterSpacing:0},suggestedWrapper:{backgroundColor:e.suggested},commentsContainer:{marginLeft:"auto",alignItems:"center","& + $showDetails":{marginLeft:"4px"}},additionalButtonsWrapper:{marginLeft:"auto",display:"flex"},suggestedLabelWrapper:{marginTop:"6px"},labelWrapper:{display:"flex"}}))),Nt=(0,r.memo)((e=>{let{connection:t,renderRelationArrowButton:n,acceptRelation:l,ignoreRelation:s}=e;const c=Ot(),u=t.suggested,{entity:p,relation:m}=t,[g,f]=(0,r.useState)(!1),b=(0,a.useSelector)(E.ZP.selectors.getMetadata),{entityType:h,entityLabel:y,preparedUri:v,relationLabel:x}=Ke(t,b),w=(0,d.Fn9)(m)&&(0,d.Fn9)(p),S=(0,a.useSelector)(E.ZP.selectors.getEntityUri),C=p&&m&&(0,d.wp9)(d.q7e.RELATION,{entityUri:S,connection:t})||[];return o().createElement("div",{className:L()(c.container,{[c.rowInactive]:!w},{[c.suggestedWrapper]:u})},o().createElement("div",{className:L()(c.row,ft.U)},n&&n(),o().createElement("div",{className:L()(c.labelWrapper,{[c.suggestedLabelWrapper]:u})},o().createElement(qe.Z,{className:c.entityAvatar,entityType:h}),o().createElement($e.Z,{value:v,className:c.entityLabelContainer},o().createElement(Ye,{label:y,entity:p},o().createElement("span",{className:c.entityLabel},y)),x&&o().createElement("span",{className:c.relationLabel},`, ${x}`))),o().createElement("div",{className:c.additionalButtonsWrapper},!(0,i.isEmpty)(C)&&o().createElement(bt.Z,{className:c.commentsContainer,uri:null==m?void 0:m.relationUri,relatedObjectUris:C,objectType:d.q7e.RELATION,allowOnlyOneComment:!0}),u&&o().createElement(nt,{size:"small",acceptRelation:l(t),ignoreRelation:s(t)}),!u&&o().createElement(Pt,{show:g,onToggle:()=>{f((e=>!e))},className:c.showDetails}))),g&&o().createElement(wt,{connection:t}))}));var Tt=n(52691),kt=n(16208);const Zt=e=>e.filter((e=>5===e.value)).length,Rt=e=>e.filter((e=>1===e.value)).length,It=e=>0===e.length?"0%":Zt(e)/e.length*100+"%",jt=e=>0===e.length?"0%":Rt(e)/e.length*100+"%",Dt=(0,$.Z)((e=>({wrapper:{display:"flex",flexDirection:"column",alignItems:"flex-end"},averageRating:{marginBottom:"7px",fontSize:"16px",letterSpacing:"0.15px",lineHeight:"19px",color:e.palette.text.primary},scale:{display:"flex",marginBottom:"6px",width:"128px",height:"4px"},likesScale:{height:"100%",backgroundColor:"#8CC152"},dislikesScale:{height:"100%",backgroundColor:"rgb(255, 112, 112)"},counts:{display:"flex"},likesCount:{marginRight:"32px"},count:{display:"flex",alignItems:"center",color:e.palette.text.secondary,fontSize:"13px",letterSpacing:0,lineHeight:"15px"},icon:{marginRight:"4px",width:"14px",height:"14px",color:"rgba(0,0,0,0.38)"}}))),Lt=e=>{let{ratings:t,className:n}=e;const r=Dt();return o().createElement("div",{className:L()(r.wrapper,n)},o().createElement(V.Typography,{className:r.averageRating},(e=>(0,i.pipe)((0,i.pluck)("value"),i.mean,(0,i.defaultTo)(0))(e))(t).toFixed(1)),o().createElement("div",{className:r.scale},o().createElement("div",{className:r.likesScale,style:{width:It(t)}}),o().createElement("div",{className:r.dislikesScale,style:{width:jt(t)}})),o().createElement("div",{className:r.counts},o().createElement("div",{className:L()(r.likesCount,r.count)},o().createElement(Tt.Z,{className:r.icon}),Zt(t)),o().createElement("div",{className:r.count},o().createElement(kt.Z,{className:r.icon}),Rt(t))))},At=(0,$.Z)((e=>({wrapper:{display:"flex"},button:{fontSize:"14px",textTransform:"none",color:e.palette.text.secondary},likeButton:{marginLeft:"-12px",marginRight:"8px"},isActive:{color:e.palette.text.primary}}))),Mt=e=>{let{ratings:t,onAgree:n,onDisagree:r}=e;const l=At(),i=(0,a.useSelector)(E.ZP.selectors.getUserName),s=t.find((e=>{let{user:t}=e;return t===i})),c=[{text:b().text("Has left the practice"),onClick:()=>r(b().text("Has left the practice"))},{text:b().text("Has moved away"),onClick:()=>r(b().text("Has moved away"))},{text:b().text("Has passed away"),onClick:()=>r(b().text("Has passed away"))},{text:b().text("Has retired"),onClick:()=>r(b().text("Has retired"))},{text:b().text("Other"),onClick:()=>r(b().text("Other"))}];return o().createElement("div",{className:l.wrapper},o().createElement(V.Button,{onClick:n,variant:"text",size:"small",className:L()(l.button,l.likeButton,{[l.isActive]:5===(null==s?void 0:s.value)})},"Agree"),o().createElement(De.Z,{buttonProps:{endIcon:o().createElement(st.Z,null),variant:"text",size:"small",className:L()(l.button,{[l.isActive]:1===(null==s?void 0:s.value)})},buttonContent:1===(null==s?void 0:s.value)?s.comment:"Disagree",menuItems:c,menuId:"disagree-dropdown-menu-button"}))},Ut=(0,$.Z)((e=>({wrapper:{padding:"6px 16px 3px"},entityTypeIcon:{marginRight:"16px"},entityLabel:{color:e.palette.primary.main,fontSize:"14px",letterSpacing:0,lineHeight:"16px"},entityLabelContainer:{textDecoration:"none"},relationLabel:{color:e.palette.text.secondary,fontSize:"13px",letterSpacing:0,lineHeight:"15px"},ratings:{marginLeft:"auto"},showDetailsButton:{marginLeft:"16px",marginTop:"18px"},relationAttributes:{paddingLeft:"60px"},suggestedWrapper:{padding:"6px 16px 3px",backgroundColor:e.suggested},commentsContainer:{marginTop:"21px","& + $ratings":{marginLeft:"16px"}},additionalButtonsWrapper:{marginLeft:"auto",display:"flex"}}))),Ft=e=>{let{connection:t,loadRelations:n,renderRelationArrowButton:l,acceptRelation:s,ignoreRelation:c}=e;const u=Ut(),p=t.suggested,[m,g]=(0,r.useState)(!1),{entity:f,relation:b}=t,h=(0,a.useSelector)(E.ZP.selectors.getMetadata),{entityLabel:y,entityType:v,preparedUri:x,relationLabel:w}=Ke(t,h),S=(null==b?void 0:b.ratings)||[],C=(0,a.useSelector)(E.ZP.selectors.getEntityUri),P=f&&b&&(0,d.wp9)(d.q7e.RELATION,{entityUri:C,connection:t})||[];return o().createElement("div",{className:L()(u.wrapper,{[u.suggestedWrapper]:p})},o().createElement(V.Box,{display:"flex",minHeight:"62px",className:ft.U},o().createElement(V.Box,{display:"flex",alignItems:"flex-start"},o().createElement(V.Box,{display:"flex",alignItems:"center"},l&&l(),o().createElement(qe.Z,{entityType:v,className:u.entityTypeIcon})),o().createElement(V.Box,{display:"flex",flexDirection:"column"},o().createElement($e.Z,{value:x,className:u.entityLabelContainer},o().createElement(Ye,{label:y,entity:f},o().createElement("span",{className:u.entityLabel},y))),w&&o().createElement("span",{className:u.relationLabel},w),!p&&o().createElement(Mt,{ratings:S,onAgree:()=>{(0,d.Buf)(null==b?void 0:b.relationUri,{comment:"",value:5}).then(n)},onDisagree:e=>{(0,d.Buf)(null==b?void 0:b.relationUri,{comment:e,value:1}).then(n)}}))),o().createElement("div",{className:u.additionalButtonsWrapper},!(0,i.isEmpty)(P)&&o().createElement(bt.Z,{className:u.commentsContainer,uri:null==b?void 0:b.relationUri,relatedObjectUris:P,objectType:d.q7e.RELATION,allowOnlyOneComment:!0}),p&&o().createElement(nt,{acceptRelation:s(t),ignoreRelation:c(t)}),!p&&o().createElement(o().Fragment,null,o().createElement(Lt,{ratings:S,className:u.ratings}),o().createElement(Pt,{show:m,onToggle:()=>{g((e=>!e))},className:u.showDetailsButton})))),m&&o().createElement(wt,{connection:t,className:u.relationAttributes}))},Ht=e=>{let{className:t,connections:n=[],loadRelations:l,config:i,mainEnityUri:s}=e;const{isComplex:c,content:u}=i,{ignoreRelation:p,acceptRelation:m}=((e,t,n)=>{const r=at(e.inRelations,e.outRelations),o=(0,a.useDispatch)();return{ignoreRelation:e=>()=>{const{entity:a}=e;(0,d.iiD)(n,{relatedEntityUri:a.entityUri,relationType:r.type,relationDirection:r.direction}).then(t).catch((e=>{o(E.ui.actions.errorSet((0,d.xU7)(e,b().text("Something went wrong"))))}))},acceptRelation:e=>()=>{const{entity:a,relation:l}=e,{startDate:i,endDate:s}=l,c=r.direction===d.Nsj.IN,u=c?a.entityUri:n,p=c?n:a.entityUri;(0,d.DsR)({startEntityUri:u,endEntityUri:p,relationType:r.type,attributes:null,startDate:i,endDate:s}).then(t).catch((e=>{o(E.ui.actions.errorSet((0,d.xU7)(e,b().text("Something went wrong"))))}))}}})(u,l,s),g=(0,r.useMemo)((()=>(0,d.w3p)(n)),[n]),{getCommentsCount:f}=(0,r.useContext)(w.h);return(0,r.useEffect)((()=>{f(g)}),[f,g]),o().createElement("div",{className:t},n.map((e=>{var t,n;const r=`${null==e||null===(t=e.relation)||void 0===t?void 0:t.relationUri}-${null==e||null===(n=e.relation)||void 0===n?void 0:n.direction}`;return o().createElement(mt,{config:i,connection:e,key:r},(t=>c?o().createElement(Ft,{loadRelations:l,connection:e,acceptRelation:m,ignoreRelation:p,renderRelationArrowButton:t}):o().createElement(Nt,{acceptRelation:m,ignoreRelation:p,connection:e,renderRelationArrowButton:t})))})))};Ht.displayName="RelationsList";const Vt=Ht,zt=(0,$.Z)((e=>({list:{paddingTop:"8px",paddingBottom:"10px",overflow:"auto",flexGrow:1},noData:{fontSize:"13px",color:e.palette.text.secondary,padding:"8px 16px"}}))),Bt=e=>{let{isLoading:t,config:n,loadRelations:r,connections:l,total:i,parentEntityUri:s}=e;const c=zt(),{selectors:u}=E.ZP,p=(0,a.useSelector)(u.getEntity),m=(0,a.useSelector)(u.getMode),g=n["text-empty"]||b().text("No data found");return t?o().createElement(R.Z,null):(0,d.KIu)(m)?o().createElement(gt,{connections:l,className:c.list,key:null==p?void 0:p.uri,config:n,mode:m,noDataText:g,parentEntityUri:s}):i>0?o().createElement(Vt,{config:n,loadRelations:r,connections:l,className:c.list,key:null==p?void 0:p.uri,mainEnityUri:p.uri}):o().createElement(V.Typography,{className:c.noData},g)},Wt=(0,$.Z)({container:{flexGrow:1,display:"flex",flexDirection:"column",minHeight:0},content:{position:"relative",display:"flex",flexGrow:1,flexDirection:"column",minHeight:0},pagination:{height:"52px",flexGrow:0,flexShrink:0}}),_t=e=>{let{config:t,className:n}=e;const l=Wt(),{page:s,setPage:c,rowsPerPage:u,sortOrder:p,sortOption:m,showInactive:g,searchQuery:f,changeSearchQuery:b}=(0,r.useContext)(Te),{selectors:h}=E.ZP,y=(0,a.useSelector)((e=>h.getConnectionsWithDraftsByViewId(e,t.id))),v=(0,a.useSelector)(h.getEntity),x=(0,a.useSelector)((e=>h.getTotalByViewId(e,t.id))),w=(0,a.useSelector)(h.getMode),S=(0,r.useMemo)((()=>({order:p,field:m})),[p,m]);(0,r.useEffect)((()=>{b("")}),[null==v?void 0:v.uri]);const C=(0,r.useMemo)((()=>(e=>{const t=d.wSh.fromFalsy(e).map(d.zHo).map((e=>`containsWordStartingWith(entity.label,${e}) or containsWordStartingWith(relation.label,${e})`)).orSome("");return(new d.MEy).addClause(t).build()})(f)),[f]),{isLoading:P,reload:O}=(0,we.a)({sorting:S,filter:C,page:s,rowsPerPage:u,config:t,entity:v,relationActivityFilter:g?d.Ng6.ALL:d.Ng6.ACTIVE_ONLY,mode:w}),N=(0,r.useMemo)((()=>(0,d.Px$)(y)),[y]),T=(0,r.useMemo)((()=>({reloadRelations:O,config:(0,i.pick)(["content","importFromDT","maxDtssImport"],t)})),[O,t]);return o().createElement(Se.X.Provider,{value:N},o().createElement(F.Z,{className:n},o().createElement("div",{className:l.container},o().createElement(Le.Provider,{value:T},o().createElement(Be,{title:t.caption,total:x})),o().createElement("div",{className:l.content},o().createElement(Bt,{isLoading:P,config:t,loadRelations:O,connections:y,total:x}),x>u&&o().createElement(H.Z,{classes:{root:l.pagination},count:x,rowsPerPageOptions:[],rowsPerPage:u,page:s,onChangePage:c})))))};_t.displayName="RelationsView";const Gt=o().createContext(null);Gt.displayName="SingleAttributeContext";var qt=n(86361),$t=n(26180),Qt=n(31276);function Xt(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){Yt(e,t,n[t])}))}return e}function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kt="CHANGE_SEARCH_QUERY",Jt=Xt({},$t.ZP.actions,{changeSearchQuery:(0,Qt.zD)(Kt)}),en=(e,t)=>t.type===Kt?Xt({},e,{searchQuery:t.payload,page:0}):$t.ZP.reducer(e,t);var tn=n(92332),nn=n(67353);const rn={textDecoration:"line-through",color:"rgba(0,0,0,.54)"},on=(0,$.Z)((()=>({tableContainer:{height:"477px",display:"flex",fontFamily:"Roboto",color:"rgba(0,0,0,0.54)"},rowCell:{fontSize:"13px",overflow:"hidden"},"row-cell--sorted":{color:"rgba(0,0,0,0.87)"},"row-cell__buttons-container":{position:"absolute"},"row-cell__buttons-wrapper":{display:"flex",paddingLeft:"10px","& > button":{marginLeft:"-10px",transform:"scale(0.9)"}},headCell:{display:"flex",alignItems:"center",height:"100%",fontSize:"12px"},"row-cell--removed":{pointerEvents:"none","& > div":rn}}))),an=(0,nn.Z)((e=>{const t=on();return o().createElement("div",{className:t.headCell},o().createElement(tn.default,e))}));var ln=n(64091);function sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cn=(0,i.pipe)((0,i.map)((e=>({id:(0,d.Tde)(e.uri),label:e.label,dataTypeDefinition:(0,d.PFL)(e)}))),(0,i.uniqBy)((0,i.prop)("id"))),un=(0,i.pipe)(d.DK$,cn),pn=(0,i.pipe)((0,i.split)("."),(0,i.slice)(2,1/0)),mn=e=>{if((0,d.vZp)(e)){const t=pn(e);return t.length>1?t.slice(0,-1):null}return null},dn=(0,i.map)((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sn(e,t,n[t])}))}return e}({},e,{sortable:!0,resizable:!0,nestedPath:mn(e.id),headCellRenderer:an,rowCellValueRenderer:ln.Z})));var gn=n(99341);function fn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bn=n(52016),hn=n(1876),yn=n(64876);const En=(0,$.Z)((()=>({header:{padding:"0 4px 0 16px"}}))),vn=e=>{let{title:t,searchQuery:n,onChangeSearchQuery:r,filtersEnabled:a,onToggleFilters:l,columnsData:i,selectedColumns:s,onChangeColumns:c}=e;const u=En();return o().createElement(z.Z,{title:t,className:u.header},o().createElement(G.i,{query:n,onChange:r}),o().createElement(hn.Z,{enabled:a,onClick:l}),o().createElement(W.Z,{height:24,margin:4}),o().createElement(yn.Z,{columnsData:i,selectedColumns:s,onChangeColumns:c}))};function xn(){return xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xn.apply(this,arguments)}const wn=(0,n(32528).Z)(((e,t)=>{let{deletedUris:n}=e,{rowValue:{value:r}}=t;return{isRemoved:Boolean(n.find((e=>r.uri===e)))}}))((e=>{let{cell:t,CellValueRenderer:n,isRemoved:r,isSorted:a}=e,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["cell","CellValueRenderer","isRemoved","isSorted"]);const i=on();return o().createElement("div",{className:L()({[i["row-cell--sorted"]]:a,[i["row-cell--removed"]]:r},i.rowCell)},t.values.map(((e,t)=>o().createElement(n,xn({key:t,value:e},l)))))}));var Sn=n(85709);const Cn=e=>{let{onEdit:t,onRemove:n}=e;return o().createElement(o().Fragment,null,t&&o().createElement(Pe.k,{tooltipTitle:b().text("Edit"),icon:_e.Z,size:"L",onClick:t}),n&&o().createElement(Pe.k,{tooltipTitle:b().text("Remove"),icon:Ge.Z,size:"L",onClick:n}))};function Pn(){return Pn=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},Pn.apply(this,arguments)}const On=e=>{let{columnsData:t,values:n,sorting:l,onSort:s,filters:c,onFilter:u,config:p,onEdit:m,onDeleteAttribute:g,deletedUris:f}=e;const b=(0,r.useMemo)((()=>((e,t)=>e.map((e=>(0,i.pipe)((0,i.reduce)(((t,n)=>{let{id:r}=n;return(0,i.assoc)(r,((e,t)=>((e,t)=>(0,i.pipe)((0,i.path)(["value"]),(0,d.tT_)(e))(t))(pn(e),t))(r,e),t)}),{}),(0,i.assoc)("value",e))(t))))(n,t)),[n,t]),h=(0,r.useMemo)((()=>dn(t)),[t]),y=on(),v=(0,a.useSelector)(E.ZP.selectors.getMode),x=(0,d.KIu)(v),w=(0,a.useSelector)(E.ZP.selectors.getMetadata),S=(0,a.useSelector)(E.ZP.selectors.getEntityUri),C=(0,a.useSelector)((e=>E.ZP.selectors.getModifiedEntity(e,S)||{})),{attributeType:P}=(0,r.useContext)(Gt),O=(0,r.useCallback)((e=>o().createElement(wn,Pn({},e,{isSorted:!!l&&l.field===e.columnData.id}))),[l]),[N,T]=(0,r.useState)(null),{canUpdate:k,canDelete:Z}=(0,bn.l)(),R=(0,r.useMemo)((()=>"number"!=typeof N||!x||f.includes((0,i.pipe)((0,i.path)([N]),(0,i.prop)("uri"))(n))),[N,f,n,x]),I="number"==typeof N&&(j=(0,i.path)([N],n),Z(p)&&(0,d.xv5)({attributeType:P,mode:v,attributeValue:j,metadata:w,isReltioCrosswalk:(0,d.KVV)(C.crosswalks,j)}));var j;const D="number"==typeof N&&(e=>k(p)&&(0,d.yv0)({attributeType:P,mode:v,attributeValue:e,isReltioCrosswalk:(0,d.KVV)(C.crosswalks,e)}))((0,i.path)([N],n)),L=(0,r.useCallback)((()=>{const e=(0,i.path)([N],n);D&&m(e)}),[m,N,n,D]),A=(0,r.useCallback)((()=>{const e=(0,i.path)([N],n);if(!I)return;const t={parentUri:S,attributeType:P,uri:e.uri,value:e};g(t),T(null)}),[N,n,g,I,P,S]),M=R||!I&&!D?void 0:o().createElement(Cn,{onEdit:D?L:void 0,onRemove:I?A:void 0}),U=(0,r.useMemo)((()=>({deletedUris:f})),[f]);return o().createElement("div",{className:y.tableContainer},o().createElement(Sn.Z,{columnsData:h,rowsData:b,sorting:l,onSort:s,filters:c,onFilter:u,hoverStateEnabled:!0,defaultColumnWidth:250,defaultColumnMinWidth:200,headRowHeight:56,renderRowCell:O,onRowHover:T,hoverRowIndex:N,hoveredRowRightContent:M,context:U,classes:{hoveredRowRightContentWrapper:y["row-cell__buttons-wrapper"],hoveredRowRightContentContainer:y["row-cell__buttons-container"]}}))},Nn=(0,$.Z)((()=>({actionButtons:{display:"flex",justifyContent:"flex-end",margin:"0 8px 10px","& > button":{fontSize:"14px",lineHeight:"16px",marginLeft:"8px",padding:"10px 8px",backgroundColor:"rgba(98, 2, 238, 0)"}}})));function Tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kn=e=>{let{onChangeAttribute:t,onCancel:n,onApply:l,onDeleteAttribute:s,hasChanges:c,attributeValue:u}=e;const m=Nn(),g=(0,a.useSelector)(E.ZP.selectors.getEntityUri),{attributeType:f}=(0,r.useContext)(Gt),h=(0,a.useSelector)((e=>E.ZP.selectors.getModifiedEntity(e,g)||{})),y=(0,a.useSelector)(E.ZP.selectors.getMode),v=(0,a.useDispatch)(),x=(0,r.useContext)(p.m),w=(0,r.useCallback)((e=>(0,i.pipe)(E.N5.actions.addAttributes,v)(e.map((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Tn(e,t,n[t])}))}return e}({},e,{viewId:x}))))),[x,v]),S=(0,d.ZiX)(g),C=(0,a.useSelector)((e=>E.ZP.selectors.getActiveErrorsForAttributesPager(e,g,f))),P=(0,r.useCallback)((0,i.pipe)(E.N5.errors.actions.errorDeactivated,v),[v]);return o().createElement(o().Fragment,null,o().createElement(ne.Z,{attributeValue:u,showEmptyEditors:S,onDeleteAttribute:s,onDeactivateError:P,onChangeAttribute:t,onAddAttributes:w,mode:y,crosswalks:h.crosswalks,errors:C,attributeType:f,ownError:(0,d.ADq)(u,null,f.uri,C)}),o().createElement("div",{className:m.actionButtons},o().createElement(V.Button,{onClick:()=>{n(u)}},b().text("Cancel")),o().createElement(V.Button,{color:"primary",disabled:!c,onClick:()=>{l(u)}},b().text("Apply"))))},Zn=(0,$.Z)((()=>({root:{display:"flex",flexDirection:"column"},content:{position:"relative",padding:"4px 16px 9px",flex:1,overflow:"auto"},noData:{fontSize:"13px",paddingLeft:"20px",color:"rgba(0,0,0,0.54)"},tableContainer:{height:"477px",display:"flex",fontFamily:"Roboto",color:"rgba(0,0,0,0.54)"},header:{padding:"0 4px 0 16px"},addButton:{padding:"9px 16px 9px 12px",backgroundColor:"rgba(98, 2, 238, 0)",marginBottom:"4px"},buttonLabel:{fontSize:"14px",fontWeight:500,lineHeight:"16px"},icon:{fontSize:"18px",marginRight:"8px"},editor:{padding:"4px 16px"}})));function Rn(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){In(e,t,n[t])}))}return e}function In(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jn=[],Dn=e=>{let{config:t,className:n}=e;const{caption:l,max:s}=t,c=Zn(),{values:u,page:m,setPage:g,isLoading:f,searchQuery:h,setSearchQuery:y,visibleColumns:v,onFilter:x,onSort:w,onToggleFilters:S,onChangeColumns:C,filters:P,sorting:O,totalVisibleValues:N,hasPaging:T,attributeType:k,showTable:Z}=(0,r.useContext)(Gt),I=(0,r.useMemo)((()=>un(k)),[k]),{checkHasChanges:j,onChangeAttribute:D,onDeleteAttribute:A,onAdd:M,onCancel:U,onApply:B,onStartEditing:W,modifiedValues:_,editingValues:G,deletedUris:q}=(()=>{const[e,t]=(0,r.useState)(),[n,o]=(0,r.useState)([]),l=(0,a.useSelector)(E.ZP.selectors.getMode);(0,r.useEffect)((()=>{o([]),t(null)}),[l]);const s=(0,a.useDispatch)(),c=(0,r.useContext)(p.m),{attributeType:u,values:m}=(0,r.useContext)(Gt),g=(0,a.useSelector)(E.ZP.selectors.getEntityUri),f=(0,a.useSelector)(E.ZP.selectors.getMetadata),b=(0,r.useCallback)((e=>{(0,i.pipe)(E.N5.actions.modifyAttribute,s)(Rn({},e,{viewId:c}))}),[c,s]),h=(0,r.useCallback)((e=>(0,i.pipe)(E.N5.actions.removeAttribute,s)(Rn({},e,{viewId:c}))),[c,s]),y=(0,r.useCallback)((()=>{const e=(0,d.gjI)({parentUri:g,attributeType:u});t(e.uri),b(Rn({},e,{value:(0,d.GPx)({attributeTypes:u.attributes,parentUri:e.uri,mode:l,metadata:f}),attributeType:u}))}),[g,u]),v=(0,r.useCallback)((e=>{o((t=>t.find((0,i.propEq)("uri",e.uri))?t:[...t,e]))}),[o]),x=(0,r.useCallback)((e=>{const r=n.find((0,i.propEq)("uri",e.uri));if(r){const t=Rn({},e,{value:r,attributeType:u,uri:e.uri});o((e=>(0,i.without)([r],e))),b(t)}else{const n={value:e,attributeType:u,uri:e.uri};t(null),h(n)}}),[h,b,o,n]),w=(0,r.useCallback)((e=>{t(null),o((t=>{const n=t.find((0,i.propEq)("uri",e.uri));return n?(0,i.without)([n],t):t}))}),[o,t]),S=(0,a.useSelector)((e=>E.ZP.selectors.getModifiedEntity(e,g)||{})),C=(0,d.KIu)(l),P=(0,d.xy8)(u),O=(0,i.pathOr)(jn,[P,null==u?void 0:u.name],S),N=(0,r.useMemo)((()=>[...O.filter((0,i.pipe)((0,i.prop)("uri"),(0,i.both)(d.ZiX,(0,i.pipe)((0,i.equals)(e),i.not)))),...(0,i.map)((e=>O.find((0,i.propEq)("uri",e.uri))||e))(m)].map((e=>{var t;return null!==(t=n.find((0,i.propEq)("uri",e.uri)))&&void 0!==t?t:e}))),[O,n,e,m]),T=(0,r.useMemo)((()=>C?(0,i.pipe)((0,i.map)((0,i.prop)("uri")),(0,i.filter)((e=>!O.find((0,i.propEq)("uri",e)))))(m):[]),[O,m]),k=O.filter((t=>{let{uri:r}=t;return r===e||n.find((0,i.propEq)("uri",r))}));return{checkHasChanges:e=>n.find((0,i.propEq)("uri",e.uri))!==e,onChangeAttribute:b,onDeleteAttribute:h,onAdd:y,onCancel:x,onApply:w,onStartEditing:v,modifiedValues:N,editingValues:k,deletedUris:T}})(),$=(0,a.useSelector)(E.ZP.selectors.getMode),Q=(0,d.KIu)($),X=Q?_:u,{canCreate:Y}=(0,bn.l)(),K=Y(t)&&k&&(0,d.Vg3)({attributeType:k,mode:$})&&!G.length,ee=(0,r.useMemo)((()=>v.map((e=>I.find((0,i.propEq)("id",e))))),[v,I]);return o().createElement(F.Z,{className:L()(c.root,n)},Z?o().createElement(o().Fragment,null,o().createElement(vn,{title:l,total:N,columnsData:I,selectedColumns:v,onChangeColumns:C,searchQuery:h,onChangeSearchQuery:y,filtersEnabled:!!P,onToggleFilters:S}),o().createElement("div",{style:{position:"relative"}},Q&&o().createElement("div",{className:c.editor},K&&o().createElement(V.Button,{color:"primary",onClick:M,className:c.addButton},o().createElement(J.Z,{classes:{root:c.icon}}),o().createElement("div",{className:c.buttonLabel},b().text("Add"))),G.map((e=>o().createElement(kn,{key:e.uri,attributeValue:e,onChangeAttribute:D,onDeleteAttribute:A,onCancel:U,onApply:B,hasChanges:j(e)})))),o().createElement(On,{columnsData:ee,config:t,values:X,filters:P,onFilter:x,sorting:O,onSort:w,onEdit:W,onDeleteAttribute:A,deletedUris:q}),T&&o().createElement(H.Z,{count:N,rowsPerPageOptions:[],rowsPerPage:s,page:m,onChangePage:g}),f&&o().createElement(R.Z,null))):o().createElement(o().Fragment,null,o().createElement(z.Z,{title:l,className:c.header}),o().createElement(V.Typography,{className:c.noData},b().text("No data"))))};var Ln=n(58600);let An=0;const Mn=()=>An++,Un=e=>{const t={children:[],nodeId:Mn()};if(e.parentPaths)for(let n=0;n<e.parentPaths.length;n++){const r=e.parentPaths[n];let o=t;for(let t=r.length-1;t>=0;t--){const a=r[t],l=e.entities[a.entityUri],i=t===r.length-1,s={entity:l,children:[],nodeId:Mn(),expanded:!0,rootIndex:i?n+1:void 0};i&&(s.root=i),o.children.push(s),o=s}}return t.children},Fn=(0,$.Z)((e=>({container:{fontSize:"13px",display:"flex",paddingTop:"6px",position:"relative"},title:{flexGrow:1,minHeight:"15px",color:e.palette.secondary.main,lineHeight:"15px"},link:{cursor:"pointer",color:e.palette.secondary.main,lineHeight:"15px"},selected:{fontWeight:"bold"},wrapper:{width:"100%"},avatar:{height:"16px",width:"16px",marginRight:"8px",marginLeft:"8px"},header:{padding:"0 4px 0 16px"},treeContainer:{flexGrow:1,display:"flex",flexDirection:"column",height:"100%",minHeight:"372px",maxHeight:"507px",overflow:"auto"},tree:{flexGrow:1,height:0},buttonsContainer:{flexShrink:0,marginLeft:"auto","& > * + *":{marginLeft:"-4px"}},button:{padding:"8px"}})));var Hn=n(1242);const Vn=o().createContext(null);var zn=n(55400);const Bn=e=>{e.target.src=Hn},Wn=e=>{let{node:t}=e;const n=Fn(),l=(0,a.useDispatch)(),i=t.entity.uri,s=(0,a.useSelector)(E.ZP.selectors.getAbsoluteImagePath),c=(0,a.useSelector)(E.ZP.selectors.getMetadata),u=(0,r.useContext)(Vn),p=(0,a.useSelector)(E.ZP.selectors.getUIPath),{uri:m}=(0,a.useSelector)(E.ZP.selectors.getEntity),g=(0,d.ChB)({uiPath:p,uri:i}),f=i===m,b=(0,r.useCallback)((()=>{l(E.ui.actions.openEntity({uri:i,viewId:u.id}))}),[l,u,i]),{entity:{label:h},nodeId:y}=t,v=(0,d.nt9)(c,t.entity.type)||{},x=(0,d.VD3)(c,v,"typeGraphIcon"),w=x&&(0,d.vPL)(s,x);return o().createElement("div",{className:n.wrapper,"data-node-id":y},o().createElement("div",{className:n.container},o().createElement(V.Avatar,{className:L()(n.avatar),src:w||Hn,onError:Bn}),o().createElement("span",{className:L()(n.link,{[n.selected]:f})},o().createElement(zn.Z,{to:g,onClick:b},h))))},_n=((0,r.memo)(Wn),e=>{let{node:t}=e;return t.nodeId}),Gn=(0,$.Z)((()=>({lineBlock:{height:"100%",position:"relative",display:"inline-block"},lineChildren:{height:"100%",position:"absolute",display:"inline-block"},rootIndex:{display:"flex",alignItems:"center",color:"rgba(0,0,0,0.54)",height:"100%"},verticalLine:{width:"1px",left:"50%",top:0,height:"50%",position:"absolute",backgroundColor:"rgba(0,122,193,0.3)"},horizontalLineRight:{height:"1px",top:"14px",left:"50%",width:"24%",position:"absolute",backgroundColor:"rgba(0,122,193,0.3)"},node:{minWidth:"100%",position:"relative",textAlign:"left",padding:"0 24px 0 18px",boxSizing:"border-box",whiteSpace:"normal","&:hover":{backgroundColor:"rgba(0,0,0,0.06)"}},nodeContent:{position:"absolute",top:0,bottom:0,paddingLeft:"18px",boxSizing:"border-box"},row:{display:"flex"},rowContents:{position:"relative",borderLeft:"none",paddingLeft:"4px",flex:"1 1 auto",width:0,display:"flex",verticalAlign:"middle",boxSizing:"border-box"},buttonWrapper:{display:"flex",paddingTop:"13px",width:"12px",cursor:"pointer"},collapsedButton:{transform:"rotate(-90deg)"},expandedButton:{transform:"rotate(0deg)"},button:{transition:"transform .15s ease",width:0,height:0,borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"4px solid rgba(0, 0, 0, 0.54)"},rowTitle:{flex:"1 1 auto",width:0,paddingRight:"11px"}})));function qn(){return qn=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},qn.apply(this,arguments)}function $n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qn(){return Qn=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},Qn.apply(this,arguments)}const Xn={nodeContentRenderer:e=>{const t=(0,i.omit)(["connectDragPreview","connectDragSource","isDragging","canDrop","canDrag","draggedNode","isSearchMatch","isSearchFocus","buttons","didDrop","children","treeId","isOver","parentNode","rowDirection"],e),{scaffoldBlockPxWidth:n,toggleChildrenVisibility:r,node:a,title:l,path:s,treeIndex:c,style:u}=t,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["scaffoldBlockPxWidth","toggleChildrenVisibility","node","title","path","treeIndex","style"]),m=l,d=r&&!a.root&&a.children&&a.children.length>0,g=Gn();return o().createElement("div",Qn({style:{height:"100%"}},p,{key:a.nodeId}),d&&a.expanded&&o().createElement("div",{style:{width:n-2},className:g.lineChildren}),o().createElement("div",{className:g.row,style:u},o().createElement("div",{className:g.rowContents},d&&o().createElement("div",{className:g.buttonWrapper,onClick:()=>{r({node:a,path:s,treeIndex:c})}},o().createElement("div",{"aria-label":a.expanded?"Collapse":"Expand",className:L()(g.button,a.expanded?g.expandedButton:g.collapsedButton)})),o().createElement("div",{className:g.rowTitle},"function"==typeof m?m({node:a,path:s,treeIndex:c}):m))))},treeNodeRenderer:e=>{const t=(0,i.omit)(["listIndex","swapFrom","swapLength","swapDepth","draggedNode","getPrevRow","connectDropTarget","isOver","canDrop","treeIndex","treeId","path","rowDirection"],e),{children:n,scaffoldBlockPxWidth:r,lowerSiblingCounts:a,node:l}=t,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["children","scaffoldBlockPxWidth","lowerSiblingCounts","node"]),c=Gn(),u=a.length,p=[];a.forEach(((e,t)=>{p.push(o().createElement("div",{key:`pre_${1+t}`,style:{width:r},className:c.lineBlock},l.root&&o().createElement("div",{className:c.rootIndex},l.rootIndex,"."),t===u-1&&0!==t&&o().createElement(o().Fragment,null,o().createElement("div",{className:c.verticalLine}),o().createElement("div",{className:c.horizontalLineRight}))))}));const m=l.root?r-4:0,d=r*u-m,g={left:d,width:`calc(100% - ${d}px`},f=`${d+250}px`,b=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){$n(e,t,n[t])}))}return e}({},s.style,{width:f});return o().createElement("div",qn({},s,{className:c.node,style:b}),p,o().createElement("div",{className:c.nodeContent,style:g},n))},scaffoldBlockPxWidth:16,rowHeight:28,slideRegionSize:50};function Yn(){return Yn=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},Yn.apply(this,arguments)}const Kn=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",Yn({width:"20",height:"20",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},n),o().createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:".54"},o().createElement("path",{d:"M14.5 5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm4 5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm-17 1a1.5 1.5 0 110-3 1.5 1.5 0 010 3zM4 4a2 2 0 110-4 2 2 0 010 4zm1 16a2 2 0 110-4 2 2 0 010 4zm4.5-6a4.5 4.5 0 110-9 4.5 4.5 0 010 9zm0-2a2.5 2.5 0 100-5 2.5 2.5 0 000 5zm6 5a1.5 1.5 0 110-3 1.5 1.5 0 010 3z",fill:"#000"})))},Jn=e=>{let{title:t,onGraphOpen:n}=e;const r=Fn();return o().createElement(z.Z,{title:t,className:r.header},o().createElement("div",{className:r.buttonsContainer},o().createElement(Pe.k,{className:r.button,tooltipTitle:b().text("Show Graph"),icon:Kn,onClick:n,size:"L"})))};var er=n(59601);const tr=(0,$.Z)((()=>({root:{position:"relative"},bodyWrapper:{paddingTop:"21px"}})));let nr,rr;function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ar(e,t,n[t])}))}return e}function ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.WORKFLOW="workflow",e.WORKFLOW_START_PROCESS_FROM_QUERY="workflow/startProcessFromQuery",e.API="api",e.GET_ENTITY_URI="getEntityUri",e.GET_ENTITY="getEntity",e.GET_API_PATH="getApiPath",e.WORKFLOW_GET_WORKFLOW_PATH="workflow/getWorkflowPath",e.GET_SEARCH_QUERY="getSearchQuery",e.GET_TENANT="getTenant",e.GET_USER="getUser",e.GET_PERSPECTIVE="getPerspective",e.SET_PERSPECTIVE="setPerspective",e.SET_ENTITY_URI="setEntityUri",e.ALERT="alert",e.CONFIRM="confirm",e.PROMPT="prompt",e.OPEN_WINDOW="openWindow",e.GET_CONFIGURATION="getConfiguration",e.GET_UI_CONFIGURATION="getUiConfiguration",e.OPEN_SEARCH="openSearch",e.WORKFLOW_CHECK_PERMISSION="workflow/checkPermission"}(nr||(nr={})),function(e){e.SET_HTML="setHtml",e.LOG="log",e.SET_VISIBILITY="setVisibility",e.MESSAGE="message",e.SET_ENABLED="setEnabled",e.SET_TOOLTIP="setToolTip",e.SET_LABEL="setLabel",e.SET_HEIGHT="setHeight",e.SET_WIDTH="setWidth",e.RETURN_PROCESSED_API_RESPONSE="returnProcessedApiResponse",e.RETURN_PROCESSED_API_REQUEST="returnProcessedApiRequest",e.REQUEST="request"}(rr||(rr={}));const lr=(e,t)=>{const{url:n}=e;return n?(!(null==t?void 0:t.some((e=>{const t=e.match(/^(?:([^:?#]+):)?(?:\/\/((?:(([^:@?]*)(?::([^:@?]*))?)?@)?((?:\[[0-9A-Fa-f:]+)|(?:[^:?#]*))(?::(\d*))?))?((((?:[^?#]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/),r=t[1],o=t[6],a=`${r}://${o}`,l=new RegExp("^"+e+"$"),i=e.replace(/\/*$/,"");return i===n||o&&o===i||o&&a===i||i&&0===i.indexOf("/")&&n&&0===n.indexOf(i)||i&&l.test(n)})))||0===((null==t?void 0:t.length)||0))&&{errorMessage:"Not enough permissions"}:{errorMessage:"URL is empty"}};var ir=n(22994);function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){cr(e,t,n[t])}))}return e}function cr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ur=(e,t)=>{let{files:n,permissions:o}=e;const[l,i]=(0,r.useState)(),[s,c]=(0,r.useState)([]),[u,p]=(0,r.useState)(!0),[m,f]=(0,r.useState)(null),[b,h]=(0,r.useState)(null),[y,v]=(0,r.useState)(""),x=(0,a.useDispatch)(),w=(0,a.useSelector)(E.ZP.selectors.getMetadata),S=(0,a.useSelector)(E.ZP.selectors.getEntity)||{},C=`${(0,a.useSelector)(E.ZP.selectors.getUIPath)}worker_api.js`,P=(0,a.useSelector)(E.ZP.selectors.getTenant),O=(0,a.useSelector)(E.ZP.selectors.getApiPath),N=(0,a.useSelector)(E.ZP.selectors.getWorkflowPath),T=(0,a.useSelector)(E.ZP.selectors.getUser),k=(0,a.useSelector)(E.ZP.selectors.getEntityUri),Z=(0,a.useSelector)(E.ZP.selectors.getWorkflowEnvironmentUrl),R=(0,r.useContext)(g),I=(0,ir.Z)(),{type:j,data:D}=(0,a.useSelector)(E.ZP.selectors.getSearchProviderData)||{},L=e=>x(E.ui.actions.openSearch(e)),A=(e,n,r)=>{if(e){const a=[],l=e=>{const t=e.getAttribute("ui-actions"),r=e.getAttribute("ui-tooltip"),o=e.getAttribute("id")||e.getAttribute("name");t&&(t.split(",").forEach((t=>{const r=()=>{const e={action:"event",type:"uiAction",data:{type:t,id:o}};n.postMessage(e)};e.addEventListener(t,r),a.push((()=>{e.removeEventListener(t,r)}))})),e.removeAttribute("ui-actions")),r&&f(r),e.childNodes.forEach((e=>{1===e.nodeType&&l(e)}))},s=e=>{const t=document.createElement("div");t.innerHTML=e||r,l(t),c(a),i(t)};switch(e.action===rr.SET_HTML&&r!==e.params.html&&s(e.params.html),e.action){case rr.LOG:console.log(e.params);break;case rr.SET_VISIBILITY:"visible"===e.params?(p(!0),s()):p(!1);break;case rr.SET_TOOLTIP:f(e.params),s();break;case rr.SET_HEIGHT:h((t=>sr({},t||{},{height:e.params})));break;case rr.SET_WIDTH:h((t=>sr({},t||{},{width:e.params})));break;case rr.SET_ENABLED:h((t=>{const n=sr({},t||{});return e.params?delete n["pointer-events"]:n["pointer-events"]="none",n}));break;case rr.MESSAGE:v(e.params);break;case rr.REQUEST:(e=>{let{name:t,paramObject:n,permissions:r,worker:o,metadata:a,config:l,apiPath:i,user:s,workflowPath:c,entity:u,tenant:p,entityUri:m,query:g,openSearch:f,environment:b,getCurrentPerspectiveId:h,showPerspective:y,workflowCheckPermission:E,setEntityUri:v}=e;const x=e=>{e.then((e=>{o.postMessage(or({action:"response",result:{data:e}},n.params))})).catch((()=>{o.postMessage(or({action:"response",result:{data:{},headers:"",status:0}},n.params))}))};switch(t){case nr.API:{const e=((e,t)=>{const n=lr(e,t);return n?new Promise((e=>e(n))):(0,d.SL_)({url:e.url,method:e.method,data:e.data,headers:e.headers})})(n.params,r);x(e);break}case nr.WORKFLOW:{const e=((e,t,n,r)=>{const{url:o}=e,a=lr(e,t);if(a)return new Promise((e=>e(a)));const l=o.includes("http:")||o.includes("https:");return n||l?(0,d.oUH)({url:o,method:e.method||"GET",data:e.data,tenant:r,headers:e.headers,workflowPath:n}):new Promise((e=>e({errorMessage:"Workflow path is not defined"})))})(n.params,r,c,p);x(e);break}case nr.WORKFLOW_START_PROCESS_FROM_QUERY:{const e=((e,t,n,r,o)=>{if(!e.processDefinitionId)return new Promise((e=>e({errorMessage:"processDefinitionId is empty"})));if(!e.searchString)return new Promise((e=>e({errorMessage:"searchString is empty"})));if(!n)return new Promise((e=>e({errorMessage:"Workflow path is not defined"})));const a=lr(or({url:"/processInstances/_generateFromQuery"},e),t);return a?new Promise((e=>e(a))):(0,d.FuV)({workflowPath:n,processType:e.processDefinitionId,searchString:e.searchString,tenant:r,environment:o})})(n.params,r,c,p,b);x(e);break}case nr.GET_CONFIGURATION:o.postMessage(or({action:"response",result:a},n.params));break;case nr.GET_UI_CONFIGURATION:{const e=or({},l,{action:or({},l.action)});e.action.permissions&&delete e.action.permissions,o.postMessage(or({action:"response",result:e},n.params));break}case nr.SET_ENTITY_URI:v(m,(()=>o.postMessage(or({action:"response",result:u},n.params))));break;case nr.SET_PERSPECTIVE:y(n.params.perspective),o.postMessage(or({action:"response",result:h()},n.params));break;case nr.GET_PERSPECTIVE:h&&o.postMessage(or({action:"response",result:h()},n.params));break;case nr.WORKFLOW_CHECK_PERMISSION:o.postMessage(or({action:"response",result:E(n.params.permission)},n.params));break;case nr.GET_SEARCH_QUERY:o.postMessage(or({action:"response",result:g},n.params));break;case nr.OPEN_SEARCH:f({viewId:l.id,searchState:n.params.searchState});break;case nr.GET_ENTITY_URI:o.postMessage(or({action:"response",result:m},n.params));break;case nr.GET_ENTITY:o.postMessage(or({action:"response",result:u},n.params));break;case nr.GET_API_PATH:o.postMessage(or({action:"response",result:i},n.params));break;case nr.WORKFLOW_GET_WORKFLOW_PATH:o.postMessage(or({action:"response",result:c},n.params));break;case nr.GET_TENANT:o.postMessage(or({action:"response",result:p},n.params));break;case nr.GET_USER:o.postMessage(or({action:"response",result:s},n.params));break;case nr.ALERT:window.alert(n.params.text);break;case nr.CONFIRM:window.confirm(n.params.text);break;case nr.PROMPT:window.prompt(n.params.text,n.params.defaultText||"");break;case nr.OPEN_WINDOW:window.open(n.params.url,"_blank")}})(sr({name:e.params.name,paramObject:e,permissions:o,worker:n,metadata:w,config:t,user:T,apiPath:O,tenant:P,workflowPath:N,entity:S,entityUri:k,environment:Z,query:"search"===j?null==D?void 0:D.query:null,openSearch:L,workflowCheckPermission:I},R))}}};return(0,r.useEffect)((()=>{const e=((e,t,n)=>{const r=`\n importScripts("${e}");\n importScripts("${t.join('","')}");\n postMessage({action:'loaded'});`;let o;try{const e=window.webkitURL||window.URL;o=new Worker(e.createObjectURL(new Blob([r],{type:"application/javascript"})))}catch(e){o=new Worker("data:application/javascript,"+encodeURIComponent(r))}if(o){let e="";o.addEventListener("message",(t=>{if("loaded"!==t.data.action){const r=JSON.parse(t.data);n(r,o,e),"setHtml"===r.action&&(e=r.params.html)}}))}return o})(C,n,A);return()=>{e.terminate()}}),[]),(0,r.useEffect)((()=>()=>{s.forEach((e=>e()))}),[s]),{html:l,visible:u,tooltip:m,customStyles:b,message:y,onClosePopup:()=>v("")}};function pr(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){mr(e,t,n[t])}))}return e}function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dr=n(14940);const gr=(0,$.Z)({resizableHandleContainer:{position:"relative",width:"100%",height:"inherit"},resizableHandleVisibilityArea:{position:"absolute",top:0,left:0,width:"100%",height:"24px",zIndex:11,"&:hover $resizableHandle":{visibility:"visible"},".react-grid-item.static &:hover $resizableHandle":{visibility:"hidden"}},resizableHandle:{position:"absolute",width:"100%",display:"flex",justifyContent:"center",top:"-3px",zIndex:11,cursor:"move",visibility:"hidden"},dragIcon:{transform:"translateX(-50%) rotate(90deg)",color:"rgba(0, 0, 0, 0.3)"}}),fr=e=>{const t=t=>{const n=gr();return o().createElement("div",{className:n.resizableHandleContainer},o().createElement("div",{className:n.resizableHandleVisibilityArea},o().createElement("div",{className:L()("viewDraggableHandle",n.resizableHandle)},o().createElement(dr.Z,{className:n.dragIcon}))),o().createElement(e,t))};return t.displayName="WithResizableHandle",t},br=(0,$.Z)({stubView:{padding:"20px"},fullHeight:{height:"100%"},component:{boxSizing:"border-box",overflow:"auto",boxShadow:"none",borderRadius:"unset"}});var hr=n(29103),yr=n(83911),Er=n(79485),vr=n(22385);const xr=(0,i.pipe)((0,i.path)(["point","lat"]),(0,i.both)((0,i.gt)(90),(0,i.lt)(-90))),wr=(0,$.Z)((()=>({root:{height:"100%",display:"flex",flexDirection:"column"},fullHeight:{height:"100%"},fullscreenBtn:{position:"absolute",right:"5px",top:"5px",zIndex:100}})));var Sr=n(13074),Cr=n(24338);const Pr=(0,$.Z)((e=>({caption:{color:e.palette.text.secondary,fontSize:"13px"}}))),Or=Pr,Nr=e=>{let{totalImages:t}=e;const n=Or(),r=t>1?b().text("photos"):b().text("photo");return o().createElement(V.Typography,{variant:"caption",className:n.caption},`${t} ${r}`)};function Tr(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){kr(e,t,n[t])}))}return e}function kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zr=e=>{let{config:t,attributeType:n,paging:r,requestNextPageOfAttributeValues:l}=e;const s=(0,a.useDispatch)(),c=(0,a.useSelector)(E.ZP.selectors.getEntity),u=(0,a.useSelector)((e=>E.ZP.selectors.getModifiedEntity(e,c.uri)||{})),p=(0,i.pathOr)([],["attributes",n.name],u),m=t.id;return o().createElement(o().Fragment,null,o().createElement(Cr.Z,{attributeValues:p,attributeType:n,onDeleteAttribute:e=>(0,i.pipe)(E.N5.actions.removeAttribute,s)(Tr({},e,{viewId:m})),parentUri:u.uri,onChangeAttribute:e=>(0,i.pipe)(E.N5.actions.modifyAttribute,s)(Tr({},e,{viewId:m})),imageSize:jr,paging:r,requestNextPageOfAttributeValues:l}),o().createElement(Nr,{totalImages:p.length}))},Rr=(0,$.Z)((e=>({container:{padding:"8px 16px"},noData:{fontSize:"13px",color:e.palette.text.secondary}}))),Ir=Rr,jr={imageMargin:4,imageWidth:162,imageHeight:162};var Dr=n(28741);const Lr=(0,$.Z)((e=>({root:{display:"flex",flexDirection:"column"},matchesContainer:{position:"relative"},footer:{display:"flex",alignItems:"end",flexGrow:1,justifyContent:"flex-start",borderTop:"1px solid rgba(0,0,0, 0.12)",padding:"8px 16px",color:e.palette.primary.main,fontSize:"13px",letterSpacing:"0",lineHeight:"15px"},noData:{paddingLeft:"16px",paddingBottom:"16px",fontSize:"13px",color:"rgba(0,0,0,0.54)"}})));var Ar=n(49734),Mr=n(98808),Ur=n(93428),Fr=n(30885);function Hr(){return Hr=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},Hr.apply(this,arguments)}const Vr=e=>{let{config:t,match:n,onStartRequest:l,onFinishRequest:i}=e;const s=(0,a.useDispatch)(),c=(0,a.useSelector)(E.ZP.selectors.getMetadata),u=(0,a.useSelector)(E.ZP.selectors.getEntity),{canMerge:m,canMark:g}=(0,d.hXd)(c,t,n.object,u,n.matchRules),f=(0,r.useMemo)((()=>[n.object]),[n.object]),b={entity:u,entities:f,mode:Mr.N.iconButton,onStartRequest:l},h=(0,r.useContext)(p.m),y=(0,r.useCallback)((()=>{i(),s(E.N5.entity.actions.loadEntity({viewId:h,uri:u.uri}))}),[s,u.uri,i,h]);return o().createElement(o().Fragment,null,m&&o().createElement(Ur.H,Hr({},b,{onFinishRequest:y})),g&&o().createElement(Fr.i,Hr({},b,{onFinishRequest:i})))},zr=e=>{let{config:t,entitiesMap:n,match:r,onFinishRequest:l,onStartRequest:i}=e;const s=(0,a.useSelector)(E.ZP.selectors.getMetadata),c=(0,a.useSelector)(E.ZP.selectors.getEntity);return o().createElement(Ar.M,{match:r,entity:c,entitiesMap:n,metadata:s,className:ft.U},o().createElement(bt.Z,{uri:(0,d.E_P)(c.uri,r.object.uri),relatedObjectUris:(0,d.wp9)(d.q7e.POTENTIAL_MATCH,{entityUri:c.uri,matchEntityUri:r.object.uri}),objectType:d.q7e.POTENTIAL_MATCH}),o().createElement(Vr,{match:r,config:t,onStartRequest:i,onFinishRequest:l}))},Br={showTransitiveMatches:!0,showInactiveEntities:!1},Wr={order:"asc",field:"score"};var _r;!function(e){e[e.Loading=0]="Loading",e[e.NoData=1]="NoData",e[e.Loaded=2]="Loaded"}(_r||(_r={}));const Gr=fr((e=>{let{className:t}=e;const n=br();return o().createElement(F.Z,{className:L()(n.stubView,"viewDraggableHandle",t)},"NOT IMPLEMENTED")})),qr=fr((e=>{let{className:t,config:n}=e;return o().createElement(A.Z,{className:t,caption:n.caption,excludeUris:n.excludeUris,includeUris:n.includeUris,attributesCount:n.attributesCount,pinnedAttributes:n.pinnedAttributes})})),$r=fr((e=>{let{className:t,config:n}=e;const a=(e=>{const[t,n]=(0,r.useState)(""),[o,a]=(0,r.useState)(0),[l,i]=(0,r.useState)(!1),s=(0,r.useMemo)((()=>({page:o,searchQuery:t,showInactive:l})),[o,t,l]),c=ve(e,s,!0),u=(0,r.useCallback)((()=>{a(0),i((e=>!e))}),[]);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xe(e,t,n[t])}))}return e}({setSearchQuery:n,searchQuery:t,setPage:a,page:o,toggleShowInactive:u,showInactive:l},c)})(n);return o().createElement(M.Provider,{value:a},o().createElement(be,{config:n,className:t}))})),Qr=fr((e=>{let{config:t,className:n}=e;const l=(e=>{var t;const{attributeUri:n}=e,o=(0,a.useSelector)(E.ZP.selectors.getMetadata),l=(0,r.useMemo)((()=>(0,d.zeJ)(o,n)),[o,n]),s=(0,r.useMemo)((()=>un(l)),[l]),c=(0,r.useMemo)((()=>({searchQuery:"",filters:null,sorting:void 0,visibleColumns:s.filter((0,i.pipe)((0,i.prop)("dataTypeDefinition"),d.YkM,i.not)).map((e=>{let{id:t}=e;return t})).slice(0,5),page:0})),[s]),[u,p]=(0,r.useReducer)(en,c),{searchQuery:m,filters:g,sorting:f,page:b}=u,h=(0,a.useSelector)(E.ZP.selectors.getIsEditableMode),y=(0,r.useMemo)((()=>{const e=((e,t)=>d.wSh.fromNull(t).map((t=>Object.entries(t).map((t=>{let[n,r]=t;const o=e.find((0,i.propEq)("id",n));return(0,gn.su)(o,r)})))).orSome([]))(s,g);return e.length?e:null}),[g,s]),v=(0,r.useMemo)((()=>(0,i.reject)(i.isNil,{filters:y,page:b,sorting:f,searchQuery:m})),[y,b,f,m]),{changeSearchQuery:x,changePage:w,toggleSort:S,changeFilter:C,toggleFilters:P,changeColumns:O}=(0,qt.o)({actions:Jt,dispatch:p}),N=ve(e,v,!1);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fn(e,t,n[t])}))}return e}({},u,{setSearchQuery:x,setPage:w,onSort:S,onFilter:C,onToggleFilters:P,onChangeColumns:O,showTable:Boolean(((null==N||null===(t=N.values)||void 0===t?void 0:t.length)||y||m||h)&&l&&!l.hidden)},N)})(t);return o().createElement(Gt.Provider,{value:l},t&&o().createElement(Dn,{config:t,className:n}))})),Xr=fr((e=>{let{config:t,className:n}=e;const a=(e=>{var t;const n=(0,r.useMemo)((()=>Object.entries(e.sortOptions||{}).map((e=>{let[t,n]=e;return{value:t,label:n}}))),[e.sortOptions]),o=e.max||15,[a,l]=(0,r.useState)(0),[i,s]=(0,r.useState)(e.sortOrder||"asc"),[c,u]=(0,r.useState)(null===(t=n[0])||void 0===t?void 0:t.value),[p,m]=(0,r.useState)(""),[d,g]=(0,r.useState)(!1),f=(0,r.useCallback)((()=>{l(0),g((e=>!e))}),[]),b=(0,r.useCallback)((()=>{l(0),s((e=>"asc"===e?"desc":"asc"))}),[]),h=(0,r.useCallback)((e=>{l(0),u(e)}),[]);return{searchQuery:p,changeSearchQuery:(0,r.useCallback)((e=>{l(0),m(e)}),[]),sortOrder:i,toggleSortOrder:b,sortOption:c,changeSortOption:h,sortOptions:n,page:a,setPage:l,rowsPerPage:o,showInactive:d,toggleShowInactive:f}})(t);return o().createElement(Te.Provider,{value:a},o().createElement(_t,{config:t,className:n}))})),Yr=fr((e=>{let{config:t,className:n}=e;const a=(0,r.useRef)(),[l,s]=(0,r.useState)(null),{height:c,width:u,tooltip:p}=t,{html:m,visible:d,tooltip:g,customStyles:f,onClosePopup:b,message:h}=ur(t.action,t),y=tr(),E=g||p;if((0,r.useEffect)((()=>{a.current&&m&&(a.current.innerHTML="",m.childNodes.forEach((e=>{a.current.appendChild(e)})),s(a.current))}),[m]),!d)return null;const v=(0,i.reject)(i.isNil,{width:u,height:c}),x=o().createElement("div",{ref:a,style:pr({},v,f),className:L()(y.root,n)});return o().createElement("div",{className:y.bodyWrapper},E?o().createElement(V.Tooltip,{title:E},x):x,o().createElement(er.Z,{placement:"bottom",anchorEl:l,open:!!h,onClose:b},h))})),Kr=fr((e=>{let{config:t,className:n}=e;const l=(0,a.useSelector)(E.ZP.selectors.getEntityUri),{treeData:i,setTreeData:s}=((e,t)=>{const n=(0,he._)(),[o,a]=(0,r.useState)([]);return(0,r.useEffect)((()=>((0,d.ZiX)(e)||n((0,d.RFJ)({uri:e,graphUri:t})).then(Un).then(a).catch((e=>{console.warn(e)})),()=>{a([])})),[e,t,n]),{treeData:o,setTreeData:a}})(l,t.graph.type),c=Fn(),u=(0,a.useDispatch)(),{id:p,graph:m}=t,g=(0,r.useCallback)((()=>{u(E.ui.actions.openGraph({viewId:p,graphType:m.type}))}),[u,p,m]),f=(0,r.useCallback)((e=>({title:o().createElement(Wn,{node:e.node})})),[]);return o().createElement(F.Z,{className:n},o().createElement(Jn,{onGraphOpen:g,title:t.caption}),o().createElement(Vn.Provider,{value:t},o().createElement("div",{className:c.treeContainer},o().createElement("div",{className:c.tree},o().createElement(Ln.ZP,{isVirtualized:!1,treeData:i,canDrag:!1,theme:Xn,generateNodeProps:f,onChange:s,getNodeKey:_n})))))})),Jr=fr((e=>{let{config:t,className:n}=e;const l=Lr(),s=(0,a.useSelector)(E.ZP.selectors.getEntity),c=null==s?void 0:s.uri,[u,m]=(0,r.useState)(!1),g=(0,r.useCallback)((()=>{m(!0)}),[]),f=(0,r.useCallback)((()=>{m(!1)}),[]),{matches:h,entitiesMap:y,loadMatches:v,total:x}=(0,Dr.s)({enabled:!!c,entity:s,options:Br,filter:"",page:0,sorting:Wr,rowsPerPage:3,onStartLoading:g,onFinishLoading:f}),S=(0,r.useCallback)((()=>{v()}),[v]),C=(0,a.useDispatch)(),P=(0,r.useContext)(p.m),O=(0,r.useCallback)((()=>{C(E.ui.actions.openPerspective({perspectiveId:"potentialMatches",viewId:P}))}),[C,P]),N=(0,r.useMemo)((()=>(0,d.NVY)(c,(0,i.map)(d.ev7,h))),[c,h]),{getCommentsCount:T}=(0,r.useContext)(w.h);(0,r.useEffect)((()=>{T(N)}),[T,N]);const k=x>3&&!(0,i.isEmpty)(h),Z=u?_r.Loading:(0,i.isEmpty)(h)?_r.NoData:_r.Loaded;return o().createElement(Se.X.Provider,{value:y},o().createElement(F.Z,{className:L()(l.root,n)},o().createElement(z.Z,{title:t.caption}),o().createElement("div",{className:l.matchesContainer},Z===_r.Loading&&o().createElement(R.Z,null),Z===_r.NoData&&o().createElement(V.Typography,{className:l.noData},b().text("No matches found")),Z===_r.Loaded&&h.map((e=>o().createElement(zr,{config:t,entitiesMap:y,match:e,onFinishRequest:S,onStartRequest:g,key:e.object.uri})))),k&&o().createElement(o().Fragment,null,o().createElement("div",{className:l.footer},o().createElement(V.Link,{component:"button",variant:"caption",onClick:O,underline:"none"},b().text("See all"))))))})),eo=(0,r.lazy)((()=>n.e(6596).then(n.bind(n,46596)).then((e=>({default:fr(e.HierarchyTreeView)}))))),to=(0,r.lazy)((()=>n.e(4361).then(n.bind(n,14361)).then((e=>({default:fr(e.RelationshipsTableView)}))))),no=fr((e=>{let{config:t,isFullscreen:n,onToggleFullscreen:l,className:i}=e;const s=wr(),c=(0,a.useSelector)(E.ZP.selectors.getMetadata),u=(0,a.useSelector)(E.ZP.selectors.getEntity),p=(0,a.useSelector)(E.ZP.selectors.getGoogleMapKey),{markers:m,loading:g}=((e,t,n)=>{const[o,a]=(0,r.useState)([]),[l,i]=(0,r.useState)(!0),s=(0,he._)();return(0,r.useEffect)((()=>{i(!0),s((0,d.DBr)(t,[e],n)).then((e=>{a(e.filter(xr))})).catch((()=>{a([])})).finally((()=>{i(!1)}))}),[e,t,n,s]),{markers:o,loading:l}})(u,c,p),f=(0,r.useMemo)((()=>o().createElement("div",{className:s.fullHeight},o().createElement(R.Z,null))),[s]),b=(0,r.useMemo)((()=>({lat:0,lng:0})),[]);return p&&o().createElement(F.Z,{className:L()(s.root,i)},g&&o().createElement(R.Z,null),o().createElement(vr.Z,{size:"S",icon:n?yr.Z:hr.Z,onClick:()=>l(t.id),className:s.fullscreenBtn}),o().createElement(Er.Z,{loadingElement:f,defaultZoom:1,defaultCenter:b,markers:m,mapContainerClassName:s.fullHeight,mapKey:p}))})),ro=fr((e=>{let{config:t,className:n}=e;const{attributeUri:l}=t,s=Ir(),c=(0,a.useDispatch)(),u=(0,a.useSelector)(E.ZP.selectors.getMode),p=(0,a.useSelector)(E.ZP.selectors.getEntityWithDiff),m=(0,a.useSelector)(E.ZP.selectors.getMetadata),g=(0,d.zeJ)(m,l),f=(0,i.pathOr)([],["attributes",null==g?void 0:g.name],p),h=(0,i.path)(["attributes","paging",l],p),y=f.length,v=t["text-empty"]||b().text("No data found"),x=(0,r.useCallback)((e=>c(E.N5.actions.requestNextPageOfAttributeValues(e))),[c]);return o().createElement(F.Z,{className:n},o().createElement(z.Z,{title:t.caption}),o().createElement("div",{className:s.container},(()=>{if(g){if((0,d.KIu)(u)){const e={attributeType:g,config:t,paging:h,requestNextPageOfAttributeValues:x};return o().createElement(Zr,e)}if(y>0){const e={attributeValues:f,attributeType:g,imageSize:jr,paging:h,parentUri:p.uri,requestNextPageOfAttributeValues:x};return o().createElement(o().Fragment,null,o().createElement(Sr.Z,e),o().createElement(Nr,{totalImages:y}))}}return o().createElement(V.Typography,{className:s.noData},v)})()))}));class oo{}oo.ViewTypes=d.ZIY,oo.getComponentBy=(e,t)=>{let{store:n,config:r,className:a,isFullscreen:l,onToggleFullscreen:i}=t;switch(r[e]){case oo.ViewTypes.HierarchyTree:return o().createElement(eo,{config:r,store:n,className:a});case oo.ViewTypes.HierarchyPaths:return o().createElement(Kr,{config:r,className:a});case oo.ViewTypes.RelationsTable:return o().createElement(to,{config:r,store:n,className:a});case oo.ViewTypes.Relations:return o().createElement(Xr,{config:r,className:a});case oo.ViewTypes.Attributes:return o().createElement(qr,{className:a,config:r});case oo.ViewTypes.SingleAttributeView:return o().createElement($r,{config:r,className:a});case oo.ViewTypes.TableAttributeView:return o().createElement(Qr,{config:r,className:a});case oo.ViewTypes.MapView:return o().createElement(no,{config:r,isFullscreen:l,onToggleFullscreen:i,className:a});case oo.ViewTypes.CustomView:return o().createElement(Yr,{config:r,className:a});case oo.ViewTypes.ImageAttributeView:return o().createElement(ro,{config:r,className:a});case oo.ViewTypes.PotentialMatchesView:return o().createElement(Jr,{config:r,className:a})}},oo.getComponent=e=>oo.getComponentBy("class",e)||oo.getComponentBy("react-class",e)||o().createElement(Gr,{className:e.className});const ao=oo,lo=()=>null,io=(0,r.memo)((e=>{let{config:t,store:n,isFullscreen:a,isAutosize:l,onToggleFullscreen:i}=e;const s=br();return o().createElement(r.Suspense,{fallback:o().createElement(lo,null)},ao.getComponent({config:t,store:n,className:L()(s.component,{[s.fullHeight]:!l}),isFullscreen:a,onToggleFullscreen:i}))}));io.displayName="ViewComponent";const so=(0,$.Z)((e=>({item:e.basicView,fixedSizeContainer:{height:"100%"}})));function co(){return co=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},co.apply(this,arguments)}const uo=["onConfigChanged","onRemove"],po=e=>{let{layoutItemConfig:t,views:n,className:l,children:s,style:c,isFullscreen:u,onToggleFullscreen:p,AutosizeComponent:m}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["layoutItemConfig","views","className","children","style","isFullscreen","onToggleFullscreen","AutosizeComponent"]);const g=n.find((e=>{let{id:n}=e;return t.i===n})),f=so(),{store:b}=(0,r.useContext)(a.ReactReduxContext);if(!g)return null;const h=g.class===ao.ViewTypes.CustomView;return o().createElement("div",co({},(0,i.omit)(uo,d),{style:c,className:L()(l,{[f.item]:!h})}),o().createElement("div",{className:L()({[f.fixedSizeContainer]:!m})},m,o().createElement(io,{store:b,config:g,isFullscreen:u,onToggleFullscreen:p,isAutosize:Boolean(m)})),s)},mo=e=>{let{views:t,layout:n,layoutOptions:r,onLayoutChanged:a}=e;return o().createElement(j.Z,{LayoutItem:po,views:t,layout:n,layoutOptions:r,onLayoutChanged:a,draggableHandle:".viewDraggableHandle"})};var go=n(57304),fo=n(3409),bo=n(93873),ho=n(22860),yo=n(72753),Eo=n(43576);function vo(){return vo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vo.apply(this,arguments)}const xo=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",vo({width:"19",height:"17",viewBox:"0 0 19 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},n),o().createElement("defs",null,o().createElement("path",{d:"M14 17v2H4v-2h10zm6-4v2H4v-2l12.884.001H17l.116-.002L20 13zm-8.457-2H4V9h5.82a8.465 8.465 0 001.723 2zM9.139 6.178l-.289.733.035.088L4 7V5l5.713-.002c-.22.375-.412.768-.574 1.18zM17 2.82a6.451 6.451 0 00-6 4.09 6.451 6.451 0 006 4.092 6.451 6.451 0 006-4.091 6.451 6.451 0 00-6-4.091zm0 6.815a2.728 2.728 0 010-5.455 2.728 2.728 0 010 5.455zm0-4.365c-.905 0-1.636.73-1.636 1.636 0 .906.73 1.637 1.636 1.637.905 0 1.636-.731 1.636-1.637 0-.905-.73-1.636-1.636-1.636z",id:"svg1467685497a"})),o().createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o().createElement("g",{transform:"translate(-4 -2.5)"},o().createElement("mask",{id:"svg1467685497b",fill:"#fff"},o().createElement("use",{xlinkHref:"#svg1467685497a"})),o().createElement("path",{fillOpacity:".54",fill:"#000",mask:"url(#svg1467685497b)",d:"M0 0h24v24H0z"}))))},wo=(0,$.Z)({editingButtons:{display:"flex","& button + button":{width:"88px",marginLeft:"8px"}},searchResults:{width:"150px",height:"25px",backgroundColor:"#ccc"},comments:{display:"flex",justifyContent:"flex-end",marginTop:"10px"}}),So=e=>o().createElement(V.SvgIcon,e,o().createElement(xo,null)),Co=(e,t,n,r,o)=>e.filter((e=>{let{value:a,permission:l}=e;return!(n&&!(0,d.KIu)(a))&&!!(r&&o||!(0,d.fnZ)(a))&&(0,d.uGe)(l,t)})),Po=e=>{let{className:t}=e;const n=wo(),l=(0,a.useDispatch)(),i=(0,a.useSelector)(E.ZP.selectors.getCanUserStartProcessFromQuery),s=(0,a.useSelector)(E.ZP.selectors.getEntityWithoutDiff),c=(0,a.useSelector)((e=>E.ZP.selectors.getModifiedEntity(e,s.uri))),u=(0,a.useSelector)(E.ZP.selectors.getMetadata),p=(0,a.useSelector)(E.ZP.selectors.isWorkflowEnabled),m=(0,a.useSelector)(E.ZP.selectors.getMode),g=(0,a.useSelector)(E.ZP.selectors.getIsEditableMode),f=(0,a.useSelector)(E.ZP.selectors.getIsViewMode),h=(0,a.useSelector)(E.ZP.selectors.getIsHistoryModeEnabled),y=(0,a.useSelector)(E.ZP.selectors.getProfileOperation)===d.OXy.Saving,v=null==s?void 0:s.type,x=(0,r.useMemo)((()=>[{label:b().text("Editing"),value:d.fO_.EDITING,description:b().text("Edit profile directly"),icon:Eo.Z,permission:"UPDATE"},{label:b().text("Suggesting"),value:d.fO_.SUGGESTING,description:b().text("Suggest changes and initiate a workflow review"),icon:So,permission:"INITIATE_CHANGE_REQUEST"},{label:b().text("Viewing"),value:d.fO_.VIEWING,description:b().text("Suggest changes and initiate a workflow review"),icon:yo.Z,permission:"READ"}]),[]),w=(0,r.useMemo)((()=>[{label:b().text("Delete"),value:"Delete",description:b().text("Permanently delete profile"),icon:Ge.Z,onClick:()=>{window.confirm(b().text("Are you sure you want to delete this?"))&&l(E.N5.entity.actions.entityRemoveRequested({entityUri:s.uri}))},permission:"DELETE"}]),[l,s.uri]),S=(0,r.useMemo)((()=>(0,d.nt9)(u,v)||{}),[u,v]),C=!h&&!(0,d.biM)(s)&&!(e=>(0,d.uGe)(d.BDP.READ,e)&&!(0,d.uGe)(d.BDP.UPDATE,e)&&!(0,d.uGe)(d.BDP.DELETE,e)&&!(0,d.uGe)(d.BDP.INITIATE_CHANGE_REQUEST,e))(S),P=(0,d.ZiX)(null==s?void 0:s.uri),O=(0,r.useMemo)((()=>Co(x,S,P,p,i)),[x,S,p,i,P]),N=(0,r.useMemo)((()=>Co(w,S,P,p,i)),[w,S,p,i,P]),T=(0,r.useCallback)((e=>{l(E.N5.mode.actions.modeUpdated(e))}),[l]),k=(0,r.useCallback)((()=>{l(E.N5.mode.actions.modeCancelEditing())}),[l]),Z=(0,r.useCallback)((()=>{l(E.N5.actions.saveProfile())}),[l]);return o().createElement(go.Z,{className:L()(t,ft.U),entity:g&&c?c:s},o().createElement(V.Box,{display:"flex",alignItems:"center"},o().createElement(V.Box,{mr:3},g&&o().createElement(V.Box,{className:n.editingButtons},o().createElement(V.Button,{variant:"outlined",onClick:k,"data-reltio-id":"reltio-profile-cancel-editing",disabled:y},b().text("Cancel")),o().createElement(V.Button,{variant:"contained",color:"primary","data-reltio-id":"reltio-profile-save-profile",onClick:Z,disabled:y},(0,d.fnZ)(m)?b().text("Suggest"):b().text("Save"))),h&&f?o().createElement(fo.Z,null):f&&o().createElement(bo.a,null)),C&&o().createElement(ho.T,{optionsGroup:O,buttonsGroup:N,value:m,onChange:T,disabled:y})),o().createElement(V.Box,{className:n.comments},o().createElement(bt.Z,{uri:s.uri,relatedObjectUris:(0,d.wp9)(d.q7e.ENTITY,{entityUri:s.uri}),objectType:d.q7e.ENTITY})))};var Oo=n(71820),No=n(85890),To=n(26789),ko=n(54362),Zo=n(6674),Ro=n(91515),Io=n(52043),jo=n(17308),Do=n(39827),Lo=n(80147),Ao=n(76569);const Mo=(0,$.Z)({wrapper:{display:"flex",overflow:"hidden",marginLeft:"auto",flexShrink:0},badge:{fontSize:"12px",height:"18px",minWidth:"18px",backgroundColor:"#FF4081",color:"#FFF"},badgePosition:{right:"5px"}}),Uo=()=>{const{total:e}=(0,r.useContext)(k.O),t=Mo();return o().createElement(V.Badge,{badgeContent:e,classes:{anchorOriginTopRightRectangle:t.badgePosition,badge:t.badge}},o().createElement(Ao.Z,null))};var Fo=n(9371),Ho=n(4426);const Vo=(0,$.Z)({wrapper:{overflow:"auto",paddingRight:"12px"},showMoreLink:{display:"flex",margin:"16px"},showMoreIcon:{fontSize:"1rem"}}),zo=()=>{const e=Vo(),{getComments:t,comments:n,pageToken:l}=(0,r.useContext)(w.h),i=(0,a.useSelector)(E.ZP.selectors.getEntityUri);return(0,r.useEffect)((()=>{t(i)}),[t,i]),o().createElement(V.Box,{className:e.wrapper},n.map((e=>{const{objectId:t,relatedObjectUris:n,objectType:r,commentId:a}=e;return o().createElement(Fo.J,{key:a,uri:t,relatedObjectUris:n,objectType:r,comment:e})})),l&&o().createElement(V.Link,{component:"button",variant:"caption",className:e.showMoreLink,onClick:()=>{t(i,l)},underline:"none"},o().createElement(Ho.Z,{className:e.showMoreIcon}),b().text("Show more")))};var Bo=n(34120);const Wo=(0,$.Z)({wrapper:{overflow:"auto",position:"relative",height:"100%"}}),_o=()=>{const e=Wo(),{tasks:t,loading:n}=(0,r.useContext)(k.O);return o().createElement("div",{className:e.wrapper},n&&o().createElement(R.Z,null),t&&t.map((e=>o().createElement(Bo.s,{key:e.taskId,task:e}))))};function Go(){return Go=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},Go.apply(this,arguments)}const qo=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",Go({width:"20",height:"20",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},n),o().createElement("defs",null,o().createElement("path",{d:"M4 17.17L5.17 16H20V4H4v13.17zM20 2c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H6l-4 4V4c0-1.1.9-2 2-2h16zm-3 9H7v2h10v-2zm0-4H7v2h10V7z",id:"svg2697213709a"})),o().createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o().createElement("g",null,o().createElement("g",{transform:"translate(-2 -2)"},o().createElement("mask",{id:"svg2697213709b",fill:"#fff"},o().createElement("use",{xlinkHref:"#svg2697213709a"})),o().createElement("path",{fillOpacity:".54",fill:"#000",mask:"url(#svg2697213709b)",d:"M0 0h24v24H0z"})))))},$o=()=>{const{commentsMap:e}=(0,r.useContext)(w.h),t=Mo();return o().createElement(V.Badge,{badgeContent:(0,d.mdt)(e),classes:{anchorOriginTopRightRectangle:t.badgePosition,badge:t.badge}},o().createElement(qo,null))};var Qo=n(10159);const Xo=()=>o().createElement(Qo.Z,{text:b().text("Ready to go with the flow?"),secondaryText:b().text("Suggest a change or submit a match review, and we’ll kick off a workflow task to get things going.")}),Yo=()=>o().createElement(Qo.Z,{text:b().text("Care to join the conversation?"),secondaryText:b().text("Leave comments for team members anywhere in the Profile page, and we’ll record it here.")});function Ko(){return Ko=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},Ko.apply(this,arguments)}let Jo;!function(e){e[e.Workflow=0]="Workflow",e[e.Collaboration=1]="Collaboration",e[e.History=2]="History"}(Jo||(Jo={}));const ea=e=>{if(e)return 1===e?b().text("${total} item",{total:e}):b().text("${total} items",{total:e})},ta=()=>{var e,t,n;const l=Mo(),s=(0,a.useSelector)(E.ZP.selectors.isWorkflowSideViewEnabled),c=(0,a.useSelector)(E.ZP.selectors.isWorkflowEnabled),u=(0,a.useSelector)(E.ZP.selectors.isCollaborationSideViewEnabled),p=(0,a.useSelector)(E.ZP.selectors.isCollaborationEnabled),m=(0,a.useSelector)(E.ZP.selectors.getHistoryEvent),g=(0,a.useSelector)(E.ZP.selectors.getMetadata),f=(0,a.useSelector)(E.ZP.selectors.getEntity),h=(0,r.useContext)(k.O),y=(0,r.useContext)(w.h),[v,x]=(0,r.useState)(null),S=(0,r.useCallback)((e=>{x((t=>t===e?null:e))}),[]),C=(0,r.useCallback)((()=>{x(null)}),[]),P=null!==v,O=v===Jo.History,{isHistoryEnabled:N,isProfilePersisted:T}=(0,Oo.C)({isHistoryTabActive:O,entity:f}),{historyFilter:Z,onApplyFilter:R,onClearFilter:I,isLoading:j,historicUris:D,historyWithTotal:L,canLoadMore:A,onLoadMore:M}=(0,No.k)({entity:f,enabled:N}),U=s&&c&&!(0,d.ZiX)(null==f?void 0:f.uri),F=u&&p,H=(0,d.mdt)(null==y?void 0:y.commentsMap),V=[{buttonProps:{id:Jo.Workflow,icon:Uo,tooltipTitle:b().text("Workflow")},content:null!=h&&h.total?o().createElement(_o,null):o().createElement(Xo,null),headerProps:{mainTitle:b().text("Workflow"),secondTitle:ea(null==h?void 0:h.total),rightContent:o().createElement(To.G,null)},hidden:!U},{buttonProps:{id:Jo.Collaboration,icon:$o,tooltipTitle:b().text("Collaboration")},content:H?o().createElement(zo,null):o().createElement(Yo,null),headerProps:{mainTitle:b().text("Collaboration"),secondTitle:ea(H)},hidden:!F},{buttonProps:{id:Jo.History,icon:Lo.Z,tooltipTitle:b().text("History")},content:T?o().createElement(ko.Z,{isLoading:j,historyWithTotal:L,contributorsUris:D,entityUri:null==f?void 0:f.uri,historyEvent:m,onLoadMore:M,canLoadMore:A}):o().createElement(Zo.Z,null),headerProps:{content:o().createElement(Ro.Z,{total:T?((null==D?void 0:D.length)||0)+1:void 0,entityType:(0,d.nt9)(g,null==f?void 0:f.type),filter:Z,onApplyFilter:R,onClearFilter:I})}}],z=(0,i.reject)((0,i.propEq)("hidden",!0))(V);return(0,r.useEffect)((()=>{var e;null!==(e=V[v])&&void 0!==e&&e.hidden&&C()}),[v,V,C,z]),o().createElement("div",{className:l.wrapper},o().createElement(Io.h,{open:P,width:480},!(null!==(e=V[v])&&void 0!==e&&e.hidden)&&o().createElement(o().Fragment,null,o().createElement(jo.P,Ko({},null===(t=V[v])||void 0===t?void 0:t.headerProps,{onClose:C})),null===(n=V[v])||void 0===n?void 0:n.content)),o().createElement(Do.G,{buttonsProps:(0,i.pipe)((0,i.reject)((0,i.propEq)("hidden",!0)),(0,i.pluck)("buttonProps"))(V),onButtonClick:S,activeIndexId:v}))};var na=n(39781),ra=n(16715);const oa="48px",aa="1px solid rgba(0, 0, 0, .125)",la=(0,$.Z)((e=>({accordion:{borderTop:aa,borderBottom:aa,boxShadow:"none","&:not(:first-child)":{borderTop:0},"&:before":{display:"none"},"&$accordionExpanded":{margin:"auto"}},accordionExpanded:{},accordionSummary:{display:"flex",alignItems:"center",height:oa,minHeight:oa,"&$accordionSummaryExpanded":{height:oa,minHeight:oa}},accordionSummaryHeading:{flex:1,fontSize:e.typography.pxToRem(13),fontWeight:e.typography.fontWeightRegular},accordionSummaryExpanded:{},accordionSummaryContent:{display:"flex",alignItems:"center"},accordionDetails:{maxHeight:"21vh",overflow:"auto",paddingTop:0,paddingBottom:0,"& ul":{paddingLeft:"23px",marginTop:"3px"},"& li":{paddingLeft:"9px",paddingBottom:"8px"}},parents:{color:e.palette.text.primary},errorsAccordion:{backgroundColor:"#FFF4F6",borderColor:"#FFB8B3"},errorsAccordionDetails:{color:"#DD2C00"},warningsAccordion:{backgroundColor:"#FFF9ED",borderColor:"#FFDD91"},warningsAccordionDetails:{color:"#CC7500"},icon:{marginRight:"8px"},errorIcon:{fill:"#FF1744"},warningIcon:{fill:"#F9A825"}}))),ia=la;var sa=n(38016);const ca=(0,r.memo)((e=>{let{panels:t,expandedPanelId:n,onToggle:r,ErrorComponent:a}=e;const l=ia();return t.length>0?o().createElement("div",null,t.map((e=>{let{id:t,icon:i,title:s,items:c,accordionClassName:u,accordionDetailsClassName:p}=e;return o().createElement(V.Accordion,{key:t,square:!0,expanded:n===t,onChange:r(t),className:u,classes:{root:l.accordion,expanded:l.accordionExpanded}},o().createElement(V.AccordionSummary,{classes:{root:l.accordionSummary,expanded:l.accordionSummaryExpanded,content:l.accordionSummaryContent},expandIcon:o().createElement(sa.Z,null)},i,o().createElement(V.Typography,{className:l.accordionSummaryHeading},s)),o().createElement(V.AccordionDetails,{className:L()(l.accordionDetails,p)},o().createElement("ul",null,c.map(((e,t)=>o().createElement(a,{key:t,error:e}))))))}))):null}));ca.displayName="ErrorsPanel";const ua=(0,i.omit)(["deactivated","path"]),pa=(0,r.memo)((e=>{let{error:t}=e;const n=ia(),r=((e,t)=>{let{type:n,source:r,message:o,attributeTypeUri:a="",attributeType:l}=t;if(n===d.NIO.missed&&r===d.zHr.local){const t=l||(0,d.zeJ)(e,a);return t?b().text("${attribute} is required",{attribute:t.label}):o}return o})((0,a.useSelector)(E.ZP.selectors.getMetadata),t),l=(e=>{let{path:t,uri:n}=e;return null==t?void 0:t.slice(0,n?t.length-1:t.length).filter((e=>{let{type:t}=e;return[d.HAc.attributeValue,d.HAc.relationConnection].includes(t)})).map((e=>{let{label:t}=e;return t})).filter(i.identity).join(" / ")})(t);return o().createElement("li",null,o().createElement("span",null,r),l&&o().createElement(o().Fragment,null,o().createElement("br",null),o().createElement("span",{className:n.parents},l)))}));pa.displayName="Error";const ma=()=>{const e=ia(),t=(e=>{const t=(0,r.useRef)(e);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&(0,i.equals)(e.map(ua),t.map(ua))}(e,t.current)||(t.current=e),t.current})((0,a.useSelector)(E.ZP.selectors.getProfileErrors)),[n,l]=(0,r.useMemo)((()=>(0,i.partition)(d.IT0,t)),[t]),[s,c]=(0,r.useState)(null),u=(0,r.useMemo)((()=>[{id:"errors",title:b().text("${number} ${errors}",{number:n.length,errors:1===n.length?b().text("error"):b().text("errors")}),icon:o().createElement(na.Z,{className:L()(e.icon,e.errorIcon)}),items:n,accordionClassName:e.errorsAccordion,accordionDetailsClassName:e.errorsAccordionDetails},{id:"warnings",title:b().text("${number} ${warnings}",{number:l.length,warnings:1===l.length?b().text("warning"):b().text("warnings")}),icon:o().createElement(ra.Z,{className:L()(e.icon,e.warningIcon)}),items:l,accordionClassName:e.warningsAccordion,accordionDetailsClassName:e.warningsAccordionDetails}].filter((e=>{let{items:t}=e;return t.length>0}))),[n,l,e]);(0,r.useEffect)((()=>{c("errors")}),[n]);const p=(0,r.useCallback)((e=>(t,n)=>{c(n?e:null)}),[]);return u.length>0?o().createElement(ca,{panels:u,expandedPanelId:s,onToggle:p,ErrorComponent:pa}):null},da=(0,$.Z)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,fontFamily:"Roboto, Helvetica, Arial, sans-serif",overflowX:"hidden",overflowY:"auto",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.default},scrollWrapper:{flexGrow:1,overflowY:"auto"},emptyState:{backgroundColor:"#FAFAFA",height:"100%"},profileWrapper:e=>{let{maxWidth:t}=e;return{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1,maxWidth:t?`${t}px`:"100%"}},profileContainer:{display:"flex",overflow:"hidden",flexGrow:1},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"}}))),ga=(0,r.memo)((e=>{let{config:t,saveState:n,getSavedState:l}=e;const i=da({maxWidth:null==t?void 0:t.maxWidth}),s=(0,a.useDispatch)(),c=(0,r.useRef)(),u=(0,r.useCallback)((0,d.DsO)(n,5e3),[n]),{isLoaded:p,savedState:m}=(0,v.a)(l),[g,f]=(0,r.useState)([]),[h,j]=(0,r.useState)([]),D=(0,r.useMemo)((()=>y()(t)),[t]),L=(0,a.useSelector)(E.ZP.selectors.getEntity),A=(0,a.useSelector)(E.ZP.selectors.getIsHistoryModeEnabled),M=(0,r.useMemo)((()=>(0,d.dvH)(L)),[L]),U=(0,x.C)({objectIds:M}),F=(0,r.useContext)(w.h),H=(0,S.U)(),V=(0,C.v)(null==t?void 0:t.workflow),z=(0,a.useSelector)(E.ZP.selectors.getHistoryEvent);(0,P.a)({entity:L,historyEvent:z});const B=(0,O.u)();(0,r.useEffect)((()=>{if(p){const e=D!==m.configHash,{views:n,layout:r}=(0,d.Mfk)({views:e||!m.views?t.views:m.views,layout:e?t.layout:m.layout});j(n),f(r)}}),[p]),(0,r.useEffect)((()=>{s(E.N5.views.actions.profileViewsSet(h))}),[s,h]),(0,r.useEffect)((()=>{t.sidePanelViews&&s(E.N5.sidePanelViews.actions.sidePanelViewsLoaded(t.sidePanelViews))}),[t]),(0,r.useEffect)((()=>{c.current&&(c.current.scrollTop=0)}),[null==L?void 0:L.uri]),(()=>{const e=(0,a.useDispatch)(),t=(0,a.useSelector)(E.ZP.selectors.getValidateReadMode),n=(0,a.useSelector)(E.ZP.selectors.getEntity)||{},{uri:o,updatedTime:l}=n,i=(0,d.biM)(n),s=(0,a.useSelector)(E.ZP.selectors.getMode),c=(0,a.useSelector)(E.ZP.selectors.getProfileViews),u=c&&c.length>0,p=(0,r.useCallback)((0,d.DsO)((t=>{t&&e(E.N5.actions.validateProfile())}),500),[e]);(0,r.useEffect)((()=>{const e=t&&!i&&o&&!(0,d.ZiX)(o)&&s===d.ARY.Viewing&&u;p(e)}),[p,i,t,l,o,s,u])})();const W=(0,r.useCallback)((e=>{u({layout:e,views:h,configHash:D}),f(e)}),[u,D,h]);return o().createElement(N.j.Provider,{value:!0},o().createElement(T.s.Provider,{value:H},o().createElement(w.h.Provider,{value:A?F:U},o().createElement(k.O.Provider,{value:V},o().createElement(Z.m.Provider,{value:B},o().createElement("div",{className:i.perspectiveView},(!p||!(null!=L&&L.uri))&&o().createElement(R.Z,null),p&&null!=L&&L.uri?o().createElement("div",{className:i.profileContainer},o().createElement("div",{className:i.profileWrapper},o().createElement(Po,null),!A&&o().createElement(ma,null),o().createElement("div",{ref:c,className:i.scrollWrapper},o().createElement(mo,{layout:g,onLayoutChanged:W,views:h}))),o().createElement(ta,null)):o().createElement("div",{className:i.emptyState},o().createElement(I.ZP,{LogoRenderer:I.B9.NO_DATA,text:b().text("No data to display."),variant:I.tC.embedded}))))))))}));ga.displayName="ProfilePerspectiveView";const fa=(0,s.createGenerateClassName)({productionPrefix:"profilePerspective",disableGlobal:!0}),ba=e=>{let{config:t,store:n,onResize:f=i.identity,saveState:b,getSavedState:h,qxSandboxApi:y}=e;const E=(0,r.useCallback)((0,d.aYu)(h),[h]),v=(0,r.useMemo)((()=>(0,d.Vr9)(t)),[t]);return o().createElement(a.Provider,{store:n},o().createElement(p.m.Provider,{value:v.id},o().createElement(g.Provider,{value:y},o().createElement(s.StylesProvider,{generateClassName:fa},o().createElement(u.MuiPickersUtilsProvider,{utils:l.Z},o().createElement(c.Z,{handleHeight:!0,onResize:(e,t)=>f(Math.floor(e),Math.floor(t))}),v&&o().createElement(ga,{config:v,saveState:b,getSavedState:E}),o().createElement(m.Z,{showErrorFromStore:!0}))))))};var ha=n(82842),ya=n(51229),Ea=n(91131);const va=(0,$.Z)((e=>({titleContainer:{overflow:"hidden",fontSize:"16px",fontWeight:"normal",whiteSpace:"nowrap",textOverflow:"ellipsis",alignItems:"center",display:"flex",minHeight:"48px",color:e.palette.text.secondary},link:{fontSize:"16px",fontWeight:"normal"},icon:{height:"18px",color:e.palette.text.secondary},totalCaption:{lineHeight:"inherit",fontSize:"14px",color:"rgba(0,0,0,0.6)",flexShrink:0,marginRight:"5px"},totalNumber:{fontSize:"16px",color:"rgba(0,0,0,0.87)",marginRight:"5px",fontWeight:500}}))),xa=e=>{let{total:t=0}=e;const n=va(),l=(0,a.useDispatch)(),i=(0,r.useContext)(p.m),s=(0,r.useCallback)((()=>{l(E.ui.actions.openPerspective({perspectiveId:"profile",viewId:i}))}),[l,i]);return o().createElement(z.Z,{title:""},o().createElement("div",{className:n.titleContainer},o().createElement(V.Link,{component:"button",variant:"caption",className:n.link,onClick:s,underline:"none"},b().text("Profile")),o().createElement(Ea.Z,{className:n.icon}),b().text("Tags")),o().createElement(ya.Z,null),o().createElement(V.Typography,{className:n.totalCaption,variant:"caption"},o().createElement("span",{className:n.totalNumber},b().number(t,"0,0")),b().text("total profiles")))};var wa=n(20404);const Sa=(0,$.Z)((e=>({toolbar:{display:"flex",flexShrink:0,background:"white",borderBottom:"1px solid rgba(0,0,0,0.1)",boxSizing:"border-box",paddingLeft:"16px"},avatar:{color:"rgba(0, 0, 0, 0.38)",marginRight:"12px"},label:{fontSize:"20px",letterSpacing:"0.25px",lineHeight:"1.2",fontWeight:500,color:e.palette.text.primary,wordBreak:"break-word"}}))),Ca=e=>{let{label:t}=e;const n=Sa();return o().createElement(V.Toolbar,{className:n.toolbar},o().createElement(wa.Z,{className:n.avatar}),o().createElement(V.Typography,{variant:"h6",className:n.label},t))};function Pa(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){Oa(e,t,n[t])}))}return e}function Oa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Na=(0,$.Z)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,fontFamily:"Roboto, Helvetica, Arial, sans-serif",overflow:"hidden",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.default},tagsContainer:{display:"flex"},fullHeight:{flexGrow:1,height:0},tagsView:{margin:"16px",width:"100%",paddingTop:"4px"},listContainer:{flex:1,display:"flex",overflow:"hidden",position:"relative",flexDirection:"column",minHeight:"4px"},entitiesList:{overflowY:"auto",flexGrow:1},pagination:{flexGrow:0}}))),Ta=[25,50,100],ka=(0,r.memo)((e=>{let{tag:t,entityUri:n}=e;const l=Na(),[s,c]=(0,r.useState)(Ta[0]),[u,p]=(0,r.useState)(0),m=(0,a.useSelector)(E.ZP.selectors.getGlobalSearchRequestOptions);(0,r.useEffect)((()=>{p(0)}),[t,n,m]);const{isLoading:g,total:f,entities:h}=(e=>{let{tag:t,entityUri:n,page:o=0,rowsPerPage:l=50}=e;const s=(0,a.useDispatch)(),c=(0,he._)(),u=(0,he._)(),[p,m]=(0,r.useState)(!1),[g,f]=(0,r.useState)(0),[h,y]=(0,r.useState)([]),{requestEntities:v,requestTotal:x}=(e=>{let{entityUri:t,tag:n}=e;const o=(0,a.useSelector)(E.ZP.selectors.getGlobalSearchRequestOptions),l=(0,a.useSelector)(E.ZP.selectors.getTenant),s=(0,a.useSelector)(E.ZP.selectors.getDtssPath),c=(0,r.useMemo)((()=>(0,d.Do$)(t)),[t]),u=(0,r.useMemo)((()=>[{filter:"equals",fieldName:"tags",values:[n]}]),[n]),p=!!c,m=(0,r.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=Pa({select:"uri,label,type,secondaryLabel,defaultProfilePicValue,startDate,endDate"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return p?(0,d.uqV)({filters:e,options:t,customerTenant:l,dataTenant:c,dtssPath:s}).then((0,i.map)((0,i.assoc)("dataTenant",c))):(0,d.ZOr)(e,t)}),[p,c,l,s]);return{requestEntities:(0,r.useCallback)(((e,t)=>m(u,Pa({offset:t,max:e},o))),[u,o,m]),requestTotal:(0,r.useCallback)((()=>{const e=o;return(p?(0,d.J$m)({filters:u,options:e,customerTenant:l,dataTenant:c,dtssPath:s}):(0,d.j_Q)(u,e)).then((e=>e.total))}),[u,o,p,c,l,s])}})({entityUri:n,tag:t}),w=(0,r.useCallback)((e=>{s(E.ui.actions.errorSet((0,d.xU7)(e,b().text("Something went wrong")))),f(0)}),[s]);return(0,r.useEffect)((()=>{c(x()).then(f).catch(w)}),[x,c,w]),(0,r.useEffect)((()=>{m(!0),u(v(l,o*l)).then(y).catch(w).finally((()=>m(!1)))}),[o,l,v,u,w]),{isLoading:p,total:g,entities:h}})({tag:t,entityUri:n,page:u,rowsPerPage:s}),y=(0,r.useRef)(null);(0,r.useEffect)((()=>{y.current&&(y.current.scrollTop=0)}),[h]);const v=f>Ta[0];return o().createElement("div",{className:l.perspectiveView},o().createElement(Ca,{label:t}),o().createElement("div",{className:L()(l.tagsContainer,{[l.fullHeight]:v})},o().createElement(F.Z,{className:l.tagsView},o().createElement(xa,{total:f}),o().createElement("div",{className:l.listContainer},g&&o().createElement(R.Z,null),f>0&&o().createElement("div",{className:l.entitiesList,ref:y},o().createElement(ha.Z,{entities:h})),v&&o().createElement("div",{className:l.pagination},o().createElement(H.Z,{count:f,rowsPerPageOptions:Ta,rowsPerPage:s,page:u,onChangePage:p,onChangeRowsPerPage:c}))))))}));ka.displayName="TagPerspectiveView";const Za=(0,s.createGenerateClassName)({productionPrefix:"tagPerspective",disableGlobal:!0}),Ra=e=>{let{config:t,tag:n,entityUri:r,store:l,onResize:u=i.identity}=e;return o().createElement(a.Provider,{store:l},o().createElement(p.m.Provider,{value:t.id},o().createElement(s.StylesProvider,{generateClassName:Za},o().createElement(c.Z,{handleHeight:!0,onResize:(e,t)=>u(Math.floor(e),Math.floor(t))}),t&&o().createElement(ka,{tag:n,entityUri:r}),o().createElement(m.Z,{showErrorFromStore:!0}))))}},1242:(e,t,n)=>{e.exports=n.p+"5271a9e7b6651c852e93.png"}}]);
|
package/8716.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 8716.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[8716,8570],{49507:(t,e,n)=>{function r(t){if(Array.isArray(t))return t}n.d(e,{Z:()=>r})},64659:(t,e,n)=>{function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{Z:()=>r})},4730:(t,e,n)=>{function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,{Z:()=>o})},51119:(t,e,n)=>{function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:()=>r})},7560:(t,e,n)=>{function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{Z:()=>r})},12733:(t,e,n)=>{function r(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}n.d(e,{Z:()=>r})},9007:(t,e,n)=>{function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(e,{Z:()=>r})},54530:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(98283);function o(t,e){if(null==t)return{};var n,o,i=(0,r.Z)(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}},98283:(t,e,n)=>{function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,{Z:()=>r})},85354:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(49507),o=n(9007);function i(t,e){return(0,r.Z)(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||(0,o.Z)()}},11720:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(12733);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||(0,r.Z)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}},90929:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t){return o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)},o(t)}n.d(e,{Z:()=>o})},57074:(t,e,n)=>{n.d(e,{Z:()=>M});var r=n(7560),o=n(54530),i=n(24328),a=n.n(i),c=(n(13980),n(75047)),u=n(6277),s=n(85974),l=n(74718),f=n(15459),d=n(54736),p=n(11720),h=n(82379);function m(){return m=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},m.apply(this,arguments)}var v=n(41797),y=n(26833);function g(t,e){var n=Object.create(null);return t&&i.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&(0,i.isValidElement)(t)?e(t):t}(t)})),n}function b(t,e,n){return null!=n[e]?n[e]:t.props[e]}function x(t,e,n){var r=g(t.children),o=function(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var u in e){if(o[u])for(r=0;r<o[u].length;r++){var s=o[u][r];c[o[u][r]]=n(s)}c[u]=n(u)}for(r=0;r<i.length;r++)c[i[r]]=n(i[r]);return c}(e,r);return Object.keys(o).forEach((function(a){var c=o[a];if((0,i.isValidElement)(c)){var u=a in e,s=a in r,l=e[a],f=(0,i.isValidElement)(l)&&!l.props.in;!s||u&&!f?s||!u||f?s&&u&&(0,i.isValidElement)(l)&&(o[a]=(0,i.cloneElement)(c,{onExited:n.bind(null,c),in:l.props.in,exit:b(c,"exit",t),enter:b(c,"enter",t)})):o[a]=(0,i.cloneElement)(c,{in:!1}):o[a]=(0,i.cloneElement)(c,{onExited:n.bind(null,c),in:!0,exit:b(c,"exit",t),enter:b(c,"enter",t)})}})),o}var Z=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},E=function(t){function e(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,v.Z)(e,t);var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(t,e){var n,r,o=e.children,a=e.handleExited;return{children:e.firstRender?(n=t,r=a,g(n.children,(function(t){return(0,i.cloneElement)(t,{onExited:r.bind(null,t),in:!0,appear:b(t,"appear",n),enter:b(t,"enter",n),exit:b(t,"exit",n)})}))):x(t,o,a),firstRender:!1}},n.handleExited=function(t,e){var n=g(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var n=m({},e.children);return delete n[t.key],{children:n}})))},n.render=function(){var t=this.props,e=t.component,n=t.childFactory,r=(0,h.Z)(t,["component","childFactory"]),o=this.state.contextValue,i=Z(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?a().createElement(y.Z.Provider,{value:o},i):a().createElement(y.Z.Provider,{value:o},a().createElement(e,r,i))},e}(a().Component);E.propTypes={},E.defaultProps={component:"div",childFactory:function(t){return t}};const S=E;var w="undefined"==typeof window?i.useEffect:i.useLayoutEffect;const k=function(t){var e=t.classes,n=t.pulsate,r=void 0!==n&&n,o=t.rippleX,a=t.rippleY,c=t.rippleSize,s=t.in,f=t.onExited,d=void 0===f?function(){}:f,p=t.timeout,h=i.useState(!1),m=h[0],v=h[1],y=(0,u.Z)(e.ripple,e.rippleVisible,r&&e.ripplePulsate),g={width:c,height:c,top:-c/2+a,left:-c/2+o},b=(0,u.Z)(e.child,m&&e.childLeaving,r&&e.childPulsate),x=(0,l.Z)(d);return w((function(){if(!s){v(!0);var t=setTimeout(x,p);return function(){clearTimeout(t)}}}),[x,s,p]),i.createElement("span",{className:y,style:g},i.createElement("span",{className:b}))};var O=i.forwardRef((function(t,e){var n=t.center,a=void 0!==n&&n,c=t.classes,s=t.className,l=(0,o.Z)(t,["center","classes","className"]),f=i.useState([]),d=f[0],h=f[1],m=i.useRef(0),v=i.useRef(null);i.useEffect((function(){v.current&&(v.current(),v.current=null)}),[d]);var y=i.useRef(!1),g=i.useRef(null),b=i.useRef(null),x=i.useRef(null);i.useEffect((function(){return function(){clearTimeout(g.current)}}),[]);var Z=i.useCallback((function(t){var e=t.pulsate,n=t.rippleX,r=t.rippleY,o=t.rippleSize,a=t.cb;h((function(t){return[].concat((0,p.Z)(t),[i.createElement(k,{key:m.current,classes:c,timeout:550,pulsate:e,rippleX:n,rippleY:r,rippleSize:o})])})),m.current+=1,v.current=a}),[c]),E=i.useCallback((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.pulsate,o=void 0!==r&&r,i=e.center,c=void 0===i?a||e.pulsate:i,u=e.fakeElement,s=void 0!==u&&u;if("mousedown"===t.type&&y.current)y.current=!1;else{"touchstart"===t.type&&(y.current=!0);var l,f,d,p=s?null:x.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(c||0===t.clientX&&0===t.clientY||!t.clientX&&!t.touches)l=Math.round(h.width/2),f=Math.round(h.height/2);else{var m=t.touches?t.touches[0]:t,v=m.clientX,E=m.clientY;l=Math.round(v-h.left),f=Math.round(E-h.top)}if(c)(d=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2==0&&(d+=1);else{var S=2*Math.max(Math.abs((p?p.clientWidth:0)-l),l)+2,w=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(S,2)+Math.pow(w,2))}t.touches?null===b.current&&(b.current=function(){Z({pulsate:o,rippleX:l,rippleY:f,rippleSize:d,cb:n})},g.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):Z({pulsate:o,rippleX:l,rippleY:f,rippleSize:d,cb:n})}}),[a,Z]),w=i.useCallback((function(){E({},{pulsate:!0})}),[E]),O=i.useCallback((function(t,e){if(clearTimeout(g.current),"touchend"===t.type&&b.current)return t.persist(),b.current(),b.current=null,void(g.current=setTimeout((function(){O(t,e)})));b.current=null,h((function(t){return t.length>0?t.slice(1):t})),v.current=e}),[]);return i.useImperativeHandle(e,(function(){return{pulsate:w,start:E,stop:O}}),[w,E,O]),i.createElement("span",(0,r.Z)({className:(0,u.Z)(c.root,s),ref:x},l),i.createElement(S,{component:null,exit:!0},d))}));const R=(0,f.Z)((function(t){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(t.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(t.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(t.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(t.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(i.memo(O));var T=i.forwardRef((function(t,e){var n=t.action,a=t.buttonRef,f=t.centerRipple,p=void 0!==f&&f,h=t.children,m=t.classes,v=t.className,y=t.component,g=void 0===y?"button":y,b=t.disabled,x=void 0!==b&&b,Z=t.disableRipple,E=void 0!==Z&&Z,S=t.disableTouchRipple,w=void 0!==S&&S,k=t.focusRipple,O=void 0!==k&&k,T=t.focusVisibleClassName,M=t.onBlur,C=t.onClick,A=t.onFocus,j=t.onFocusVisible,N=t.onKeyDown,P=t.onKeyUp,z=t.onMouseDown,D=t.onMouseLeave,L=t.onMouseUp,I=t.onTouchEnd,F=t.onTouchMove,V=t.onTouchStart,_=t.onDragLeave,$=t.tabIndex,B=void 0===$?0:$,U=t.TouchRippleProps,W=t.type,X=void 0===W?"button":W,H=(0,o.Z)(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),Y=i.useRef(null),K=i.useRef(null),q=i.useState(!1),G=q[0],J=q[1];x&&G&&J(!1);var Q=(0,d.Z)(),tt=Q.isFocusVisible,et=Q.onBlurVisible,nt=Q.ref;function rt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;return(0,l.Z)((function(r){return e&&e(r),!n&&K.current&&K.current[t](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){J(!0),Y.current.focus()}}}),[]),i.useEffect((function(){G&&O&&!E&&K.current.pulsate()}),[E,O,G]);var ot=rt("start",z),it=rt("stop",_),at=rt("stop",L),ct=rt("stop",(function(t){G&&t.preventDefault(),D&&D(t)})),ut=rt("start",V),st=rt("stop",I),lt=rt("stop",F),ft=rt("stop",(function(t){G&&(et(t),J(!1)),M&&M(t)}),!1),dt=(0,l.Z)((function(t){Y.current||(Y.current=t.currentTarget),tt(t)&&(J(!0),j&&j(t)),A&&A(t)})),pt=function(){var t=c.findDOMNode(Y.current);return g&&"button"!==g&&!("A"===t.tagName&&t.href)},ht=i.useRef(!1),mt=(0,l.Z)((function(t){O&&!ht.current&&G&&K.current&&" "===t.key&&(ht.current=!0,t.persist(),K.current.stop(t,(function(){K.current.start(t)}))),t.target===t.currentTarget&&pt()&&" "===t.key&&t.preventDefault(),N&&N(t),t.target===t.currentTarget&&pt()&&"Enter"===t.key&&!x&&(t.preventDefault(),C&&C(t))})),vt=(0,l.Z)((function(t){O&&" "===t.key&&K.current&&G&&!t.defaultPrevented&&(ht.current=!1,t.persist(),K.current.stop(t,(function(){K.current.pulsate(t)}))),P&&P(t),C&&t.target===t.currentTarget&&pt()&&" "===t.key&&!t.defaultPrevented&&C(t)})),yt=g;"button"===yt&&H.href&&(yt="a");var gt={};"button"===yt?(gt.type=X,gt.disabled=x):("a"===yt&&H.href||(gt.role="button"),gt["aria-disabled"]=x);var bt=(0,s.Z)(a,e),xt=(0,s.Z)(nt,Y),Zt=(0,s.Z)(bt,xt),Et=i.useState(!1),St=Et[0],wt=Et[1];i.useEffect((function(){wt(!0)}),[]);var kt=St&&!E&&!x;return i.createElement(yt,(0,r.Z)({className:(0,u.Z)(m.root,v,G&&[m.focusVisible,T],x&&m.disabled),onBlur:ft,onClick:C,onFocus:dt,onKeyDown:mt,onKeyUp:vt,onMouseDown:ot,onMouseLeave:ct,onMouseUp:at,onDragLeave:it,onTouchEnd:st,onTouchMove:lt,onTouchStart:ut,ref:Zt,tabIndex:x?-1:B},gt,H),h,kt?i.createElement(R,(0,r.Z)({ref:K,center:p},U)):null)}));const M=(0,f.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(T)},72654:(t,e,n)=>{n.d(e,{Z:()=>h});var r=n(7560),o=n(85354),i=n(54530),a=n(24328),c=(n(13980),n(75614)),u=n(60364),s=n(41070),l=n(85974);function f(t){return"scale(".concat(t,", ").concat(Math.pow(t,2),")")}var d={entering:{opacity:1,transform:f(1)},entered:{opacity:1,transform:"none"}},p=a.forwardRef((function(t,e){var n=t.children,p=t.disableStrictModeCompat,h=void 0!==p&&p,m=t.in,v=t.onEnter,y=t.onEntered,g=t.onEntering,b=t.onExit,x=t.onExited,Z=t.onExiting,E=t.style,S=t.timeout,w=void 0===S?"auto":S,k=t.TransitionComponent,O=void 0===k?c.ZP:k,R=(0,i.Z)(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),T=a.useRef(),M=a.useRef(),C=(0,u.Z)(),A=C.unstable_strictMode&&!h,j=a.useRef(null),N=(0,l.Z)(n.ref,e),P=(0,l.Z)(A?j:void 0,N),z=function(t){return function(e,n){if(t){var r=A?[j.current,e]:[e,n],i=(0,o.Z)(r,2),a=i[0],c=i[1];void 0===c?t(a):t(a,c)}}},D=z(g),L=z((function(t,e){(0,s.n)(t);var n,r=(0,s.C)({style:E,timeout:w},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===w?(n=C.transitions.getAutoHeightDuration(t.clientHeight),M.current=n):n=o,t.style.transition=[C.transitions.create("opacity",{duration:n,delay:i}),C.transitions.create("transform",{duration:.666*n,delay:i})].join(","),v&&v(t,e)})),I=z(y),F=z(Z),V=z((function(t){var e,n=(0,s.C)({style:E,timeout:w},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===w?(e=C.transitions.getAutoHeightDuration(t.clientHeight),M.current=e):e=r,t.style.transition=[C.transitions.create("opacity",{duration:e,delay:o}),C.transitions.create("transform",{duration:.666*e,delay:o||.333*e})].join(","),t.style.opacity="0",t.style.transform=f(.75),b&&b(t)})),_=z(x);return a.useEffect((function(){return function(){clearTimeout(T.current)}}),[]),a.createElement(O,(0,r.Z)({appear:!0,in:m,nodeRef:A?j:void 0,onEnter:L,onEntered:I,onEntering:D,onExit:V,onExited:_,onExiting:F,addEndListener:function(t,e){var n=A?t:e;"auto"===w&&(T.current=setTimeout(n,M.current||0))},timeout:"auto"===w?null:w},R),(function(t,e){return a.cloneElement(n,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:f(.75),visibility:"exited"!==t||m?void 0:"hidden"},d[t],E,n.props.style),ref:P},e))}))}));p.muiSupportAuto=!0;const h=p},61837:(t,e,n)=>{n.d(e,{Z:()=>d});var r=n(7560),o=n(54530),i=n(24328),a=(n(13980),n(6277)),c=n(15459),u=n(41128),s=n(57074),l=n(97580),f=i.forwardRef((function(t,e){var n=t.edge,c=void 0!==n&&n,u=t.children,f=t.classes,d=t.className,p=t.color,h=void 0===p?"default":p,m=t.disabled,v=void 0!==m&&m,y=t.disableFocusRipple,g=void 0!==y&&y,b=t.size,x=void 0===b?"medium":b,Z=(0,o.Z)(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return i.createElement(s.Z,(0,r.Z)({className:(0,a.Z)(f.root,d,"default"!==h&&f["color".concat((0,l.Z)(h))],v&&f.disabled,"small"===x&&f["size".concat((0,l.Z)(x))],{start:f.edgeStart,end:f.edgeEnd}[c]),centerRipple:!0,focusRipple:!g,disabled:v,ref:e},Z),i.createElement("span",{className:f.label},u))}));const d=(0,c.Z)((function(t){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:t.palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,u.U1)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:t.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:(0,u.U1)(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:(0,u.U1)(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:t.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(f)},27556:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(54530),o=n(7560),i=n(24328),a=(n(13980),n(6277)),c=n(15459),u=i.forwardRef((function(t,e){var n=t.classes,c=t.className,u=t.component,s=void 0===u?"div":u,l=t.square,f=void 0!==l&&l,d=t.elevation,p=void 0===d?1:d,h=t.variant,m=void 0===h?"elevation":h,v=(0,r.Z)(t,["classes","className","component","square","elevation","variant"]);return i.createElement(s,(0,o.Z)({className:(0,a.Z)(n.root,c,"outlined"===m?n.outlined:n["elevation".concat(p)],!f&&n.rounded),ref:e},v))}));const s=(0,c.Z)((function(t){var e={};return t.shadows.forEach((function(t,n){e["elevation".concat(n)]={boxShadow:t}})),(0,o.Z)({root:{backgroundColor:t.palette.background.paper,color:t.palette.text.primary,transition:t.transitions.create("box-shadow")},rounded:{borderRadius:t.shape.borderRadius},outlined:{border:"1px solid ".concat(t.palette.divider)}},e)}),{name:"MuiPaper"})(u)},8560:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(24328),o=n(75047),i=(n(13980),n(52955)),a=n(85974),c="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;const u=r.forwardRef((function(t,e){var n=t.children,u=t.container,s=t.disablePortal,l=void 0!==s&&s,f=t.onRendered,d=r.useState(null),p=d[0],h=d[1],m=(0,a.Z)(r.isValidElement(n)?n.ref:null,e);return c((function(){l||h(function(t){return t="function"==typeof t?t():t,o.findDOMNode(t)}(u)||document.body)}),[u,l]),c((function(){if(p&&!l)return(0,i.Z)(e,p),function(){(0,i.Z)(e,null)}}),[e,p,l]),c((function(){f&&(p||l)&&f()}),[f,p,l]),l?r.isValidElement(n)?r.cloneElement(n,{ref:m}):n:p?o.createPortal(n,p):p}))},72379:(t,e,n)=>{n.d(e,{Z:()=>l});var r=n(7560),o=n(54530),i=n(24328),a=(n(13980),n(6277)),c=n(15459),u=n(97580),s=i.forwardRef((function(t,e){var n=t.children,c=t.classes,s=t.className,l=t.color,f=void 0===l?"inherit":l,d=t.component,p=void 0===d?"svg":d,h=t.fontSize,m=void 0===h?"default":h,v=t.htmlColor,y=t.titleAccess,g=t.viewBox,b=void 0===g?"0 0 24 24":g,x=(0,o.Z)(t,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(p,(0,r.Z)({className:(0,a.Z)(c.root,s,"inherit"!==f&&c["color".concat((0,u.Z)(f))],"default"!==m&&c["fontSize".concat((0,u.Z)(m))]),focusable:"false",viewBox:b,color:v,"aria-hidden":!y||void 0,role:y?"img":void 0,ref:e},x),n,y?i.createElement("title",null,y):null)}));s.muiName="SvgIcon";const l=(0,c.Z)((function(t){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:t.typography.pxToRem(24),transition:t.transitions.create("fill",{duration:t.transitions.duration.shorter})},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorAction:{color:t.palette.action.active},colorError:{color:t.palette.error.main},colorDisabled:{color:t.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:t.typography.pxToRem(20)},fontSizeLarge:{fontSize:t.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(s)},57186:(t,e,n)=>{n.d(e,{Z:()=>r});const r={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"}},31754:(t,e,n)=>{n.d(e,{Z:()=>r});const r={black:"#000",white:"#fff"}},81463:(t,e,n)=>{n.d(e,{Z:()=>r});const r={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},45410:(t,e,n)=>{n.d(e,{Z:()=>r});const r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"}},19056:(t,e,n)=>{n.d(e,{Z:()=>r});const r={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"}},42824:(t,e,n)=>{n.d(e,{Z:()=>r});const r={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"}},89961:(t,e,n)=>{n.d(e,{Z:()=>r});const r={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"}},66054:(t,e,n)=>{n.d(e,{Z:()=>r});const r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},41128:(t,e,n)=>{n.d(e,{oo:()=>i,vq:()=>a,ve:()=>c,tB:()=>u,wy:()=>s,mi:()=>l,H3:()=>f,_4:()=>d,U1:()=>p,_j:()=>h,$n:()=>m});var r=n(97399);function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(e,t),n)}function i(t){t=t.substr(1);var e=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),n=t.match(e);return n&&1===n[0].length&&(n=n.map((function(t){return t+t}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(t,e){return e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3})).join(", "),")"):""}function a(t){if(0===t.indexOf("#"))return t;var e=u(t).values;return"#".concat(e.map((function(t){return 1===(e=t.toString(16)).length?"0".concat(e):e;var e})).join(""))}function c(t){var e=(t=u(t)).values,n=e[0],r=e[1]/100,o=e[2]/100,i=r*Math.min(o,1-o),a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+n/30)%12;return o-i*Math.max(Math.min(e-3,9-e,1),-1)},c="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===t.type&&(c+="a",l.push(e[3])),s({type:c,values:l})}function u(t){if(t.type)return t;if("#"===t.charAt(0))return u(i(t));var e=t.indexOf("("),n=t.substring(0,e);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,t));var o=t.substring(e+1,t.length-1).split(",");return{type:n,values:o=o.map((function(t){return parseFloat(t)}))}}function s(t){var e=t.type,n=t.values;return-1!==e.indexOf("rgb")?n=n.map((function(t,e){return e<3?parseInt(t,10):t})):-1!==e.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(e,"(").concat(n.join(", "),")")}function l(t,e){var n=f(t),r=f(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function f(t){var e="hsl"===(t=u(t)).type?u(c(t)).values:t.values;return e=e.map((function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return f(t)>.5?h(t,e):m(t,e)}function p(t,e){return t=u(t),e=o(e),"rgb"!==t.type&&"hsl"!==t.type||(t.type+="a"),t.values[3]=e,s(t)}function h(t,e){if(t=u(t),e=o(e),-1!==t.type.indexOf("hsl"))t.values[2]*=1-e;else if(-1!==t.type.indexOf("rgb"))for(var n=0;n<3;n+=1)t.values[n]*=1-e;return s(t)}function m(t,e){if(t=u(t),e=o(e),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*e;else if(-1!==t.type.indexOf("rgb"))for(var n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;return s(t)}},45656:(t,e,n)=>{n.d(e,{X:()=>i,Z:()=>a});var r=n(7560),o=n(54530),i=["xs","sm","md","lg","xl"];function a(t){var e=t.values,n=void 0===e?{xs:0,sm:600,md:960,lg:1280,xl:1920}:e,a=t.unit,c=void 0===a?"px":a,u=t.step,s=void 0===u?5:u,l=(0,o.Z)(t,["values","unit","step"]);function f(t){var e="number"==typeof n[t]?n[t]:t;return"@media (min-width:".concat(e).concat(c,")")}function d(t,e){var r=i.indexOf(e);return r===i.length-1?f(t):"@media (min-width:".concat("number"==typeof n[t]?n[t]:t).concat(c,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[i[r+1]]?n[i[r+1]]:e)-s/100).concat(c,")")}return(0,r.Z)({keys:i,values:n,up:f,down:function(t){var e=i.indexOf(t)+1,r=n[i[e]];return e===i.length?f("xs"):"@media (max-width:".concat(("number"==typeof r&&e>0?r:t)-s/100).concat(c,")")},between:d,only:function(t){return d(t,t)},width:function(t){return n[t]}},l)}},33016:(t,e,n)=>{n.d(e,{Z:()=>P});var r=n(54530),o=n(83593),i=n(45656),a=n(51119),c=n(7560);function u(t,e,n){var r;return(0,c.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,c.Z)({paddingLeft:e(2),paddingRight:e(2)},n,(0,a.Z)({},t.up("sm"),(0,c.Z)({paddingLeft:e(3),paddingRight:e(3)},n[t.up("sm")])))},toolbar:(r={minHeight:56},(0,a.Z)(r,"".concat(t.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,a.Z)(r,t.up("sm"),{minHeight:64}),r)},n)}var s=n(97399),l=n(31754),f=n(45410),d=n(19056),p=n(89961),h=n(66054),m=n(42824),v=n(57186),y=n(81463),g=n(41128),b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:l.Z.white,default:f.Z[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:l.Z.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f.Z[800],default:"#303030"},action:{active:l.Z.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Z(t,e,n,r){var o=r.light||r,i=r.dark||1.5*r;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:"light"===e?t.light=(0,g.$n)(t.main,o):"dark"===e&&(t.dark=(0,g._j)(t.main,i)))}function E(t){var e=t.primary,n=void 0===e?{light:d.Z[300],main:d.Z[500],dark:d.Z[700]}:e,i=t.secondary,a=void 0===i?{light:p.Z.A200,main:p.Z.A400,dark:p.Z.A700}:i,u=t.error,E=void 0===u?{light:h.Z[300],main:h.Z[500],dark:h.Z[700]}:u,S=t.warning,w=void 0===S?{light:m.Z[300],main:m.Z[500],dark:m.Z[700]}:S,k=t.info,O=void 0===k?{light:v.Z[300],main:v.Z[500],dark:v.Z[700]}:k,R=t.success,T=void 0===R?{light:y.Z[300],main:y.Z[500],dark:y.Z[700]}:R,M=t.type,C=void 0===M?"light":M,A=t.contrastThreshold,j=void 0===A?3:A,N=t.tonalOffset,P=void 0===N?.2:N,z=(0,r.Z)(t,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function D(t){return(0,g.mi)(t,x.text.primary)>=j?x.text.primary:b.text.primary}var L=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(t=(0,c.Z)({},t)).main&&t[e]&&(t.main=t[e]),!t.main)throw new Error((0,s.Z)(4,e));if("string"!=typeof t.main)throw new Error((0,s.Z)(5,JSON.stringify(t.main)));return Z(t,"light",n,P),Z(t,"dark",r,P),t.contrastText||(t.contrastText=D(t.main)),t},I={dark:x,light:b};return(0,o.Z)((0,c.Z)({common:l.Z,type:C,primary:L(n),secondary:L(a,"A400","A200","A700"),error:L(E),warning:L(w),info:L(O),success:L(T),grey:f.Z,contrastThreshold:j,getContrastText:D,augmentColor:L,tonalOffset:P},I[C]),z)}function S(t){return Math.round(1e5*t)/1e5}var w={textTransform:"uppercase"},k='"Roboto", "Helvetica", "Arial", sans-serif';function O(t,e){var n="function"==typeof e?e(t):e,i=n.fontFamily,a=void 0===i?k:i,u=n.fontSize,s=void 0===u?14:u,l=n.fontWeightLight,f=void 0===l?300:l,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,y=void 0===v?700:v,g=n.htmlFontSize,b=void 0===g?16:g,x=n.allVariants,Z=n.pxToRem,E=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),O=s/14,R=Z||function(t){return"".concat(t/b*O,"rem")},T=function(t,e,n,r,o){return(0,c.Z)({fontFamily:a,fontWeight:t,fontSize:R(e),lineHeight:n},a===k?{letterSpacing:"".concat(S(r/e),"em")}:{},o,x)},M={h1:T(f,96,1.167,-1.5),h2:T(f,60,1.2,-.5),h3:T(p,48,1.167,0),h4:T(p,34,1.235,.25),h5:T(p,24,1.334,0),h6:T(m,20,1.6,.15),subtitle1:T(p,16,1.75,.15),subtitle2:T(m,14,1.57,.1),body1:T(p,16,1.5,.15),body2:T(p,14,1.43,.15),button:T(m,14,1.75,.4,w),caption:T(p,12,1.66,.4),overline:T(p,12,2.66,1,w)};return(0,o.Z)((0,c.Z)({htmlFontSize:b,pxToRem:R,round:S,fontFamily:a,fontSize:s,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:y},M),E,{clone:!1})}function R(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const T=["none",R(0,2,1,-1,0,1,1,0,0,1,3,0),R(0,3,1,-2,0,2,2,0,0,1,5,0),R(0,3,3,-2,0,3,4,0,0,1,8,0),R(0,2,4,-1,0,4,5,0,0,1,10,0),R(0,3,5,-1,0,5,8,0,0,1,14,0),R(0,3,5,-1,0,6,10,0,0,1,18,0),R(0,4,5,-2,0,7,10,1,0,2,16,1),R(0,5,5,-3,0,8,10,1,0,3,14,2),R(0,5,6,-3,0,9,12,1,0,3,16,2),R(0,6,6,-3,0,10,14,1,0,4,18,3),R(0,6,7,-4,0,11,15,1,0,4,20,3),R(0,7,8,-4,0,12,17,2,0,5,22,4),R(0,7,8,-4,0,13,19,2,0,5,24,4),R(0,7,9,-4,0,14,21,2,0,5,26,4),R(0,8,9,-5,0,15,22,2,0,6,28,5),R(0,8,10,-5,0,16,24,2,0,6,30,5),R(0,8,11,-5,0,17,26,2,0,6,32,5),R(0,9,11,-5,0,18,28,2,0,7,34,6),R(0,9,12,-6,0,19,29,2,0,7,36,6),R(0,10,13,-6,0,20,31,3,0,8,38,7),R(0,10,13,-6,0,21,33,3,0,8,40,7),R(0,10,14,-6,0,22,35,3,0,8,42,7),R(0,11,14,-7,0,23,36,3,0,9,44,8),R(0,11,15,-7,0,24,38,3,0,9,46,8)],M={borderRadius:4};var C=n(38971);function A(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var e=(0,C.h)({spacing:t}),n=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 0===n.length?e(1):1===n.length?e(n[0]):n.map((function(t){if("string"==typeof t)return t;var n=e(t);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n}var j=n(39265),N=n(88816);const P=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.breakpoints,n=void 0===e?{}:e,a=t.mixins,c=void 0===a?{}:a,s=t.palette,l=void 0===s?{}:s,f=t.spacing,d=t.typography,p=void 0===d?{}:d,h=(0,r.Z)(t,["breakpoints","mixins","palette","spacing","typography"]),m=E(l),v=(0,i.Z)(n),y=A(f),g=(0,o.Z)({breakpoints:v,direction:"ltr",mixins:u(v,y,c),overrides:{},palette:m,props:{},shadows:T,typography:O(m,p),spacing:y,shape:M,transitions:j.ZP,zIndex:N.Z},h),b=arguments.length,x=new Array(b>1?b-1:0),Z=1;Z<b;Z++)x[Z-1]=arguments[Z];return x.reduce((function(t,e){return(0,o.Z)(t,e)}),g)}},69663:(t,e,n)=>{n.d(e,{Z:()=>r});const r=(0,n(33016).Z)()},79692:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(7560),o=n(36138),i=n(69663);const a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.makeStyles)(t,(0,r.Z)({defaultTheme:i.Z},e))}},39265:(t,e,n)=>{n.d(e,{Ui:()=>o,x9:()=>i,ZP:()=>c});var r=n(54530),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(t){return"".concat(Math.round(t),"ms")}const c={easing:o,duration:i,create:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.duration,c=void 0===n?i.standard:n,u=e.easing,s=void 0===u?o.easeInOut:u,l=e.delay,f=void 0===l?0:l;return(0,r.Z)(e,["duration","easing","delay"]),(Array.isArray(t)?t:[t]).map((function(t){return"".concat(t," ").concat("string"==typeof c?c:a(c)," ").concat(s," ").concat("string"==typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var e=t/36;return Math.round(10*(4+15*Math.pow(e,.25)+e/5))}}},60364:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(36138),o=(n(24328),n(69663));function i(){return(0,r.useTheme)()||o.Z}},15459:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(7560),o=n(36138),i=n(69663);const a=function(t,e){return(0,o.withStyles)(t,(0,r.Z)({defaultTheme:i.Z},e))}},88816:(t,e,n)=>{n.d(e,{Z:()=>r});const r={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},41070:(t,e,n)=>{n.d(e,{n:()=>r,C:()=>o});var r=function(t){return t.scrollTop};function o(t,e){var n=t.timeout,r=t.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[e.mode]||0,delay:o.transitionDelay}}},97580:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(97399);function o(t){if("string"!=typeof t)throw new Error((0,r.Z)(7));return t.charAt(0).toUpperCase()+t.slice(1)}},11375:(t,e,n)=>{function r(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e){return null==e?t:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t.apply(this,r),e.apply(this,r)}}),(function(){}))}n.d(e,{Z:()=>r})},90708:(t,e,n)=>{function r(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,c=function(){t.apply(a,o)};clearTimeout(e),e=setTimeout(c,n)}return r.clear=function(){clearTimeout(e)},r}n.d(e,{Z:()=>r})},8732:(t,e,n)=>{function r(t){return t&&t.ownerDocument||document}n.d(e,{Z:()=>r})},86982:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(8732);function o(t){return(0,r.Z)(t).defaultView||window}},52955:(t,e,n)=>{function r(t,e){"function"==typeof t?t(e):t&&(t.current=e)}n.d(e,{Z:()=>r})},24514:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(24328);function o(t){var e=t.controlled,n=t.default,o=(t.name,t.state,r.useRef(void 0!==e).current),i=r.useState(n),a=i[0],c=i[1];return[o?e:a,r.useCallback((function(t){o||c(t)}),[])]}},74718:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(24328),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function i(t){var e=r.useRef(t);return o((function(){e.current=t})),r.useCallback((function(){return e.current.apply(void 0,arguments)}),[])}},85974:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(24328),o=n(52955);function i(t,e){return r.useMemo((function(){return null==t&&null==e?null:function(n){(0,o.Z)(t,n),(0,o.Z)(e,n)}}),[t,e])}},54736:(t,e,n)=>{n.d(e,{Z:()=>h});var r=n(24328),o=n(75047),i=!0,a=!1,c=null,u={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(t){t.metaKey||t.altKey||t.ctrlKey||(i=!0)}function l(){i=!1}function f(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(t){var e,n,r,o=t.target;try{return o.matches(":focus-visible")}catch(t){}return i||(n=(e=o).type,!("INPUT"!==(r=e.tagName)||!u[n]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable)}function p(){a=!0,window.clearTimeout(c),c=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:d,onBlurVisible:p,ref:r.useCallback((function(t){var e,n=o.findDOMNode(t);null!=n&&((e=n.ownerDocument).addEventListener("keydown",s,!0),e.addEventListener("mousedown",l,!0),e.addEventListener("pointerdown",l,!0),e.addEventListener("touchstart",l,!0),e.addEventListener("visibilitychange",f,!0))}),[])}}},83593:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(7560),o=n(90929);function i(t){return t&&"object"===(0,o.Z)(t)&&t.constructor===Object}function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.Z)({},t):t;return i(t)&&i(e)&&Object.keys(e).forEach((function(r){"__proto__"!==r&&(i(e[r])&&r in t?o[r]=a(t[r],e[r],n):o[r]=e[r])})),o}},97399:(t,e,n)=>{function r(t){for(var e="https://material-ui.com/production-error/?code="+t,n=1;n<arguments.length;n+=1)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+t+"; visit "+e+" for the full message."}n.d(e,{Z:()=>r})},75614:(t,e,n)=>{n.d(e,{ZP:()=>y});var r=n(82379),o=n(41797),i=(n(13980),n(24328)),a=n.n(i),c=n(75047),u=n.n(c);var s=n(26833),l="unmounted",f="exited",d="entering",p="entered",h="exiting",m=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o=f,r.appearStatus=d):o=p:o=e.unmountOnExit||e.mountOnEnter?l:f,r.state={status:o},r.nextCallback=null,r}(0,o.Z)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===l?{status:f}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==p&&(e=d):n!==d&&n!==p||(e=h)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),e===d?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===f&&this.setState({status:l})},n.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.isMounting:t,o=this.props.nodeRef?[r]:[u().findDOMNode(this),r],i=o[0],a=o[1],c=this.getTimeouts(),s=r?c.appear:c.enter;t||n?(this.props.onEnter(i,a),this.safeSetState({status:d},(function(){e.props.onEntering(i,a),e.onTransitionEnd(s,(function(){e.safeSetState({status:p},(function(){e.props.onEntered(i,a)}))}))}))):this.safeSetState({status:p},(function(){e.props.onEntered(i)}))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u().findDOMNode(this);e?(this.props.onExit(r),this.safeSetState({status:h},(function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:f},(function(){t.props.onExited(r)}))}))}))):this.safeSetState({status:f},(function(){t.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this),r=null==t&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if(t===l)return null;var e=this.props,n=e.children,o=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,(0,r.Z)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(s.Z.Provider,{value:null},"function"==typeof n?n(t,o):a().cloneElement(a().Children.only(n),o))},e}(a().Component);function v(){}m.contextType=s.Z,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},m.UNMOUNTED=l,m.EXITED=f,m.ENTERING=d,m.ENTERED=p,m.EXITING=h;const y=m},26833:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(24328);const o=n.n(r)().createContext(null)},21226:(t,e,n)=>{if(n.d(e,{k:()=>s,Z:()=>l}),4351==n.j)var r=n(11720);if(4351==n.j)var o=n(7560);var i=n(90929);if(n(13980),4351==n.j)var a=n(39413);var c={xs:0,sm:600,md:960,lg:1280,xl:1920},u={keys:["xs","sm","md","lg","xl"],up:function(t){return"@media (min-width:".concat(c[t],"px)")}};function s(t,e,n){if(Array.isArray(e)){var r=t.theme.breakpoints||u;return e.reduce((function(t,o,i){return t[r.up(r.keys[i])]=n(e[i]),t}),{})}if("object"===(0,i.Z)(e)){var o=t.theme.breakpoints||u;return Object.keys(e).reduce((function(t,r){return t[o.up(r)]=n(e[r]),t}),{})}return n(e)}const l=4351==n.j?function(t){var e=function(e){var n=t(e),r=e.theme.breakpoints||u,i=r.keys.reduce((function(n,i){return e[i]&&((n=n||{})[r.up(i)]=t((0,o.Z)({theme:e.theme},e[i]))),n}),null);return(0,a.Z)(n,i)};return e.propTypes={},e.filterProps=["xs","sm","md","lg","xl"].concat((0,r.Z)(t.filterProps)),e}:null},39413:(t,e,n)=>{n.d(e,{Z:()=>c});var r=n(7560),o=n(90929);function i(t){return t&&"object"===(0,o.Z)(t)&&t.constructor===Object}function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.Z)({},t):t;return i(t)&&i(e)&&Object.keys(e).forEach((function(r){"__proto__"!==r&&(i(e[r])&&r in t?o[r]=a(t[r],e[r],n):o[r]=e[r])})),o}const c=function(t,e){return e?a(t,e,{clone:!1}):t}},38971:(t,e,n)=>{n.d(e,{h:()=>p,Z:()=>m});var r,o,i=n(85354),a=n(21226),c=n(39413),u={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},f=(r=function(t){if(t.length>2){if(!l[t])return[t];t=l[t]}var e=t.split(""),n=(0,i.Z)(e,2),r=n[0],o=n[1],a=u[r],c=s[o]||"";return Array.isArray(c)?c.map((function(t){return a+t})):[a+c]},o={},function(t){return void 0===o[t]&&(o[t]=r(t)),o[t]}),d=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function p(t){var e=t.spacing||8;return"number"==typeof e?function(t){return e*t}:Array.isArray(e)?function(t){return e[t]}:"function"==typeof e?e:function(){}}function h(t){var e=p(t.theme);return Object.keys(t).map((function(n){if(-1===d.indexOf(n))return null;var r=function(t,e){return function(n){return t.reduce((function(t,r){return t[r]=function(t,e){if("string"==typeof e||null==e)return e;var n=t(Math.abs(e));return e>=0?n:"number"==typeof n?-n:"-".concat(n)}(e,n),t}),{})}}(f(n),e),o=t[n];return(0,a.k)(t,o,r)})).reduce(c.Z,{})}h.propTypes={},h.filterProps=d;const m=h},6277:(t,e,n)=>{function r(t){var e,n,o="";if(t)if("object"==typeof t)if(t.push)for(e=0;e<t.length;e++)t[e]&&(n=r(t[e]))&&(o&&(o+=" "),o+=n);else for(e in t)t[e]&&(n=r(e))&&(o&&(o+=" "),o+=n);else"boolean"==typeof t||t.call||(o&&(o+=" "),o+=t);return o}function o(){for(var t,e=0,n="";e<arguments.length;)(t=r(arguments[e++]))&&(n&&(n+=" "),n+=t);return n}n.d(e,{Z:()=>o})},66866:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116;function v(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case l:case f:case i:case c:case a:case p:return t;default:switch(t=t&&t.$$typeof){case s:case d:case u:return t;default:return e}}case m:case h:case o:return e}}}function y(t){return v(t)===f}e.typeOf=v,e.AsyncMode=l,e.ConcurrentMode=f,e.ContextConsumer=s,e.ContextProvider=u,e.Element=r,e.ForwardRef=d,e.Fragment=i,e.Lazy=m,e.Memo=h,e.Portal=o,e.Profiler=c,e.StrictMode=a,e.Suspense=p,e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===f||t===c||t===a||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===h||t.$$typeof===u||t.$$typeof===s||t.$$typeof===d)},e.isAsyncMode=function(t){return y(t)||v(t)===l},e.isConcurrentMode=y,e.isContextConsumer=function(t){return v(t)===s},e.isContextProvider=function(t){return v(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return v(t)===d},e.isFragment=function(t){return v(t)===i},e.isLazy=function(t){return v(t)===m},e.isMemo=function(t){return v(t)===h},e.isPortal=function(t){return v(t)===o},e.isProfiler=function(t){return v(t)===c},e.isStrictMode=function(t){return v(t)===a},e.isSuspense=function(t){return v(t)===p}},48570:(t,e,n)=>{t.exports=n(66866)},41797:(t,e,n)=>{function r(t,e){return r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,{Z:()=>o})},82379:(t,e,n)=>{function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,{Z:()=>r})}}]);
|
|
File without changes
|
package/{2400.js → 8753.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[8753],{98753:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s,HistoryMode:()=>r.Z9,dataTenants:()=>r.Yj,environment:()=>r.NZ,metadata:()=>r.Pu,profile:()=>r.N5,search:()=>r.yC,tenant:()=>r.cm,ui:()=>r.ui,user:()=>r.EA});var r=a(87638);const s=r.ZP}}]);
|