@reltio/remotes 1.4.1348 → 1.4.1349
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/1635.js +2 -0
- package/{807.js.map → 1635.js.map} +1 -1
- package/1667.js +2 -0
- package/1667.js.map +1 -0
- package/1920.js +1 -1
- package/2114.js +1 -1
- package/2378.js +1 -2
- package/2378.js.map +1 -1
- package/2493.js +1 -1
- package/2890.js +1 -1
- package/2986.js +3 -0
- package/{3537.js.LICENSE.txt → 2986.js.LICENSE.txt} +0 -0
- package/2986.js.map +1 -0
- package/3307.js +1 -1
- package/350.js +1 -1
- package/3509.js +1 -1
- package/3509.js.map +1 -1
- package/3540.js +1 -1
- package/3540.js.map +1 -1
- package/3640.js +1 -1
- package/3786.js +1 -1
- package/4007.js +1 -1
- package/4038.js +1 -1
- package/4038.js.map +1 -1
- package/4115.js +1 -1
- package/4143.js +2 -0
- package/4143.js.map +1 -0
- package/447.js +1 -1
- package/4689.js +1 -1
- package/4843.js +1 -1
- package/4889.js +1 -1
- package/4897.js +2 -0
- package/4897.js.map +1 -0
- package/{4171.js → 5295.js} +2 -2
- package/5295.js.map +1 -0
- package/5400.js +1 -1
- package/5501.js +2 -0
- package/5501.js.map +1 -0
- package/5709.js +1 -1
- package/5709.js.map +1 -1
- package/5720.js +1 -1
- package/5937.js +1 -1
- package/6103.js +1 -1
- package/612.js +1 -1
- package/6401.js +3 -0
- package/{2378.js.LICENSE.txt → 6401.js.LICENSE.txt} +0 -0
- package/6401.js.map +1 -0
- package/6403.js +2 -0
- package/6403.js.map +1 -0
- package/6619.js +2 -0
- package/6619.js.map +1 -0
- package/{2605.js → 7601.js} +2 -2
- package/7601.js.map +1 -0
- package/{7741.js → 7776.js} +2 -2
- package/7776.js.map +1 -0
- package/7937.js +1 -1
- package/8051.js +1 -1
- package/8532.js +1 -1
- package/8532.js.map +1 -1
- package/8969.js +1 -1
- package/8969.js.map +1 -1
- package/9043.js +1 -1
- package/9417.js +1 -1
- package/9431.js +1 -1
- package/9606.js +1 -1
- package/9630.js +1 -1
- package/98.js +1 -1
- package/main.js +1 -1
- package/main.js.map +1 -1
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/remoteEntry.js.map +1 -1
- package/2605.js.map +0 -1
- package/3537.js +0 -3
- package/3537.js.map +0 -1
- package/3698.js +0 -2
- package/3698.js.map +0 -1
- package/4171.js.map +0 -1
- package/4277.js +0 -2
- package/4277.js.map +0 -1
- package/4730.js +0 -2
- package/4730.js.map +0 -1
- package/5058.js +0 -2
- package/5058.js.map +0 -1
- package/6523.js +0 -2
- package/6523.js.map +0 -1
- package/7004.js +0 -2
- package/7004.js.map +0 -1
- package/7741.js.map +0 -1
- package/8047.js +0 -2
- package/8047.js.map +0 -1
- package/807.js +0 -2
- package/8903.js +0 -2
- package/8903.js.map +0 -1
package/8969.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[8969],{43434:(e,t,o)=>{o.d(t,{Z:()=>d});var n=o(7896),r=o(59740),i=o(24328),a=(o(13980),o(6277)),s=o(15459);const c=(0,o(3752).Z)(i.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var l=i.forwardRef((function(e,t){var o,s=e.alt,l=e.children,d=e.classes,u=e.className,m=e.component,p=void 0===m?"div":m,f=e.imgProps,v=e.sizes,g=e.src,h=e.srcSet,b=e.variant,Z=void 0===b?"circle":b,y=(0,r.Z)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),x=function(e){var t=e.src,o=e.srcSet,n=i.useState(!1),r=n[0],a=n[1];return i.useEffect((function(){if(t||o){a(!1);var e=!0,n=new Image;return n.src=t,n.srcSet=o,n.onload=function(){e&&a("loaded")},n.onerror=function(){e&&a("error")},function(){e=!1}}}),[t,o]),r}({src:g,srcSet:h}),C=g||h,N=C&&"error"!==x;return o=N?i.createElement("img",(0,n.Z)({alt:s,src:g,srcSet:h,sizes:v,className:d.img},f)):null!=l?l:C&&s?s[0]:i.createElement(c,{className:d.fallback}),i.createElement(p,(0,n.Z)({className:(0,a.Z)(d.root,d.system,d[Z],u,!N&&d.colorDefault),ref:t},y),o)}));const d=(0,s.Z)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}}),{name:"MuiAvatar"})(l)},38402:(e,t,o)=>{o.d(t,{Z:()=>v});var n=o(7896),r=o(59740),i=o(24328),a=(o(13980),o(6277)),s=o(15459),c=o(43805),l=o(33996),d=o(85974),u=o(20413),m=o(75047),p="undefined"==typeof window?i.useEffect:i.useLayoutEffect,f=i.forwardRef((function(e,t){var o=e.alignItems,s=void 0===o?"center":o,f=e.autoFocus,v=void 0!==f&&f,g=e.button,h=void 0!==g&&g,b=e.children,Z=e.classes,y=e.className,x=e.component,C=e.ContainerComponent,N=void 0===C?"li":C,S=e.ContainerProps,I=(S=void 0===S?{}:S).className,k=(0,r.Z)(S,["className"]),w=e.dense,E=void 0!==w&&w,R=e.disabled,D=void 0!==R&&R,z=e.disableGutters,A=void 0!==z&&z,L=e.divider,
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[8969],{43434:(e,t,o)=>{o.d(t,{Z:()=>d});var n=o(7896),r=o(59740),i=o(24328),a=(o(13980),o(6277)),s=o(15459);const c=(0,o(3752).Z)(i.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var l=i.forwardRef((function(e,t){var o,s=e.alt,l=e.children,d=e.classes,u=e.className,m=e.component,p=void 0===m?"div":m,f=e.imgProps,v=e.sizes,g=e.src,h=e.srcSet,b=e.variant,Z=void 0===b?"circle":b,y=(0,r.Z)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),x=function(e){var t=e.src,o=e.srcSet,n=i.useState(!1),r=n[0],a=n[1];return i.useEffect((function(){if(t||o){a(!1);var e=!0,n=new Image;return n.src=t,n.srcSet=o,n.onload=function(){e&&a("loaded")},n.onerror=function(){e&&a("error")},function(){e=!1}}}),[t,o]),r}({src:g,srcSet:h}),C=g||h,N=C&&"error"!==x;return o=N?i.createElement("img",(0,n.Z)({alt:s,src:g,srcSet:h,sizes:v,className:d.img},f)):null!=l?l:C&&s?s[0]:i.createElement(c,{className:d.fallback}),i.createElement(p,(0,n.Z)({className:(0,a.Z)(d.root,d.system,d[Z],u,!N&&d.colorDefault),ref:t},y),o)}));const d=(0,s.Z)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}}),{name:"MuiAvatar"})(l)},38402:(e,t,o)=>{o.d(t,{Z:()=>v});var n=o(7896),r=o(59740),i=o(24328),a=(o(13980),o(6277)),s=o(15459),c=o(43805),l=o(33996),d=o(85974),u=o(20413),m=o(75047),p="undefined"==typeof window?i.useEffect:i.useLayoutEffect,f=i.forwardRef((function(e,t){var o=e.alignItems,s=void 0===o?"center":o,f=e.autoFocus,v=void 0!==f&&f,g=e.button,h=void 0!==g&&g,b=e.children,Z=e.classes,y=e.className,x=e.component,C=e.ContainerComponent,N=void 0===C?"li":C,S=e.ContainerProps,I=(S=void 0===S?{}:S).className,k=(0,r.Z)(S,["className"]),w=e.dense,E=void 0!==w&&w,R=e.disabled,D=void 0!==R&&R,z=e.disableGutters,A=void 0!==z&&z,L=e.divider,F=void 0!==L&&L,P=e.focusVisibleClassName,V=e.selected,$=void 0!==V&&V,M=(0,r.Z)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),j=i.useContext(u.Z),T={dense:E||j.dense||!1,alignItems:s},_=i.useRef(null);p((function(){v&&_.current&&_.current.focus()}),[v]);var B=i.Children.toArray(b),G=B.length&&(0,l.Z)(B[B.length-1],["ListItemSecondaryAction"]),q=i.useCallback((function(e){_.current=m.findDOMNode(e)}),[]),H=(0,d.Z)(q,t),O=(0,n.Z)({className:(0,a.Z)(Z.root,y,T.dense&&Z.dense,!A&&Z.gutters,F&&Z.divider,D&&Z.disabled,h&&Z.button,"center"!==s&&Z.alignItemsFlexStart,G&&Z.secondaryAction,$&&Z.selected),disabled:D},M),J=x||"li";return h&&(O.component=x||"div",O.focusVisibleClassName=(0,a.Z)(Z.focusVisible,P),J=c.Z),G?(J=O.component||x?J:"div","li"===N&&("li"===J?J="div":"li"===O.component&&(O.component="div")),i.createElement(u.Z.Provider,{value:T},i.createElement(N,(0,n.Z)({className:(0,a.Z)(Z.container,I),ref:H},k),i.createElement(J,O,B),B.pop()))):i.createElement(u.Z.Provider,{value:T},i.createElement(J,(0,n.Z)({ref:H},O),B))}));const v=(0,s.Z)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(f)},69112:(e,t,o)=>{o.d(t,{Z:()=>m});var n=o(7896),r=o(59740),i=o(24328),a=(o(13980),o(6277));const s=(0,o(3752).Z)(i.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var c=o(15459),l=o(43805),d=o(97580),u=i.forwardRef((function(e,t){var o=e.active,c=void 0!==o&&o,u=e.children,m=e.classes,p=e.className,f=e.direction,v=void 0===f?"asc":f,g=e.hideSortIcon,h=void 0!==g&&g,b=e.IconComponent,Z=void 0===b?s:b,y=(0,r.Z)(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return i.createElement(l.Z,(0,n.Z)({className:(0,a.Z)(m.root,p,c&&m.active),component:"span",disableRipple:!0,ref:t},y),u,h&&!c?null:i.createElement(Z,{className:(0,a.Z)(m.icon,m["iconDirection".concat((0,d.Z)(v))])}))}));const m=(0,c.Z)((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:.5}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(u)}}]);
|
|
2
2
|
//# sourceMappingURL=8969.js.map
|
package/8969.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"8969.js","mappings":"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","sources":["webpack://@reltio/remotes/../../node_modules/@material-ui/core/esm/internal/svg-icons/Person.js","webpack://@reltio/remotes/../../node_modules/@material-ui/core/esm/Avatar/Avatar.js","webpack://@reltio/remotes/../../node_modules/@material-ui/core/esm/ListItem/ListItem.js","webpack://@reltio/remotes/../../node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDownward.js","webpack://@reltio/remotes/../../node_modules/@material-ui/core/esm/TableSortLabel/TableSortLabel.js","webpack://@reltio/remotes/../../node_modules/@material-ui/core/esm/utils/isMuiElement.js"],"sourcesContent":["import * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z\"\n}), 'Person');","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { chainPropTypes } from '@material-ui/utils';\nimport withStyles from '../styles/withStyles';\nimport Person from '../internal/svg-icons/Person';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n position: 'relative',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n width: 40,\n height: 40,\n fontFamily: theme.typography.fontFamily,\n fontSize: theme.typography.pxToRem(20),\n lineHeight: 1,\n borderRadius: '50%',\n overflow: 'hidden',\n userSelect: 'none'\n },\n\n /* Styles applied to the root element if not `src` or `srcSet`. */\n colorDefault: {\n color: theme.palette.background.default,\n backgroundColor: theme.palette.type === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]\n },\n\n /* Styles applied to the root element if `variant=\"circle\"`. */\n circle: {},\n\n /* Styles applied to the root element if `variant=\"circular\"`. */\n circular: {},\n\n /* Styles applied to the root element if `variant=\"rounded\"`. */\n rounded: {\n borderRadius: theme.shape.borderRadius\n },\n\n /* Styles applied to the root element if `variant=\"square\"`. */\n square: {\n borderRadius: 0\n },\n\n /* Styles applied to the img element if either `src` or `srcSet` is defined. */\n img: {\n width: '100%',\n height: '100%',\n textAlign: 'center',\n // Handle non-square image. The property isn't supported by IE 11.\n objectFit: 'cover',\n // Hide alt text.\n color: 'transparent',\n // Hide the image broken icon, only works on Chrome.\n textIndent: 10000\n },\n\n /* Styles applied to the fallback icon */\n fallback: {\n width: '75%',\n height: '75%'\n }\n };\n};\n\nfunction useLoaded(_ref) {\n var src = _ref.src,\n srcSet = _ref.srcSet;\n\n var _React$useState = React.useState(false),\n loaded = _React$useState[0],\n setLoaded = _React$useState[1];\n\n React.useEffect(function () {\n if (!src && !srcSet) {\n return undefined;\n }\n\n setLoaded(false);\n var active = true;\n var image = new Image();\n image.src = src;\n image.srcSet = srcSet;\n\n image.onload = function () {\n if (!active) {\n return;\n }\n\n setLoaded('loaded');\n };\n\n image.onerror = function () {\n if (!active) {\n return;\n }\n\n setLoaded('error');\n };\n\n return function () {\n active = false;\n };\n }, [src, srcSet]);\n return loaded;\n}\n\nvar Avatar = /*#__PURE__*/React.forwardRef(function Avatar(props, ref) {\n var alt = props.alt,\n childrenProp = props.children,\n classes = props.classes,\n className = props.className,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'div' : _props$component,\n imgProps = props.imgProps,\n sizes = props.sizes,\n src = props.src,\n srcSet = props.srcSet,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'circle' : _props$variant,\n other = _objectWithoutProperties(props, [\"alt\", \"children\", \"classes\", \"className\", \"component\", \"imgProps\", \"sizes\", \"src\", \"srcSet\", \"variant\"]);\n\n var children = null; // Use a hook instead of onError on the img element to support server-side rendering.\n\n var loaded = useLoaded({\n src: src,\n srcSet: srcSet\n });\n var hasImg = src || srcSet;\n var hasImgNotFailing = hasImg && loaded !== 'error';\n\n if (hasImgNotFailing) {\n children = /*#__PURE__*/React.createElement(\"img\", _extends({\n alt: alt,\n src: src,\n srcSet: srcSet,\n sizes: sizes,\n className: classes.img\n }, imgProps));\n } else if (childrenProp != null) {\n children = childrenProp;\n } else if (hasImg && alt) {\n children = alt[0];\n } else {\n children = /*#__PURE__*/React.createElement(Person, {\n className: classes.fallback\n });\n }\n\n return /*#__PURE__*/React.createElement(Component, _extends({\n className: clsx(classes.root, classes.system, classes[variant], className, !hasImgNotFailing && classes.colorDefault),\n ref: ref\n }, other), children);\n});\nprocess.env.NODE_ENV !== \"production\" ? Avatar.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * Used in combination with `src` or `srcSet` to\n * provide an alt attribute for the rendered `img` element.\n */\n alt: PropTypes.string,\n\n /**\n * Used to render icon or text elements inside the Avatar if `src` is not set.\n * This can be an element, or just a string.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: chainPropTypes(PropTypes.object, function (props) {\n var classes = props.classes;\n\n if (classes == null) {\n return null;\n }\n\n if (classes.circle != null && // 2 classnames? one from withStyles the other must be custom\n classes.circle.split(' ').length > 1) {\n throw new Error(\"Material-UI: The `circle` class was deprecated. Use `circular` instead.\");\n }\n\n return null;\n }),\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * Attributes applied to the `img` element if the component is used to display an image.\n * It can be used to listen for the loading error event.\n */\n imgProps: PropTypes.object,\n\n /**\n * The `sizes` attribute for the `img` element.\n */\n sizes: PropTypes.string,\n\n /**\n * The `src` attribute for the `img` element.\n */\n src: PropTypes.string,\n\n /**\n * The `srcSet` attribute for the `img` element.\n * Use this attribute for responsive image display.\n */\n srcSet: PropTypes.string,\n\n /**\n * The shape of the avatar.\n */\n variant: chainPropTypes(PropTypes.oneOf(['circle', 'circular', 'rounded', 'square']), function (props) {\n var variant = props.variant;\n\n if (variant === 'circle') {\n throw new Error('Material-UI: `variant=\"circle\"` was deprecated. Use `variant=\"circular\"` instead.');\n }\n\n return null;\n })\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiAvatar'\n})(Avatar);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { chainPropTypes } from '@material-ui/utils';\nimport withStyles from '../styles/withStyles';\nimport ButtonBase from '../ButtonBase';\nimport isMuiElement from '../utils/isMuiElement';\nimport useForkRef from '../utils/useForkRef';\nimport ListContext from '../List/ListContext';\nimport * as ReactDOM from 'react-dom';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the (normally root) `component` element. May be wrapped by a `container`. */\n root: {\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'center',\n position: 'relative',\n textDecoration: 'none',\n width: '100%',\n boxSizing: 'border-box',\n textAlign: 'left',\n paddingTop: 8,\n paddingBottom: 8,\n '&$focusVisible': {\n backgroundColor: theme.palette.action.selected\n },\n '&$selected, &$selected:hover': {\n backgroundColor: theme.palette.action.selected\n },\n '&$disabled': {\n opacity: 0.5\n }\n },\n\n /* Styles applied to the `container` element if `children` includes `ListItemSecondaryAction`. */\n container: {\n position: 'relative'\n },\n\n /* Pseudo-class applied to the `component`'s `focusVisibleClassName` prop if `button={true}`. */\n focusVisible: {},\n\n /* Styles applied to the `component` element if dense. */\n dense: {\n paddingTop: 4,\n paddingBottom: 4\n },\n\n /* Styles applied to the `component` element if `alignItems=\"flex-start\"`. */\n alignItemsFlexStart: {\n alignItems: 'flex-start'\n },\n\n /* Pseudo-class applied to the inner `component` element if `disabled={true}`. */\n disabled: {},\n\n /* Styles applied to the inner `component` element if `divider={true}`. */\n divider: {\n borderBottom: \"1px solid \".concat(theme.palette.divider),\n backgroundClip: 'padding-box'\n },\n\n /* Styles applied to the inner `component` element if `disableGutters={false}`. */\n gutters: {\n paddingLeft: 16,\n paddingRight: 16\n },\n\n /* Styles applied to the inner `component` element if `button={true}`. */\n button: {\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.shortest\n }),\n '&:hover': {\n textDecoration: 'none',\n backgroundColor: theme.palette.action.hover,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n },\n\n /* Styles applied to the `component` element if `children` includes `ListItemSecondaryAction`. */\n secondaryAction: {\n // Add some space to avoid collision as `ListItemSecondaryAction`\n // is absolutely positioned.\n paddingRight: 48\n },\n\n /* Pseudo-class applied to the root element if `selected={true}`. */\n selected: {}\n };\n};\nvar useEnhancedEffect = typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect;\n/**\n * Uses an additional container component if `ListItemSecondaryAction` is the last child.\n */\n\nvar ListItem = /*#__PURE__*/React.forwardRef(function ListItem(props, ref) {\n var _props$alignItems = props.alignItems,\n alignItems = _props$alignItems === void 0 ? 'center' : _props$alignItems,\n _props$autoFocus = props.autoFocus,\n autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus,\n _props$button = props.button,\n button = _props$button === void 0 ? false : _props$button,\n childrenProp = props.children,\n classes = props.classes,\n className = props.className,\n componentProp = props.component,\n _props$ContainerCompo = props.ContainerComponent,\n ContainerComponent = _props$ContainerCompo === void 0 ? 'li' : _props$ContainerCompo,\n _props$ContainerProps = props.ContainerProps;\n _props$ContainerProps = _props$ContainerProps === void 0 ? {} : _props$ContainerProps;\n\n var ContainerClassName = _props$ContainerProps.className,\n ContainerProps = _objectWithoutProperties(_props$ContainerProps, [\"className\"]),\n _props$dense = props.dense,\n dense = _props$dense === void 0 ? false : _props$dense,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n _props$disableGutters = props.disableGutters,\n disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters,\n _props$divider = props.divider,\n divider = _props$divider === void 0 ? false : _props$divider,\n focusVisibleClassName = props.focusVisibleClassName,\n _props$selected = props.selected,\n selected = _props$selected === void 0 ? false : _props$selected,\n other = _objectWithoutProperties(props, [\"alignItems\", \"autoFocus\", \"button\", \"children\", \"classes\", \"className\", \"component\", \"ContainerComponent\", \"ContainerProps\", \"dense\", \"disabled\", \"disableGutters\", \"divider\", \"focusVisibleClassName\", \"selected\"]);\n\n var context = React.useContext(ListContext);\n var childContext = {\n dense: dense || context.dense || false,\n alignItems: alignItems\n };\n var listItemRef = React.useRef(null);\n useEnhancedEffect(function () {\n if (autoFocus) {\n if (listItemRef.current) {\n listItemRef.current.focus();\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('Material-UI: Unable to set focus to a ListItem whose component has not been rendered.');\n }\n }\n }, [autoFocus]);\n var children = React.Children.toArray(childrenProp);\n var hasSecondaryAction = children.length && isMuiElement(children[children.length - 1], ['ListItemSecondaryAction']);\n var handleOwnRef = React.useCallback(function (instance) {\n // #StrictMode ready\n listItemRef.current = ReactDOM.findDOMNode(instance);\n }, []);\n var handleRef = useForkRef(handleOwnRef, ref);\n\n var componentProps = _extends({\n className: clsx(classes.root, className, childContext.dense && classes.dense, !disableGutters && classes.gutters, divider && classes.divider, disabled && classes.disabled, button && classes.button, alignItems !== \"center\" && classes.alignItemsFlexStart, hasSecondaryAction && classes.secondaryAction, selected && classes.selected),\n disabled: disabled\n }, other);\n\n var Component = componentProp || 'li';\n\n if (button) {\n componentProps.component = componentProp || 'div';\n componentProps.focusVisibleClassName = clsx(classes.focusVisible, focusVisibleClassName);\n Component = ButtonBase;\n }\n\n if (hasSecondaryAction) {\n // Use div by default.\n Component = !componentProps.component && !componentProp ? 'div' : Component; // Avoid nesting of li > li.\n\n if (ContainerComponent === 'li') {\n if (Component === 'li') {\n Component = 'div';\n } else if (componentProps.component === 'li') {\n componentProps.component = 'div';\n }\n }\n\n return /*#__PURE__*/React.createElement(ListContext.Provider, {\n value: childContext\n }, /*#__PURE__*/React.createElement(ContainerComponent, _extends({\n className: clsx(classes.container, ContainerClassName),\n ref: handleRef\n }, ContainerProps), /*#__PURE__*/React.createElement(Component, componentProps, children), children.pop()));\n }\n\n return /*#__PURE__*/React.createElement(ListContext.Provider, {\n value: childContext\n }, /*#__PURE__*/React.createElement(Component, _extends({\n ref: handleRef\n }, componentProps), children));\n});\nprocess.env.NODE_ENV !== \"production\" ? ListItem.propTypes = {\n /**\n * Defines the `align-items` style property.\n */\n alignItems: PropTypes.oneOf(['flex-start', 'center']),\n\n /**\n * If `true`, the list item will be focused during the first mount.\n * Focus will also be triggered if the value changes from false to true.\n */\n autoFocus: PropTypes.bool,\n\n /**\n * If `true`, the list item will be a button (using `ButtonBase`). Props intended\n * for `ButtonBase` can then be applied to `ListItem`.\n */\n button: PropTypes.bool,\n\n /**\n * The content of the component. If a `ListItemSecondaryAction` is used it must\n * be the last child.\n */\n children: chainPropTypes(PropTypes.node, function (props) {\n var children = React.Children.toArray(props.children); // React.Children.toArray(props.children).findLastIndex(isListItemSecondaryAction)\n\n var secondaryActionIndex = -1;\n\n for (var i = children.length - 1; i >= 0; i -= 1) {\n var child = children[i];\n\n if (isMuiElement(child, ['ListItemSecondaryAction'])) {\n secondaryActionIndex = i;\n break;\n }\n } // is ListItemSecondaryAction the last child of ListItem\n\n\n if (secondaryActionIndex !== -1 && secondaryActionIndex !== children.length - 1) {\n return new Error('Material-UI: You used an element after ListItemSecondaryAction. ' + 'For ListItem to detect that it has a secondary action ' + 'you must pass it as the last child to ListItem.');\n }\n\n return null;\n }),\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n * By default, it's a `li` when `button` is `false` and a `div` when `button` is `true`.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * The container component used when a `ListItemSecondaryAction` is the last child.\n */\n ContainerComponent: PropTypes.elementType,\n\n /**\n * Props applied to the container component if used.\n */\n ContainerProps: PropTypes.object,\n\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input will be used.\n */\n dense: PropTypes.bool,\n\n /**\n * If `true`, the list item will be disabled.\n */\n disabled: PropTypes.bool,\n\n /**\n * If `true`, the left and right padding is removed.\n */\n disableGutters: PropTypes.bool,\n\n /**\n * If `true`, a 1px light border is added to the bottom of the list item.\n */\n divider: PropTypes.bool,\n\n /**\n * @ignore\n */\n focusVisibleClassName: PropTypes.string,\n\n /**\n * Use to apply selected styling.\n */\n selected: PropTypes.bool\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiListItem'\n})(ListItem);","import * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z\"\n}), 'ArrowDownward');","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport ArrowDownwardIcon from '../internal/svg-icons/ArrowDownward';\nimport withStyles from '../styles/withStyles';\nimport ButtonBase from '../ButtonBase';\nimport capitalize from '../utils/capitalize';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n cursor: 'pointer',\n display: 'inline-flex',\n justifyContent: 'flex-start',\n flexDirection: 'inherit',\n alignItems: 'center',\n '&:focus': {\n color: theme.palette.text.secondary\n },\n '&:hover': {\n color: theme.palette.text.secondary,\n '& $icon': {\n opacity: 0.5\n }\n },\n '&$active': {\n color: theme.palette.text.primary,\n // && instead of & is a workaround for https://github.com/cssinjs/jss/issues/1045\n '&& $icon': {\n opacity: 1,\n color: theme.palette.text.secondary\n }\n }\n },\n\n /* Pseudo-class applied to the root element if `active={true}`. */\n active: {},\n\n /* Styles applied to the icon component. */\n icon: {\n fontSize: 18,\n marginRight: 4,\n marginLeft: 4,\n opacity: 0,\n transition: theme.transitions.create(['opacity', 'transform'], {\n duration: theme.transitions.duration.shorter\n }),\n userSelect: 'none'\n },\n\n /* Styles applied to the icon component if `direction=\"desc\"`. */\n iconDirectionDesc: {\n transform: 'rotate(0deg)'\n },\n\n /* Styles applied to the icon component if `direction=\"asc\"`. */\n iconDirectionAsc: {\n transform: 'rotate(180deg)'\n }\n };\n};\n/**\n * A button based label for placing inside `TableCell` for column sorting.\n */\n\nvar TableSortLabel = /*#__PURE__*/React.forwardRef(function TableSortLabel(props, ref) {\n var _props$active = props.active,\n active = _props$active === void 0 ? false : _props$active,\n children = props.children,\n classes = props.classes,\n className = props.className,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'asc' : _props$direction,\n _props$hideSortIcon = props.hideSortIcon,\n hideSortIcon = _props$hideSortIcon === void 0 ? false : _props$hideSortIcon,\n _props$IconComponent = props.IconComponent,\n IconComponent = _props$IconComponent === void 0 ? ArrowDownwardIcon : _props$IconComponent,\n other = _objectWithoutProperties(props, [\"active\", \"children\", \"classes\", \"className\", \"direction\", \"hideSortIcon\", \"IconComponent\"]);\n\n return /*#__PURE__*/React.createElement(ButtonBase, _extends({\n className: clsx(classes.root, className, active && classes.active),\n component: \"span\",\n disableRipple: true,\n ref: ref\n }, other), children, hideSortIcon && !active ? null : /*#__PURE__*/React.createElement(IconComponent, {\n className: clsx(classes.icon, classes[\"iconDirection\".concat(capitalize(direction))])\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? TableSortLabel.propTypes = {\n /**\n * If `true`, the label will have the active styling (should be true for the sorted column).\n */\n active: PropTypes.bool,\n\n /**\n * Label contents, the arrow will be appended automatically.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The current sort direction.\n */\n direction: PropTypes.oneOf(['asc', 'desc']),\n\n /**\n * Hide sort icon when active is false.\n */\n hideSortIcon: PropTypes.bool,\n\n /**\n * Sort icon to use.\n */\n IconComponent: PropTypes.elementType\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiTableSortLabel'\n})(TableSortLabel);","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf(element.type.muiName) !== -1;\n}"],"names":["d","Avatar","props","ref","children","alt","childrenProp","classes","className","_props$component","component","Component","imgProps","sizes","src","srcSet","_props$variant","variant","other","loaded","_ref","_React$useState","setLoaded","active","image","Image","onload","onerror","useLoaded","hasImg","hasImgNotFailing","img","Person","fallback","root","system","colorDefault","withStyles","theme","position","display","alignItems","justifyContent","flexShrink","width","height","fontFamily","typography","fontSize","pxToRem","lineHeight","borderRadius","overflow","userSelect","color","palette","background","default","backgroundColor","type","grey","circle","circular","rounded","shape","square","textAlign","objectFit","textIndent","name","useEnhancedEffect","window","ListItem","_props$alignItems","_props$autoFocus","autoFocus","_props$button","button","componentProp","_props$ContainerCompo","ContainerComponent","_props$ContainerProps","ContainerProps","ContainerClassName","_props$dense","dense","_props$disabled","disabled","_props$disableGutters","disableGutters","_props$divider","divider","focusVisibleClassName","_props$selected","selected","context","childContext","listItemRef","current","focus","hasSecondaryAction","length","handleOwnRef","instance","handleRef","componentProps","gutters","alignItemsFlexStart","secondaryAction","focusVisible","value","container","pop","textDecoration","boxSizing","paddingTop","paddingBottom","action","opacity","borderBottom","concat","backgroundClip","paddingLeft","paddingRight","transition","transitions","create","duration","shortest","hover","TableSortLabel","_props$active","_props$direction","direction","_props$hideSortIcon","hideSortIcon","_props$IconComponent","IconComponent","ArrowDownward","ButtonBase","disableRipple","icon","capitalize","cursor","flexDirection","text","secondary","primary","marginRight","marginLeft","shorter","iconDirectionDesc","transform","iconDirectionAsc","isMuiElement","element","muiNames","indexOf","muiName"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"8969.js","mappings":"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","sources":["webpack://@reltio/remotes/../../node_modules/@material-ui/core/esm/internal/svg-icons/Person.js","webpack://@reltio/remotes/../../node_modules/@material-ui/core/esm/Avatar/Avatar.js","webpack://@reltio/remotes/../../node_modules/@material-ui/core/esm/ListItem/ListItem.js","webpack://@reltio/remotes/../../node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDownward.js","webpack://@reltio/remotes/../../node_modules/@material-ui/core/esm/TableSortLabel/TableSortLabel.js"],"sourcesContent":["import * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z\"\n}), 'Person');","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { chainPropTypes } from '@material-ui/utils';\nimport withStyles from '../styles/withStyles';\nimport Person from '../internal/svg-icons/Person';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n position: 'relative',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n width: 40,\n height: 40,\n fontFamily: theme.typography.fontFamily,\n fontSize: theme.typography.pxToRem(20),\n lineHeight: 1,\n borderRadius: '50%',\n overflow: 'hidden',\n userSelect: 'none'\n },\n\n /* Styles applied to the root element if not `src` or `srcSet`. */\n colorDefault: {\n color: theme.palette.background.default,\n backgroundColor: theme.palette.type === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]\n },\n\n /* Styles applied to the root element if `variant=\"circle\"`. */\n circle: {},\n\n /* Styles applied to the root element if `variant=\"circular\"`. */\n circular: {},\n\n /* Styles applied to the root element if `variant=\"rounded\"`. */\n rounded: {\n borderRadius: theme.shape.borderRadius\n },\n\n /* Styles applied to the root element if `variant=\"square\"`. */\n square: {\n borderRadius: 0\n },\n\n /* Styles applied to the img element if either `src` or `srcSet` is defined. */\n img: {\n width: '100%',\n height: '100%',\n textAlign: 'center',\n // Handle non-square image. The property isn't supported by IE 11.\n objectFit: 'cover',\n // Hide alt text.\n color: 'transparent',\n // Hide the image broken icon, only works on Chrome.\n textIndent: 10000\n },\n\n /* Styles applied to the fallback icon */\n fallback: {\n width: '75%',\n height: '75%'\n }\n };\n};\n\nfunction useLoaded(_ref) {\n var src = _ref.src,\n srcSet = _ref.srcSet;\n\n var _React$useState = React.useState(false),\n loaded = _React$useState[0],\n setLoaded = _React$useState[1];\n\n React.useEffect(function () {\n if (!src && !srcSet) {\n return undefined;\n }\n\n setLoaded(false);\n var active = true;\n var image = new Image();\n image.src = src;\n image.srcSet = srcSet;\n\n image.onload = function () {\n if (!active) {\n return;\n }\n\n setLoaded('loaded');\n };\n\n image.onerror = function () {\n if (!active) {\n return;\n }\n\n setLoaded('error');\n };\n\n return function () {\n active = false;\n };\n }, [src, srcSet]);\n return loaded;\n}\n\nvar Avatar = /*#__PURE__*/React.forwardRef(function Avatar(props, ref) {\n var alt = props.alt,\n childrenProp = props.children,\n classes = props.classes,\n className = props.className,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'div' : _props$component,\n imgProps = props.imgProps,\n sizes = props.sizes,\n src = props.src,\n srcSet = props.srcSet,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'circle' : _props$variant,\n other = _objectWithoutProperties(props, [\"alt\", \"children\", \"classes\", \"className\", \"component\", \"imgProps\", \"sizes\", \"src\", \"srcSet\", \"variant\"]);\n\n var children = null; // Use a hook instead of onError on the img element to support server-side rendering.\n\n var loaded = useLoaded({\n src: src,\n srcSet: srcSet\n });\n var hasImg = src || srcSet;\n var hasImgNotFailing = hasImg && loaded !== 'error';\n\n if (hasImgNotFailing) {\n children = /*#__PURE__*/React.createElement(\"img\", _extends({\n alt: alt,\n src: src,\n srcSet: srcSet,\n sizes: sizes,\n className: classes.img\n }, imgProps));\n } else if (childrenProp != null) {\n children = childrenProp;\n } else if (hasImg && alt) {\n children = alt[0];\n } else {\n children = /*#__PURE__*/React.createElement(Person, {\n className: classes.fallback\n });\n }\n\n return /*#__PURE__*/React.createElement(Component, _extends({\n className: clsx(classes.root, classes.system, classes[variant], className, !hasImgNotFailing && classes.colorDefault),\n ref: ref\n }, other), children);\n});\nprocess.env.NODE_ENV !== \"production\" ? Avatar.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * Used in combination with `src` or `srcSet` to\n * provide an alt attribute for the rendered `img` element.\n */\n alt: PropTypes.string,\n\n /**\n * Used to render icon or text elements inside the Avatar if `src` is not set.\n * This can be an element, or just a string.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: chainPropTypes(PropTypes.object, function (props) {\n var classes = props.classes;\n\n if (classes == null) {\n return null;\n }\n\n if (classes.circle != null && // 2 classnames? one from withStyles the other must be custom\n classes.circle.split(' ').length > 1) {\n throw new Error(\"Material-UI: The `circle` class was deprecated. Use `circular` instead.\");\n }\n\n return null;\n }),\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * Attributes applied to the `img` element if the component is used to display an image.\n * It can be used to listen for the loading error event.\n */\n imgProps: PropTypes.object,\n\n /**\n * The `sizes` attribute for the `img` element.\n */\n sizes: PropTypes.string,\n\n /**\n * The `src` attribute for the `img` element.\n */\n src: PropTypes.string,\n\n /**\n * The `srcSet` attribute for the `img` element.\n * Use this attribute for responsive image display.\n */\n srcSet: PropTypes.string,\n\n /**\n * The shape of the avatar.\n */\n variant: chainPropTypes(PropTypes.oneOf(['circle', 'circular', 'rounded', 'square']), function (props) {\n var variant = props.variant;\n\n if (variant === 'circle') {\n throw new Error('Material-UI: `variant=\"circle\"` was deprecated. Use `variant=\"circular\"` instead.');\n }\n\n return null;\n })\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiAvatar'\n})(Avatar);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { chainPropTypes } from '@material-ui/utils';\nimport withStyles from '../styles/withStyles';\nimport ButtonBase from '../ButtonBase';\nimport isMuiElement from '../utils/isMuiElement';\nimport useForkRef from '../utils/useForkRef';\nimport ListContext from '../List/ListContext';\nimport * as ReactDOM from 'react-dom';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the (normally root) `component` element. May be wrapped by a `container`. */\n root: {\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'center',\n position: 'relative',\n textDecoration: 'none',\n width: '100%',\n boxSizing: 'border-box',\n textAlign: 'left',\n paddingTop: 8,\n paddingBottom: 8,\n '&$focusVisible': {\n backgroundColor: theme.palette.action.selected\n },\n '&$selected, &$selected:hover': {\n backgroundColor: theme.palette.action.selected\n },\n '&$disabled': {\n opacity: 0.5\n }\n },\n\n /* Styles applied to the `container` element if `children` includes `ListItemSecondaryAction`. */\n container: {\n position: 'relative'\n },\n\n /* Pseudo-class applied to the `component`'s `focusVisibleClassName` prop if `button={true}`. */\n focusVisible: {},\n\n /* Styles applied to the `component` element if dense. */\n dense: {\n paddingTop: 4,\n paddingBottom: 4\n },\n\n /* Styles applied to the `component` element if `alignItems=\"flex-start\"`. */\n alignItemsFlexStart: {\n alignItems: 'flex-start'\n },\n\n /* Pseudo-class applied to the inner `component` element if `disabled={true}`. */\n disabled: {},\n\n /* Styles applied to the inner `component` element if `divider={true}`. */\n divider: {\n borderBottom: \"1px solid \".concat(theme.palette.divider),\n backgroundClip: 'padding-box'\n },\n\n /* Styles applied to the inner `component` element if `disableGutters={false}`. */\n gutters: {\n paddingLeft: 16,\n paddingRight: 16\n },\n\n /* Styles applied to the inner `component` element if `button={true}`. */\n button: {\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.shortest\n }),\n '&:hover': {\n textDecoration: 'none',\n backgroundColor: theme.palette.action.hover,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n },\n\n /* Styles applied to the `component` element if `children` includes `ListItemSecondaryAction`. */\n secondaryAction: {\n // Add some space to avoid collision as `ListItemSecondaryAction`\n // is absolutely positioned.\n paddingRight: 48\n },\n\n /* Pseudo-class applied to the root element if `selected={true}`. */\n selected: {}\n };\n};\nvar useEnhancedEffect = typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect;\n/**\n * Uses an additional container component if `ListItemSecondaryAction` is the last child.\n */\n\nvar ListItem = /*#__PURE__*/React.forwardRef(function ListItem(props, ref) {\n var _props$alignItems = props.alignItems,\n alignItems = _props$alignItems === void 0 ? 'center' : _props$alignItems,\n _props$autoFocus = props.autoFocus,\n autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus,\n _props$button = props.button,\n button = _props$button === void 0 ? false : _props$button,\n childrenProp = props.children,\n classes = props.classes,\n className = props.className,\n componentProp = props.component,\n _props$ContainerCompo = props.ContainerComponent,\n ContainerComponent = _props$ContainerCompo === void 0 ? 'li' : _props$ContainerCompo,\n _props$ContainerProps = props.ContainerProps;\n _props$ContainerProps = _props$ContainerProps === void 0 ? {} : _props$ContainerProps;\n\n var ContainerClassName = _props$ContainerProps.className,\n ContainerProps = _objectWithoutProperties(_props$ContainerProps, [\"className\"]),\n _props$dense = props.dense,\n dense = _props$dense === void 0 ? false : _props$dense,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n _props$disableGutters = props.disableGutters,\n disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters,\n _props$divider = props.divider,\n divider = _props$divider === void 0 ? false : _props$divider,\n focusVisibleClassName = props.focusVisibleClassName,\n _props$selected = props.selected,\n selected = _props$selected === void 0 ? false : _props$selected,\n other = _objectWithoutProperties(props, [\"alignItems\", \"autoFocus\", \"button\", \"children\", \"classes\", \"className\", \"component\", \"ContainerComponent\", \"ContainerProps\", \"dense\", \"disabled\", \"disableGutters\", \"divider\", \"focusVisibleClassName\", \"selected\"]);\n\n var context = React.useContext(ListContext);\n var childContext = {\n dense: dense || context.dense || false,\n alignItems: alignItems\n };\n var listItemRef = React.useRef(null);\n useEnhancedEffect(function () {\n if (autoFocus) {\n if (listItemRef.current) {\n listItemRef.current.focus();\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('Material-UI: Unable to set focus to a ListItem whose component has not been rendered.');\n }\n }\n }, [autoFocus]);\n var children = React.Children.toArray(childrenProp);\n var hasSecondaryAction = children.length && isMuiElement(children[children.length - 1], ['ListItemSecondaryAction']);\n var handleOwnRef = React.useCallback(function (instance) {\n // #StrictMode ready\n listItemRef.current = ReactDOM.findDOMNode(instance);\n }, []);\n var handleRef = useForkRef(handleOwnRef, ref);\n\n var componentProps = _extends({\n className: clsx(classes.root, className, childContext.dense && classes.dense, !disableGutters && classes.gutters, divider && classes.divider, disabled && classes.disabled, button && classes.button, alignItems !== \"center\" && classes.alignItemsFlexStart, hasSecondaryAction && classes.secondaryAction, selected && classes.selected),\n disabled: disabled\n }, other);\n\n var Component = componentProp || 'li';\n\n if (button) {\n componentProps.component = componentProp || 'div';\n componentProps.focusVisibleClassName = clsx(classes.focusVisible, focusVisibleClassName);\n Component = ButtonBase;\n }\n\n if (hasSecondaryAction) {\n // Use div by default.\n Component = !componentProps.component && !componentProp ? 'div' : Component; // Avoid nesting of li > li.\n\n if (ContainerComponent === 'li') {\n if (Component === 'li') {\n Component = 'div';\n } else if (componentProps.component === 'li') {\n componentProps.component = 'div';\n }\n }\n\n return /*#__PURE__*/React.createElement(ListContext.Provider, {\n value: childContext\n }, /*#__PURE__*/React.createElement(ContainerComponent, _extends({\n className: clsx(classes.container, ContainerClassName),\n ref: handleRef\n }, ContainerProps), /*#__PURE__*/React.createElement(Component, componentProps, children), children.pop()));\n }\n\n return /*#__PURE__*/React.createElement(ListContext.Provider, {\n value: childContext\n }, /*#__PURE__*/React.createElement(Component, _extends({\n ref: handleRef\n }, componentProps), children));\n});\nprocess.env.NODE_ENV !== \"production\" ? ListItem.propTypes = {\n /**\n * Defines the `align-items` style property.\n */\n alignItems: PropTypes.oneOf(['flex-start', 'center']),\n\n /**\n * If `true`, the list item will be focused during the first mount.\n * Focus will also be triggered if the value changes from false to true.\n */\n autoFocus: PropTypes.bool,\n\n /**\n * If `true`, the list item will be a button (using `ButtonBase`). Props intended\n * for `ButtonBase` can then be applied to `ListItem`.\n */\n button: PropTypes.bool,\n\n /**\n * The content of the component. If a `ListItemSecondaryAction` is used it must\n * be the last child.\n */\n children: chainPropTypes(PropTypes.node, function (props) {\n var children = React.Children.toArray(props.children); // React.Children.toArray(props.children).findLastIndex(isListItemSecondaryAction)\n\n var secondaryActionIndex = -1;\n\n for (var i = children.length - 1; i >= 0; i -= 1) {\n var child = children[i];\n\n if (isMuiElement(child, ['ListItemSecondaryAction'])) {\n secondaryActionIndex = i;\n break;\n }\n } // is ListItemSecondaryAction the last child of ListItem\n\n\n if (secondaryActionIndex !== -1 && secondaryActionIndex !== children.length - 1) {\n return new Error('Material-UI: You used an element after ListItemSecondaryAction. ' + 'For ListItem to detect that it has a secondary action ' + 'you must pass it as the last child to ListItem.');\n }\n\n return null;\n }),\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n * By default, it's a `li` when `button` is `false` and a `div` when `button` is `true`.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * The container component used when a `ListItemSecondaryAction` is the last child.\n */\n ContainerComponent: PropTypes.elementType,\n\n /**\n * Props applied to the container component if used.\n */\n ContainerProps: PropTypes.object,\n\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input will be used.\n */\n dense: PropTypes.bool,\n\n /**\n * If `true`, the list item will be disabled.\n */\n disabled: PropTypes.bool,\n\n /**\n * If `true`, the left and right padding is removed.\n */\n disableGutters: PropTypes.bool,\n\n /**\n * If `true`, a 1px light border is added to the bottom of the list item.\n */\n divider: PropTypes.bool,\n\n /**\n * @ignore\n */\n focusVisibleClassName: PropTypes.string,\n\n /**\n * Use to apply selected styling.\n */\n selected: PropTypes.bool\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiListItem'\n})(ListItem);","import * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z\"\n}), 'ArrowDownward');","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport ArrowDownwardIcon from '../internal/svg-icons/ArrowDownward';\nimport withStyles from '../styles/withStyles';\nimport ButtonBase from '../ButtonBase';\nimport capitalize from '../utils/capitalize';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n cursor: 'pointer',\n display: 'inline-flex',\n justifyContent: 'flex-start',\n flexDirection: 'inherit',\n alignItems: 'center',\n '&:focus': {\n color: theme.palette.text.secondary\n },\n '&:hover': {\n color: theme.palette.text.secondary,\n '& $icon': {\n opacity: 0.5\n }\n },\n '&$active': {\n color: theme.palette.text.primary,\n // && instead of & is a workaround for https://github.com/cssinjs/jss/issues/1045\n '&& $icon': {\n opacity: 1,\n color: theme.palette.text.secondary\n }\n }\n },\n\n /* Pseudo-class applied to the root element if `active={true}`. */\n active: {},\n\n /* Styles applied to the icon component. */\n icon: {\n fontSize: 18,\n marginRight: 4,\n marginLeft: 4,\n opacity: 0,\n transition: theme.transitions.create(['opacity', 'transform'], {\n duration: theme.transitions.duration.shorter\n }),\n userSelect: 'none'\n },\n\n /* Styles applied to the icon component if `direction=\"desc\"`. */\n iconDirectionDesc: {\n transform: 'rotate(0deg)'\n },\n\n /* Styles applied to the icon component if `direction=\"asc\"`. */\n iconDirectionAsc: {\n transform: 'rotate(180deg)'\n }\n };\n};\n/**\n * A button based label for placing inside `TableCell` for column sorting.\n */\n\nvar TableSortLabel = /*#__PURE__*/React.forwardRef(function TableSortLabel(props, ref) {\n var _props$active = props.active,\n active = _props$active === void 0 ? false : _props$active,\n children = props.children,\n classes = props.classes,\n className = props.className,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'asc' : _props$direction,\n _props$hideSortIcon = props.hideSortIcon,\n hideSortIcon = _props$hideSortIcon === void 0 ? false : _props$hideSortIcon,\n _props$IconComponent = props.IconComponent,\n IconComponent = _props$IconComponent === void 0 ? ArrowDownwardIcon : _props$IconComponent,\n other = _objectWithoutProperties(props, [\"active\", \"children\", \"classes\", \"className\", \"direction\", \"hideSortIcon\", \"IconComponent\"]);\n\n return /*#__PURE__*/React.createElement(ButtonBase, _extends({\n className: clsx(classes.root, className, active && classes.active),\n component: \"span\",\n disableRipple: true,\n ref: ref\n }, other), children, hideSortIcon && !active ? null : /*#__PURE__*/React.createElement(IconComponent, {\n className: clsx(classes.icon, classes[\"iconDirection\".concat(capitalize(direction))])\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? TableSortLabel.propTypes = {\n /**\n * If `true`, the label will have the active styling (should be true for the sorted column).\n */\n active: PropTypes.bool,\n\n /**\n * Label contents, the arrow will be appended automatically.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The current sort direction.\n */\n direction: PropTypes.oneOf(['asc', 'desc']),\n\n /**\n * Hide sort icon when active is false.\n */\n hideSortIcon: PropTypes.bool,\n\n /**\n * Sort icon to use.\n */\n IconComponent: PropTypes.elementType\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiTableSortLabel'\n})(TableSortLabel);"],"names":["d","Avatar","props","ref","children","alt","childrenProp","classes","className","_props$component","component","Component","imgProps","sizes","src","srcSet","_props$variant","variant","other","loaded","_ref","_React$useState","setLoaded","active","image","Image","onload","onerror","useLoaded","hasImg","hasImgNotFailing","img","Person","fallback","root","system","colorDefault","withStyles","theme","position","display","alignItems","justifyContent","flexShrink","width","height","fontFamily","typography","fontSize","pxToRem","lineHeight","borderRadius","overflow","userSelect","color","palette","background","default","backgroundColor","type","grey","circle","circular","rounded","shape","square","textAlign","objectFit","textIndent","name","useEnhancedEffect","window","ListItem","_props$alignItems","_props$autoFocus","autoFocus","_props$button","button","componentProp","_props$ContainerCompo","ContainerComponent","_props$ContainerProps","ContainerProps","ContainerClassName","_props$dense","dense","_props$disabled","disabled","_props$disableGutters","disableGutters","_props$divider","divider","focusVisibleClassName","_props$selected","selected","context","childContext","listItemRef","current","focus","hasSecondaryAction","length","handleOwnRef","instance","handleRef","componentProps","gutters","alignItemsFlexStart","secondaryAction","focusVisible","value","container","pop","textDecoration","boxSizing","paddingTop","paddingBottom","action","opacity","borderBottom","concat","backgroundClip","paddingLeft","paddingRight","transition","transitions","create","duration","shortest","hover","TableSortLabel","_props$active","_props$direction","direction","_props$hideSortIcon","hideSortIcon","_props$IconComponent","IconComponent","ArrowDownward","ButtonBase","disableRipple","icon","capitalize","cursor","flexDirection","text","secondary","primary","marginRight","marginLeft","shorter","iconDirectionDesc","transform","iconDirectionAsc"],"sourceRoot":""}
|
package/9043.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[9043],{8598:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(95038),o=n.n(a);const r=function(){function e(e){var t=void 0===e?{}:e,n=t.locale,a=t.instance,r=t.moment;this.yearFormat="YYYY",this.yearMonthFormat="MMMM YYYY",this.dateTime12hFormat="MMMM Do hh:mm a",this.dateTime24hFormat="MMMM Do HH:mm",this.time12hFormat="hh:mm A",this.time24hFormat="HH:mm",this.dateFormat="MMMM Do",this.moment=a||r||o(),this.locale=n}return e.prototype.parse=function(e,t){return""===e?null:this.moment(e,t,!0)},e.prototype.date=function(e){if(null===e)return null;var t=this.moment(e);return t.locale(this.locale),t},e.prototype.isValid=function(e){return this.moment(e).isValid()},e.prototype.isNull=function(e){return null===e},e.prototype.getDiff=function(e,t){return e.diff(t)},e.prototype.isAfter=function(e,t){return e.isAfter(t)},e.prototype.isBefore=function(e,t){return e.isBefore(t)},e.prototype.isAfterDay=function(e,t){return e.isAfter(t,"day")},e.prototype.isBeforeDay=function(e,t){return e.isBefore(t,"day")},e.prototype.isBeforeYear=function(e,t){return e.isBefore(t,"year")},e.prototype.isAfterYear=function(e,t){return e.isAfter(t,"year")},e.prototype.startOfDay=function(e){return e.clone().startOf("day")},e.prototype.endOfDay=function(e){return e.clone().endOf("day")},e.prototype.format=function(e,t){return e.locale(this.locale),e.format(t)},e.prototype.formatNumber=function(e){return e},e.prototype.getHours=function(e){return e.get("hours")},e.prototype.addDays=function(e,t){return t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days")},e.prototype.setHours=function(e,t){return e.clone().hours(t)},e.prototype.getMinutes=function(e){return e.get("minutes")},e.prototype.setMinutes=function(e,t){return e.clone().minutes(t)},e.prototype.getSeconds=function(e){return e.get("seconds")},e.prototype.setSeconds=function(e,t){return e.clone().seconds(t)},e.prototype.getMonth=function(e){return e.get("month")},e.prototype.isSameDay=function(e,t){return e.isSame(t,"day")},e.prototype.isSameMonth=function(e,t){return e.isSame(t,"month")},e.prototype.isSameYear=function(e,t){return e.isSame(t,"year")},e.prototype.isSameHour=function(e,t){return e.isSame(t,"hour")},e.prototype.setMonth=function(e,t){return e.clone().month(t)},e.prototype.getMeridiemText=function(e){return"am"===e?"AM":"PM"},e.prototype.startOfMonth=function(e){return e.clone().startOf("month")},e.prototype.endOfMonth=function(e){return e.clone().endOf("month")},e.prototype.getNextMonth=function(e){return e.clone().add(1,"month")},e.prototype.getPreviousMonth=function(e){return e.clone().subtract(1,"month")},e.prototype.getMonthArray=function(e){for(var t=[e.clone().startOf("year")];t.length<12;){var n=t[t.length-1];t.push(this.getNextMonth(n))}return t},e.prototype.getYear=function(e){return e.get("year")},e.prototype.setYear=function(e,t){return e.clone().set("year",t)},e.prototype.mergeDateAndTime=function(e,t){return this.setMinutes(this.setHours(e,this.getHours(t)),this.getMinutes(t))},e.prototype.getWeekdays=function(){return this.moment.weekdaysShort(!0)},e.prototype.isEqual=function(e,t){return null===e&&null===t||this.moment(e).isSame(t)},e.prototype.getWeekArray=function(e){for(var t=e.clone().startOf("month").startOf("week"),n=e.clone().endOf("month").endOf("week"),a=0,o=t,r=[];o.isBefore(n);){var l=Math.floor(a/7);r[l]=r[l]||[],r[l].push(o),o=o.clone().add(1,"day"),a+=1}return r},e.prototype.getYearRange=function(e,t){for(var n=this.moment(e).startOf("year"),a=this.moment(t).endOf("year"),o=[],r=n;r.isBefore(a);)o.push(r),r=r.clone().add(1,"year");return o},e.prototype.getCalendarHeaderText=function(e){return this.format(e,this.yearMonthFormat)},e.prototype.getYearText=function(e){return this.format(e,"YYYY")},e.prototype.getDatePickerHeaderText=function(e){return this.format(e,"ddd, MMM D")},e.prototype.getDateTimePickerHeaderText=function(e){return this.format(e,"MMM D")},e.prototype.getMonthText=function(e){return this.format(e,"MMMM")},e.prototype.getDayText=function(e){return this.format(e,"D")},e.prototype.getHourText=function(e,t){return this.format(e,t?"hh":"HH")},e.prototype.getMinuteText=function(e){return this.format(e,"mm")},e.prototype.getSecondText=function(e){return this.format(e,"ss")},e}()},27604:(e,t,n)=>{var a=n(71600);t.Z=void 0;var o=a(n(24328)),r=(0,a(n(50175)).default)(o.default.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.Z=r},71519:(e,t,n)=>{var a=n(71600);t.Z=void 0;var o=a(n(24328)),r=(0,a(n(50175)).default)(o.default.createElement("path",{d:"M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11z"}),"EventBusy");t.Z=r},99144:(e,t,n)=>{var a=n(71600);t.Z=void 0;var o=a(n(24328)),r=(0,a(n(50175)).default)(o.default.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");t.Z=r},67766:(e,t,n)=>{var a=n(71600);t.Z=void 0;var o=a(n(24328)),r=(0,a(n(50175)).default)(o.default.createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"KeyboardArrowLeft");t.Z=r},42767:(e,t,n)=>{var a=n(71600);t.Z=void 0;var o=a(n(24328)),r=(0,a(n(50175)).default)(o.default.createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");t.Z=r},47603:(e,t,n)=>{var a=n(71600);t.Z=void 0;var o=a(n(24328)),r=(0,a(n(50175)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{transform:"scale(1.2, 1.2)",fill:"none",d:"M0 0h20v20H0V0z"}),o.default.createElement("path",{transform:"scale(1.2, 1.2)",d:"M15.95 10.78c.03-.25.05-.51.05-.78s-.02-.53-.06-.78l1.69-1.32c.15-.12.19-.34.1-.51l-1.6-2.77c-.1-.18-.31-.24-.49-.18l-1.99.8c-.42-.32-.86-.58-1.35-.78L12 2.34c-.03-.2-.2-.34-.4-.34H8.4c-.2 0-.36.14-.39.34l-.3 2.12c-.49.2-.94.47-1.35.78l-1.99-.8c-.18-.07-.39 0-.49.18l-1.6 2.77c-.1.18-.06.39.1.51l1.69 1.32c-.04.25-.07.52-.07.78s.02.53.06.78L2.37 12.1c-.15.12-.19.34-.1.51l1.6 2.77c.1.18.31.24.49.18l1.99-.8c.42.32.86.58 1.35.78l.3 2.12c.04.2.2.34.4.34h3.2c.2 0 .37-.14.39-.34l.3-2.12c.49-.2.94-.47 1.35-.78l1.99.8c.18.07.39 0 .49-.18l1.6-2.77c.1-.18.06-.39-.1-.51l-1.67-1.32zM10 13c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"})),"Settings");t.Z=r},72753:(e,t,n)=>{var a=n(71600);t.Z=void 0;var o=a(n(24328)),r=(0,a(n(50175)).default)(o.default.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.Z=r},32528:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(13688),o=n(48852);const r=e=>t=>(0,o.l)(a.X,e,t)},58662:(e,t,n)=>{n.d(t,{Z:()=>b});var a=n(13980),o=n.n(a),r=n(24328),l=n.n(r),i=n(71153),s=n.n(i),c=n(94079),u=n(87918),p=n.n(u),d=n(31276),m=n(17440);const h=(0,n(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){y(e,t,n[t])}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g=e=>{let{classes:t={},count:n,rowsPerPageOptions:a,page:o,onChangePage:i,rowsPerPage:u,onChangeRowsPerPage:y,basicTableRef:g,labelRowsPerPage:b}=e;const v=h(),x=(0,r.useCallback)((()=>{(0,m.pathOr)(m.identity,["current","resetScrollbarPosition"],g)()}),[g]),E=(0,r.useCallback)((e=>{i(e),x()}),[i,x]),C=(0,r.useCallback)((e=>{i(0),y(e),x()}),[i,y,x]);return l().createElement(c.TablePagination,{classes:f({},t,{root:s()(v.pagination,t.root),select:s()(v.select,t.select),caption:v.caption,selectRoot:v.selectRoot,actions:v.actions}),component:"div",labelRowsPerPage:b||p().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:a}=e;return p().text("${fromRow}-${toRow} of ${countRows}",{fromRow:p().number(t,"0,0"),toRow:p().number(n,"0,0"),countRows:p().number(a,"0,0")})},count:n,rowsPerPageOptions:a,page:o,onChangePage:(0,m.pipe)((0,m.nthArg)(1),E),rowsPerPage:u,onChangeRowsPerPage:(0,m.pipe)(d.NA,C)})};g.propTypes={classes:o().object,rowsPerPageOptions:o().arrayOf(o().number),count:o().number,page:o().number,onChangePage:o().func,rowsPerPage:o().number,onChangeRowsPerPage:o().func,basicTableRef:o().shape({current:o().object}),labelRowsPerPage:o().string};const b=l().memo(g)},81137:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(24328),o=n.n(a),r=n(87918),l=n.n(r),i=n(94079);const s=(0,n(79692).Z)({paper:{minHeight:"180px"},title:{padding:"16px 16px 10px 16px",fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px"},content:{padding:"0 16px"},contentText:{marginBottom:0,fontSize:"16px",letterSpacing:"0.15px",lineHeight:"24px"},actionButtons:{display:"flex",paddingTop:"4px",fontSize:"14px",fontWeight:500,letterSpacing:0,lineHeight:"16px","& > div":{marginLeft:"auto"}},discardButton:{marginRight:"8px"}}),c=e=>{let{open:t,title:n,content:a,onCancel:r,cancelCaption:c=l().text("Cancel"),onDiscard:u,discardCaption:p="",onSave:d,saveCaption:m=l().text("Save"),disabledSave:h=!1}=e;const f=s();return o().createElement(i.Dialog,{open:t,onClose:r,classes:{paperScrollPaper:f.paper}},o().createElement(i.DialogTitle,{classes:{root:f.title}},n),o().createElement(i.DialogContent,{classes:{root:f.content}},o().createElement(i.DialogContentText,{classes:{root:f.contentText}},a)),o().createElement(i.DialogActions,{className:f.actionButtons,disableSpacing:!0},r&&o().createElement(i.Button,{onClick:r},c),o().createElement("div",null,u&&o().createElement(i.Button,{onClick:u,classes:{root:f.discardButton}},p),o().createElement(i.Button,{onClick:d,color:"primary",disabled:h,autoFocus:!0},m))))}},68439:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(24328),o=n.n(a),r=n(52730),l=n(71153),i=n.n(l),s=n(94079),c=n(70687),u=n(59431),p=n(88611);const d=(0,n(79692).Z)({"entityType-overflow":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",marginRight:"12px",borderRadius:"2px",flexShrink:0},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",marginRight:"16px",flexShrink:0}}),m=e=>{let{entity:t,className:n,size:a="small"}=e;const l=d(),m=(0,r.useSelector)(u.ZP.selectors.getMetadata),h=t.type,f=(0,c.nt9)(m,h)||{},y=(0,c.VD3)(m,f,"typeColor")||c.rSc.palette.primary.main,g=(0,c.jFi)(m,t);return o().createElement(p.C,{value:g,placement:"top"},o().createElement(s.Typography,{style:{backgroundColor:y,color:c.P6Y.Colors.getColor(y)?"#FFFFFF":"#212121"},className:i()(l[`entityType-${a}`],l["entityType-overflow"],n),component:"div"},g))}},64459:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(24328),o=n.n(a),r=n(71153),l=n.n(r),i=n(52730),s=n(17440),c=n(94079),u=n(87918),p=n.n(u),d=n(70687),m=n(59431),h=n(53180),f=n(68439);const y=(0,n(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"}}}))),g=e=>{let{className:t,entity:n,children:r,classes:u}=e;const g=y({classes:u}),b=(0,i.useSelector)(m.ZP.selectors.getMetadata),v=(0,i.useSelector)(m.ZP.selectors.getShowEntityId),x=(0,a.useCallback)((()=>{navigator.clipboard.writeText((0,d.BTI)(n))}),[n]);if((0,s.isNil)(n))return null;const E=(0,d.idV)(n.label),C=n.secondaryLabel,S=(0,d.ptG)(b,n),w=(0,d.Fn9)(n),T=n.uri,P=(0,d.BTI)(n);return o().createElement("div",{className:l()(g.profileBandWrapper,t)},o().createElement("div",{className:l()(g.profileBand,{[g.inactive]:!w}),"data-entity-uri":T},o().createElement(h.Z,{key:n.uri,entity:n,avatarClassName:g.profileIcon,imageClassName:g.imageProfileIcon}),o().createElement("div",{className:g.profileInfo},o().createElement("div",null,o().createElement(c.Typography,{variant:"h6",className:g.label},E),C&&o().createElement(c.Typography,{variant:"subtitle2",className:g.secondaryLabel},C),S&&o().createElement(c.Typography,{variant:"subtitle1",className:g.businessCard},S)),o().createElement("div",{className:g.specialInfo},o().createElement("div",{className:g.entityType},o().createElement(f.Z,{entity:n,size:"medium",className:g.badge}),!(0,d.ZiX)(T)&&v&&o().createElement(c.Tooltip,{title:p().text("Copy to clipboard")},o().createElement(c.Typography,{display:"inline",variant:"body2",className:g.entityId,onClick:x},p().text("Entity ID"),": ",P))))),r&&o().createElement("div",null,r)))}},93873:(e,t,n)=>{n.d(t,{a:()=>R});var a=n(24328),o=n.n(a),r=n(71153),l=n.n(r),i=n(87918),s=n.n(i),c=n(94079),u=n(83348),p=n(8818),d=n(67766),m=n(42767),h=n(70687);const f=(0,n(79692).Z)({container:{display:"flex",alignItems:"center"},link:{whiteSpace:"nowrap",marginRight:"9px"}}),y=(0,u.Z)(c.Link),g=e=>{let{className:t,total:n=0,onPrev:a,onNext:r,onSearchResultsClick:i,isPrevDisabled:c,isNextDisabled:u}=e;const g=f();return o().createElement("div",{className:l()(g.container,t)},o().createElement(y,{className:g.link,component:"button",variant:"caption",onClick:i,underline:"none",tooltipTitle:s().text("Go to search results")},(0,h.k7L)(n,1e6)," ",1===n?s().text("Search result"):s().text("Search results")),o().createElement(p.k,{size:"L",icon:d.Z,tooltipTitle:s().text("Go to previous profile"),onClick:a,disabled:c,showForDisabled:!0}),o().createElement(p.k,{size:"L",icon:m.Z,tooltipTitle:s().text("Go to next profile"),onClick:r,disabled:u,showForDisabled:!0}))};var b=n(52730),v=n(59431),x=n(17440),E=n(39450),C=n(85229);function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){w(e,t,n[t])}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class T{constructor(e){var t=this;let{data:{query:n,sortField:a,sortOrder:o},tenant:r,searchTenant:l,apiPath:i,dtssPath:s,globalSearchRequestOptions:c}=e;this.query=void 0,this.sortField=void 0,this.sortOrder=void 0,this.tenant=void 0,this.searchTenant=void 0,this.apiPath=void 0,this.dtssPath=void 0,this.globalSearchRequestOptions=void 0,this.isDT=()=>this.tenant!==this.searchTenant,this.getQueryFilter=()=>({rawFilter:this.query}),this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=[t.getQueryFilter(),...e],o=S({},t.globalSearchRequestOptions,{sort:t.sortField,order:t.sortOrder,select:"uri,label,type",scoreEnabled:!1},n);return t.isDT()?(0,h.uqV)({filters:a,options:o,customerTenant:t.tenant,dataTenant:t.searchTenant,dtssPath:t.dtssPath}):(0,h.ZOr)(a,o)},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"uri",values:[e]}],{offset:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{offset:t,max:e}),this.requestTotal=()=>{const e=[this.getQueryFilter()],t=this.globalSearchRequestOptions;return(this.isDT()?(0,h.J$m)({filters:e,options:t,customerTenant:this.tenant,dataTenant:this.searchTenant,dtssPath:this.dtssPath}):(0,h.j_Q)(e,t)).then((e=>e.total))},this.query=n,this.sortField=a,this.sortOrder=o,this.tenant=r,this.searchTenant=l,this.apiPath=i,this.dtssPath=s,this.globalSearchRequestOptions=c}}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){O(e,t,n[t])}))}return e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class k{constructor(e){var t=this;let{data:n,tenant:a,apiPath:o}=e;this.searchBody=void 0,this.tenant=void 0,this.apiPath=void 0,this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=[{rawFilter:t.searchBody.filter},...e];return(0,h.P2h)({apiPath:t.apiPath,tenant:t.tenant,searchBody:P({},t.searchBody,{filter:e.length?(0,h.Uqd)()(a):t.searchBody.filter}),options:n})},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"id",values:[(0,h.BTI)({uri:e})]}],{from:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{from:t,max:e}),this.requestTotal=()=>(0,h.dED)({apiPath:this.apiPath,tenant:this.tenant,searchBody:this.searchBody}).then((e=>e.count)),this.searchBody=n,this.tenant=a,this.apiPath=o}}const D=(e,t)=>(0,x.pipe)((0,x.map)((0,x.prop)("uri")),(0,x.reject)((e=>t.includes(e))))(e),R=e=>{let{className:t}=e;const{total:n,onPrev:r,onNext:l,onSearchResultsClick:i,isPrevDisabled:s,isNextDisabled:c}=(()=>{const e=(0,C._)(),t=(0,C._)(),n=(0,C._)(),{uri:o,index:r,total:l,tenant:i,cache:s}=(0,b.useSelector)(v.ZP.selectors.getSearchNavigationData)||{},{type:c,data:u}=(0,b.useSelector)(v.ZP.selectors.getSearchProviderData)||{},p=(0,b.useSelector)(v.ZP.selectors.getTenant),d=(0,b.useSelector)(v.ZP.selectors.getApiPath),m=(0,b.useSelector)(v.ZP.selectors.getDtssPath),f=(0,b.useSelector)((e=>v.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),y=(0,a.useContext)(E.m),g=(0,b.useDispatch)(),[x,S]=(0,a.useState)(!1),w=(0,a.useMemo)((()=>((e,t)=>{switch(e){case"search":return new T(t);case"graphsearch":return new k(t)}})(c,{data:u,tenant:p,searchTenant:i,apiPath:d,dtssPath:m,globalSearchRequestOptions:f})),[c,u,p,i,d,m,f]),P=(0,a.useCallback)((e=>{g(v.yC.actions.updateSearchNavigationDataFields(e))}),[g]),O=(0,a.useCallback)((e=>{const t=p!==i?(0,h.wwR)({uri:e,dataTenant:i}):e;g(v.ui.actions.openEntity({uri:t,viewId:y,source:"navigation"}))}),[g,y,p,i]),R=(0,a.useCallback)((()=>{g(v.ui.actions.openPerspective({perspectiveId:c,viewId:y}))}),[g,c,y]);(0,a.useEffect)((()=>{r>=l?P({index:l-1}):r<0&&P({index:0})}),[l,r,P]);const N=(0,a.useCallback)(((e,a,o)=>{S(!0),t(w.requestTotal()).then((e=>P({total:e})));const r=o+1;return n(w.requestEntities(15,r)).then((t=>{if(t){if(t.length){const n=D(t,e);if(n.length>0)return P({cache:e.concat(n),uri:n[0],index:r+t.length-n.length}),void O(n[0]);if(o+t.length<a-1)return N(e,a-t.length,o+t.length)}P({index:r})}})).finally((()=>{S(!1)}))}),[w,P,O]),Z=(0,a.useCallback)(((e,a)=>{S(!0),t(w.requestTotal()).then((e=>P({total:e})));const o=a-1,r=Math.max(0,a-15),l=15+Math.min(0,a-15);return n(w.requestEntities(l,r)).then((t=>{if(t){if(t.length){const n=D(t,e);if(n.length>0)return P({cache:n.concat(e),uri:n[n.length-1],index:o-(t.length-n.length)}),void O(n[n.length-1]);if(a-t.length>0)return Z(e,a-t.length)}P({index:0})}})).finally((()=>{S(!1)}))}),[w,P,O]),I=(0,a.useCallback)(((t,n,a,o)=>{if(n<t.length){const r=t[n];return S(!0),e(w.checkEntity(r)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),I(e,n,a-1,o)}P({index:o+1,uri:r,cache:t,total:a}),O(r)})).finally((()=>{S(!1)}))}if(!(o>=a-1))return N(t,a,o);P({cache:t,total:a,index:a-1})}),[w,P,O,N]),M=(0,a.useCallback)(((t,n,a,o)=>{if(n>-1){const r=t[n];return S(!0),e(w.checkEntity(r)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),M(e,n-1,a-1,o-1)}P({index:o-1,uri:r,cache:t,total:a}),O(r)})).finally((()=>{S(!1)}))}if(!(o<=0))return Z(t,o);P({index:0,cache:t,total:a})}),[w,P,O,Z]),j=(0,a.useCallback)((()=>{if(s&&o){const e=s.indexOf(o)-1;M(s,e,l,r)}}),[M,s,o,l,r]),F=(0,a.useCallback)((()=>{if(s&&o){const e=s.indexOf(o)+1;I(s,e,l,r)}}),[I,s,o,l,r]);return{total:l,onPrev:j,onNext:F,onSearchResultsClick:R,isPrevDisabled:x||r<=0,isNextDisabled:x||r>=l-1}})();return(()=>{const{cache:e}=(0,b.useSelector)(v.ZP.selectors.getSearchNavigationData)||{},t=(0,b.useSelector)(v.ZP.selectors.getMode),n=(0,b.useSelector)(v.ZP.selectors.getEntity);return(0,h.uzs)(t)&&(null==e?void 0:e.includes(null==n?void 0:n.uri))})()?o().createElement(g,{className:t,total:n,onPrev:r,onNext:l,onSearchResultsClick:i,isPrevDisabled:s,isNextDisabled:c}):null}},54013:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(24328),o=n.n(a),r=n(47603),l=n(87918),i=n.n(l),s=n(8818),c=n(55847);const u=e=>{let{items:t,menuId:n}=e;return o().createElement(c.Z,{buttonComponent:s.k,buttonProps:{icon:r.Z,tooltipTitle:i().text("Settings"),size:"L"},menuId:n,menuItems:t})}},3409:(e,t,n)=>{n.d(t,{Z:()=>d});var a=n(24328),o=n.n(a),r=n(52730),l=n(59431),i=n(94079),s=n(17440),c=n(87918),u=n.n(c);const p=(0,n(79692).Z)({root:{display:"flex",alignItems:"flex-start"},slice:{fontWeight:500},cancelButton:{width:"88px",flexShrink:0,marginLeft:"15px"}}),d=()=>{const e=p(),t=(0,r.useSelector)(l.ZP.selectors.getHistoryEvent),n=(0,r.useDispatch)(),a=(0,s.pipe)(l.N5.history.actions.clearHistoryEvent,n);return t?o().createElement("div",{className:e.root},o().createElement(i.Typography,{component:"div"},u().text("You are viewing a historic slice:")," ",o().createElement("span",{className:e.slice},u().date(t.aStamp,"llll"))),o().createElement(i.Button,{className:e.cancelButton,variant:"contained",color:"primary",onClick:a},u().text("Cancel"))):null}},7718:(e,t,n)=>{n.d(t,{C:()=>h});var a=n(24328),o=n(52730),r=n(17440),l=n(70687),i=n(59431);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){c(e,t,n[t])}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=(e,t)=>t.filter((t=>t.replyId!==e)),p=(e,t)=>{const n=e.replies.findIndex((e=>{let{replyId:n}=e;return n===t.replyId})),a=[...e.replies];return a[n]=t,a},d=[],m=e=>console.error("Collaboration error",e),h=e=>{let{objectIds:t=d,objectTypes:n,enabled:c=!0}=e;const h=(0,o.useSelector)(i.ZP.selectors.getEntity),f=(0,o.useSelector)(i.ZP.selectors.getTenant),y=(0,o.useSelector)(i.ZP.selectors.getCollaborationPath),g=(0,o.useSelector)(i.ZP.selectors.isCollaborationEnabled)&&c,[b,v]=(0,a.useState)(null),[x,E]=(0,a.useState)([]),[C,S]=(0,a.useState)(null),[w,T]=(0,a.useState)(null),[P,O]=(0,a.useState)(!1),[k,D]=(0,a.useState)(!1),[R,N]=(0,a.useState)({}),Z=(0,a.useCallback)((e=>{S((t=>s({},t,e)))}),[]),I=null==h?void 0:h.uri,M=(0,a.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(g&&I&&!(0,l.ZiX)(I)){const n=e=>{console.warn("Collaboration error",e),S(null)};(0,r.pipe)(l.$oF,(0,r.andThen)((0,r.map)((0,r.props)(["objectId","comments"]))),(0,r.andThen)(r.fromPairs),(0,r.andThen)(t?S:Z),(0,r.otherwise)(n))({uris:e,tenant:f,collaborationPath:y})}else S(null)}),[Z,y,I,g,f]);(0,a.useEffect)((()=>{M(t,!0)}),[t,M]);const j=(0,a.useCallback)(((e,t)=>{(0,l.liG)({collaborationPath:y,tenant:f,relatedObjectUri:e,pageToken:t}).then((e=>{let{items:n,nextPageToken:a}=e;E((e=>t?(0,r.uniqBy)((0,r.prop)("commentId"),[...e,...n]):n)),v(a)})).catch(m)}),[y,f]),F=(0,a.useCallback)((e=>{D(!0),(0,l.d7q)({collaborationPath:y,tenant:f,commentId:e}).then(T).catch(m).finally((()=>D(!1)))}),[y,f]),A=(0,a.useCallback)((e=>{let{content:t,namedUsers:n,objectType:a,uri:o,relatedObjectUris:r}=e;O(!0);const i={objectId:o,content:t,relatedObjectUris:r,objectType:a,visibility:"public",namedUsers:n,permanentLink:""};return(0,l.Yrx)({collaborationPath:y,tenant:f,data:i}).then((e=>{let[t]=e;return((e,t)=>{T(e),S((n=>s({},n,{[t]:[...n[t]||[],{commentId:e.commentId,replies:0,status:"open"}]}))),E((t=>[e,...t]))})(t,o)})).catch(m).finally((()=>O(!1)))}),[y,f]),B=(0,a.useCallback)((e=>{let{content:t,namedUsers:n,objectType:a,uri:o,relatedObjectUris:i,commentId:c,replies:u}=e;O(!0);const p={objectId:o,content:t,relatedObjectUris:i,objectType:a,visibility:"public",namedUsers:n,permanentLink:"",commentId:c,replies:u};return(0,l.uAg)({collaborationPath:y,tenant:f,data:p}).then((e=>(e=>{T(e),E((0,r.map)((0,r.when)((0,r.propEq)("commentId",e.commentId),(0,r.always)(e))))})(s({},e,{replies:u})))).catch(m).finally((()=>O(!1)))}),[y,f]),L=(0,a.useCallback)((e=>{let{uri:t,commentId:n}=e;O(!0),(0,l.YFy)({collaborationPath:y,tenant:f,commentId:n}).then((()=>((e,t)=>{T(null),S((n=>{const a=n[t]||[];return s({},n,{[t]:a.filter((t=>t.commentId!==e))})})),E((t=>t.filter((t=>t.commentId!==e))))})(n,t))).catch(m).finally((()=>O(!1)))}),[y,f]),U=(0,a.useCallback)(((e,t,n,a)=>{const o="resolve"===e.action?"resolved":"open",{replyId:r}=e;T("resolved"===o?e=>{if(e)return null}:t=>{if(t)return s({},t,{replies:a?u(r,t.replies):[...t.replies,e]})}),S((e=>s({},e,{[t]:(e[t]||[]).map((e=>e.commentId===n?s({},e,{status:o,replies:a?e.replies-1:e.replies+1}):e))}))),E((t=>t.map((t=>t.commentId===n?s({},t,{status:o,replies:a?u(e.replyId,t.replies):[...t.replies,e]}):t))))}),[]),z=(0,a.useCallback)((e=>{let{uri:t,commentId:n,reply:a}=e;O(!0),(0,l.Mfr)({collaborationPath:y,tenant:f,commentId:n,replyId:a.replyId}).then((()=>U(a,t,n,!0))).catch(m).finally((()=>O(!1)))}),[y,U,f]),W=(0,a.useCallback)(((e,t)=>{T((t=>{if(t)return s({},t,{replies:p(t,e)})})),E((n=>n.map((n=>n.commentId===t?s({},n,{replies:p(n,e)}):n))))}),[]),_=(0,a.useCallback)((e=>{let{content:t,namedUsers:n,commentId:a,replyId:o}=e;O(!0);const r={content:t,namedUsers:n};return(0,l.ufV)({collaborationPath:y,tenant:f,commentId:a,replyId:o,data:r}).then((e=>W(e,a))).catch(m).finally((()=>O(!1)))}),[y,f,W]),H=(0,a.useCallback)((e=>{let{content:t,namedUsers:n,commentId:a,action:o,uri:r}=e;O(!0);const i={content:t,action:o,namedUsers:n};return(0,l.PP2)({collaborationPath:y,tenant:f,commentId:a,data:i}).then((e=>{let[t]=e;return U(t,r,a)})).catch(m).finally((()=>O(!1)))}),[y,f,U]),V=(0,a.useCallback)((e=>{let{commentId:t,uri:n}=e;H({content:"",namedUsers:[],commentId:t,action:"resolve",uri:n})}),[H]),q=(0,a.useCallback)((e=>{let{commentId:t,uri:n}=e;H({content:"",namedUsers:[],commentId:t,action:"reopen",uri:n})}),[H]);return{clearCurrentComment:(0,a.useCallback)((()=>{T(null)}),[]),comments:x,commentsMap:C,getCommentState:(e,t)=>(0,r.pathOr)({},[e,t],R),updateCommentState:(e,t,n)=>{N((a=>{const o=[e,t],l=(0,r.path)(o,a);return(0,r.assocPath)(o,(0,r.mergeRight)(l,n),a)}))},clearCommentState:(e,t)=>N((0,r.dissocPath)([e,t])),createComment:A,createReply:H,currentComment:w,deleteComment:L,editComment:B,getComment:F,getComments:j,getCommentsCount:M,loading:k,objectTypes:n,pageToken:b,reOpenThread:q,resolveThread:V,sending:P,deleteReply:z,editReply:_}}},37152:(e,t,n)=>{n.d(t,{a:()=>m});var a=n(24328),o=n(52730),r=n(17440),l=n(59431),i=n(70687),s=n(85229),c=n(30634);function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){p(e,t,n[t])}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.when)(r.identity,(0,r.pipe)(i.VGB,r.length,(0,r.times)((e=>e+1)))),m=e=>{let{sorting:t,filter:n,page:p,rowsPerPage:m,config:h,entity:f,relationActivityFilter:y,mode:g,searchByOv:b=!1}=e;const[v,x]=(0,a.useState)(!1),E=(0,o.useDispatch)(),C=(0,o.useSelector)(l.ZP.selectors.getTenant),S=(0,o.useSelector)(l.ZP.selectors.getMetadata),w=(0,o.useSelector)(l.ZP.selectors.getDtssPath),{activityFilter:T,globalFilter:P}=(0,o.useSelector)(l.ZP.selectors.getGlobalSearchRequestOptions)||{},O=(0,s._)(),k=e=>{const t=(0,r.when)(i.Kn2,(0,r.prop)("uri")),n=(0,r.pipe)(t,(0,i.pQZ)(S));return(0,r.evolve)({entityTypes:(0,r.filter)((0,i.kuw)(S)),inRelations:(0,r.filter)(n),outRelations:(0,r.filter)(n),nextEntry:k})(e)},D=h.suggested,R=(0,a.useMemo)((()=>({searchByOv:b})),[b]),N=(0,a.useCallback)((()=>{if(null!=f&&f.uri){const e=u({},k(h.content),{sortBy:null==t?void 0:t.field,order:null==t?void 0:t.order,returnDates:!0,returnObjects:!0,activeness:{relation:y||i.Ng6.ALL,entity:T},max:m,offset:p*m,filter:(0,i.vyX)(P,n)||void 0,suggested:d(D)}),a=[e].concat((0,r.ifElse)(r.identity,(0,r.pipe)(i.VGB,(t=>t.map(((t,n)=>u({},t,{id:e.suggested[n]}))))),(0,r.always)([]))(D)),o=(0,r.cond)([[(0,r.pipe)((0,r.prop)("uri"),i.ZiX),()=>Promise.resolve([{total:0}])],[i.biM,e=>(0,i.n_1)({entityUri:e.uri,configs:a,customerTenant:C,dataTenant:e.dataTenant,dtssPath:w,options:R})],[r.T,e=>(0,i.N6e)(e.uri,a,R)]]);x(!0),O(o(f)).then((e=>{let[{connections:t,total:n}]=e;E(l.N5.relations.actions.relationsLoaded({id:h.id,connections:t,total:n}))})).finally((()=>{x(!1)}))}}),[T,S,h,E,w,null==f?void 0:f.uri,null==f?void 0:f.dataTenant,n,P,p,y,m,O,t,C,R]),Z=(0,a.useRef)(!1);Z.current=!1,(0,a.useEffect)((()=>{Z.current=!0,N()}),[N]);const I=(0,c.D)(g);return(0,a.useEffect)((()=>{g!==i.ARY.Viewing||Z.current||I===g||(Z.current=!0,N())}),[N,g,I]),{isLoading:v,reload:N}}},17554:(e,t,n)=>{n.d(t,{U:()=>i});var a=n(24328),o=n(52730),r=n(70687),l=n(59431);const i=()=>{const[e,t]=(0,a.useState)([]),n=(0,o.useSelector)(l.ZP.selectors.getTenant),i=(0,o.useSelector)(l.ZP.selectors.getServicesPath),s=e=>{console.warn("Users error",e),t([])};return(0,a.useEffect)((()=>{(0,r.kz_)({tenant:n,servicesPath:i}).then((e=>{let{array:n}=e;return t(n)})).catch(s)}),[n,i]),e}},55451:(e,t,n)=>{n.r(t),n.d(t,{default:()=>qt});var a=n(24328),o=n.n(a),r=n(52730),l=n(8598),i=n(36138),s=n(44443),c=n(22664),u=n(39450),p=n(585),d=n(17440),m=n(59431),h=n(70687),f=n(17554),y=n(20562),g=n(37152),b=n(7718),v=n(49759),x=n(3515),E=n(31274),C=n(40715),S=n(99136),w=n(58662);function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){P(e,t,n[t])}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const O={relationsTable:{},attributesTable:{}};var k=n(26180),D=n(31276),R=n(86361),N=n(87918),Z=n.n(N);const I="relation.type",M="relation.attributes",j=[{id:"entity.label",get label(){return Z().text("Profile")},dataTypeDefinition:{type:h.oS0.TYPE_STRING},hideable:!1,filterable:!1,initialWidth:280,autoResize:!1},{id:I,get label(){return Z().text("Type")}},{id:"relation.label",get label(){return Z().text("Directional Label")},filterable:!1,dataTypeDefinition:{type:h.oS0.TYPE_STRING}},{id:"relation.activeness.startDate",get label(){return Z().text("Start Date")},dataTypeDefinition:{type:h.oS0.TYPE_ACTIVENESS_DATE}},{id:"relation.activeness.endDate",get label(){return Z().text("End Date")},dataTypeDefinition:{type:h.oS0.TYPE_ACTIVENESS_DATE}},{id:M,get label(){return Z().text("Attributes")},sortable:!1,filterable:!1,maxAttrsToShow:7}],F=(0,d.pluck)("id",j),A=[I,M],B=[20,50,100],L=(0,d.pipe)(h.Tde,(0,d.concat)("relation.")),U=(0,d.pipe)((0,d.map)((e=>({id:L(e.uri),label:e.label,dataTypeDefinition:(0,h.PFL)(e)}))),(0,d.uniqBy)((0,d.prop)("id")));function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){W(e,t,n[t])}))}return e}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _="CHANGE_RELATION_TYPE",H="APPLY_SAVED_STATE",V="SAVE_CURRENT_STATE",q=z({},k.ZP.actions,{changeRelationType:(0,D.zD)(_),applySavedState:(0,D.zD)(H),saveCurrentState:(0,D.zD)(V)}),Y=(0,d.assoc)("page",0),G=e=>(0,d.pipe)((0,d.prop)("visibleColumns"),(0,d.ifElse)((0,d.always)(e.currentRelationType),(0,d.without)(A),(0,d.concat)(A)),(0,d.intersection)(F))(e),$=e=>(0,d.path)(["visibleColumnsForRelationTypes",`${e.currentRelationType}`],e),X=e=>{const t=(0,d.either)($,G)(e);return k.ZP.changeVisibleColumns(e,t)},K=(0,d.pipe)((0,d.propOr)(null,"filters"),(0,d.unless)(d.isNil,(0,d.filter)((e=>{let{filter:t,value:n}=e;return(0,h.jtL)(t,n)})))),Q=e=>{const{currentRelationType:t,visibleColumns:n}=e;return(0,d.evolve)({visibleColumnsForRelationTypes:(0,d.assoc)(`${t}`,n)},e)},J=(0,d.pipe)(Q,(0,d.pick)(["currentRelationType","visibleColumnsForRelationTypes","filters","sorting"]));var ee=n(99341),te=n(94079),ne=n(92778),ae=n(30553),oe=n(51229),re=n(54013),le=n(1876),ie=n(60894),se=n(79026),ce=n(79692);const ue=(0,ce.Z)({select:{fontSize:"13px",color:"rgba(0,0,0,.6)",paddingLeft:"15px","&&":{paddingRight:"35px"}},selectMenu:{"& li":{fontSize:"13px",height:"32px"}},textField:{maxWidth:"100%"}}),pe=e=>{let{value:t,onChange:n,relationTypes:r,className:l}=e;const i=ue(),s=(0,a.useMemo)((()=>(0,d.pipe)((0,d.map)((e=>{let{label:t,uri:n}=e;return{label:t,value:n}})),(0,d.concat)([{value:"",label:Z().text("All types")}]))(r)),[r]);return o().createElement("div",{className:l},o().createElement(se.Z,{displayEmpty:!0,disableUnderline:!0,classes:{select:i.select},TextFieldProps:{classes:{root:i.textField}},MenuProps:{classes:{list:i.selectMenu}},value:t||"",entries:s,onChange:e=>n(e||null)}))},de=(0,ce.Z)((e=>({header:{height:"56px",boxSizing:"border-box",paddingRight:"10px"},title:{fontSize:"16px"},total:{fontSize:"14px",color:e.palette.text.secondary,flexShrink:0,marginRight:"5px"},relationTypeSelector:{margin:"0px 10px 0 30px",overflow:"hidden"}}))),me=(0,a.memo)((e=>{let{total:t,filteringEnabled:n,onToggleFilters:r,columnsData:l,selectedColumns:i,currentRelationType:s,onRelationTypeChange:c,relationTypes:u,onChangeColumns:p,searchByOv:d,onToggleSearchByOv:m}=e;const h=de(),f=(0,a.useMemo)((()=>[{selected:d,selectable:!0,text:Z().text("Search by OV only"),onClick:m,id:"showNonOv"}]),[m,d]);return o().createElement(ne.Z,{title:Z().text("Relationships"),classes:{root:h.header,title:h.title}},u.length>0&&o().createElement(pe,{className:h.relationTypeSelector,value:s,onChange:c,relationTypes:u}),o().createElement(ae.Z,{height:28,margin:20}),o().createElement(te.Typography,{variant:"caption",className:h.total},1===t?Z().text("${count} record",{count:t}):Z().text("${count} records",{count:t})),o().createElement(oe.Z,null),o().createElement(re.Z,{items:f,menuId:"relationships-view-settings"}),o().createElement(le.Z,{enabled:n,onClick:r}),o().createElement(ae.Z,{height:28,margin:8}),o().createElement(ie.Z,{columnsData:l,selectedColumns:i,onChangeColumns:p}))}));var he=n(74402),fe=n(97946),ye=n(85709),ge=n(25461),be=n(92332),ve=n(67353);const xe=(0,ce.Z)((e=>({headCell:{display:"flex",alignItems:"center",height:"100%",width:"100%",fontSize:"12px",color:e.palette.text.secondary,background:"linear-gradient(0deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)), #FFFFFF"},rowCell:{fontSize:"13px",overflow:"hidden",overflowWrap:"break-word"},inactiveRowCell:{opacity:.6},defaultWrapper:{padding:"15px 25px 0 25px","&:last-child":{paddingBottom:"15px"}},entityCell:{display:"flex",alignItems:"flex-start",padding:"15px"},entityAvatar:{transform:"scale(0.5)",margin:"-10px 0 -10px -10px"},inactiveEntityAvatar:{overflow:"initial","&:after":{content:'""',position:"absolute",backgroundColor:"rgb(209, 206, 206)",border:"1px solid rgba(0, 0, 0, 1)",borderRadius:"2px",width:"12px",right:0,bottom:0,height:"12px"},"& > img":{borderRadius:"50%",overflow:"hidden"}},entityLabel:{color:e.palette.primary.main,textDecoration:"none",fontWeight:500},attributesWrapper:{padding:"15px 25px 10px 25px",color:"rgba(0,0,0,0.87)"},commentsContainer:{marginLeft:"auto"}}))),Ee=(0,ve.Z)((e=>{const t=xe();return o().createElement("div",{className:t.headCell},o().createElement(be.default,e))}));var Ce=n(71153),Se=n.n(Ce),we=n(19603),Te=n(31254),Pe=n(31039),Oe=n(94646);const ke=e=>{let{value:{entity:t,entityType:n,relation:a},isInactiveRelation:l}=e;const i=xe(),s=(0,r.useSelector)(m.ZP.selectors.getEntityUri);return o().createElement("div",{className:Se()(i.entityCell,we.U)},o().createElement(Te.Z,{className:Se()(i.entityAvatar,{[i.inactiveEntityAvatar]:l}),entityType:n}),o().createElement(Pe.Z,{value:(0,h.wwR)({uri:t.entityUri,dataTenant:t.dataTenant}),className:i.entityLabel},(0,h.idV)(t.entityLabel)),o().createElement("div",{className:i.commentsContainer,onClick:e=>e.stopPropagation()},o().createElement(Oe.Z,{uri:a.relationUri,relatedObjectUris:(0,h.wp9)(h.q7e.RELATION,{entityUri:s,connection:{relation:a,entity:t}}),objectType:h.q7e.RELATION,allowOnlyOneComment:!0})))};var De=n(80931);const Re=e=>{let{columnData:t,value:{attributes:n,attributeTypes:a}}=e;const r=xe();return o().createElement("div",{className:r.attributesWrapper,onClick:e=>e.stopPropagation()},o().createElement(De.Z,{max:t.maxAttrsToShow,entity:{attributes:n},attrTypes:a,drawLines:!1}))};var Ne=n(72768);const Ze=e=>{let{value:t,columnData:{dataTypeDefinition:n}}=e;const a=xe();return o().createElement("div",{className:a.defaultWrapper},o().createElement(Ne.Z,{value:t,dataTypeDefinition:n}))};function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Me=(0,d.pipe)((0,d.split)("."),(0,d.slice)(2,1/0)),je=e=>{if(e.startsWith("relation.attributes")){const t=Me(e);return t.length>1?t.slice(0,-1):null}return null},Fe=e=>{switch(e){case"entity.label":return ke;case"relation.attributes":return Re;default:return Ze}},Ae=(0,d.map)((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){Ie(e,t,n[t])}))}return e}({sortable:!0,resizable:!0},e,{headCellRenderer:Ee,nestedPath:je(e.id),rowCellValueRenderer:Fe(e.id)}))),Be=(0,d.cond)([[(0,d.pathEq)(["columnData","id"],"relation.attributes"),e=>{let{columnData:t,cell:n}=e;const a=(0,d.pipe)((0,d.path)(["values",0,"attributes"]),d.values,d.length)(n);return a>t.maxAttrsToShow?26*t.maxAttrsToShow+49:26*a+25}],[d.T,ge.Z]]);function Le(){return Le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Le.apply(this,arguments)}const Ue=e=>{let{cell:t,CellValueRenderer:n}=e,a=function(e,t){if(null==e)return{};var n,a,o=function(e,t){if(null==e)return{};var n,a,o={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["cell","CellValueRenderer"]);const r=xe();return o().createElement("div",{className:Se()(r.rowCell,{[r.inactiveRowCell]:a.isInactiveRelation})},t.values.map(((e,t)=>o().createElement(n,Le({key:t,value:e},a)))))};var ze=n(22983),We=n(43054),_e=n(55847),He=n(22385),Ve=n(81137),qe=n(83348);const Ye=(0,ce.Z)((e=>({menuItem:{minHeight:"32px",color:e.palette.text.secondary},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"16px"},buttons:{display:"flex",alignItems:"center",paddingRight:"5px"}}))),Ge=(0,qe.Z)(te.MenuItem),$e=(0,a.forwardRef)(((e,t)=>{let{item:n,onMenuClose:a=D.ZT}=e;const r=Ye(),{icon:l,disabled:i,text:s,tooltip:c,onClick:u}=n;return o().createElement(Ge,{tooltipTitle:c,showForDisabled:!0,classes:{root:r.menuItem},onClick:e=>{a(),u(e)},disabled:i,ref:t},l,o().createElement(te.Typography,{classes:{root:r.menuText}},s))}));$e.displayName="MenuItemRenderer";const Xe=$e,Ke=e=>{let{disableDelete:t,connection:{entity:n,relation:l},onMenuOpen:i=D.ZT,onMenuClose:s=D.ZT,onDelete:c}=e;const u=Ye(),p=(0,r.useSelector)(m.ZP.selectors.getMetadata),f=(0,d.pipe)((0,d.prop)("relationType"),(0,h.V3K)(p),(0,h.uGe)(h.BDP.DELETE))(l),y=!t&&f,[g,b]=(0,a.useState)(!1),v=()=>b(!1),x=[{disabled:!y,text:Z().text("Delete"),icon:o().createElement(ze.Z,null),tooltip:y?null:Z().text("You don't have permissions to delete"),onClick:()=>b(!0)}],E=(0,a.useCallback)((()=>{g||s()}),[g,s]);return o().createElement("div",{className:u.buttons},o().createElement(_e.Z,{MenuItemRenderer:Xe,menuId:"relationships-table-actions",buttonComponent:He.Z,buttonProps:{icon:We.Z,size:"S"},menuItems:x,onMenuOpen:i,onMenuClose:E}),o().createElement(Ve.Z,{open:g,title:Z().text('Do you want to delete relationship "${label}"?',{label:(C=(0,h.idV)(n.entityLabel),C.length>17?`${C.substring(0,17)}...`:C)}),content:Z().text("This relationship will be removed and all the values in the relationship will be permanently deleted. Are you sure you want to delete this relationship?"),onSave:(0,d.pipe)(v,s,c),onDiscard:(0,d.pipe)(v,s),saveCaption:Z().text("Delete"),discardCaption:Z().text("Cancel")}));var C},Qe=(0,ce.Z)({tableContainer:{flex:1,overflow:"hidden",display:"flex",zIndex:0},hoveredRowRightContentWrapper:{width:"100%",pointerEvents:"none!important"},menuButtonContainer:{position:"absolute",top:"calc(50% - 12px)",right:0,pointerEvents:"all"},tooltipAnchor:{width:"100%",height:"1px"}});function Je(){return Je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Je.apply(this,arguments)}const et=(0,a.memo)((e=>{let{metadata:t,connections:n,columnsData:r,sorting:l,onSort:i,filters:s,onFilter:c,onRowClick:u,tableRef:p,onDelete:m,readOnly:f}=e;const y=Qe(),g=(0,a.useMemo)((()=>((e,t,n)=>(n||[]).map((n=>(0,d.pipe)((0,d.reduce)(((t,a)=>{let{id:o}=a;return(0,d.assoc)(o,((e,t,n)=>{let{entity:a,relation:o}=t;switch(n){case"entity.label":return{entity:a,entityType:(0,h.nt9)(e,a.entityType),relation:o};case"relation.type":return o.relationType;case"relation.label":return o.relationLabel;case"relation.activeness.startDate":return o.startDate;case"relation.activeness.endDate":return o.endDate;case"relation.attributes":return{attributes:o.object.attributes,attributeTypes:(0,h.V3K)(e,o.relationType).attributes};default:return((e,t)=>(0,d.pipe)((0,d.path)(["object","attributes"]),(0,h.tT_)(e))(t))(Me(n),o)}})(e,n,o),t)}),{}),(0,d.assoc)("rawValue",n))(t))))(t,r,n)),[t,n,r]),b=(0,a.useMemo)((()=>Ae(r)),[r]),{getDynamicRowCellHeight:v,changeRowCellHeight:x}=(0,he.Z)(),E=(0,a.useCallback)((0,d.either)(v,Be),[v,Be]),[C,S]=(0,a.useState)(null),w=(0,a.useCallback)((e=>{const t=!(0,h.Fn9)(e.rowValue.rawValue.relation);return o().createElement(fe.Z,Je({onChangeHeight:x},e),o().createElement(Ue,Je({},e,{isInactiveRelation:t})))}),[x]),[T,P]=(0,a.useState)(!1),O=(0,a.useCallback)((()=>P(!0)),[]),k=(0,a.useCallback)((()=>{S(null),P(!1)}),[]),D=(0,a.useCallback)((e=>S((t=>T?t:e))),[T]),R=(0,a.useMemo)((()=>{const e=null!=C?g[C].rawValue:null,t=!(0,h.Fn9)(null==e?void 0:e.relation);return e&&o().createElement(o().Fragment,null,o().createElement(te.Tooltip,{key:e.relation.relationUri,open:t,title:Z().text("Inactive")},o().createElement("div",{className:y.tooltipAnchor})),o().createElement("div",{className:y.menuButtonContainer},o().createElement(Ke,{disableDelete:f,connection:e,onMenuOpen:O,onMenuClose:k,onDelete:()=>m(e.relation.relationUri)})))}),[m,g,C]);return o().createElement("div",{className:y.tableContainer},o().createElement(ye.Z,{fixFirstColumn:!0,columnsData:b,rowsData:g,sorting:l,onSort:i,filters:s,onFilter:c,defaultColumnWidth:250,defaultColumnMinWidth:200,headRowHeight:48,getRowCellHeight:E,renderRowCell:w,onRowClick:u,ref:p,hoverStateEnabled:!0,hoverRowIndex:C,onRowHover:D,hoveredRowRightContent:R,classes:{hoveredRowRightContentWrapper:y.hoveredRowRightContentWrapper}}))}));var tt=n(85229),nt=n(85965),at=n(39417),ot=n(10237),rt=n(63149),lt=n(48017),it=n(96955),st=n(66095),ct=n(20982),ut=n(99144),pt=n(65549),dt=n(52017),mt=n(90186);const ht=(0,ce.Z)((()=>({tableRow:{"& + &":{marginTop:"4px"},margin:"auto",maxWidth:"448px"}})));function ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yt=(0,a.memo)((e=>{let{readOnly:t,relation:n,metadata:r,selectedAttributeTypes:l,onDeleteCrosswalk:i,onEditCrosswalk:s}=e;const c=ht(),u=(0,h.V3K)(r,n.type),p=(0,a.useMemo)((()=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,d.pipe)((0,d.propOr)([],"crosswalks"),(0,d.map)((0,d.assoc)("ownerType","entity")),(0,mt.o)(e.type,t))(e)}(n,l)),[n,l]),[m,f]=(0,a.useState)([]),y=(0,a.useCallback)((e=>{i({entityUri:n.uri,crosswalkId:e})}),[i,n.uri]),g=(0,a.useCallback)((e=>{s(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){ft(e,t,n[t])}))}return e}({entityUri:n.uri},e))}),[s,n.uri]);return o().createElement("div",null,p.map((e=>{let{source:n,crosswalksByTypes:a}=e;return o().createElement("div",{key:n,className:c.tableRow},o().createElement(dt.Z,{source:n,crosswalksByTypes:a,expanded:m.includes(n),disableEditCrosswalk:!(0,h.Zm0)(u)||t,disableDeleteCrosswalk:!(0,h.a14)(u)||t,onEdit:g,onDelete:y,onToggleExpanded:()=>{f((0,d.ifElse)((0,d.includes)(n),(0,d.without)([n]),(0,d.append)(n)))}}))})))}));var gt=n(79769);const bt=(0,ce.Z)((e=>({header:{display:"flex",flexDirection:"row",alignItems:"center",padding:"20px 12px",borderBottom:"1px solid rgba(0, 0, 0, 0.12)"},title:{fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px",color:e.palette.text.primary,marginLeft:"12px"},hint:{color:e.palette.text.secondary,display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"flex-start",margin:"4px 14px 10px"},hintText:{marginLeft:"8px",fontSize:"12px",lineHeight:"16px"},buttons:{display:"flex",padding:"8px 6px 4px"},buttonLabel:{fontSize:"14px",fontWeight:500,lineHeight:"16px"},icon:{fontSize:"18px",marginRight:"8px"},editor:{paddingLeft:25,margin:"auto",maxWidth:"448px",boxSizing:"border-box",marginBottom:"4px"},tableContainer:{overflowY:"auto",overflowX:"hidden",paddingLeft:"16px",paddingRight:"6px"}}))),vt=(0,qe.Z)(te.Button),xt=(0,a.memo)((e=>{let{className:t,readOnly:n,relation:l,selectedAttributeTypes:i,onAddCrosswalk:s,onDeleteCrosswalk:c,onEditCrosswalk:u}=e;const p=bt(),d=(0,r.useSelector)(m.ZP.selectors.getMetadata),f=(0,h.V3K)(d,l.type),[y,g]=(0,a.useState)(!1),b=(0,h.mkC)(f)&&!n;return o().createElement("div",{className:t},o().createElement("div",{className:p.header},o().createElement("span",{className:p.title},Z().text("Legend"))),o().createElement("div",{className:p.buttons},o().createElement(vt,{color:"primary",showForDisabled:!0,disabled:!b,tooltipTitle:b?null:Z().text("You don't have permissions to add crosswalk"),onClick:()=>g(!0)},o().createElement(pt.Z,{className:p.icon}),o().createElement("div",{className:p.buttonLabel},Z().text("Crosswalk")))),o().createElement("div",{className:p.hint},o().createElement(ut.Z,{className:p.icon}),o().createElement("span",{className:p.hintText},Z().text("You can drag a crosswalk to add values to attributes swimlanes"))),o().createElement("div",{className:p.tableContainer},y&&o().createElement(gt.Z,{className:p.editor,onAdd:e=>s({entity:l,crosswalk:e}),onClose:()=>g(!1)}),o().createElement(yt,{readOnly:n,metadata:d,relation:l,selectedAttributeTypes:i,onDeleteCrosswalk:c,onEditCrosswalk:u})))}));var Et=n(88611),Ct=n(23147),St=n(94111),wt=n(64459),Tt=n(68439);const Pt=(0,ce.Z)((e=>({entityInfo:{flex:"0 1 auto",overflow:"hidden",minWidth:"100px"},entityLabelContainer:{display:"flex",alignItems:"center",overflow:"hidden"},entityLabel:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary},infoIcon:{fontSize:"16px",color:e.palette.text.secondary,marginLeft:"5px"},profileBand:{margin:"-10px",maxWidth:"500px"},entityTypeBadge:{marginTop:"7px"}}))),Ot=e=>{let{entity:t}=e;const n=Pt(),a=(0,h.idV)(t.label);return o().createElement("div",{className:n.entityInfo},o().createElement("div",{className:n.entityLabelContainer},o().createElement(Et.C,{value:a},o().createElement(te.Typography,{variant:"h6",className:n.entityLabel,noWrap:!0},a)),o().createElement(St.Z,{title:o().createElement(wt.Z,{className:n.profileBand,entity:t}),placement:"right"},o().createElement(ut.Z,{className:n.infoIcon}))),o().createElement(Tt.Z,{className:n.entityTypeBadge,entity:t,size:"medium"}))},kt=(0,ce.Z)((e=>({root:{flexShrink:0,overflow:"hidden",width:"110px"},label:{color:e.palette.text.secondary,fontSize:"13px"}}))),Dt=e=>{let{relation:t}=e;const n=kt(),{direction:a,relationLabel:r}=t;return o().createElement("div",{className:n.root},o().createElement(Et.C,{value:r},o().createElement(te.Typography,{variant:"subtitle2",className:n.label,align:"center",noWrap:!0},r)),o().createElement("svg",{width:"110",height:"12",fill:"black",fillOpacity:"0.3"},"out"===a&&o().createElement("polygon",{points:"94 0, 110 6, 94 12, 94 9, 0 9, 0 3, 94 3"}),"bidirectional"===a&&o().createElement("polygon",{points:"94 0, 110 6, 94 12, 94 9, 16 9, 16 12, 0 6, 16 0, 16 3, 94 3"}),"in"===a&&o().createElement("polygon",{points:"16 12, 0 6, 16 0, 16 3, 110 3, 110 9, 16 9"})))};var Rt=n(8459),Nt=n(27604);const Zt=(0,ce.Z)((()=>({root:{"&:hover $editButton":{visibility:"visible"}},editButton:{visibility:"hidden",marginLeft:"4px",marginBottom:"4px"},paper:{width:"150px",border:"3px solid rgba(0, 0, 0, 0.3)",borderRadius:"4px",boxSizing:"border-box",overflow:"hidden"}}))),It=e=>{let{value:t=null,onChange:n,readOnly:r}=e;const l=Zt(),i=(0,a.useRef)(),[s,c]=(0,a.useState)(!1),u=()=>c(!1),[p,d]=(0,a.useState)(t),m=()=>{p!==t&&n(p),u()};return o().createElement("span",{ref:i,className:l.root},t&&(0,h.p6d)(t),o().createElement(He.Z,{disabled:r,icon:Nt.Z,size:"XXS",className:l.editButton,onClick:()=>c(!0)}),o().createElement(te.Popover,{classes:{paper:l.paper},open:s,anchorEl:i.current,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:14,horizontal:20},onKeyUp:e=>{"Enter"===e.key?m():"Escape"===e.key&&u()},onBackdropClick:m},o().createElement(Rt.Z,{InputProps:{autoFocus:!0,disableUnderline:!0,fullWidth:!0},size:"small",hiddenLabel:!0,label:void 0,value:p&&new Date(p),onChange:e=>d(e&&e.valueOf())})))},Mt=(0,ce.Z)((e=>({relationBand:{flexShrink:0,boxShadow:"inset 0px -1px 0px rgba(0,0,0,0.06)",padding:"16px 19px"},inactiveRelationBand:{opacity:.6,background:"rgba(185, 188, 197, 0.18)"},toolbar:{display:"flex",alignItems:"center",gap:"16px",marginBottom:"10px"},mainInfo:{display:"flex",gap:"16px",marginLeft:"40px"},detailsInfo:{display:"flex",gap:"34px",marginLeft:"40px",marginTop:"17px",color:e.palette.text.secondary,fontSize:"13px"},detailTitle:{color:e.palette.text.primary,flexShrink:0,marginRight:"4px"},directionalLabel:{display:"flex",overflow:"hidden","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},relationDate:{flexShrink:0},commentsContainer:{marginRight:"18px"}})));function jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){Ft(e,t,n[t])}))}return e}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const At=(0,a.memo)((e=>{let{readOnly:t,entity:n,connection:a,onNavigateBack:r,onDelete:l,onChangeActivenessDate:i}=e;const s=!(0,h.Fn9)(a.relation),c=Mt();return o().createElement("div",{className:Se()(c.relationBand,we.U,{[c.inactiveRelationBand]:s})},o().createElement("div",{className:c.toolbar},o().createElement(He.Z,{icon:Ct.Z,size:"S",onClick:()=>r()}),o().createElement(te.Typography,{variant:"subtitle2",display:"inline"},Z().text("Back to relationships")),o().createElement(oe.Z,null),o().createElement("div",{className:c.commentsContainer},o().createElement(Oe.Z,{uri:a.relation.relationUri,relatedObjectUris:(0,h.wp9)(h.q7e.RELATION,{entityUri:null==n?void 0:n.uri,connection:a}),objectType:h.q7e.RELATION,allowOnlyOneComment:!0})),o().createElement(Ke,{connection:a,onDelete:l,disableDelete:t})),o().createElement("div",{className:c.mainInfo},o().createElement(Ot,{entity:n}),o().createElement(Dt,{relation:a.relation}),o().createElement(Ot,{entity:jt({},a.entity.object,{dataTenant:a.entity.dataTenant})})),o().createElement("div",{className:c.detailsInfo},o().createElement("div",{className:c.directionalLabel},o().createElement("span",{className:c.detailTitle},Z().text("Directional label:")),o().createElement(Et.C,{value:a.relation.relationLabel},o().createElement("span",null,a.relation.relationLabel))),o().createElement("div",{className:c.relationDate},o().createElement("span",{className:c.detailTitle},Z().text("Start date:")),o().createElement(It,{value:a.relation.startDate,onChange:e=>i("startDate",e),readOnly:t})),o().createElement("div",{className:c.relationDate},o().createElement("span",{className:c.detailTitle},Z().text("End date:")),o().createElement(It,{value:a.relation.endDate,onChange:e=>i("endDate",e),readOnly:t}))))})),Bt=e=>{console.error(e),p.Z.addError({title:Z().text("Error"),message:(0,h.xU7)(e,Z().text("Something went wrong"))})};var Lt=n(58651),Ut=n(13896);const zt=(0,ce.Z)({detailsView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},locked:{pointerEvents:"none"},resizablePanesWrapper:{flexGrow:1},pane:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",overflow:"hidden"}}),Wt=(0,a.memo)((e=>{let{entity:t,connection:n,visibleColumns:r,onClose:l,onDeleteConnection:i,onChangeConnection:s,onChangeVisibleColumns:c,readOnly:u}=e;const p=zt(),m=(()=>{const[e,t]=(0,a.useState)([]),n=(0,a.useRef)([]),o=(0,a.useCallback)((0,h.DsO)((()=>{t([...n.current])}),50),[]),r=(0,a.useCallback)((e=>{n.current=e,o(e)}),[o]),l=(0,a.useCallback)(((e,t)=>{e&&r(t?[e]:[])}),[r]),[i,s]=(0,a.useState)([]),c=(0,a.useCallback)((e=>{e&&s((t=>{return n=[e],a=t,(0,d.concat)(n.filter((e=>!(0,d.any)((0,h.aFF)(e),a))),a.filter((e=>!(0,d.any)((0,h.aFF)(e),n))));var n,a}))}),[]);return{highlightedCrosswalks:(0,a.useMemo)((()=>[...e,...i]),[e,i]),focusedCrosswalks:i,toggleCrosswalkFocus:c,setCrosswalkHighlighted:l}})(),[f,y]=(0,a.useState)(-480),g=(0,a.useCallback)((e=>{let{percentageSize:t}=e;return y(t)}),[]),[b,v]=(0,a.useState)(),[x,E]=(0,a.useState)(!1),C=n.relation.relationUri,S=(0,tt._)(),w=(0,a.useCallback)((()=>E(!0)),[]),T=(0,a.useCallback)((()=>E(!1)),[]),P=(0,a.useCallback)((0,d.pipe)(i,w),[]),[O,k]=(0,a.useMemo)((()=>{const e=e=>{e.errorCode===h.Xt7.CROSSWALK_NOT_FOUND?(Bt(e),t()):e.errorCode===h.Xt7.OBJECT_NOT_FOUND?l(e):(Bt(e),T())},t=()=>{S((0,h._vs)(C)).then((e=>{s((0,d.assocPath)(["relation","object"],e,n)),T()})).catch(e)};return[e,t]}),[n,T,s,l]),{modifiedEntity:D,crosswalksMap:R,newlyCreatedAttributes:N,onPinAttribute:Z,onIgnoreAttribute:I,onAddAttribute:M,onEditAttribute:j,onDeleteAttribute:F}=(0,nt.Q)({entity:n.relation.object,onModify:k,onError:O,onLoad:w}),{addCrosswalk:A,deleteCrosswalk:B,editCrosswalk:L}=(0,at.P)({onSuccess:k,onError:O,onLoad:w}),U=(0,a.useCallback)(((e,t)=>{w(),(t?(0,h.rj2)({entityUri:C,attributeName:e,value:t}).then((()=>s((0,d.assocPath)(["relation",e],t,n)))):(0,h.X78)({entityUri:C,attributeName:e}).then((()=>s((0,d.dissocPath)(["relation",e],n))))).then(T).catch(O)}),[n,w,T,O]);return o().createElement(ot.Z,{className:p.detailsView},o().createElement(rt.hR,m,o().createElement(Ut.DndProvider,{backend:Lt.default},o().createElement(lt.Z,null),o().createElement(it.Z,{className:Se()(p.resizablePanesWrapper,{[p.locked]:x}),orientation:"vertical",size:f,minSize:600,maxSize:-480,allowResize:!0,onChange:g},o().createElement("div",{className:p.pane},o().createElement(At,{readOnly:u,entity:t,connection:n,onNavigateBack:l,onDelete:P,onChangeActivenessDate:U}),o().createElement(st.R,{attributeUris:N},o().createElement(ct.Z,{readOnly:u,entity:D,crosswalksMap:R,isLoading:x,onPin:Z,onIgnore:I,onEdit:j,onAdd:M,onDelete:F,selectedAttributeTypes:b,onSelectAttributeTypes:v,visibleColumns:r,onChangeVisibleColumns:c}))),o().createElement(xt,{readOnly:u,className:p.pane,relation:n.relation.object,selectedAttributeTypes:b,onAddCrosswalk:A,onDeleteCrosswalk:B,onEditCrosswalk:L})))))})),_t=(0,ce.Z)({relationshipsView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex",flexDirection:"column"},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},pane:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",position:"relative"}}),Ht=(0,r.connect)(((e,t)=>{let{config:{id:n}}=t;return{entity:m.ZP.selectors.getEntity(e),metadata:m.ZP.selectors.getMetadata(e),connections:m.ZP.selectors.getConnectionsByViewId(e,n),total:m.ZP.selectors.getTotalByViewId(e,n)}}))((e=>{let{config:t,entity:n,metadata:r,connections:l,total:i,saveState:s,getSavedState:c,dispatch:u}=e;const p=_t(),P=(0,a.useRef)(),D=(0,f.U)(),N=(0,h.biM)(n),[Z,I]=(0,a.useState)(!1),{type:M}=n||{},[{visibleColumns:L,filters:W,page:G,rowsPerPage:te,sorting:ne,currentRelationType:ae,stateToSave:oe,entityTypeOfAppliedSavedState:re},{changeColumns:le,toggleFilters:ie,changeFilter:se,changePage:ce,changeRowsPerPage:ue,toggleSort:pe,changeRelationType:de,saveCurrentState:he,applySavedState:fe}]=(e=>{let{defaultColumns:t,defaultSorting:n,defaultRowsPerPage:o}=e;const r={visibleColumns:t,filters:null,sorting:n,page:0,rowsPerPage:o,currentRelationType:null,stateToSave:null,visibleColumnsForRelationTypes:{},entityTypeOfAppliedSavedState:null},[l,i]=(0,a.useReducer)(((e,t)=>{switch(t.type){case _:{const n=t.payload;return(0,d.pipe)(Q,(0,d.assoc)("currentRelationType",n),X,Y)(e)}case H:{const{savedState:n,entityTypeUri:a}=t.payload,o=n?$(n):e.visibleColumns;return z({},e,n,{filters:n?K(n):e.filters,visibleColumns:o,entityTypeOfAppliedSavedState:a})}case V:return z({},e,{stateToSave:J(e)});default:return k.ZP.reducer(e,t)}}),r);return[l,(0,R.o)({actions:q,dispatch:i})]})({defaultColumns:F,defaultRowsPerPage:B[0],defaultSorting:{field:F[0],order:"asc"}}),ye=re===M,{isLoading:ge,relationsTableSavedState:be,attributesTableSavedState:ve,updateRelationsTableSavedState:xe,updateAttributesTableSavedState:Ee}=(e=>{var t;let{getSavedState:n,saveState:o,entityTypeUri:r}=e;const[l,i]=(0,a.useState)(O),[s,c]=(0,a.useState)(null);(0,y.D)((()=>{s&&(i(T({},l,{relationsTable:s})),c(null))}),[r]);const[u,p]=(0,a.useState)(!0);return(0,a.useEffect)((()=>{n().then((e=>{i(e||O)})).then((e=>p(!1))).catch((e=>p(!1)))}),[]),{isLoading:u,relationsTableSavedState:null===(t=l.relationsTable)||void 0===t?void 0:t[r],attributesTableSavedState:l.attributesTable,updateRelationsTableSavedState:e=>{const t=T({},l.relationsTable,{[r]:e});c(t),o(T({},l,{relationsTable:t}))},updateAttributesTableSavedState:e=>{o(T({},l,{attributesTable:e}))}}})({getSavedState:c,saveState:s,entityTypeUri:M}),[Ce,Se]=(0,a.useState)();(0,a.useEffect)((()=>{ge||fe({savedState:be,entityTypeUri:M})}),[ge,M]),(0,a.useEffect)((()=>{ge||Se(null==ve?void 0:ve.visibleColumns)}),[ge]),(0,y.D)((()=>{ye&&xe(oe)}),[oe]),(0,y.D)((()=>{ce(0)}),[n]);const[we,Te]=(0,a.useState)(),Pe=(0,a.useCallback)((()=>{Te(null)}),[]),Oe=(0,a.useMemo)((()=>{const e=(0,h.io3)(r,M);return r.relationTypes.filter((0,d.both)((0,h.uGe)(h.BDP.READ),(t=>{let{startObject:n,endObject:a}=t;return e.some((0,d.either)((0,d.equals)(n.objectTypeURI),(0,d.equals)(a.objectTypeURI)))})))}),[r,M]),ke=(0,a.useMemo)((()=>((e,t)=>t?(0,d.pipe)((0,d.find)((e=>e.uri===t)),h.DK$,U,(0,d.concat)(j),(0,d.reject)((e=>{let{id:t}=e;return A.includes(t)})))(e):(e=>{return t=(0,d.assoc)("dataTypeDefinition",(e=>({type:h.oS0.TYPE_SELECT,options:e.map((e=>{let{uri:t,label:n}=e;return{value:t,label:n}}))}))(e)),e=>(0,d.adjust)(e.findIndex((0,d.propEq)("id","relation.type")),t,e);var t})(e)(j))(Oe,ae)),[Oe,ae]),De=(0,a.useMemo)((()=>L.map((e=>ke.find((0,d.propEq)("id",e)))).filter(d.identity)),[L,ke]),Re=(0,a.useMemo)((()=>{const e=(0,d.pipe)((0,d.when)((0,d.always)(ae),(0,d.filter)((0,d.propEq)("uri",ae))),(0,d.map)((0,d.prop)("uri")))(Oe);return{id:t.id,content:{inRelations:e,outRelations:e}}}),[t.id,ae,Oe]),Ne=(0,a.useMemo)((()=>((e,t)=>{const n=(0,ee.Tz)(t,e);return(new h.MEy).addClause(n).build()})(W,De)),[W,De]),{isLoading:Ze,reload:Ie}=(0,g.a)({page:G,rowsPerPage:te,config:Re,entity:ye?n:null,filter:Ne,mode:h.ARY.Viewing,sorting:ne,searchByOv:Z}),Me=!ye||Ze,je=(0,a.useCallback)((0,d.pipe)(pe,he),[pe,he]),Fe=(0,a.useCallback)((0,d.pipe)(se,he),[se,he]),Ae=(0,a.useCallback)((0,d.pipe)(ie,he),[ie,he]),Be=(0,a.useCallback)((0,d.pipe)(le,he),[le,he]),Le=(0,a.useCallback)((0,d.pipe)(de,he),[de,he]),Ue=(0,a.useCallback)((e=>{Se(e),Ee({visibleColumns:e})}),[Ee]),ze=null==l?void 0:l[we],We=(0,a.useCallback)((e=>{u(m.N5.relations.actions.relationsLoaded({id:t.id,connections:(0,d.update)(we,e,l),total:i}))}),[ze]),[_e,He]=(0,a.useMemo)((()=>[(0,h.w3p)(l),[h.q7e.RELATION]]),[l]),Ve=(0,b.C)({objectIds:_e,objectTypes:He,enabled:!N}),qe=(0,a.useMemo)((()=>(0,h.Px$)(l)),[l]),Ye=(0,a.useCallback)((e=>{Bt(e),e.errorCode===h.Xt7.OBJECT_NOT_FOUND&&Ie()}),[Ie]),Ge=(0,a.useCallback)((e=>{(0,d.pipe)(h.VGk,(0,d.andThen)(Ie),(0,d.otherwise)(Ye))(e)}),[Ie,Ye]),$e=(0,a.useCallback)((()=>{(0,d.pipe)(h.VGk,(0,d.andThen)((0,d.pipe)(Pe,Ie)),(0,d.otherwise)((e=>{e.errorCode===h.Xt7.OBJECT_NOT_FOUND&&Pe(),Ye(e)})))(ze.relation.relationUri)}),[ze,Ie,Pe,Ye]),Xe=(0,a.useCallback)((e=>{e&&Ye(e),Pe()}),[Ye,Pe]),Ke=(0,a.useCallback)((()=>{I(d.not)}),[I]);return o().createElement(v.s.Provider,{value:D},o().createElement(x.h.Provider,{value:Ve},o().createElement(E.X.Provider,{value:qe},o().createElement("div",{className:p.relationshipsView},o().createElement(C.n,{entity:n}),o().createElement(me,{total:i,filteringEnabled:!!W,onToggleFilters:Ae,columnsData:ke,selectedColumns:L,onChangeColumns:Be,relationTypes:Oe,currentRelationType:ae,onRelationTypeChange:Le,searchByOv:Z,onToggleSearchByOv:Ke}),o().createElement("div",{className:p.pane},Me&&o().createElement(S.Z,null),o().createElement(et,{readOnly:N,metadata:r,connections:l,columnsData:De,sorting:ne,onSort:je,filters:W,onFilter:Fe,onRowClick:Te,tableRef:P,onDelete:Ge}),o().createElement(w.Z,{count:i,rowsPerPageOptions:B,page:G,onChangePage:ce,rowsPerPage:te,onChangeRowsPerPage:ue,basicTableRef:P})),ze&&o().createElement(Wt,{readOnly:N,entity:n,visibleColumns:Ce,onChangeVisibleColumns:Ue,connection:ze,onClose:Xe,onDeleteConnection:$e,onChangeConnection:We})))))})),Vt=(0,i.createGenerateClassName)({productionPrefix:"relationshipsPerspective",disableGlobal:!0}),qt=e=>{let{config:t,store:n,onResize:d,saveState:m,getSavedState:f}=e;const y=(0,a.useCallback)((0,h.aYu)(f),[f]);return o().createElement(r.Provider,{store:n},o().createElement(u.m.Provider,{value:t.id},o().createElement(i.StylesProvider,{generateClassName:Vt},o().createElement(c.MuiPickersUtilsProvider,{utils:l.Z},o().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>null==d?void 0:d(Math.floor(e),Math.floor(t))}),t&&o().createElement(Ht,{config:t,saveState:m,getSavedState:y}),o().createElement(p.Z,null)))))}},46847:(e,t,n)=>{function a(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function r(e,t){try{var n=this.props,a=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,a)}finally{this.props=n,this.state=a}}function l(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,l=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?l="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(l="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==l||null!==i){var s=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==l?"\n "+l:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=a,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=r;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var a=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,a)}}return e}n.r(t),n.d(t,{polyfill:()=>l}),a.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[9043],{8598:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(95038),o=n.n(a);const r=function(){function e(e){var t=void 0===e?{}:e,n=t.locale,a=t.instance,r=t.moment;this.yearFormat="YYYY",this.yearMonthFormat="MMMM YYYY",this.dateTime12hFormat="MMMM Do hh:mm a",this.dateTime24hFormat="MMMM Do HH:mm",this.time12hFormat="hh:mm A",this.time24hFormat="HH:mm",this.dateFormat="MMMM Do",this.moment=a||r||o(),this.locale=n}return e.prototype.parse=function(e,t){return""===e?null:this.moment(e,t,!0)},e.prototype.date=function(e){if(null===e)return null;var t=this.moment(e);return t.locale(this.locale),t},e.prototype.isValid=function(e){return this.moment(e).isValid()},e.prototype.isNull=function(e){return null===e},e.prototype.getDiff=function(e,t){return e.diff(t)},e.prototype.isAfter=function(e,t){return e.isAfter(t)},e.prototype.isBefore=function(e,t){return e.isBefore(t)},e.prototype.isAfterDay=function(e,t){return e.isAfter(t,"day")},e.prototype.isBeforeDay=function(e,t){return e.isBefore(t,"day")},e.prototype.isBeforeYear=function(e,t){return e.isBefore(t,"year")},e.prototype.isAfterYear=function(e,t){return e.isAfter(t,"year")},e.prototype.startOfDay=function(e){return e.clone().startOf("day")},e.prototype.endOfDay=function(e){return e.clone().endOf("day")},e.prototype.format=function(e,t){return e.locale(this.locale),e.format(t)},e.prototype.formatNumber=function(e){return e},e.prototype.getHours=function(e){return e.get("hours")},e.prototype.addDays=function(e,t){return t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days")},e.prototype.setHours=function(e,t){return e.clone().hours(t)},e.prototype.getMinutes=function(e){return e.get("minutes")},e.prototype.setMinutes=function(e,t){return e.clone().minutes(t)},e.prototype.getSeconds=function(e){return e.get("seconds")},e.prototype.setSeconds=function(e,t){return e.clone().seconds(t)},e.prototype.getMonth=function(e){return e.get("month")},e.prototype.isSameDay=function(e,t){return e.isSame(t,"day")},e.prototype.isSameMonth=function(e,t){return e.isSame(t,"month")},e.prototype.isSameYear=function(e,t){return e.isSame(t,"year")},e.prototype.isSameHour=function(e,t){return e.isSame(t,"hour")},e.prototype.setMonth=function(e,t){return e.clone().month(t)},e.prototype.getMeridiemText=function(e){return"am"===e?"AM":"PM"},e.prototype.startOfMonth=function(e){return e.clone().startOf("month")},e.prototype.endOfMonth=function(e){return e.clone().endOf("month")},e.prototype.getNextMonth=function(e){return e.clone().add(1,"month")},e.prototype.getPreviousMonth=function(e){return e.clone().subtract(1,"month")},e.prototype.getMonthArray=function(e){for(var t=[e.clone().startOf("year")];t.length<12;){var n=t[t.length-1];t.push(this.getNextMonth(n))}return t},e.prototype.getYear=function(e){return e.get("year")},e.prototype.setYear=function(e,t){return e.clone().set("year",t)},e.prototype.mergeDateAndTime=function(e,t){return this.setMinutes(this.setHours(e,this.getHours(t)),this.getMinutes(t))},e.prototype.getWeekdays=function(){return this.moment.weekdaysShort(!0)},e.prototype.isEqual=function(e,t){return null===e&&null===t||this.moment(e).isSame(t)},e.prototype.getWeekArray=function(e){for(var t=e.clone().startOf("month").startOf("week"),n=e.clone().endOf("month").endOf("week"),a=0,o=t,r=[];o.isBefore(n);){var l=Math.floor(a/7);r[l]=r[l]||[],r[l].push(o),o=o.clone().add(1,"day"),a+=1}return r},e.prototype.getYearRange=function(e,t){for(var n=this.moment(e).startOf("year"),a=this.moment(t).endOf("year"),o=[],r=n;r.isBefore(a);)o.push(r),r=r.clone().add(1,"year");return o},e.prototype.getCalendarHeaderText=function(e){return this.format(e,this.yearMonthFormat)},e.prototype.getYearText=function(e){return this.format(e,"YYYY")},e.prototype.getDatePickerHeaderText=function(e){return this.format(e,"ddd, MMM D")},e.prototype.getDateTimePickerHeaderText=function(e){return this.format(e,"MMM D")},e.prototype.getMonthText=function(e){return this.format(e,"MMMM")},e.prototype.getDayText=function(e){return this.format(e,"D")},e.prototype.getHourText=function(e,t){return this.format(e,t?"hh":"HH")},e.prototype.getMinuteText=function(e){return this.format(e,"mm")},e.prototype.getSecondText=function(e){return this.format(e,"ss")},e}()},27604:(e,t,n)=>{var a=n(71600);t.Z=void 0;var o=a(n(24328)),r=(0,a(n(50175)).default)(o.default.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.Z=r},71519:(e,t,n)=>{var a=n(71600);t.Z=void 0;var o=a(n(24328)),r=(0,a(n(50175)).default)(o.default.createElement("path",{d:"M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11z"}),"EventBusy");t.Z=r},99144:(e,t,n)=>{var a=n(71600);t.Z=void 0;var o=a(n(24328)),r=(0,a(n(50175)).default)(o.default.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");t.Z=r},67766:(e,t,n)=>{var a=n(71600);t.Z=void 0;var o=a(n(24328)),r=(0,a(n(50175)).default)(o.default.createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"KeyboardArrowLeft");t.Z=r},42767:(e,t,n)=>{var a=n(71600);t.Z=void 0;var o=a(n(24328)),r=(0,a(n(50175)).default)(o.default.createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");t.Z=r},47603:(e,t,n)=>{var a=n(71600);t.Z=void 0;var o=a(n(24328)),r=(0,a(n(50175)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{transform:"scale(1.2, 1.2)",fill:"none",d:"M0 0h20v20H0V0z"}),o.default.createElement("path",{transform:"scale(1.2, 1.2)",d:"M15.95 10.78c.03-.25.05-.51.05-.78s-.02-.53-.06-.78l1.69-1.32c.15-.12.19-.34.1-.51l-1.6-2.77c-.1-.18-.31-.24-.49-.18l-1.99.8c-.42-.32-.86-.58-1.35-.78L12 2.34c-.03-.2-.2-.34-.4-.34H8.4c-.2 0-.36.14-.39.34l-.3 2.12c-.49.2-.94.47-1.35.78l-1.99-.8c-.18-.07-.39 0-.49.18l-1.6 2.77c-.1.18-.06.39.1.51l1.69 1.32c-.04.25-.07.52-.07.78s.02.53.06.78L2.37 12.1c-.15.12-.19.34-.1.51l1.6 2.77c.1.18.31.24.49.18l1.99-.8c.42.32.86.58 1.35.78l.3 2.12c.04.2.2.34.4.34h3.2c.2 0 .37-.14.39-.34l.3-2.12c.49-.2.94-.47 1.35-.78l1.99.8c.18.07.39 0 .49-.18l1.6-2.77c.1-.18.06-.39-.1-.51l-1.67-1.32zM10 13c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"})),"Settings");t.Z=r},72753:(e,t,n)=>{var a=n(71600);t.Z=void 0;var o=a(n(24328)),r=(0,a(n(50175)).default)(o.default.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.Z=r},32528:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(13688),o=n(48852);const r=e=>t=>(0,o.l)(a.X,e,t)},58662:(e,t,n)=>{n.d(t,{Z:()=>b});var a=n(13980),o=n.n(a),r=n(24328),l=n.n(r),i=n(71153),s=n.n(i),c=n(94079),u=n(87918),p=n.n(u),d=n(31276),m=n(17440);const h=(0,n(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){y(e,t,n[t])}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g=e=>{let{classes:t={},count:n,rowsPerPageOptions:a,page:o,onChangePage:i,rowsPerPage:u,onChangeRowsPerPage:y,basicTableRef:g,labelRowsPerPage:b}=e;const v=h(),x=(0,r.useCallback)((()=>{(0,m.pathOr)(m.identity,["current","resetScrollbarPosition"],g)()}),[g]),E=(0,r.useCallback)((e=>{i(e),x()}),[i,x]),C=(0,r.useCallback)((e=>{i(0),y(e),x()}),[i,y,x]);return l().createElement(c.TablePagination,{classes:f({},t,{root:s()(v.pagination,t.root),select:s()(v.select,t.select),caption:v.caption,selectRoot:v.selectRoot,actions:v.actions}),component:"div",labelRowsPerPage:b||p().text("Rows per page:"),labelDisplayedRows:e=>{let{from:t,to:n,count:a}=e;return p().text("${fromRow}-${toRow} of ${countRows}",{fromRow:p().number(t,"0,0"),toRow:p().number(n,"0,0"),countRows:p().number(a,"0,0")})},count:n,rowsPerPageOptions:a,page:o,onChangePage:(0,m.pipe)((0,m.nthArg)(1),E),rowsPerPage:u,onChangeRowsPerPage:(0,m.pipe)(d.NA,C)})};g.propTypes={classes:o().object,rowsPerPageOptions:o().arrayOf(o().number),count:o().number,page:o().number,onChangePage:o().func,rowsPerPage:o().number,onChangeRowsPerPage:o().func,basicTableRef:o().shape({current:o().object}),labelRowsPerPage:o().string};const b=l().memo(g)},81137:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(24328),o=n.n(a),r=n(87918),l=n.n(r),i=n(94079);const s=(0,n(79692).Z)({paper:{minHeight:"180px"},title:{padding:"16px 16px 10px 16px",fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px"},content:{padding:"0 16px"},contentText:{marginBottom:0,fontSize:"16px",letterSpacing:"0.15px",lineHeight:"24px"},actionButtons:{display:"flex",paddingTop:"4px",fontSize:"14px",fontWeight:500,letterSpacing:0,lineHeight:"16px","& > div":{marginLeft:"auto"}},discardButton:{marginRight:"8px"}}),c=e=>{let{open:t,title:n,content:a,onCancel:r,cancelCaption:c=l().text("Cancel"),onDiscard:u,discardCaption:p="",onSave:d,saveCaption:m=l().text("Save"),disabledSave:h=!1}=e;const f=s();return o().createElement(i.Dialog,{open:t,onClose:r,classes:{paperScrollPaper:f.paper}},o().createElement(i.DialogTitle,{classes:{root:f.title}},n),o().createElement(i.DialogContent,{classes:{root:f.content}},o().createElement(i.DialogContentText,{classes:{root:f.contentText}},a)),o().createElement(i.DialogActions,{className:f.actionButtons,disableSpacing:!0},r&&o().createElement(i.Button,{onClick:r},c),o().createElement("div",null,u&&o().createElement(i.Button,{onClick:u,classes:{root:f.discardButton}},p),o().createElement(i.Button,{onClick:d,color:"primary",disabled:h,autoFocus:!0},m))))}},68439:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(24328),o=n.n(a),r=n(52730),l=n(71153),i=n.n(l),s=n(94079),c=n(74489),u=n(59431),p=n(88611);const d=(0,n(79692).Z)({"entityType-overflow":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",marginRight:"12px",borderRadius:"2px",flexShrink:0},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",marginRight:"16px",flexShrink:0}}),m=e=>{let{entity:t,className:n,size:a="small"}=e;const l=d(),m=(0,r.useSelector)(u.ZP.selectors.getMetadata),h=t.type,f=(0,c.nt9)(m,h)||{},y=(0,c.VD3)(m,f,"typeColor")||c.rSc.palette.primary.main,g=(0,c.jFi)(m,t);return o().createElement(p.C,{value:g,placement:"top"},o().createElement(s.Typography,{style:{backgroundColor:y,color:c.P6Y.Colors.getColor(y)?"#FFFFFF":"#212121"},className:i()(l[`entityType-${a}`],l["entityType-overflow"],n),component:"div"},g))}},64459:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(24328),o=n.n(a),r=n(71153),l=n.n(r),i=n(52730),s=n(17440),c=n(94079),u=n(87918),p=n.n(u),d=n(74489),m=n(59431),h=n(53180),f=n(68439);const y=(0,n(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"}}}))),g=e=>{let{className:t,entity:n,children:r,classes:u}=e;const g=y({classes:u}),b=(0,i.useSelector)(m.ZP.selectors.getMetadata),v=(0,i.useSelector)(m.ZP.selectors.getShowEntityId),x=(0,a.useCallback)((()=>{navigator.clipboard.writeText((0,d.BTI)(n))}),[n]);if((0,s.isNil)(n))return null;const E=(0,d.idV)(n.label),C=n.secondaryLabel,S=(0,d.ptG)(b,n),w=(0,d.Fn9)(n),T=n.uri,P=(0,d.BTI)(n);return o().createElement("div",{className:l()(g.profileBandWrapper,t)},o().createElement("div",{className:l()(g.profileBand,{[g.inactive]:!w}),"data-entity-uri":T},o().createElement(h.Z,{key:n.uri,entity:n,avatarClassName:g.profileIcon,imageClassName:g.imageProfileIcon}),o().createElement("div",{className:g.profileInfo},o().createElement("div",null,o().createElement(c.Typography,{variant:"h6",className:g.label},E),C&&o().createElement(c.Typography,{variant:"subtitle2",className:g.secondaryLabel},C),S&&o().createElement(c.Typography,{variant:"subtitle1",className:g.businessCard},S)),o().createElement("div",{className:g.specialInfo},o().createElement("div",{className:g.entityType},o().createElement(f.Z,{entity:n,size:"medium",className:g.badge}),!(0,d.ZiX)(T)&&v&&o().createElement(c.Tooltip,{title:p().text("Copy to clipboard")},o().createElement(c.Typography,{display:"inline",variant:"body2",className:g.entityId,onClick:x},p().text("Entity ID"),": ",P))))),r&&o().createElement("div",null,r)))}},93873:(e,t,n)=>{n.d(t,{a:()=>R});var a=n(24328),o=n.n(a),r=n(71153),l=n.n(r),i=n(87918),s=n.n(i),c=n(94079),u=n(83348),p=n(8818),d=n(67766),m=n(42767),h=n(74489);const f=(0,n(79692).Z)({container:{display:"flex",alignItems:"center"},link:{whiteSpace:"nowrap",marginRight:"9px"}}),y=(0,u.Z)(c.Link),g=e=>{let{className:t,total:n=0,onPrev:a,onNext:r,onSearchResultsClick:i,isPrevDisabled:c,isNextDisabled:u}=e;const g=f();return o().createElement("div",{className:l()(g.container,t)},o().createElement(y,{className:g.link,component:"button",variant:"caption",onClick:i,underline:"none",tooltipTitle:s().text("Go to search results")},(0,h.k7L)(n,1e6)," ",1===n?s().text("Search result"):s().text("Search results")),o().createElement(p.k,{size:"L",icon:d.Z,tooltipTitle:s().text("Go to previous profile"),onClick:a,disabled:c,showForDisabled:!0}),o().createElement(p.k,{size:"L",icon:m.Z,tooltipTitle:s().text("Go to next profile"),onClick:r,disabled:u,showForDisabled:!0}))};var b=n(52730),v=n(59431),x=n(17440),E=n(39450),C=n(85229);function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){w(e,t,n[t])}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class T{constructor(e){var t=this;let{data:{query:n,sortField:a,sortOrder:o},tenant:r,searchTenant:l,apiPath:i,dtssPath:s,globalSearchRequestOptions:c}=e;this.query=void 0,this.sortField=void 0,this.sortOrder=void 0,this.tenant=void 0,this.searchTenant=void 0,this.apiPath=void 0,this.dtssPath=void 0,this.globalSearchRequestOptions=void 0,this.isDT=()=>this.tenant!==this.searchTenant,this.getQueryFilter=()=>({rawFilter:this.query}),this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=[t.getQueryFilter(),...e],o=S({},t.globalSearchRequestOptions,{sort:t.sortField,order:t.sortOrder,select:"uri,label,type",scoreEnabled:!1},n);return t.isDT()?(0,h.uqV)({filters:a,options:o,customerTenant:t.tenant,dataTenant:t.searchTenant,dtssPath:t.dtssPath}):(0,h.ZOr)(a,o)},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"uri",values:[e]}],{offset:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{offset:t,max:e}),this.requestTotal=()=>{const e=[this.getQueryFilter()],t=this.globalSearchRequestOptions;return(this.isDT()?(0,h.J$m)({filters:e,options:t,customerTenant:this.tenant,dataTenant:this.searchTenant,dtssPath:this.dtssPath}):(0,h.j_Q)(e,t)).then((e=>e.total))},this.query=n,this.sortField=a,this.sortOrder=o,this.tenant=r,this.searchTenant=l,this.apiPath=i,this.dtssPath=s,this.globalSearchRequestOptions=c}}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){O(e,t,n[t])}))}return e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class k{constructor(e){var t=this;let{data:n,tenant:a,apiPath:o}=e;this.searchBody=void 0,this.tenant=void 0,this.apiPath=void 0,this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=[{rawFilter:t.searchBody.filter},...e];return(0,h.P2h)({apiPath:t.apiPath,tenant:t.tenant,searchBody:P({},t.searchBody,{filter:e.length?(0,h.Uqd)()(a):t.searchBody.filter}),options:n})},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"id",values:[(0,h.BTI)({uri:e})]}],{from:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{from:t,max:e}),this.requestTotal=()=>(0,h.dED)({apiPath:this.apiPath,tenant:this.tenant,searchBody:this.searchBody}).then((e=>e.count)),this.searchBody=n,this.tenant=a,this.apiPath=o}}const D=(e,t)=>(0,x.pipe)((0,x.map)((0,x.prop)("uri")),(0,x.reject)((e=>t.includes(e))))(e),R=e=>{let{className:t}=e;const{total:n,onPrev:r,onNext:l,onSearchResultsClick:i,isPrevDisabled:s,isNextDisabled:c}=(()=>{const e=(0,C._)(),t=(0,C._)(),n=(0,C._)(),{uri:o,index:r,total:l,tenant:i,cache:s}=(0,b.useSelector)(v.ZP.selectors.getSearchNavigationData)||{},{type:c,data:u}=(0,b.useSelector)(v.ZP.selectors.getSearchProviderData)||{},p=(0,b.useSelector)(v.ZP.selectors.getTenant),d=(0,b.useSelector)(v.ZP.selectors.getApiPath),m=(0,b.useSelector)(v.ZP.selectors.getDtssPath),f=(0,b.useSelector)((e=>v.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),y=(0,a.useContext)(E.m),g=(0,b.useDispatch)(),[x,S]=(0,a.useState)(!1),w=(0,a.useMemo)((()=>((e,t)=>{switch(e){case"search":return new T(t);case"graphsearch":return new k(t)}})(c,{data:u,tenant:p,searchTenant:i,apiPath:d,dtssPath:m,globalSearchRequestOptions:f})),[c,u,p,i,d,m,f]),P=(0,a.useCallback)((e=>{g(v.yC.actions.updateSearchNavigationDataFields(e))}),[g]),O=(0,a.useCallback)((e=>{const t=p!==i?(0,h.wwR)({uri:e,dataTenant:i}):e;g(v.ui.actions.openEntity({uri:t,viewId:y,source:"navigation"}))}),[g,y,p,i]),R=(0,a.useCallback)((()=>{g(v.ui.actions.openPerspective({perspectiveId:c,viewId:y}))}),[g,c,y]);(0,a.useEffect)((()=>{r>=l?P({index:l-1}):r<0&&P({index:0})}),[l,r,P]);const N=(0,a.useCallback)(((e,a,o)=>{S(!0),t(w.requestTotal()).then((e=>P({total:e})));const r=o+1;return n(w.requestEntities(15,r)).then((t=>{if(t){if(t.length){const n=D(t,e);if(n.length>0)return P({cache:e.concat(n),uri:n[0],index:r+t.length-n.length}),void O(n[0]);if(o+t.length<a-1)return N(e,a-t.length,o+t.length)}P({index:r})}})).finally((()=>{S(!1)}))}),[w,P,O]),Z=(0,a.useCallback)(((e,a)=>{S(!0),t(w.requestTotal()).then((e=>P({total:e})));const o=a-1,r=Math.max(0,a-15),l=15+Math.min(0,a-15);return n(w.requestEntities(l,r)).then((t=>{if(t){if(t.length){const n=D(t,e);if(n.length>0)return P({cache:n.concat(e),uri:n[n.length-1],index:o-(t.length-n.length)}),void O(n[n.length-1]);if(a-t.length>0)return Z(e,a-t.length)}P({index:0})}})).finally((()=>{S(!1)}))}),[w,P,O]),I=(0,a.useCallback)(((t,n,a,o)=>{if(n<t.length){const r=t[n];return S(!0),e(w.checkEntity(r)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),I(e,n,a-1,o)}P({index:o+1,uri:r,cache:t,total:a}),O(r)})).finally((()=>{S(!1)}))}if(!(o>=a-1))return N(t,a,o);P({cache:t,total:a,index:a-1})}),[w,P,O,N]),M=(0,a.useCallback)(((t,n,a,o)=>{if(n>-1){const r=t[n];return S(!0),e(w.checkEntity(r)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),M(e,n-1,a-1,o-1)}P({index:o-1,uri:r,cache:t,total:a}),O(r)})).finally((()=>{S(!1)}))}if(!(o<=0))return Z(t,o);P({index:0,cache:t,total:a})}),[w,P,O,Z]),j=(0,a.useCallback)((()=>{if(s&&o){const e=s.indexOf(o)-1;M(s,e,l,r)}}),[M,s,o,l,r]),F=(0,a.useCallback)((()=>{if(s&&o){const e=s.indexOf(o)+1;I(s,e,l,r)}}),[I,s,o,l,r]);return{total:l,onPrev:j,onNext:F,onSearchResultsClick:R,isPrevDisabled:x||r<=0,isNextDisabled:x||r>=l-1}})();return(()=>{const{cache:e}=(0,b.useSelector)(v.ZP.selectors.getSearchNavigationData)||{},t=(0,b.useSelector)(v.ZP.selectors.getMode),n=(0,b.useSelector)(v.ZP.selectors.getEntity);return(0,h.uzs)(t)&&(null==e?void 0:e.includes(null==n?void 0:n.uri))})()?o().createElement(g,{className:t,total:n,onPrev:r,onNext:l,onSearchResultsClick:i,isPrevDisabled:s,isNextDisabled:c}):null}},54013:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(24328),o=n.n(a),r=n(47603),l=n(87918),i=n.n(l),s=n(8818),c=n(55847);const u=e=>{let{items:t,menuId:n}=e;return o().createElement(c.Z,{buttonComponent:s.k,buttonProps:{icon:r.Z,tooltipTitle:i().text("Settings"),size:"L"},menuId:n,menuItems:t})}},3409:(e,t,n)=>{n.d(t,{Z:()=>d});var a=n(24328),o=n.n(a),r=n(52730),l=n(59431),i=n(94079),s=n(17440),c=n(87918),u=n.n(c);const p=(0,n(79692).Z)({root:{display:"flex",alignItems:"flex-start"},slice:{fontWeight:500},cancelButton:{width:"88px",flexShrink:0,marginLeft:"15px"}}),d=()=>{const e=p(),t=(0,r.useSelector)(l.ZP.selectors.getHistoryEvent),n=(0,r.useDispatch)(),a=(0,s.pipe)(l.N5.history.actions.clearHistoryEvent,n);return t?o().createElement("div",{className:e.root},o().createElement(i.Typography,{component:"div"},u().text("You are viewing a historic slice:")," ",o().createElement("span",{className:e.slice},u().date(t.aStamp,"llll"))),o().createElement(i.Button,{className:e.cancelButton,variant:"contained",color:"primary",onClick:a},u().text("Cancel"))):null}},7718:(e,t,n)=>{n.d(t,{C:()=>h});var a=n(24328),o=n(52730),r=n(17440),l=n(74489),i=n(59431);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){c(e,t,n[t])}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=(e,t)=>t.filter((t=>t.replyId!==e)),p=(e,t)=>{const n=e.replies.findIndex((e=>{let{replyId:n}=e;return n===t.replyId})),a=[...e.replies];return a[n]=t,a},d=[],m=e=>console.error("Collaboration error",e),h=e=>{let{objectIds:t=d,objectTypes:n,enabled:c=!0}=e;const h=(0,o.useSelector)(i.ZP.selectors.getEntity),f=(0,o.useSelector)(i.ZP.selectors.getTenant),y=(0,o.useSelector)(i.ZP.selectors.getCollaborationPath),g=(0,o.useSelector)(i.ZP.selectors.isCollaborationEnabled)&&c,[b,v]=(0,a.useState)(null),[x,E]=(0,a.useState)([]),[C,S]=(0,a.useState)(null),[w,T]=(0,a.useState)(null),[P,O]=(0,a.useState)(!1),[k,D]=(0,a.useState)(!1),[R,N]=(0,a.useState)({}),Z=(0,a.useCallback)((e=>{S((t=>s({},t,e)))}),[]),I=null==h?void 0:h.uri,M=(0,a.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(g&&I&&!(0,l.ZiX)(I)){const n=e=>{console.warn("Collaboration error",e),S(null)};(0,r.pipe)(l.$oF,(0,r.andThen)((0,r.map)((0,r.props)(["objectId","comments"]))),(0,r.andThen)(r.fromPairs),(0,r.andThen)(t?S:Z),(0,r.otherwise)(n))({uris:e,tenant:f,collaborationPath:y})}else S(null)}),[Z,y,I,g,f]);(0,a.useEffect)((()=>{M(t,!0)}),[t,M]);const j=(0,a.useCallback)(((e,t)=>{(0,l.liG)({collaborationPath:y,tenant:f,relatedObjectUri:e,pageToken:t}).then((e=>{let{items:n,nextPageToken:a}=e;E((e=>t?(0,r.uniqBy)((0,r.prop)("commentId"),[...e,...n]):n)),v(a)})).catch(m)}),[y,f]),F=(0,a.useCallback)((e=>{D(!0),(0,l.d7q)({collaborationPath:y,tenant:f,commentId:e}).then(T).catch(m).finally((()=>D(!1)))}),[y,f]),A=(0,a.useCallback)((e=>{let{content:t,namedUsers:n,objectType:a,uri:o,relatedObjectUris:r}=e;O(!0);const i={objectId:o,content:t,relatedObjectUris:r,objectType:a,visibility:"public",namedUsers:n,permanentLink:""};return(0,l.Yrx)({collaborationPath:y,tenant:f,data:i}).then((e=>{let[t]=e;return((e,t)=>{T(e),S((n=>s({},n,{[t]:[...n[t]||[],{commentId:e.commentId,replies:0,status:"open"}]}))),E((t=>[e,...t]))})(t,o)})).catch(m).finally((()=>O(!1)))}),[y,f]),B=(0,a.useCallback)((e=>{let{content:t,namedUsers:n,objectType:a,uri:o,relatedObjectUris:i,commentId:c,replies:u}=e;O(!0);const p={objectId:o,content:t,relatedObjectUris:i,objectType:a,visibility:"public",namedUsers:n,permanentLink:"",commentId:c,replies:u};return(0,l.uAg)({collaborationPath:y,tenant:f,data:p}).then((e=>(e=>{T(e),E((0,r.map)((0,r.when)((0,r.propEq)("commentId",e.commentId),(0,r.always)(e))))})(s({},e,{replies:u})))).catch(m).finally((()=>O(!1)))}),[y,f]),L=(0,a.useCallback)((e=>{let{uri:t,commentId:n}=e;O(!0),(0,l.YFy)({collaborationPath:y,tenant:f,commentId:n}).then((()=>((e,t)=>{T(null),S((n=>{const a=n[t]||[];return s({},n,{[t]:a.filter((t=>t.commentId!==e))})})),E((t=>t.filter((t=>t.commentId!==e))))})(n,t))).catch(m).finally((()=>O(!1)))}),[y,f]),U=(0,a.useCallback)(((e,t,n,a)=>{const o="resolve"===e.action?"resolved":"open",{replyId:r}=e;T("resolved"===o?e=>{if(e)return null}:t=>{if(t)return s({},t,{replies:a?u(r,t.replies):[...t.replies,e]})}),S((e=>s({},e,{[t]:(e[t]||[]).map((e=>e.commentId===n?s({},e,{status:o,replies:a?e.replies-1:e.replies+1}):e))}))),E((t=>t.map((t=>t.commentId===n?s({},t,{status:o,replies:a?u(e.replyId,t.replies):[...t.replies,e]}):t))))}),[]),z=(0,a.useCallback)((e=>{let{uri:t,commentId:n,reply:a}=e;O(!0),(0,l.Mfr)({collaborationPath:y,tenant:f,commentId:n,replyId:a.replyId}).then((()=>U(a,t,n,!0))).catch(m).finally((()=>O(!1)))}),[y,U,f]),W=(0,a.useCallback)(((e,t)=>{T((t=>{if(t)return s({},t,{replies:p(t,e)})})),E((n=>n.map((n=>n.commentId===t?s({},n,{replies:p(n,e)}):n))))}),[]),_=(0,a.useCallback)((e=>{let{content:t,namedUsers:n,commentId:a,replyId:o}=e;O(!0);const r={content:t,namedUsers:n};return(0,l.ufV)({collaborationPath:y,tenant:f,commentId:a,replyId:o,data:r}).then((e=>W(e,a))).catch(m).finally((()=>O(!1)))}),[y,f,W]),H=(0,a.useCallback)((e=>{let{content:t,namedUsers:n,commentId:a,action:o,uri:r}=e;O(!0);const i={content:t,action:o,namedUsers:n};return(0,l.PP2)({collaborationPath:y,tenant:f,commentId:a,data:i}).then((e=>{let[t]=e;return U(t,r,a)})).catch(m).finally((()=>O(!1)))}),[y,f,U]),V=(0,a.useCallback)((e=>{let{commentId:t,uri:n}=e;H({content:"",namedUsers:[],commentId:t,action:"resolve",uri:n})}),[H]),q=(0,a.useCallback)((e=>{let{commentId:t,uri:n}=e;H({content:"",namedUsers:[],commentId:t,action:"reopen",uri:n})}),[H]);return{clearCurrentComment:(0,a.useCallback)((()=>{T(null)}),[]),comments:x,commentsMap:C,getCommentState:(e,t)=>(0,r.pathOr)({},[e,t],R),updateCommentState:(e,t,n)=>{N((a=>{const o=[e,t],l=(0,r.path)(o,a);return(0,r.assocPath)(o,(0,r.mergeRight)(l,n),a)}))},clearCommentState:(e,t)=>N((0,r.dissocPath)([e,t])),createComment:A,createReply:H,currentComment:w,deleteComment:L,editComment:B,getComment:F,getComments:j,getCommentsCount:M,loading:k,objectTypes:n,pageToken:b,reOpenThread:q,resolveThread:V,sending:P,deleteReply:z,editReply:_}}},37152:(e,t,n)=>{n.d(t,{a:()=>m});var a=n(24328),o=n(52730),r=n(17440),l=n(59431),i=n(74489),s=n(85229),c=n(30634);function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){p(e,t,n[t])}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.when)(r.identity,(0,r.pipe)(i.VGB,r.length,(0,r.times)((e=>e+1)))),m=e=>{let{sorting:t,filter:n,page:p,rowsPerPage:m,config:h,entity:f,relationActivityFilter:y,mode:g,searchByOv:b=!1}=e;const[v,x]=(0,a.useState)(!1),E=(0,o.useDispatch)(),C=(0,o.useSelector)(l.ZP.selectors.getTenant),S=(0,o.useSelector)(l.ZP.selectors.getMetadata),w=(0,o.useSelector)(l.ZP.selectors.getDtssPath),{activityFilter:T,globalFilter:P}=(0,o.useSelector)(l.ZP.selectors.getGlobalSearchRequestOptions)||{},O=(0,s._)(),k=e=>{const t=(0,r.when)(i.Kn2,(0,r.prop)("uri")),n=(0,r.pipe)(t,(0,i.pQZ)(S));return(0,r.evolve)({entityTypes:(0,r.filter)((0,i.kuw)(S)),inRelations:(0,r.filter)(n),outRelations:(0,r.filter)(n),nextEntry:k})(e)},D=h.suggested,R=(0,a.useMemo)((()=>({searchByOv:b})),[b]),N=(0,a.useCallback)((()=>{if(null!=f&&f.uri){const e=u({},k(h.content),{sortBy:null==t?void 0:t.field,order:null==t?void 0:t.order,returnDates:!0,returnObjects:!0,activeness:{relation:y||i.Ng6.ALL,entity:T},max:m,offset:p*m,filter:(0,i.vyX)(P,n)||void 0,suggested:d(D)}),a=[e].concat((0,r.ifElse)(r.identity,(0,r.pipe)(i.VGB,(t=>t.map(((t,n)=>u({},t,{id:e.suggested[n]}))))),(0,r.always)([]))(D)),o=(0,r.cond)([[(0,r.pipe)((0,r.prop)("uri"),i.ZiX),()=>Promise.resolve([{total:0}])],[i.biM,e=>(0,i.n_1)({entityUri:e.uri,configs:a,customerTenant:C,dataTenant:e.dataTenant,dtssPath:w,options:R})],[r.T,e=>(0,i.N6e)(e.uri,a,R)]]);x(!0),O(o(f)).then((e=>{let[{connections:t,total:n}]=e;E(l.N5.relations.actions.relationsLoaded({id:h.id,connections:t,total:n}))})).finally((()=>{x(!1)}))}}),[T,S,h,E,w,null==f?void 0:f.uri,null==f?void 0:f.dataTenant,n,P,p,y,m,O,t,C,R]),Z=(0,a.useRef)(!1);Z.current=!1,(0,a.useEffect)((()=>{Z.current=!0,N()}),[N]);const I=(0,c.D)(g);return(0,a.useEffect)((()=>{g!==i.ARY.Viewing||Z.current||I===g||(Z.current=!0,N())}),[N,g,I]),{isLoading:v,reload:N}}},17554:(e,t,n)=>{n.d(t,{U:()=>i});var a=n(24328),o=n(52730),r=n(74489),l=n(59431);const i=()=>{const[e,t]=(0,a.useState)([]),n=(0,o.useSelector)(l.ZP.selectors.getTenant),i=(0,o.useSelector)(l.ZP.selectors.getServicesPath),s=e=>{console.warn("Users error",e),t([])};return(0,a.useEffect)((()=>{(0,r.kz_)({tenant:n,servicesPath:i}).then((e=>{let{array:n}=e;return t(n)})).catch(s)}),[n,i]),e}},55451:(e,t,n)=>{n.r(t),n.d(t,{default:()=>qt});var a=n(24328),o=n.n(a),r=n(52730),l=n(8598),i=n(36138),s=n(44443),c=n(22664),u=n(39450),p=n(585),d=n(17440),m=n(59431),h=n(74489),f=n(17554),y=n(20562),g=n(37152),b=n(7718),v=n(49759),x=n(3515),E=n(31274),C=n(40715),S=n(99136),w=n(58662);function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){P(e,t,n[t])}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const O={relationsTable:{},attributesTable:{}};var k=n(26180),D=n(31276),R=n(86361),N=n(87918),Z=n.n(N);const I="relation.type",M="relation.attributes",j=[{id:"entity.label",get label(){return Z().text("Profile")},dataTypeDefinition:{type:h.oS0.TYPE_STRING},hideable:!1,filterable:!1,initialWidth:280,autoResize:!1},{id:I,get label(){return Z().text("Type")}},{id:"relation.label",get label(){return Z().text("Directional Label")},filterable:!1,dataTypeDefinition:{type:h.oS0.TYPE_STRING}},{id:"relation.activeness.startDate",get label(){return Z().text("Start Date")},dataTypeDefinition:{type:h.oS0.TYPE_ACTIVENESS_DATE}},{id:"relation.activeness.endDate",get label(){return Z().text("End Date")},dataTypeDefinition:{type:h.oS0.TYPE_ACTIVENESS_DATE}},{id:M,get label(){return Z().text("Attributes")},sortable:!1,filterable:!1,maxAttrsToShow:7}],F=(0,d.pluck)("id",j),A=[I,M],B=[20,50,100],L=(0,d.pipe)(h.Tde,(0,d.concat)("relation.")),U=(0,d.pipe)((0,d.map)((e=>({id:L(e.uri),label:e.label,dataTypeDefinition:(0,h.PFL)(e)}))),(0,d.uniqBy)((0,d.prop)("id")));function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){W(e,t,n[t])}))}return e}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _="CHANGE_RELATION_TYPE",H="APPLY_SAVED_STATE",V="SAVE_CURRENT_STATE",q=z({},k.ZP.actions,{changeRelationType:(0,D.zD)(_),applySavedState:(0,D.zD)(H),saveCurrentState:(0,D.zD)(V)}),Y=(0,d.assoc)("page",0),G=e=>(0,d.pipe)((0,d.prop)("visibleColumns"),(0,d.ifElse)((0,d.always)(e.currentRelationType),(0,d.without)(A),(0,d.concat)(A)),(0,d.intersection)(F))(e),$=e=>(0,d.path)(["visibleColumnsForRelationTypes",`${e.currentRelationType}`],e),X=e=>{const t=(0,d.either)($,G)(e);return k.ZP.changeVisibleColumns(e,t)},K=(0,d.pipe)((0,d.propOr)(null,"filters"),(0,d.unless)(d.isNil,(0,d.filter)((e=>{let{filter:t,value:n}=e;return(0,h.jtL)(t,n)})))),Q=e=>{const{currentRelationType:t,visibleColumns:n}=e;return(0,d.evolve)({visibleColumnsForRelationTypes:(0,d.assoc)(`${t}`,n)},e)},J=(0,d.pipe)(Q,(0,d.pick)(["currentRelationType","visibleColumnsForRelationTypes","filters","sorting"]));var ee=n(99341),te=n(94079),ne=n(92778),ae=n(30553),oe=n(51229),re=n(54013),le=n(1876),ie=n(60894),se=n(79026),ce=n(79692);const ue=(0,ce.Z)({select:{fontSize:"13px",color:"rgba(0,0,0,.6)",paddingLeft:"15px","&&":{paddingRight:"35px"}},selectMenu:{"& li":{fontSize:"13px",height:"32px"}},textField:{maxWidth:"100%"}}),pe=e=>{let{value:t,onChange:n,relationTypes:r,className:l}=e;const i=ue(),s=(0,a.useMemo)((()=>(0,d.pipe)((0,d.map)((e=>{let{label:t,uri:n}=e;return{label:t,value:n}})),(0,d.concat)([{value:"",label:Z().text("All types")}]))(r)),[r]);return o().createElement("div",{className:l},o().createElement(se.Z,{displayEmpty:!0,disableUnderline:!0,classes:{select:i.select},TextFieldProps:{classes:{root:i.textField}},MenuProps:{classes:{list:i.selectMenu}},value:t||"",entries:s,onChange:e=>n(e||null)}))},de=(0,ce.Z)((e=>({header:{height:"56px",boxSizing:"border-box",paddingRight:"10px"},title:{fontSize:"16px"},total:{fontSize:"14px",color:e.palette.text.secondary,flexShrink:0,marginRight:"5px"},relationTypeSelector:{margin:"0px 10px 0 30px",overflow:"hidden"}}))),me=(0,a.memo)((e=>{let{total:t,filteringEnabled:n,onToggleFilters:r,columnsData:l,selectedColumns:i,currentRelationType:s,onRelationTypeChange:c,relationTypes:u,onChangeColumns:p,searchByOv:d,onToggleSearchByOv:m}=e;const h=de(),f=(0,a.useMemo)((()=>[{selected:d,selectable:!0,text:Z().text("Search by OV only"),onClick:m,id:"showNonOv"}]),[m,d]);return o().createElement(ne.Z,{title:Z().text("Relationships"),classes:{root:h.header,title:h.title}},u.length>0&&o().createElement(pe,{className:h.relationTypeSelector,value:s,onChange:c,relationTypes:u}),o().createElement(ae.Z,{height:28,margin:20}),o().createElement(te.Typography,{variant:"caption",className:h.total},1===t?Z().text("${count} record",{count:t}):Z().text("${count} records",{count:t})),o().createElement(oe.Z,null),o().createElement(re.Z,{items:f,menuId:"relationships-view-settings"}),o().createElement(le.Z,{enabled:n,onClick:r}),o().createElement(ae.Z,{height:28,margin:8}),o().createElement(ie.Z,{columnsData:l,selectedColumns:i,onChangeColumns:p}))}));var he=n(74402),fe=n(97946),ye=n(85709),ge=n(25461),be=n(92332),ve=n(67353);const xe=(0,ce.Z)((e=>({headCell:{display:"flex",alignItems:"center",height:"100%",width:"100%",fontSize:"12px",color:e.palette.text.secondary,background:"linear-gradient(0deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)), #FFFFFF"},rowCell:{fontSize:"13px",overflow:"hidden",overflowWrap:"break-word"},inactiveRowCell:{opacity:.6},defaultWrapper:{padding:"15px 25px 0 25px","&:last-child":{paddingBottom:"15px"}},entityCell:{display:"flex",alignItems:"flex-start",padding:"15px"},entityAvatar:{transform:"scale(0.5)",margin:"-10px 0 -10px -10px"},inactiveEntityAvatar:{overflow:"initial","&:after":{content:'""',position:"absolute",backgroundColor:"rgb(209, 206, 206)",border:"1px solid rgba(0, 0, 0, 1)",borderRadius:"2px",width:"12px",right:0,bottom:0,height:"12px"},"& > img":{borderRadius:"50%",overflow:"hidden"}},entityLabel:{color:e.palette.primary.main,textDecoration:"none",fontWeight:500},attributesWrapper:{padding:"15px 25px 10px 25px",color:"rgba(0,0,0,0.87)"},commentsContainer:{marginLeft:"auto"}}))),Ee=(0,ve.Z)((e=>{const t=xe();return o().createElement("div",{className:t.headCell},o().createElement(be.default,e))}));var Ce=n(71153),Se=n.n(Ce),we=n(19603),Te=n(31254),Pe=n(31039),Oe=n(94646);const ke=e=>{let{value:{entity:t,entityType:n,relation:a},isInactiveRelation:l}=e;const i=xe(),s=(0,r.useSelector)(m.ZP.selectors.getEntityUri);return o().createElement("div",{className:Se()(i.entityCell,we.U)},o().createElement(Te.Z,{className:Se()(i.entityAvatar,{[i.inactiveEntityAvatar]:l}),entityType:n}),o().createElement(Pe.Z,{value:(0,h.wwR)({uri:t.entityUri,dataTenant:t.dataTenant}),className:i.entityLabel},(0,h.idV)(t.entityLabel)),o().createElement("div",{className:i.commentsContainer,onClick:e=>e.stopPropagation()},o().createElement(Oe.Z,{uri:a.relationUri,relatedObjectUris:(0,h.wp9)(h.q7e.RELATION,{entityUri:s,connection:{relation:a,entity:t}}),objectType:h.q7e.RELATION,allowOnlyOneComment:!0})))};var De=n(80931);const Re=e=>{let{columnData:t,value:{attributes:n,attributeTypes:a}}=e;const r=xe();return o().createElement("div",{className:r.attributesWrapper,onClick:e=>e.stopPropagation()},o().createElement(De.Z,{max:t.maxAttrsToShow,entity:{attributes:n},attrTypes:a,drawLines:!1}))};var Ne=n(72768);const Ze=e=>{let{value:t,columnData:{dataTypeDefinition:n}}=e;const a=xe();return o().createElement("div",{className:a.defaultWrapper},o().createElement(Ne.Z,{value:t,dataTypeDefinition:n}))};function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Me=(0,d.pipe)((0,d.split)("."),(0,d.slice)(2,1/0)),je=e=>{if(e.startsWith("relation.attributes")){const t=Me(e);return t.length>1?t.slice(0,-1):null}return null},Fe=e=>{switch(e){case"entity.label":return ke;case"relation.attributes":return Re;default:return Ze}},Ae=(0,d.map)((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){Ie(e,t,n[t])}))}return e}({sortable:!0,resizable:!0},e,{headCellRenderer:Ee,nestedPath:je(e.id),rowCellValueRenderer:Fe(e.id)}))),Be=(0,d.cond)([[(0,d.pathEq)(["columnData","id"],"relation.attributes"),e=>{let{columnData:t,cell:n}=e;const a=(0,d.pipe)((0,d.path)(["values",0,"attributes"]),d.values,d.length)(n);return a>t.maxAttrsToShow?26*t.maxAttrsToShow+49:26*a+25}],[d.T,ge.Z]]);function Le(){return Le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Le.apply(this,arguments)}const Ue=e=>{let{cell:t,CellValueRenderer:n}=e,a=function(e,t){if(null==e)return{};var n,a,o=function(e,t){if(null==e)return{};var n,a,o={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["cell","CellValueRenderer"]);const r=xe();return o().createElement("div",{className:Se()(r.rowCell,{[r.inactiveRowCell]:a.isInactiveRelation})},t.values.map(((e,t)=>o().createElement(n,Le({key:t,value:e},a)))))};var ze=n(22983),We=n(43054),_e=n(55847),He=n(22385),Ve=n(81137),qe=n(83348);const Ye=(0,ce.Z)((e=>({menuItem:{minHeight:"32px",color:e.palette.text.secondary},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"16px"},buttons:{display:"flex",alignItems:"center",paddingRight:"5px"}}))),Ge=(0,qe.Z)(te.MenuItem),$e=(0,a.forwardRef)(((e,t)=>{let{item:n,onMenuClose:a=D.ZT}=e;const r=Ye(),{icon:l,disabled:i,text:s,tooltip:c,onClick:u}=n;return o().createElement(Ge,{tooltipTitle:c,showForDisabled:!0,classes:{root:r.menuItem},onClick:e=>{a(),u(e)},disabled:i,ref:t},l,o().createElement(te.Typography,{classes:{root:r.menuText}},s))}));$e.displayName="MenuItemRenderer";const Xe=$e,Ke=e=>{let{disableDelete:t,connection:{entity:n,relation:l},onMenuOpen:i=D.ZT,onMenuClose:s=D.ZT,onDelete:c}=e;const u=Ye(),p=(0,r.useSelector)(m.ZP.selectors.getMetadata),f=(0,d.pipe)((0,d.prop)("relationType"),(0,h.V3K)(p),(0,h.uGe)(h.BDP.DELETE))(l),y=!t&&f,[g,b]=(0,a.useState)(!1),v=()=>b(!1),x=[{disabled:!y,text:Z().text("Delete"),icon:o().createElement(ze.Z,null),tooltip:y?null:Z().text("You don't have permissions to delete"),onClick:()=>b(!0)}],E=(0,a.useCallback)((()=>{g||s()}),[g,s]);return o().createElement("div",{className:u.buttons},o().createElement(_e.Z,{MenuItemRenderer:Xe,menuId:"relationships-table-actions",buttonComponent:He.Z,buttonProps:{icon:We.Z,size:"S"},menuItems:x,onMenuOpen:i,onMenuClose:E}),o().createElement(Ve.Z,{open:g,title:Z().text('Do you want to delete relationship "${label}"?',{label:(C=(0,h.idV)(n.entityLabel),C.length>17?`${C.substring(0,17)}...`:C)}),content:Z().text("This relationship will be removed and all the values in the relationship will be permanently deleted. Are you sure you want to delete this relationship?"),onSave:(0,d.pipe)(v,s,c),onDiscard:(0,d.pipe)(v,s),saveCaption:Z().text("Delete"),discardCaption:Z().text("Cancel")}));var C},Qe=(0,ce.Z)({tableContainer:{flex:1,overflow:"hidden",display:"flex",zIndex:0},hoveredRowRightContentWrapper:{width:"100%",pointerEvents:"none!important"},menuButtonContainer:{position:"absolute",top:"calc(50% - 12px)",right:0,pointerEvents:"all"},tooltipAnchor:{width:"100%",height:"1px"}});function Je(){return Je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Je.apply(this,arguments)}const et=(0,a.memo)((e=>{let{metadata:t,connections:n,columnsData:r,sorting:l,onSort:i,filters:s,onFilter:c,onRowClick:u,tableRef:p,onDelete:m,readOnly:f}=e;const y=Qe(),g=(0,a.useMemo)((()=>((e,t,n)=>(n||[]).map((n=>(0,d.pipe)((0,d.reduce)(((t,a)=>{let{id:o}=a;return(0,d.assoc)(o,((e,t,n)=>{let{entity:a,relation:o}=t;switch(n){case"entity.label":return{entity:a,entityType:(0,h.nt9)(e,a.entityType),relation:o};case"relation.type":return o.relationType;case"relation.label":return o.relationLabel;case"relation.activeness.startDate":return o.startDate;case"relation.activeness.endDate":return o.endDate;case"relation.attributes":return{attributes:o.object.attributes,attributeTypes:(0,h.V3K)(e,o.relationType).attributes};default:return((e,t)=>(0,d.pipe)((0,d.path)(["object","attributes"]),(0,h.tT_)(e))(t))(Me(n),o)}})(e,n,o),t)}),{}),(0,d.assoc)("rawValue",n))(t))))(t,r,n)),[t,n,r]),b=(0,a.useMemo)((()=>Ae(r)),[r]),{getDynamicRowCellHeight:v,changeRowCellHeight:x}=(0,he.Z)(),E=(0,a.useCallback)((0,d.either)(v,Be),[v,Be]),[C,S]=(0,a.useState)(null),w=(0,a.useCallback)((e=>{const t=!(0,h.Fn9)(e.rowValue.rawValue.relation);return o().createElement(fe.Z,Je({onChangeHeight:x},e),o().createElement(Ue,Je({},e,{isInactiveRelation:t})))}),[x]),[T,P]=(0,a.useState)(!1),O=(0,a.useCallback)((()=>P(!0)),[]),k=(0,a.useCallback)((()=>{S(null),P(!1)}),[]),D=(0,a.useCallback)((e=>S((t=>T?t:e))),[T]),R=(0,a.useMemo)((()=>{const e=null!=C?g[C].rawValue:null,t=!(0,h.Fn9)(null==e?void 0:e.relation);return e&&o().createElement(o().Fragment,null,o().createElement(te.Tooltip,{key:e.relation.relationUri,open:t,title:Z().text("Inactive")},o().createElement("div",{className:y.tooltipAnchor})),o().createElement("div",{className:y.menuButtonContainer},o().createElement(Ke,{disableDelete:f,connection:e,onMenuOpen:O,onMenuClose:k,onDelete:()=>m(e.relation.relationUri)})))}),[m,g,C]);return o().createElement("div",{className:y.tableContainer},o().createElement(ye.Z,{fixFirstColumn:!0,columnsData:b,rowsData:g,sorting:l,onSort:i,filters:s,onFilter:c,defaultColumnWidth:250,defaultColumnMinWidth:200,headRowHeight:48,getRowCellHeight:E,renderRowCell:w,onRowClick:u,ref:p,hoverStateEnabled:!0,hoverRowIndex:C,onRowHover:D,hoveredRowRightContent:R,classes:{hoveredRowRightContentWrapper:y.hoveredRowRightContentWrapper}}))}));var tt=n(85229),nt=n(85965),at=n(39417),ot=n(10237),rt=n(63149),lt=n(48017),it=n(96955),st=n(66095),ct=n(20982),ut=n(99144),pt=n(65549),dt=n(52017),mt=n(90186);const ht=(0,ce.Z)((()=>({tableRow:{"& + &":{marginTop:"4px"},margin:"auto",maxWidth:"448px"}})));function ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yt=(0,a.memo)((e=>{let{readOnly:t,relation:n,metadata:r,selectedAttributeTypes:l,onDeleteCrosswalk:i,onEditCrosswalk:s}=e;const c=ht(),u=(0,h.V3K)(r,n.type),p=(0,a.useMemo)((()=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,d.pipe)((0,d.propOr)([],"crosswalks"),(0,d.map)((0,d.assoc)("ownerType","entity")),(0,mt.o)(e.type,t))(e)}(n,l)),[n,l]),[m,f]=(0,a.useState)([]),y=(0,a.useCallback)((e=>{i({entityUri:n.uri,crosswalkId:e})}),[i,n.uri]),g=(0,a.useCallback)((e=>{s(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){ft(e,t,n[t])}))}return e}({entityUri:n.uri},e))}),[s,n.uri]);return o().createElement("div",null,p.map((e=>{let{source:n,crosswalksByTypes:a}=e;return o().createElement("div",{key:n,className:c.tableRow},o().createElement(dt.Z,{source:n,crosswalksByTypes:a,expanded:m.includes(n),disableEditCrosswalk:!(0,h.Zm0)(u)||t,disableDeleteCrosswalk:!(0,h.a14)(u)||t,onEdit:g,onDelete:y,onToggleExpanded:()=>{f((0,d.ifElse)((0,d.includes)(n),(0,d.without)([n]),(0,d.append)(n)))}}))})))}));var gt=n(79769);const bt=(0,ce.Z)((e=>({header:{display:"flex",flexDirection:"row",alignItems:"center",padding:"20px 12px",borderBottom:"1px solid rgba(0, 0, 0, 0.12)"},title:{fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px",color:e.palette.text.primary,marginLeft:"12px"},hint:{color:e.palette.text.secondary,display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"flex-start",margin:"4px 14px 10px"},hintText:{marginLeft:"8px",fontSize:"12px",lineHeight:"16px"},buttons:{display:"flex",padding:"8px 6px 4px"},buttonLabel:{fontSize:"14px",fontWeight:500,lineHeight:"16px"},icon:{fontSize:"18px",marginRight:"8px"},editor:{paddingLeft:25,margin:"auto",maxWidth:"448px",boxSizing:"border-box",marginBottom:"4px"},tableContainer:{overflowY:"auto",overflowX:"hidden",paddingLeft:"16px",paddingRight:"6px"}}))),vt=(0,qe.Z)(te.Button),xt=(0,a.memo)((e=>{let{className:t,readOnly:n,relation:l,selectedAttributeTypes:i,onAddCrosswalk:s,onDeleteCrosswalk:c,onEditCrosswalk:u}=e;const p=bt(),d=(0,r.useSelector)(m.ZP.selectors.getMetadata),f=(0,h.V3K)(d,l.type),[y,g]=(0,a.useState)(!1),b=(0,h.mkC)(f)&&!n;return o().createElement("div",{className:t},o().createElement("div",{className:p.header},o().createElement("span",{className:p.title},Z().text("Legend"))),o().createElement("div",{className:p.buttons},o().createElement(vt,{color:"primary",showForDisabled:!0,disabled:!b,tooltipTitle:b?null:Z().text("You don't have permissions to add crosswalk"),onClick:()=>g(!0)},o().createElement(pt.Z,{className:p.icon}),o().createElement("div",{className:p.buttonLabel},Z().text("Crosswalk")))),o().createElement("div",{className:p.hint},o().createElement(ut.Z,{className:p.icon}),o().createElement("span",{className:p.hintText},Z().text("You can drag a crosswalk to add values to attributes swimlanes"))),o().createElement("div",{className:p.tableContainer},y&&o().createElement(gt.Z,{className:p.editor,onAdd:e=>s({entity:l,crosswalk:e}),onClose:()=>g(!1)}),o().createElement(yt,{readOnly:n,metadata:d,relation:l,selectedAttributeTypes:i,onDeleteCrosswalk:c,onEditCrosswalk:u})))}));var Et=n(88611),Ct=n(23147),St=n(94111),wt=n(64459),Tt=n(68439);const Pt=(0,ce.Z)((e=>({entityInfo:{flex:"0 1 auto",overflow:"hidden",minWidth:"100px"},entityLabelContainer:{display:"flex",alignItems:"center",overflow:"hidden"},entityLabel:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary},infoIcon:{fontSize:"16px",color:e.palette.text.secondary,marginLeft:"5px"},profileBand:{margin:"-10px",maxWidth:"500px"},entityTypeBadge:{marginTop:"7px"}}))),Ot=e=>{let{entity:t}=e;const n=Pt(),a=(0,h.idV)(t.label);return o().createElement("div",{className:n.entityInfo},o().createElement("div",{className:n.entityLabelContainer},o().createElement(Et.C,{value:a},o().createElement(te.Typography,{variant:"h6",className:n.entityLabel,noWrap:!0},a)),o().createElement(St.Z,{title:o().createElement(wt.Z,{className:n.profileBand,entity:t}),placement:"right"},o().createElement(ut.Z,{className:n.infoIcon}))),o().createElement(Tt.Z,{className:n.entityTypeBadge,entity:t,size:"medium"}))},kt=(0,ce.Z)((e=>({root:{flexShrink:0,overflow:"hidden",width:"110px"},label:{color:e.palette.text.secondary,fontSize:"13px"}}))),Dt=e=>{let{relation:t}=e;const n=kt(),{direction:a,relationLabel:r}=t;return o().createElement("div",{className:n.root},o().createElement(Et.C,{value:r},o().createElement(te.Typography,{variant:"subtitle2",className:n.label,align:"center",noWrap:!0},r)),o().createElement("svg",{width:"110",height:"12",fill:"black",fillOpacity:"0.3"},"out"===a&&o().createElement("polygon",{points:"94 0, 110 6, 94 12, 94 9, 0 9, 0 3, 94 3"}),"bidirectional"===a&&o().createElement("polygon",{points:"94 0, 110 6, 94 12, 94 9, 16 9, 16 12, 0 6, 16 0, 16 3, 94 3"}),"in"===a&&o().createElement("polygon",{points:"16 12, 0 6, 16 0, 16 3, 110 3, 110 9, 16 9"})))};var Rt=n(8459),Nt=n(27604);const Zt=(0,ce.Z)((()=>({root:{"&:hover $editButton":{visibility:"visible"}},editButton:{visibility:"hidden",marginLeft:"4px",marginBottom:"4px"},paper:{width:"150px",border:"3px solid rgba(0, 0, 0, 0.3)",borderRadius:"4px",boxSizing:"border-box",overflow:"hidden"}}))),It=e=>{let{value:t=null,onChange:n,readOnly:r}=e;const l=Zt(),i=(0,a.useRef)(),[s,c]=(0,a.useState)(!1),u=()=>c(!1),[p,d]=(0,a.useState)(t),m=()=>{p!==t&&n(p),u()};return o().createElement("span",{ref:i,className:l.root},t&&(0,h.p6d)(t),o().createElement(He.Z,{disabled:r,icon:Nt.Z,size:"XXS",className:l.editButton,onClick:()=>c(!0)}),o().createElement(te.Popover,{classes:{paper:l.paper},open:s,anchorEl:i.current,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:14,horizontal:20},onKeyUp:e=>{"Enter"===e.key?m():"Escape"===e.key&&u()},onBackdropClick:m},o().createElement(Rt.Z,{InputProps:{autoFocus:!0,disableUnderline:!0,fullWidth:!0},size:"small",hiddenLabel:!0,label:void 0,value:p&&new Date(p),onChange:e=>d(e&&e.valueOf())})))},Mt=(0,ce.Z)((e=>({relationBand:{flexShrink:0,boxShadow:"inset 0px -1px 0px rgba(0,0,0,0.06)",padding:"16px 19px"},inactiveRelationBand:{opacity:.6,background:"rgba(185, 188, 197, 0.18)"},toolbar:{display:"flex",alignItems:"center",gap:"16px",marginBottom:"10px"},mainInfo:{display:"flex",gap:"16px",marginLeft:"40px"},detailsInfo:{display:"flex",gap:"34px",marginLeft:"40px",marginTop:"17px",color:e.palette.text.secondary,fontSize:"13px"},detailTitle:{color:e.palette.text.primary,flexShrink:0,marginRight:"4px"},directionalLabel:{display:"flex",overflow:"hidden","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},relationDate:{flexShrink:0},commentsContainer:{marginRight:"18px"}})));function jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){Ft(e,t,n[t])}))}return e}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const At=(0,a.memo)((e=>{let{readOnly:t,entity:n,connection:a,onNavigateBack:r,onDelete:l,onChangeActivenessDate:i}=e;const s=!(0,h.Fn9)(a.relation),c=Mt();return o().createElement("div",{className:Se()(c.relationBand,we.U,{[c.inactiveRelationBand]:s})},o().createElement("div",{className:c.toolbar},o().createElement(He.Z,{icon:Ct.Z,size:"S",onClick:()=>r()}),o().createElement(te.Typography,{variant:"subtitle2",display:"inline"},Z().text("Back to relationships")),o().createElement(oe.Z,null),o().createElement("div",{className:c.commentsContainer},o().createElement(Oe.Z,{uri:a.relation.relationUri,relatedObjectUris:(0,h.wp9)(h.q7e.RELATION,{entityUri:null==n?void 0:n.uri,connection:a}),objectType:h.q7e.RELATION,allowOnlyOneComment:!0})),o().createElement(Ke,{connection:a,onDelete:l,disableDelete:t})),o().createElement("div",{className:c.mainInfo},o().createElement(Ot,{entity:n}),o().createElement(Dt,{relation:a.relation}),o().createElement(Ot,{entity:jt({},a.entity.object,{dataTenant:a.entity.dataTenant})})),o().createElement("div",{className:c.detailsInfo},o().createElement("div",{className:c.directionalLabel},o().createElement("span",{className:c.detailTitle},Z().text("Directional label:")),o().createElement(Et.C,{value:a.relation.relationLabel},o().createElement("span",null,a.relation.relationLabel))),o().createElement("div",{className:c.relationDate},o().createElement("span",{className:c.detailTitle},Z().text("Start date:")),o().createElement(It,{value:a.relation.startDate,onChange:e=>i("startDate",e),readOnly:t})),o().createElement("div",{className:c.relationDate},o().createElement("span",{className:c.detailTitle},Z().text("End date:")),o().createElement(It,{value:a.relation.endDate,onChange:e=>i("endDate",e),readOnly:t}))))})),Bt=e=>{console.error(e),p.Z.addError({title:Z().text("Error"),message:(0,h.xU7)(e,Z().text("Something went wrong"))})};var Lt=n(58651),Ut=n(13896);const zt=(0,ce.Z)({detailsView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},locked:{pointerEvents:"none"},resizablePanesWrapper:{flexGrow:1},pane:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",overflow:"hidden"}}),Wt=(0,a.memo)((e=>{let{entity:t,connection:n,visibleColumns:r,onClose:l,onDeleteConnection:i,onChangeConnection:s,onChangeVisibleColumns:c,readOnly:u}=e;const p=zt(),m=(()=>{const[e,t]=(0,a.useState)([]),n=(0,a.useRef)([]),o=(0,a.useCallback)((0,h.DsO)((()=>{t([...n.current])}),50),[]),r=(0,a.useCallback)((e=>{n.current=e,o(e)}),[o]),l=(0,a.useCallback)(((e,t)=>{e&&r(t?[e]:[])}),[r]),[i,s]=(0,a.useState)([]),c=(0,a.useCallback)((e=>{e&&s((t=>{return n=[e],a=t,(0,d.concat)(n.filter((e=>!(0,d.any)((0,h.aFF)(e),a))),a.filter((e=>!(0,d.any)((0,h.aFF)(e),n))));var n,a}))}),[]);return{highlightedCrosswalks:(0,a.useMemo)((()=>[...e,...i]),[e,i]),focusedCrosswalks:i,toggleCrosswalkFocus:c,setCrosswalkHighlighted:l}})(),[f,y]=(0,a.useState)(-480),g=(0,a.useCallback)((e=>{let{percentageSize:t}=e;return y(t)}),[]),[b,v]=(0,a.useState)(),[x,E]=(0,a.useState)(!1),C=n.relation.relationUri,S=(0,tt._)(),w=(0,a.useCallback)((()=>E(!0)),[]),T=(0,a.useCallback)((()=>E(!1)),[]),P=(0,a.useCallback)((0,d.pipe)(i,w),[]),[O,k]=(0,a.useMemo)((()=>{const e=e=>{e.errorCode===h.Xt7.CROSSWALK_NOT_FOUND?(Bt(e),t()):e.errorCode===h.Xt7.OBJECT_NOT_FOUND?l(e):(Bt(e),T())},t=()=>{S((0,h._vs)(C)).then((e=>{s((0,d.assocPath)(["relation","object"],e,n)),T()})).catch(e)};return[e,t]}),[n,T,s,l]),{modifiedEntity:D,crosswalksMap:R,newlyCreatedAttributes:N,onPinAttribute:Z,onIgnoreAttribute:I,onAddAttribute:M,onEditAttribute:j,onDeleteAttribute:F}=(0,nt.Q)({entity:n.relation.object,onModify:k,onError:O,onLoad:w}),{addCrosswalk:A,deleteCrosswalk:B,editCrosswalk:L}=(0,at.P)({onSuccess:k,onError:O,onLoad:w}),U=(0,a.useCallback)(((e,t)=>{w(),(t?(0,h.rj2)({entityUri:C,attributeName:e,value:t}).then((()=>s((0,d.assocPath)(["relation",e],t,n)))):(0,h.X78)({entityUri:C,attributeName:e}).then((()=>s((0,d.dissocPath)(["relation",e],n))))).then(T).catch(O)}),[n,w,T,O]);return o().createElement(ot.Z,{className:p.detailsView},o().createElement(rt.hR,m,o().createElement(Ut.DndProvider,{backend:Lt.default},o().createElement(lt.Z,null),o().createElement(it.Z,{className:Se()(p.resizablePanesWrapper,{[p.locked]:x}),orientation:"vertical",size:f,minSize:600,maxSize:-480,allowResize:!0,onChange:g},o().createElement("div",{className:p.pane},o().createElement(At,{readOnly:u,entity:t,connection:n,onNavigateBack:l,onDelete:P,onChangeActivenessDate:U}),o().createElement(st.R,{attributeUris:N},o().createElement(ct.Z,{readOnly:u,entity:D,crosswalksMap:R,isLoading:x,onPin:Z,onIgnore:I,onEdit:j,onAdd:M,onDelete:F,selectedAttributeTypes:b,onSelectAttributeTypes:v,visibleColumns:r,onChangeVisibleColumns:c}))),o().createElement(xt,{readOnly:u,className:p.pane,relation:n.relation.object,selectedAttributeTypes:b,onAddCrosswalk:A,onDeleteCrosswalk:B,onEditCrosswalk:L})))))})),_t=(0,ce.Z)({relationshipsView:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowX:"hidden",overflowY:"auto",fontFamily:"Roboto, Helvetica, Arial, sans-serif",display:"flex",flexDirection:"column"},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},pane:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",position:"relative"}}),Ht=(0,r.connect)(((e,t)=>{let{config:{id:n}}=t;return{entity:m.ZP.selectors.getEntity(e),metadata:m.ZP.selectors.getMetadata(e),connections:m.ZP.selectors.getConnectionsByViewId(e,n),total:m.ZP.selectors.getTotalByViewId(e,n)}}))((e=>{let{config:t,entity:n,metadata:r,connections:l,total:i,saveState:s,getSavedState:c,dispatch:u}=e;const p=_t(),P=(0,a.useRef)(),D=(0,f.U)(),N=(0,h.biM)(n),[Z,I]=(0,a.useState)(!1),{type:M}=n||{},[{visibleColumns:L,filters:W,page:G,rowsPerPage:te,sorting:ne,currentRelationType:ae,stateToSave:oe,entityTypeOfAppliedSavedState:re},{changeColumns:le,toggleFilters:ie,changeFilter:se,changePage:ce,changeRowsPerPage:ue,toggleSort:pe,changeRelationType:de,saveCurrentState:he,applySavedState:fe}]=(e=>{let{defaultColumns:t,defaultSorting:n,defaultRowsPerPage:o}=e;const r={visibleColumns:t,filters:null,sorting:n,page:0,rowsPerPage:o,currentRelationType:null,stateToSave:null,visibleColumnsForRelationTypes:{},entityTypeOfAppliedSavedState:null},[l,i]=(0,a.useReducer)(((e,t)=>{switch(t.type){case _:{const n=t.payload;return(0,d.pipe)(Q,(0,d.assoc)("currentRelationType",n),X,Y)(e)}case H:{const{savedState:n,entityTypeUri:a}=t.payload,o=n?$(n):e.visibleColumns;return z({},e,n,{filters:n?K(n):e.filters,visibleColumns:o,entityTypeOfAppliedSavedState:a})}case V:return z({},e,{stateToSave:J(e)});default:return k.ZP.reducer(e,t)}}),r);return[l,(0,R.o)({actions:q,dispatch:i})]})({defaultColumns:F,defaultRowsPerPage:B[0],defaultSorting:{field:F[0],order:"asc"}}),ye=re===M,{isLoading:ge,relationsTableSavedState:be,attributesTableSavedState:ve,updateRelationsTableSavedState:xe,updateAttributesTableSavedState:Ee}=(e=>{var t;let{getSavedState:n,saveState:o,entityTypeUri:r}=e;const[l,i]=(0,a.useState)(O),[s,c]=(0,a.useState)(null);(0,y.D)((()=>{s&&(i(T({},l,{relationsTable:s})),c(null))}),[r]);const[u,p]=(0,a.useState)(!0);return(0,a.useEffect)((()=>{n().then((e=>{i(e||O)})).then((e=>p(!1))).catch((e=>p(!1)))}),[]),{isLoading:u,relationsTableSavedState:null===(t=l.relationsTable)||void 0===t?void 0:t[r],attributesTableSavedState:l.attributesTable,updateRelationsTableSavedState:e=>{const t=T({},l.relationsTable,{[r]:e});c(t),o(T({},l,{relationsTable:t}))},updateAttributesTableSavedState:e=>{o(T({},l,{attributesTable:e}))}}})({getSavedState:c,saveState:s,entityTypeUri:M}),[Ce,Se]=(0,a.useState)();(0,a.useEffect)((()=>{ge||fe({savedState:be,entityTypeUri:M})}),[ge,M]),(0,a.useEffect)((()=>{ge||Se(null==ve?void 0:ve.visibleColumns)}),[ge]),(0,y.D)((()=>{ye&&xe(oe)}),[oe]),(0,y.D)((()=>{ce(0)}),[n]);const[we,Te]=(0,a.useState)(),Pe=(0,a.useCallback)((()=>{Te(null)}),[]),Oe=(0,a.useMemo)((()=>{const e=(0,h.io3)(r,M);return r.relationTypes.filter((0,d.both)((0,h.uGe)(h.BDP.READ),(t=>{let{startObject:n,endObject:a}=t;return e.some((0,d.either)((0,d.equals)(n.objectTypeURI),(0,d.equals)(a.objectTypeURI)))})))}),[r,M]),ke=(0,a.useMemo)((()=>((e,t)=>t?(0,d.pipe)((0,d.find)((e=>e.uri===t)),h.DK$,U,(0,d.concat)(j),(0,d.reject)((e=>{let{id:t}=e;return A.includes(t)})))(e):(e=>{return t=(0,d.assoc)("dataTypeDefinition",(e=>({type:h.oS0.TYPE_SELECT,options:e.map((e=>{let{uri:t,label:n}=e;return{value:t,label:n}}))}))(e)),e=>(0,d.adjust)(e.findIndex((0,d.propEq)("id","relation.type")),t,e);var t})(e)(j))(Oe,ae)),[Oe,ae]),De=(0,a.useMemo)((()=>L.map((e=>ke.find((0,d.propEq)("id",e)))).filter(d.identity)),[L,ke]),Re=(0,a.useMemo)((()=>{const e=(0,d.pipe)((0,d.when)((0,d.always)(ae),(0,d.filter)((0,d.propEq)("uri",ae))),(0,d.map)((0,d.prop)("uri")))(Oe);return{id:t.id,content:{inRelations:e,outRelations:e}}}),[t.id,ae,Oe]),Ne=(0,a.useMemo)((()=>((e,t)=>{const n=(0,ee.Tz)(t,e);return(new h.MEy).addClause(n).build()})(W,De)),[W,De]),{isLoading:Ze,reload:Ie}=(0,g.a)({page:G,rowsPerPage:te,config:Re,entity:ye?n:null,filter:Ne,mode:h.ARY.Viewing,sorting:ne,searchByOv:Z}),Me=!ye||Ze,je=(0,a.useCallback)((0,d.pipe)(pe,he),[pe,he]),Fe=(0,a.useCallback)((0,d.pipe)(se,he),[se,he]),Ae=(0,a.useCallback)((0,d.pipe)(ie,he),[ie,he]),Be=(0,a.useCallback)((0,d.pipe)(le,he),[le,he]),Le=(0,a.useCallback)((0,d.pipe)(de,he),[de,he]),Ue=(0,a.useCallback)((e=>{Se(e),Ee({visibleColumns:e})}),[Ee]),ze=null==l?void 0:l[we],We=(0,a.useCallback)((e=>{u(m.N5.relations.actions.relationsLoaded({id:t.id,connections:(0,d.update)(we,e,l),total:i}))}),[ze]),[_e,He]=(0,a.useMemo)((()=>[(0,h.w3p)(l),[h.q7e.RELATION]]),[l]),Ve=(0,b.C)({objectIds:_e,objectTypes:He,enabled:!N}),qe=(0,a.useMemo)((()=>(0,h.Px$)(l)),[l]),Ye=(0,a.useCallback)((e=>{Bt(e),e.errorCode===h.Xt7.OBJECT_NOT_FOUND&&Ie()}),[Ie]),Ge=(0,a.useCallback)((e=>{(0,d.pipe)(h.VGk,(0,d.andThen)(Ie),(0,d.otherwise)(Ye))(e)}),[Ie,Ye]),$e=(0,a.useCallback)((()=>{(0,d.pipe)(h.VGk,(0,d.andThen)((0,d.pipe)(Pe,Ie)),(0,d.otherwise)((e=>{e.errorCode===h.Xt7.OBJECT_NOT_FOUND&&Pe(),Ye(e)})))(ze.relation.relationUri)}),[ze,Ie,Pe,Ye]),Xe=(0,a.useCallback)((e=>{e&&Ye(e),Pe()}),[Ye,Pe]),Ke=(0,a.useCallback)((()=>{I(d.not)}),[I]);return o().createElement(v.s.Provider,{value:D},o().createElement(x.h.Provider,{value:Ve},o().createElement(E.X.Provider,{value:qe},o().createElement("div",{className:p.relationshipsView},o().createElement(C.n,{entity:n}),o().createElement(me,{total:i,filteringEnabled:!!W,onToggleFilters:Ae,columnsData:ke,selectedColumns:L,onChangeColumns:Be,relationTypes:Oe,currentRelationType:ae,onRelationTypeChange:Le,searchByOv:Z,onToggleSearchByOv:Ke}),o().createElement("div",{className:p.pane},Me&&o().createElement(S.Z,null),o().createElement(et,{readOnly:N,metadata:r,connections:l,columnsData:De,sorting:ne,onSort:je,filters:W,onFilter:Fe,onRowClick:Te,tableRef:P,onDelete:Ge}),o().createElement(w.Z,{count:i,rowsPerPageOptions:B,page:G,onChangePage:ce,rowsPerPage:te,onChangeRowsPerPage:ue,basicTableRef:P})),ze&&o().createElement(Wt,{readOnly:N,entity:n,visibleColumns:Ce,onChangeVisibleColumns:Ue,connection:ze,onClose:Xe,onDeleteConnection:$e,onChangeConnection:We})))))})),Vt=(0,i.createGenerateClassName)({productionPrefix:"relationshipsPerspective",disableGlobal:!0}),qt=e=>{let{config:t,store:n,onResize:d,saveState:m,getSavedState:f}=e;const y=(0,a.useCallback)((0,h.aYu)(f),[f]);return o().createElement(r.Provider,{store:n},o().createElement(u.m.Provider,{value:t.id},o().createElement(i.StylesProvider,{generateClassName:Vt},o().createElement(c.MuiPickersUtilsProvider,{utils:l.Z},o().createElement(s.Z,{handleHeight:!0,onResize:(e,t)=>null==d?void 0:d(Math.floor(e),Math.floor(t))}),t&&o().createElement(Ht,{config:t,saveState:m,getSavedState:y}),o().createElement(p.Z,null)))))}},46847:(e,t,n)=>{function a(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function r(e,t){try{var n=this.props,a=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,a)}finally{this.props=n,this.state=a}}function l(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,l=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?l="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(l="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==l||null!==i){var s=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==l?"\n "+l:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=a,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=r;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var a=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,a)}}return e}n.r(t),n.d(t,{polyfill:()=>l}),a.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0}}]);
|
|
2
2
|
//# sourceMappingURL=9043.js.map
|