@reltio/remotes 1.4.1047 → 1.4.1048
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/1050.js +1 -0
- package/2521.js +2 -0
- package/{5026.js.LICENSE.txt → 2521.js.LICENSE.txt} +0 -0
- package/3325.js +1 -0
- package/3349.js +1 -0
- package/5092.js +1 -0
- package/5264.js +1 -0
- package/5534.js +1 -0
- package/6215.js +1 -0
- package/64.js +1 -0
- package/6615.js +1 -0
- package/6619.js +1 -0
- package/7238.js +2 -0
- package/{5637.js.LICENSE.txt → 7238.js.LICENSE.txt} +0 -0
- package/7729.js +2 -0
- package/{8828.js.LICENSE.txt → 7729.js.LICENSE.txt} +0 -0
- package/7827.js +1 -0
- package/7830.js +1 -1
- package/8040.js +1 -0
- package/{8348.js → 8148.js} +2 -2
- package/{8348.js.LICENSE.txt → 8148.js.LICENSE.txt} +0 -0
- package/8482.js +1 -0
- package/861.js +2 -0
- package/{7440.js.LICENSE.txt → 861.js.LICENSE.txt} +0 -0
- package/8899.js +1 -0
- package/8911.js +1 -1
- package/9039.js +1 -0
- package/9078.js +1 -0
- package/9205.js +1 -0
- package/{1041.css → 9225.css} +0 -0
- package/9225.js +1 -0
- package/9519.js +1 -0
- package/main.js +1 -1
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/1041.js +0 -1
- package/2239.js +0 -1
- package/2882.js +0 -1
- package/3357.js +0 -1
- package/5026.js +0 -2
- package/5637.js +0 -2
- package/6088.js +0 -1
- package/6290.js +0 -1
- package/6371.js +0 -1
- package/6539.js +0 -1
- package/7265.js +0 -1
- package/7440.js +0 -2
- package/7578.js +0 -1
- package/8072.js +0 -1
- package/8244.js +0 -1
- package/8332.js +0 -1
- package/8512.js +0 -1
- package/8828.js +0 -2
- package/9915.js +0 -1
package/5534.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5534],{55234:(e,t,r)=>{r.d(t,{Z:()=>w});var n=r(24328),a=r.n(n),l=r(87918),i=r.n(l),o=r(71153),s=r.n(o),c=r(17440),u=r(52730),p=r(89810),d=r(18435),m=r(90436),f=r(15793),b=r(19602),h=r(59952),g=r(33117),y=r(79692);function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){v(e,t,r[t])}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const x={input:e=>E({},e,{fontSize:"14px"}),menuPortal:e=>E({},e,{zIndex:1300})},O=(0,y.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"},noOptionsMessage:{fontSize:"14px"}});const w=e=>{let{entityType:t,selectedAttributes:r,className:l,onChange:o,title:y,disableUnderline:E,menuPlacement:v="bottom"}=e;const w=(0,u.useSelector)(p.ZP.selectors.getMetadata),T=O(),I=(0,n.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.reduce(((e,n)=>{if(n.hidden)return e;const a=`${r&&r+" / "}${n.label}`;e.push({label:n.label,value:n.uri,attrType:n,chipLabel:a,level:t});const l=(0,d.EUG)(w,n);return e.concat(l?I(l,t+1,a):[])}),[])}),[w]),C=(0,n.useMemo)((()=>I((null==t?void 0:t.attributes)||[])),[t,I]);return a().createElement("div",{className:s()(T.root,l)},a().createElement(m.Z,{className:T.title,variant:"subtitle1"},y||i().text("Attribute")),a().createElement(f.Z,{value:r,options:C,TextFieldProps:{InputProps:{disableUnderline:E},classes:{root:T.dropDownInput}},components:{DropdownIndicator:h.Z,MultiValue:e=>{let{data:t}=e,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["data"]);return a().createElement(b.Z,r,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:r,data:n,label:l,innerProps:i}=e;return a().createElement("div",i,a().createElement(g.Z,{checked:r,level:n.level,data:n,label:l,labelInText:l,isFocused:t}))}},onChange:(0,c.pipe)((0,c.defaultTo)([]),o),styles:x,classes:T,menuPlacement:v,menuPortalTarget:document.body}))}},16809:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(24328),a=r(17440),l=r(18435);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const o=e=>{let{rowIndex:t,columnData:{id:r},cellIndex:n}=e;return`${r}[${t}][${n}]`},s=()=>{const[e,t]=(0,n.useState)({}),r=(0,n.useRef)({}),s=(0,n.useCallback)((0,l.DsO)((()=>{t(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){i(e,t,r[t])}))}return e}({},r.current))})),[]),c=(0,n.useCallback)((()=>{r.current={}}),[]);return{getDynamicRowCellHeight:(0,n.useCallback)((0,a.pipe)(o,(0,a.prop)(a.__,e)),[e]),changeRowCellHeight:(0,n.useCallback)((0,a.curry)((0,a.useWith)((0,a.pipe)(((e,t)=>{r.current[e]=t}),s),[o,a.identity])),[]),clearHeightsCache:c}}},54238:(e,t,r)=>{r.d(t,{Z:()=>H});var n=r(24328),a=r.n(n),l=r(13980),i=r.n(l),o=r(53862);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const c=e=>a().createElement("svg",s({width:20,height:18,viewBox:"0 0 20 18",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{d:"M16 7.24V6h-4v1.24a8.417 8.417 0 00-2 .768V6H6v6h.29a8.497 8.497 0 00-.15.358l-.29.733.29.733.07.176H2c-1.1 0-2-.9-2-2V2C0 .9.9 0 2 0h14c1.1 0 2 .9 2 2v6.008a8.417 8.417 0 00-2-.768zM4 12V6H2v6h2zm0-8V2H2v2h2zm6 0V2H6v2h4zm6 0V2h-4v2h4zm-2 5a6.451 6.451 0 00-6 4.09 6.451 6.451 0 006 4.092 6.451 6.451 0 006-4.091A6.451 6.451 0 0014 9zm0 6.818a2.728 2.728 0 010-5.454 2.728 2.728 0 010 5.454zm0-4.363c-.905 0-1.636.73-1.636 1.636 0 .905.73 1.636 1.636 1.636.905 0 1.636-.73 1.636-1.636 0-.906-.73-1.636-1.636-1.636z",fill:"#000",fillRule:"nonzero",stroke:"none",strokeWidth:1,opacity:.54}));var u=r(17440),p=r(18435);function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){m(e,t,r[t])}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const f=e=>e.id===e.groupId,b=(0,u.curry)(((e,t)=>{let{id:r,groupId:n}=e;return t.groupId===n&&(r===t.id||r.startsWith(`${t.id}.`))})),h=(0,u.curry)(((e,t)=>{let{groupId:r}=e;return r===t.id})),g=(0,u.propOr)(!0,"hideable"),y=(e,t)=>{const r=((e,t)=>e.find((0,u.either)(h(t),b(t))))(e,t);return r?(r.children=y(r.children||[],t),e):e.concat(t)},E=(0,u.curry)(((e,t)=>p.P6Y.strings.search(t.label,e)||(t.children||[]).some(E(e)))),v=(0,u.reduce)(((e,t)=>y(e,{id:t.id,groupId:t.groupId,label:t.label,attrType:t.dataTypeDefinition})),[]),x=(0,u.curry)((function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,u.pipe)((0,u.filter)(E(e)),(0,u.chain)((t=>[{item:d({},t,{filterText:e}),level:r},...t.children?x(e,t.children,r+1):[]])))(t)})),O=(0,u.has)("columns"),w=e=>{let{id:t,label:r,columns:n}=e;return[{id:t,groupId:t,label:r},...n.map((0,u.assoc)("groupId",t))]},T=e=>e.children?(0,u.chain)(T,e.children):[e],I=(e,t)=>{const r=T(t),n=t=>e.includes(t.id);return f(t)?r.every(n):r.some(n)};var C=r(39475),S=r(22311),k=r(63485),N=r(26638),P=r(41008),D=r(33117),Z=r(94792),A=r(71153),R=r.n(A);const j=(0,r(79692).Z)({popup:{minWidth:"200px"},groupItem:{backgroundColor:"rgba(0,0,0,0.04)"}}),M=e=>{let{item:t,onClick:r,checked:n,level:l,style:i,isFocused:o,isGroupItem:s}=e;const c=j();return a().createElement(D.Z,{key:t.id,onClick:r,checked:n,level:l,data:t,label:a().createElement(Z.Z,{text:t.label,highlight:t.filterText}),labelInText:t.label,style:i,isFocused:o,hideIcon:s,className:R()({[c.groupItem]:s})})};M.propTypes={item:i().shape({label:i().string,filterText:i().string}),level:i().number,onClick:i().func,checked:i().bool,style:i().object,isGroupItem:i().bool,isFocused:i().bool};const _=M;var L=r(87918),V=r.n(L);const U=e=>{let{columnsData:t,selectedColumns:r,onChangeColumns:l,title:i,tooltipTitle:o}=e;const s=j(),[d,m]=(0,n.useState)(null),[b,h]=(0,n.useState)(""),y=(0,n.useMemo)((()=>((e,t)=>(0,u.pipe)((0,u.chain)((0,u.when)(O,w)),(0,u.filter)((0,u.either)(f,g)),v,x(t))(e))(t,b)),[t,b]),E=(0,p.fW1)("label")(y)||308,D=(0,n.useMemo)((()=>(0,P.LG)(y)),[y]),Z=(0,n.useCallback)((e=>{const t=(0,u.pipe)(T,(0,u.pluck)("id"))(e),n=I(r,e);l(n?(0,u.difference)(r,t):(0,u.uniq)((0,u.concat)(r,t)))}),[r,l]),A=(0,n.useCallback)((e=>{let{item:t}=e;return Z(t)}),[Z]),{focusIndex:R,handleKeyDown:M}=(0,N.t)({items:D,open,onSelectFocusedItem:A,selectedItems:r}),L=Math.min(300,32*D.length),U=Math.max(140,L+108);return a().createElement(a().Fragment,null,a().createElement(C.k,{tooltipTitle:o||V().text("Show/hide columns"),size:"L",icon:c,onClick:e=>m(e.currentTarget)}),a().createElement(S.Z,{className:s.popup,open:!!d,anchorEl:d,onClose:(0,u.pipe)((()=>m(null)),(()=>h(""))),onSearch:h,title:i||V().text("Show/hide columns"),containerWidth:E,containerHeight:U,searchInputOnKeyDown:M},a().createElement(k.Z,{fixedTitle:!1,height:L,renderItem:(e,t,n)=>{let{item:l,level:i=0}=t;return a().createElement(_,{style:e,item:l,level:i,isFocused:R===n,checked:I(r,l),isGroupItem:f(l),onClick:Z})},items:D,getItemSize:()=>32,containerWidth:E,focusIndex:R})))};U.propTypes={columnsData:o.uz,selectedColumns:i().arrayOf(i().string),onChangeColumns:i().func,title:i().string,tooltipTitle:i().string};const H=U},66678:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24328),a=r.n(n),l=r(13980),i=r.n(l),o=r(44443),s=r(76625),c=r(55962);const u=e=>{let{onChangeHeight:t,children:r}=e,l=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["onChangeHeight","children"]);const i=(0,n.useRef)(null),{rowValue:u,rowIndex:p,columnData:d,cellIndex:m}=l,f=t({rowIndex:p,cellIndex:m,columnData:d}),b=()=>i.current&&f(i.current.clientHeight);return(0,c.D)(b,[u.rawValue]),a().createElement("div",null,a().createElement(o.Z,{handleHeight:!0,onResize:b}),a().createElement(s.Z,{rootRef:i},r))};u.propTypes={onChangeHeight:i().func,children:i().node};const p=u},94059:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),a=r.n(n),l=r(87918),i=r.n(l),o=r(77277),s=r(8629),c=r(49429),u=r(38724),p=r(55999);const d=e=>{let{open:t,onClose:r,onConfirm:n}=e;return a().createElement(s.Z,{open:t},a().createElement(u.Z,null,a().createElement(p.Z,null,i().text("Are you sure you want to delete this?"))),a().createElement(c.Z,null,a().createElement(o.Z,{onClick:r,color:"primary"},i().text("No")),a().createElement(o.Z,{onClick:()=>{n(),r()},color:"primary"},i().text("Yes"))))}},77875:(e,t,r)=>{r.d(t,{Z:()=>f});var n=r(24328),a=r.n(n),l=r(17440),i=r(87918),o=r.n(i),s=r(6782),c=r(86619),u=r(90590),p=r(79573);const d=(0,r(79692).Z)({root:{display:"flex",flex:1},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px",fontSize:"14px"},inputNumber:{minWidth:"60px",marginRight:10,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.03)"},inputUnit:{width:"100%"}}),m=[o().text("minutes"),o().text("hours"),o().text("days"),o().text("weeks"),o().text("months"),o().text("years")],f=e=>{let{interval:[t,r],onChange:n,onFocus:i}=e;const o=d(),f=(0,l.pipe)(p.NA,parseInt,(e=>[e,r]),n),b=(0,l.pipe)((e=>{let{value:r}=e;return[t,r]}),n);return a().createElement("div",{className:o.root},a().createElement(c.Z,{type:"number",value:t||"",onChange:f,inputProps:{min:1,onFocus:i},InputProps:{classes:{root:o.input}},className:o.inputNumber}),a().createElement(u.Z,{label:"",placeholder:(0,s.Z)(r),className:o.inputUnit,value:{value:r,label:(0,s.Z)(r)},options:m.map((e=>({value:e,label:(0,s.Z)(e)}))),onChange:b,TextFieldProps:{inputProps:{onFocus:i},InputProps:{classes:{root:o.input}}}}))}},90143:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(24328),a=r.n(n),l=r(80030);const i=(0,r(79692).Z)((e=>({tooltip:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,filter:"drop-shadow(0px 1px 5px #00000033) drop-shadow(0px 3px 1px #0000001F) drop-shadow(0px 2px 2px #00000024)",padding:"10px",maxWidth:"none"},arrow:{color:e.palette.background.paper}})));function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}const s=e=>{const t=i();return a().createElement(l.ZP,o({},e,{classes:t,arrow:!0}))}},33109:(e,t,r)=>{r.d(t,{Z:()=>x});var n=r(24328),a=r.n(n),l=r(13980),i=r.n(l),o=r(71153),s=r.n(o),c=r(52730),u=r(17440),p=r(90436),d=r(80030),m=r(87918),f=r.n(m),b=r(18435),h=r(89810),g=r(37573),y=r(20146);const E=(0,r(79692).Z)((e=>({profileBandWrapper:{flexShrink:0},profileBand:{display:"flex",padding:"16px 12px 16px 16px",alignItems:"flex-start",backgroundColor:"#fff",boxShadow:"inset 0 -1px 0 0 rgba(0,114,206,0.06), inset 0 1px 0 0 rgba(0,114,206,0.06);","&:after":{content:'""',minHeight:"inherit",fontSize:0}},inactive:{background:e.inactiveBackground},profileIcon:{marginRight:"12px"},imageProfileIcon:{width:"48px",height:"48px"},profileInfo:{display:"flex",flexDirection:"column",flex:"1 1 50%"},badge:{},label:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary,wordBreak:"break-word","&+ $specialInfo":{marginTop:"4px"}},secondaryLabel:{display:"inline-flex",color:e.palette.text.primary,marginTop:"2px",lineHeight:"16px",fontSize:"14px",fontWeight:400,"&+ $businessCard":{marginLeft:"12px"}},businessCard:{color:e.palette.text.secondary,display:"inline-flex",fontSize:"14px",marginTop:"4px",lineHeight:"1.2"},specialInfo:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",width:"100%",marginTop:"8px"},entityType:{display:"flex",flexWrap:"wrap"},entityId:{fontSize:"13px",color:e.palette.text.secondary,whiteSpace:"nowrap",cursor:"pointer","&:hover":{textDecoration:"underline"}}}))),v=e=>{let{className:t,entity:r,children:l,classes:i}=e;const o=E({classes:i}),m=(0,c.useSelector)(h.ZP.selectors.getMetadata),v=(0,n.useCallback)((()=>{navigator.clipboard.writeText((0,b.BTI)(r))}),[r]);if((0,u.isNil)(r))return null;const x=(0,b.idV)(r.label),O=r.secondaryLabel,w=(0,b.ptG)(m,r),T=(0,b.Fn9)(r),I=r.uri,C=(0,b.BTI)(r);return a().createElement("div",{className:s()(o.profileBandWrapper,t)},a().createElement("div",{className:s()(o.profileBand,{[o.inactive]:!T}),"data-entity-uri":I},a().createElement(g.Z,{key:r.uri,entity:r,avatarClassName:o.profileIcon,imageClassName:o.imageProfileIcon}),a().createElement("div",{className:o.profileInfo},a().createElement("div",null,a().createElement(p.Z,{variant:"h6",className:o.label},x),O&&a().createElement(p.Z,{variant:"subtitle2",className:o.secondaryLabel},O),w&&a().createElement(p.Z,{variant:"subtitle1",className:o.businessCard},w)),a().createElement("div",{className:o.specialInfo},a().createElement("div",{className:o.entityType},a().createElement(y.Z,{entity:r,size:"medium",className:o.badge}),!(0,b.ZiX)(I)&&a().createElement(d.ZP,{title:f().text("Copy to clipboard")},a().createElement(p.Z,{display:"inline",variant:"body2",className:o.entityId,onClick:v},f().text("Entity ID"),": ",C))))),l&&a().createElement("div",null,l)))};v.propTypes={className:i().string,entity:i().object,children:i().node,classes:i().object};const x=v},76368:(e,t,r)=>{r.d(t,{a:()=>k});var n=r(24328),a=r.n(n),l=r(87918),i=r.n(l),o=r(86689),s=r(78223),c=r(39475),u=r(67766),p=r(42767),d=r(18435);const m=(0,r(79692).Z)({container:{display:"flex",alignItems:"center"},link:{whiteSpace:"nowrap",marginRight:"9px"}}),f=(0,s.Z)(o.Z),b=e=>{let{total:t=0,onPrev:r,onNext:n,onSearchResultsClick:l,isPrevDisabled:o,isNextDisabled:s}=e;const b=m();return a().createElement("div",{className:b.container},a().createElement(f,{className:b.link,component:"button",variant:"caption",onClick:l,underline:"none",tooltipTitle:i().text("Go to search results")},(0,d.k7L)(t,1e6)," ",1===t?i().text("Search result"):i().text("Search results")),a().createElement(c.k,{size:"L",icon:u.Z,tooltipTitle:i().text("Go to previous profile"),onClick:r,disabled:o,showForDisabled:!0}),a().createElement(c.k,{size:"L",icon:p.Z,tooltipTitle:i().text("Go to next profile"),onClick:n,disabled:s,showForDisabled:!0}))};var h=r(52730),g=r(89810),y=r(17440),E=r(12212),v=r(29627);function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){O(e,t,r[t])}))}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class w{constructor(e){var t=this;let{data:{query:r,sortField:n,sortOrder:a},tenant:l,searchTenant:i,apiPath:o,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]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=[t.getQueryFilter(),...e],a=x({},t.globalSearchRequestOptions,{sort:t.sortField,order:t.sortOrder,select:"uri,label,type",scoreEnabled:!1},r);return t.isDT()?(0,d.uqV)({filters:n,options:a,customerTenant:t.tenant,dataTenant:t.searchTenant,dtssPath:t.dtssPath}):(0,d.ZOr)(n,a)},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,d.J$m)({filters:e,options:t,customerTenant:this.tenant,dataTenant:this.searchTenant,dtssPath:this.dtssPath}):(0,d.j_Q)(e,t)).then((e=>e.total))},this.query=r,this.sortField=n,this.sortOrder=a,this.tenant=l,this.searchTenant=i,this.apiPath=o,this.dtssPath=s,this.globalSearchRequestOptions=c}}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){I(e,t,r[t])}))}return e}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class C{constructor(e){var t=this;let{data:r,tenant:n,apiPath:a}=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]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=[{rawFilter:t.searchBody.filter},...e];return(0,d.P2h)({apiPath:t.apiPath,tenant:t.tenant,searchBody:T({},t.searchBody,{filter:e.length?(0,d.Uqd)()(n):t.searchBody.filter}),options:r})},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"id",values:[(0,d.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,d.dED)({apiPath:this.apiPath,tenant:this.tenant,searchBody:this.searchBody}).then((e=>e.count)),this.searchBody=r,this.tenant=n,this.apiPath=a}}const S=(e,t)=>(0,y.pipe)((0,y.map)((0,y.prop)("uri")),(0,y.reject)((e=>t.includes(e))))(e),k=()=>{const{total:e,onPrev:t,onNext:r,onSearchResultsClick:l,isPrevDisabled:i,isNextDisabled:o}=(()=>{const e=(0,v._)(),t=(0,v._)(),r=(0,v._)(),{uri:a,index:l,total:i,tenant:o,cache:s}=(0,h.useSelector)(g.ZP.selectors.getSearchNavigationData)||{},{type:c,data:u}=(0,h.useSelector)(g.ZP.selectors.getSearchProviderData)||{},p=(0,h.useSelector)(g.ZP.selectors.getTenant),m=(0,h.useSelector)(g.ZP.selectors.getApiPath),f=(0,h.useSelector)(g.ZP.selectors.getDtssPath),b=(0,h.useSelector)((e=>g.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),y=(0,n.useContext)(E.m),x=(0,h.useDispatch)(),[O,T]=(0,n.useState)(!1),I=(0,n.useMemo)((()=>((e,t)=>{switch(e){case"search":return new w(t);case"graphsearch":return new C(t)}})(c,{data:u,tenant:p,searchTenant:o,apiPath:m,dtssPath:f,globalSearchRequestOptions:b})),[c,u,p,o,m,f,b]),k=(0,n.useCallback)((e=>{x(g.yC.actions.updateSearchNavigationDataFields(e))}),[x]),N=(0,n.useCallback)((e=>{const t=p!==o?(0,d.wwR)({uri:e,dataTenant:o}):e;x(g.ui.actions.openEntity({uri:t,viewId:y,source:"navigation"}))}),[x,y,p,o]),P=(0,n.useCallback)((()=>{x(g.ui.actions.openPerspective({perspectiveId:c,viewId:y}))}),[x,c,y]);(0,n.useEffect)((()=>{l>=i?k({index:i-1}):l<0&&k({index:0})}),[i,l,k]);const D=(0,n.useCallback)(((e,n,a)=>{T(!0),t(I.requestTotal()).then((e=>k({total:e})));const l=a+1;return r(I.requestEntities(15,l)).then((t=>{if(t){if(t.length){const r=S(t,e);if(r.length>0)return k({cache:e.concat(r),uri:r[0],index:l+t.length-r.length}),void N(r[0]);if(a+t.length<n-1)return D(e,n-t.length,a+t.length)}k({index:l})}})).finally((()=>{T(!1)}))}),[I,k,N]),Z=(0,n.useCallback)(((e,n)=>{T(!0),t(I.requestTotal()).then((e=>k({total:e})));const a=n-1,l=Math.max(0,n-15),i=15+Math.min(0,n-15);return r(I.requestEntities(i,l)).then((t=>{if(t){if(t.length){const r=S(t,e);if(r.length>0)return k({cache:r.concat(e),uri:r[r.length-1],index:a-(t.length-r.length)}),void N(r[r.length-1]);if(n-t.length>0)return Z(e,n-t.length)}k({index:0})}})).finally((()=>{T(!1)}))}),[I,k,N]),A=(0,n.useCallback)(((t,r,n,a)=>{if(r<t.length){const l=t[r];return T(!0),e(I.checkEntity(l)).then((e=>{if(!e){const e=[...t];return e.splice(r,1),A(e,r,n-1,a)}k({index:a+1,uri:l,cache:t,total:n}),N(l)})).finally((()=>{T(!1)}))}if(!(a>=n-1))return D(t,n,a);k({cache:t,total:n,index:n-1})}),[I,k,N,D]),R=(0,n.useCallback)(((t,r,n,a)=>{if(r>-1){const l=t[r];return T(!0),e(I.checkEntity(l)).then((e=>{if(!e){const e=[...t];return e.splice(r,1),R(e,r-1,n-1,a-1)}k({index:a-1,uri:l,cache:t,total:n}),N(l)})).finally((()=>{T(!1)}))}if(!(a<=0))return Z(t,a);k({index:0,cache:t,total:n})}),[I,k,N,Z]),j=(0,n.useCallback)((()=>{if(s&&a){const e=s.indexOf(a)-1;R(s,e,i,l)}}),[R,s,a,i,l]),M=(0,n.useCallback)((()=>{if(s&&a){const e=s.indexOf(a)+1;A(s,e,i,l)}}),[A,s,a,i,l]);return{total:i,onPrev:j,onNext:M,onSearchResultsClick:P,isPrevDisabled:O||l<=0,isNextDisabled:O||l>=i-1}})();return(()=>{const{cache:e}=(0,h.useSelector)(g.ZP.selectors.getSearchNavigationData)||{},t=(0,h.useSelector)(g.ZP.selectors.getMode),r=(0,h.useSelector)(g.ZP.selectors.getEntity);return(0,d.uzs)(t)&&(null==e?void 0:e.includes(null==r?void 0:r.uri))})()?a().createElement(b,{total:e,onPrev:t,onNext:r,onSearchResultsClick:l,isPrevDisabled:i,isNextDisabled:o}):null}},15793:(e,t,r)=>{r.d(t,{Z:()=>k});var n=r(24328),a=r.n(n),l=r(13980),i=r.n(l),o=r(17440),s=r(70347);const c=(0,r(4515).Z)(s.ZP);var u=r(49861),p=r(12350),d=r(12231),m=r(21324),f=r(71153),b=r.n(f),h=r(83088);function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}function y(e){const{innerProps:t,innerRef:r,children:n,isFocused:l,isSelected:i,selectProps:{classes:o},label:s}=e;return a().createElement(d.Z,g({className:b()(o.option,{[o["option--selected"]]:i}),ref:r,selected:l,component:"div"},t),a().createElement(m.Z,{color:"primary",checked:i}),a().createElement(h.C,{value:s},a().createElement("div",{className:o["option--item"]},n)))}y.propTypes={children:i().node,innerProps:i().shape({id:i().string.isRequired,key:i().string,onClick:i().func.isRequired,onMouseMove:i().func.isRequired,onMouseOver:i().func.isRequired,tabIndex:i().number.isRequired}).isRequired,innerRef:i().oneOfType([i().oneOf([null]),i().func,i().shape({current:i().any.isRequired})]),isFocused:i().bool.isRequired,isSelected:i().bool.isRequired,label:i().string,selectProps:i().shape({classes:i().shape({option:i().string})})};const E={Option:y};var v=r(79692),x=r(79573);function O(){return O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(this,arguments)}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){T(e,t,r[t])}))}return e}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const I=(0,v.Z)((e=>({label:{top:6,left:16},placeholder:e=>({display:!e.placeholder||e.label?"none":void 0}),"option--selected":{fontWeight:400},clearIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)},dropdownIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)}})));let C=0;function S(e){const{label:t,creatable:r,getOptions:l,loadingIndicator:i,components:s,classes:d,styles:m,onChange:f,onInputChange:b,menuPlacement:h="auto"}=e,g=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["label","creatable","getOptions","loadingIndicator","components","classes","styles","onChange","onInputChange","menuPlacement"]),y=r?c:l?p.Z:u.Z,[v,T]=(0,n.useState)(""),S=I((0,o.omit)(["classes"],e)),k="custom-select-"+C++,N=w({},E,s),P=(0,x.ze)(S,d),D=w({indicatorSeparator:e=>w({},e,{margin:"10px 0"}),loadingIndicator:e=>w({},e,{display:i?e.display:"none"}),loadingMessage:e=>w({},e,{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'})},m),Z=t?{inputId:k,TextFieldProps:w({label:t,InputLabelProps:{htmlFor:k,shrink:!(!e.value||!e.value.length)||void 0,className:P.label}},e.TextFieldProps)}:{};return a().createElement(y,O({isMulti:!0,inputId:k,inputValue:v,onChange:function(e,t){f(e,t),"create-option"===t.action&&(T(""),b("",{action:"input-change"}))},onInputChange:function(e,t){let{action:r}=t;b(e,{action:r}),"set-value"!==r&&T(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:P,components:N,styles:D,menuPlacement:h,loadOptions:l},Z,g))}S.defaultProps={creatable:!1,cacheOptions:!0,components:{},classes:{},placeholder:"",loadingIndicator:!1,onInputChange:()=>{},onChange:()=>{}},S.propTypes={creatable:i().bool,cacheOptions:i().bool,defaultOptions:i().bool,value:i().arrayOf(i().shape({label:i().string.isRequired,value:i().any})),options:i().arrayOf(i().shape({label:i().string.isRequired,value:i().any})),onChange:i().func,onInputChange:i().func,placeholder:i().string,label:i().string,loadingIndicator:i().bool,components:i().shape({ClearIndicator:i().func,Control:i().func,DropdownIndicator:i().func,DownChevron:i().func,CrossIcon:i().func,Group:i().func,GroupHeading:i().func,IndicatorsContainer:i().func,IndicatorSeparator:i().func,Input:i().func,LoadingIndicator:i().func,Menu:i().func,MenuList:i().func,MenuPortal:i().func,LoadingMessage:i().func,NoOptionsMessage:i().func,MultiValue:i().func,MultiValueContainer:i().func,MultiValueLabel:i().func,MultiValueRemove:i().func,Option:i().func,Placeholder:i().func,SelectContainer:i().func,SingleValue:i().func,ValueContainer:i().func}),classes:i().shape({control:i().string,valueContainer:i().string,multiValue:i().string,noOptionsMessage:i().string,singleValue:i().string,placeholder:i().string,menu:i().string,clearIndicator:i().string,dropdownIndicator:i().string,option:i().string,"option--selected":i().string,label:i().string}),styles:i().shape({clearIndicator:i().func,container:i().func,control:i().func,dropdownIndicator:i().func,group:i().func,groupHeading:i().func,indicatorsContainer:i().func,indicatorSeparator:i().func,input:i().func,loadingIndicator:i().func,loadingMessage:i().func,menu:i().func,menuList:i().func,menuPortal:i().func,multiValue:i().func,multiValueLabel:i().func,multiValueRemove:i().func,noOptionsMessage:i().func,option:i().func,placeholder:i().func,singleValue:i().func,valueContainer:i().func}),TextFieldProps:i().object,getOptions:i().func,menuPlacement:i().string,menuPortalTarget:i().object,getOptionValue:i().func,isSearchable:i().bool};const k=S},64435:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(24328),a=r.n(n),l=r(71153),i=r.n(l),o=r(13980),s=r.n(o),c=r(31396),u=r(60364);const p=(0,r(79692).Z)((()=>({container:{position:"relative","& .Resizer":{zIndex:1,boxSizing:"border-box",backgroundClip:"padding-box","&.disabled":{cursor:"initial",height:0,margin:0},"&.horizontal":{height:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"100% 1px",backgroundPosition:"top",width:"100%",marginBottom:"-10px","&:not(.disabled):hover":{cursor:"row-resize",backgroundImage:"linear-gradient(rgba(0, 114, 206, 0), rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1))",backgroundSize:"100% 3px"}},"&.vertical":{width:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"1px 100%",backgroundPosition:"left",height:"100%",marginRight:"-10px","&:not(.disabled):hover":{cursor:"col-resize",backgroundImage:"linear-gradient(to left, rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1), rgba(0, 114, 206, 0.35))",backgroundSize:"3px 100%"}}}}})));var d=r(18435);const m=e=>"horizontal"===e,f=e=>{let{className:t,children:r,orientation:l,defaultSize:o,size:s,minSize:f,maxSize:b,allowResize:h,onChange:g}=e;const y=p(),E=(0,u.Z)(),[v,x]=(0,n.useState)(),[O,w]=(0,n.useState)(!0),T=(0,n.useCallback)((()=>w(!0)),[]),I=(0,n.useCallback)((()=>w(!1)),[]),C=()=>m(l)?null==v?void 0:v.clientHeight:null==v?void 0:v.clientWidth,S=(0,n.useCallback)((0,d.DsO)((e=>{const t=C();g({percentageSize:e/t*100+"%",isMaxSize:b>0?e===b:e===t+b,isMinSize:e===f})}),250),[g,l,b,v]),k=(0,n.useMemo)((()=>({transition:E.transitions.create(m(l)?"height":"width",{easing:E.transitions.easing.sharp,duration:E.transitions.duration.leavingScreen})})),[l,E]);return"number"==typeof s&&s<0&&(s=(C()||0)+s),a().createElement("div",{ref:x,className:i()(y.container,t)},a().createElement(c.Z,{split:l,size:s,allowResize:h,onChange:S,defaultSize:o,minSize:f,maxSize:b,onDragStarted:I,onDragFinished:T,pane1Style:O?k:void 0},r))},b=s().oneOfType([s().number,s().string]);f.propTypes={className:s().string,children:s().arrayOf(s().node).isRequired,orientation:s().oneOf(["horizontal","vertical"]).isRequired,defaultSize:b,size:b,minSize:b,maxSize:b,allowResize:s().bool,onChange:s().func};const h=f},28101:(e,t,r)=>{r.d(t,{G:()=>m});var n=r(24328),a=r.n(n),l=r(71153),i=r.n(l),o=r(39475),s=r(79692),c=r(41128);const u=(0,s.Z)((e=>({container:{display:"flex",flexDirection:"column",flexShrink:0,width:"64px",paddingTop:"8px",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)"},active:{backgroundColor:(0,c.U1)(e.palette.primary.main,.12),color:e.palette.primary.main,"&:after":{content:'""',position:"absolute",height:"42px",width:"3px",backgroundColor:e.palette.primary.main,left:"-8px",borderRadius:"0 6px 6px 0"}},buttonWrapper:{position:"relative",width:"48px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",margin:"2px 8px",color:e.palette.text.secondary}})));function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}const m=e=>{let{buttonsProps:t,activeIndexId:r,className:n,onButtonClick:l,classes:s={}}=e;const c=u(),{active:m,buttonWrapper:f}=s,b=d(s,["active","buttonWrapper"]);return a().createElement("div",{className:i()(c.container,n)},t.map((e=>{let{id:t}=e,n=d(e,["id"]);return a().createElement(o.k,p({},n,{classes:b,size:"S",key:t,className:i()({[i()(c.active,m)]:r===t},c.buttonWrapper,f),onClick:()=>l(t),"data-reltio-id":`reltio-profile-right-side-button-${t}`}))})))}},15422:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(24328),a=r.n(n),l=r(90436);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const o=e=>a().createElement("svg",i({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),a().createElement("mask",{id:"AttributesList_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},a().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),a().createElement("g",{mask:"url(#AttributesList_svg__a)"},a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#AttributesList_svg__b)"}),a().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#AttributesList_svg__c)"}),a().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000"}),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#fff"}),a().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),a().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),a().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),a().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),a().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),a().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),a().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),a().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),a().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),a().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),a().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),a().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),a().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),a().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),a().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),a().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),a().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2v40.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),a().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),a().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#fff"}),a().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zm90 0a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),a().createElement("defs",null,a().createElement("linearGradient",{id:"AttributesList_svg__b",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),a().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),a().createElement("linearGradient",{id:"AttributesList_svg__c",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},a().createElement("stop",{stopOpacity:.01}),a().createElement("stop",{offset:1})))),s=(0,r(79692).Z)((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box",padding:"40px"},logo:{width:"190px",height:"190px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:400,marginTop:"24px"},text:{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"23px",textAlign:"center"},secondaryText:{color:e.palette.text.primary,fontSize:"14px",fontWeight:"normal",lineHeight:"16px",letterSpacing:"0.24px",textAlign:"center",paddingTop:"8px"}}))),c=e=>{let{IconRenderer:t=o,text:r,secondaryText:n}=e;const i=s();return a().createElement("div",{className:i.root},a().createElement(t,{className:i.logo}),a().createElement("div",{className:i.textBox},a().createElement(l.Z,{className:i.text},r),n&&a().createElement(l.Z,{className:i.secondaryText},n)))}},21210:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(89810),a=r(18435),l=r(24328),i=r.n(l),o=r(52730),s=r(42639);const c=e=>{let{sourceType:t,className:r,classes:l}=e;const c=(0,o.useSelector)(n.ZP.selectors.getMetadata),{label:u,icon:p}=(0,a.PWK)(c,t);return i().createElement(s.Z,{className:r,avatarText:u[0],icon:p?(0,a.vPL)("https://s3.amazonaws.com/reltio.images/api",p):null,variant:"square",rootClasses:l})}},79935:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(24328),a=r.n(n);const l=()=>a().createElement("div",{style:{flex:1}})},15791:(e,t,r)=>{r.d(t,{Z:()=>x});var n=r(24328),a=r.n(n),l=r(52730),i=r(87918),o=r.n(i),s=r(17440),c=r(71153),u=r.n(c),p=r(90436),d=r(15793),m=r(59952),f=r(18435),b=r(89810),h=r(79692);function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){y(e,t,r[t])}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const E={input:e=>g({},e,{fontSize:"14px"}),loadingMessage:e=>g({},e,{fontSize:"14px"}),menuPortal:e=>g({},e,{zIndex:1300})},v=(0,h.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"}}),x=e=>{let{selectedUsers:t,onChange:r,className:i,disableUnderline:c}=e;const h=v(),g=e=>({value:e,label:e}),y=e=>e.map(g),x=(0,l.useSelector)(b.ZP.selectors.getTenant),O=(0,l.useSelector)(b.ZP.selectors.getServicesPath),w=(0,n.useRef)();return a().createElement("div",{className:u()(h.root,i)},a().createElement(p.Z,{className:h.title,variant:"subtitle1"},o().text("User")),a().createElement(d.Z,{value:y(t),onChange:(0,s.pipe)((0,s.defaultTo)([]),(0,s.pluck)("value"),r),defaultOptions:!0,getOptions:e=>(w.current||(w.current=(0,f.kz_)({tenant:x,servicesPath:O})),w.current.then((0,s.pipe)((0,s.prop)("array"),(0,s.pluck)("username"),(e=>t=>e?t.filter((t=>f.P6Y.strings.search(t,e))):t)(e),y))),TextFieldProps:{InputProps:{disableUnderline:c},className:h.dropDownInput},components:{DropdownIndicator:m.Z},styles:E,classes:h,menuPortalTarget:document.body}))}},20414:(e,t,r)=>{let n;r.d(t,{I:()=>n}),function(e){e.MODEL_UPDATED="MODEL_UPDATED",e.ENTITY_REMOVED="ENTITY_REMOVED",e.ENTITY_CREATED="ENTITY_CREATED",e.ENTITY_CHANGED="ENTITY_CHANGED",e.ENTITIES_MERGED="ENTITIES_MERGED",e.ENTITIES_SPLITTED="ENTITIES_SPLITTED",e.ENTITY_LOST_MERGE="ENTITY_LOST_MERGE",e.RELATIONSHIP_CREATED="RELATIONSHIP_CREATED",e.RELATIONSHIP_REMOVED="RELATIONSHIP_REMOVED",e.RELATIONSHIP_CHANGED="RELATIONSHIP_CHANGED",e.POTENTIAL_MATCHES_FOUND="POTENTIAL_MATCHES_FOUND",e.NOT_MATCHES_SET="NOT_MATCHES_SET",e.NOT_MATCHES_RESET="NOT_MATCHES_RESET",e.PERIODIC_TASK_SCHEDULED="PERIODIC_TASK_SCHEDULED",e.ENTITIES_MERGED_MANUALLY="ENTITIES_MERGED_MANUALLY",e.POTENTIAL_MATCHES_REMOVED="POTENTIAL_MATCHES_REMOVED",e.ENTITIES_MERGED_ON_THE_FLY="ENTITIES_MERGED_ON_THE_FLY",e.USER_LOGIN="USER_LOGIN",e.USER_LOGOUT="USER_LOGOUT",e.USER_SEARCH="USER_SEARCH",e.USER_PROFILE_VIEW="USER_PROFILE_VIEW",e.COMMENT_ADDED="COMMENT_ADDED",e.COMMENT_UPDATED="COMMENT_UPDATED",e.COMMENT_DELETED="COMMENT_DELETED",e.ANALYTICS_ATTRIBUTES_CHANGED="ANALYTICS_ATTRIBUTES_CHANGED",e.GROUP_CREATED="GROUP_CREATED",e.GROUP_REMOVED="GROUP_REMOVED",e.GROUP_CHANGED="GROUP_CHANGED"}(n||(n={}))},57312:(e,t,r)=>{r.d(t,{te:()=>c,VV:()=>u,rx:()=>p,_V:()=>d,Xr:()=>m});var n=r(17440),a=r(87918),l=r.n(a),i=r(20414);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=(0,n.path)(["data","type"]),c=e=>{const{items:t,label:r}=e,[n]=t||[];return s(n)||r},u=(0,n.pipe)(c,(e=>(0,n.pipe)(n.values,(0,n.includes)(e))(i.I))),p=e=>(0,n.pipe)((0,n.propOr)([],"items"),(0,n.groupBy)(s),n.values,(0,n.ifElse)((e=>{let{length:t}=e;return t>1}),(0,n.map)((t=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){o(e,t,r[t])}))}return e}({},e,{items:t,itemsTotal:t.length}))),(()=>[e])))(e),d=e=>(0,n.isNil)(e)?"":"string"==typeof e?e:Array.isArray(e)?e.map(d).join(", "):(0,n.is)(Object,e)?d("value"in e?e.value:Object.values(e)):e.toString(),m=e=>({[i.I.COMMENT_ADDED]:l().text("Comment added"),[i.I.COMMENT_DELETED]:l().text("Comment deleted"),[i.I.COMMENT_UPDATED]:l().text("Comment updated"),[i.I.ENTITIES_MERGED]:l().text("Profile merged"),[i.I.ENTITIES_MERGED_MANUALLY]:l().text("Profile merged manually"),[i.I.ENTITIES_MERGED_ON_THE_FLY]:l().text("Profile merged on the fly"),[i.I.ENTITIES_SPLITTED]:l().text("Profile un-merged"),[i.I.ENTITY_CHANGED]:l().text("Profile updated"),[i.I.ENTITY_CREATED]:l().text("Profile created"),[i.I.ENTITY_LOST_MERGE]:l().text("Profile lost merge"),[i.I.ENTITY_REMOVED]:l().text("Profile removed"),[i.I.GROUP_CHANGED]:l().text("Group updated"),[i.I.GROUP_CREATED]:l().text("Group created"),[i.I.GROUP_REMOVED]:l().text("Group removed"),[i.I.MODEL_UPDATED]:l().text("Model was updated"),[i.I.NOT_MATCHES_RESET]:l().text("Not matches reset"),[i.I.NOT_MATCHES_SET]:l().text("Not matches set"),[i.I.PERIODIC_TASK_SCHEDULED]:l().text("Periodic task was scheduled"),[i.I.POTENTIAL_MATCHES_FOUND]:l().text("Potential matches found"),[i.I.POTENTIAL_MATCHES_REMOVED]:l().text("Potential matches removed"),[i.I.RELATIONSHIP_CHANGED]:l().text("Relationship updated"),[i.I.RELATIONSHIP_CREATED]:l().text("Relationship created"),[i.I.RELATIONSHIP_REMOVED]:l().text("Relationship removed"),[i.I.USER_LOGIN]:l().text("Logged in"),[i.I.USER_LOGOUT]:l().text("Logged out"),[i.I.USER_PROFILE_VIEW]:l().text("Profile viewed"),[i.I.USER_SEARCH]:l().text("Searched"),[i.I.ANALYTICS_ATTRIBUTES_CHANGED]:l().text("Analytics attribute changed")}[e]||"")},2002:(e,t,r)=>{r.d(t,{Z:()=>ie});var n=r(24328),a=r.n(n),l=r(18435),i=r(35039),o=r(31992),s=r(22983),c=r(27604),u=r(43054),p=r(71153),d=r.n(p),m=r(87918),f=r.n(m),b=r(67586),h=r(98538),g=r(79784),y=r(17440),E=r(65314),v=r(12980),x=r(79692);const O=(0,x.Z)((()=>({textField:{margin:0},input:{borderRadius:0},inputMultiline:{"&$input":{paddingTop:0,paddingBottom:0}},booleanEditor:{paddingLeft:"10px"},timestampEditor:{"&$paper":{minWidth:"255px"}},paper:e=>{let{color:t,containerWidth:r}=e;return{border:`3px solid ${t}`,borderRadius:"4px",width:r,minWidth:"160px"}},popoverRoot:{zIndex:"10!important"}})));function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const T=[l.oS0.TYPE_TEXT,l.oS0.TYPE_BLOB],I=e=>{let{attributeType:t,attributeValue:r,color:i,containerRef:o,onClose:s,onEdit:c}=e;const u=O({color:i,containerWidth:o.current?o.current.getBoundingClientRect().width:0}),p=(0,l.PFL)(t),m=(0,v.AG)(r,p),[f,b]=(0,n.useState)(m),h={className:u.textField,InputProps:{disableUnderline:!0,classes:{root:u.input,multiline:u.inputMultiline}}},x=()=>{const e=(0,v.Ho)(t,f);if(!(0,y.isNil)(f)&&!(0,y.equals)(f,m)){const n=(0,l.CwH)(t)?{value:e.value,lookupCode:e.lookupCode}:{value:""===f&&(0,l.FVt)(p.type)?null:e};c(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){w(e,t,r[t])}))}return e}({},r,n))}s()};return a().createElement(g.ZP,{open:!!o,anchorEl:o.current,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},classes:{paper:d()(u.paper,{[u.booleanEditor]:(0,l.T6Y)(p.type),[u.timestampEditor]:(0,l.j5n)(p.type)}),root:u.popoverRoot},onKeyUp:e=>{"Enter"!==e.key||T.includes(p.type)?"Escape"===e.key&&s():x()},onBackdropClick:x},a().createElement(E.Z,{autoFocus:!0,dataTypeDefinition:p,fieldName:(0,l.Tde)(t.uri),onChange:b,TextFieldProps:h,value:f,fullWidth:!0}))};var C=r(39475),S=r(20888),k=r(53203),N=r(12231),P=r(90436),D=r(78223),Z=r(10918);const A=(0,x.Z)((e=>({menuItem:{minHeight:"32px",color:e.palette.text.secondary},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"16px"},sourceItem:{borderBottom:"1px solid rgba(0, 0, 0, 0.12)",paddingBottom:"8px",paddingLeft:"16px",maxWidth:"200px"}}))),R=(0,D.Z)(N.Z),j=e=>{let{styles:t,icon:r,text:n}=e;return a().createElement(a().Fragment,null,r,a().createElement(P.Z,{classes:{root:t.menuText}},n))},M=(0,n.forwardRef)(((e,t)=>{let{item:r,onMenuClose:n=(()=>{})}=e;const l=A(),{disabled:i,text:o,tooltip:s,onClick:c,id:u="",icon:p,crosswalk:d,color:m}=r;return d?a().createElement(Z.Z,{className:l.sourceItem,color:m,crosswalk:d,focusable:!0}):a().createElement(R,{tooltipTitle:s,showForDisabled:!0,classes:{root:l.menuItem},onClick:e=>{n(e),c(e)},disabled:i,ref:t,"data-reltio-id":`crosswalk-menu-item${u}`},a().createElement(j,{icon:p,text:o,styles:l}))}));M.displayName="CrosswalkMenuItem";const _=M;var L=r(2996),V=r(23759);function U(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const H=(0,x.Z)((()=>({root:e=>{let{fullyColored:t,opaque:r,color:n,variant:a}=e;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){U(e,t,r[t])}))}return e}({height:"28px"},"filled"===a&&{borderRadius:"4px",background:t?n:`linear-gradient(to right, ${n} 8px, rgba(0,0,0,0.05) 8px)`},"outlined"===a&&{"&::after":{content:'""',position:"absolute",background:n,borderRadius:"4px 0px 0px 4px",width:"8px",height:"100%",pointerEvents:"none"},"&::before":{content:'""',position:"absolute",boxSizing:"border-box",borderRadius:"4px",border:t?`${n} solid 2px`:"rgba(0,0,0,0.12) solid 1px",width:"100%",height:"100%",pointerEvents:"none"}},{display:"flex",alignItems:"center",maxWidth:"230px",opacity:r?1:.38,transition:"opacity 0.3s",position:"relative"})},attributeValue:{marginLeft:"16px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",flex:1},actions:{display:"flex",width:"71px",justifyContent:"flex-end",marginRight:"4px"}}))),z=e=>{let{className:t,dataReltioId:r,attributeType:i=null,attributeValue:o,crosswalk:p,disableEdit:m,disableDelete:g,onIgnore:y,onEdit:E,onPin:v,onDelete:x}=e;const{isReadingMode:O,isEditingMode:w,isHovered:T,onMouseEnter:N,onMouseLeave:P,setReadingMode:D,setEditingMode:Z}=(0,L.p)(),A=(0,n.useRef)(),R=(0,l.nIW)(o.uri),j=(0,l.x_)(p),M=!i.system&&!j,U=M&&!m&&(0,l.Z5t)(l.fO_.EDITING,i),z=M&&!g&&(0,l.Edd)(l.fO_.EDITING,i),F=(0,l.ZiX)(o.uri),G=!F&&(!O&&U||o.pin),W=!F&&(!O&&U||o.ignored),B=(0,V.nX)(p),{isHighlighted:Y,isDimmed:q,highlightCrosswalk:$,removeHighlight:K}=(0,V.pu)(p),X=H({variant:j?"outlined":"filled",opaque:!q,fullyColored:Y,color:B}),Q=[{crosswalk:p,color:B},{disabled:!U,text:f().text("Edit"),icon:a().createElement(c.Z,null),tooltip:U?null:f().text("You don't have permissions to edit"),onClick:()=>Z(),id:"edit"},{disabled:!z,text:f().text("Delete"),icon:a().createElement(s.Z,null),tooltip:z?null:f().text("You don't have permissions to delete"),onClick:()=>x({attributeType:i,attributeValue:o,crosswalks:[p]}),id:"delete"}],J=()=>{K(),D()};return a().createElement("div",{ref:A,className:d()(t,X.root),onMouseEnter:()=>{$(),N()},onMouseLeave:()=>{K(),P()},"data-reltio-id":r},a().createElement("div",{className:X.attributeValue},a().createElement(b.Z,{value:(0,l.kDl)(o),dataTypeDefinition:(0,l.PFL)(i)})),a().createElement("div",{className:X.actions},G&&a().createElement(k.Z,{isPinned:o.pin,onClick:()=>v({attributeValue:o}),disabled:!U}),W&&a().createElement(S.Z,{isIgnored:o.ignored,onClick:()=>y({attributeValue:o}),disabled:!U}),T&&a().createElement(h.Z,{MenuItemRenderer:_,menuId:`simple-attribute-additional-actions-${R}`,buttonComponent:C.k,buttonProps:{icon:u.Z,size:"XS",tooltipTitle:f().text("More actions")},onMenuClose:J,menuItems:Q})),w&&a().createElement(I,{attributeType:i,attributeValue:o,color:B,onClose:J,onEdit:e=>E({attributeType:i,attributeValue:e,crosswalk:p}),containerRef:A}))};var F=r(13896);const G=(0,x.Z)((()=>({simpleAttributesWrapper:{display:"flex",flexWrap:"wrap",gap:"4px",width:"100%",minHeight:"28px"},dropIndicator:{height:"28px",color:"#828282",fontSize:"13px",lineHeight:"28px",background:"rgba(0, 0, 0, 0.04)",border:"1px dashed #828282",borderRadius:"4px",boxSizing:"border-box",padding:"0 12px"}})));function W(){return W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},W.apply(this,arguments)}const B=e=>{let{attributeValues:t,attributeType:r,parentUri:n,disableEdit:i,crosswalksMap:o,onAdd:s}=e,c=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValues","attributeType","parentUri","disableEdit","crosswalksMap","onAdd"]);const u=G(),[{isDragItemOver:p},d]=(0,F.useDrop)({accept:"Crosswalk",canDrop:e=>{let{crosswalk:t}=e;const n=(0,l.bC9)(t.uri)||"relation"===t.ownerType,a=(0,l.WgC)(t.uri)&&"entity"===t.ownerType;return(0,l.d89)(l.fO_.EDITING,r)&&!i&&(n&&(0,l.$NE)(r.uri)||a&&(0,l.EdS)(r.uri))},collect:e=>({isDragItemOver:e.isOver()&&e.canDrop()}),drop:(e,a)=>{let{crosswalk:l}=e;s({attributeType:r,crosswalk:l,parentUri:n,index:t.length})}});let m=0;return a().createElement("div",{ref:d,className:u.simpleAttributesWrapper},t.map((e=>{var t;return null===(t=o[e.uri])||void 0===t?void 0:t.map((t=>a().createElement(z,W({key:e.uri+t.uri,attributeType:r,attributeValue:e,crosswalk:t,disableEdit:i,dataReltioId:"value-index-"+m++},c))))})),p&&a().createElement("div",{className:u.dropIndicator},f().text("Drop here")))};var Y=r(73149),q=r(77277);function $(){return $=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$.apply(this,arguments)}const K=e=>{let{className:t,attributeValues:r,attributeType:n,onAdd:i,parentUri:o,disableEdit:s}=e,c=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["className","attributeValues","attributeType","onAdd","parentUri","disableEdit"]);const u=!s&&(0,l.d89)(l.fO_.EDITING,n);return 0===r.length&&u?a().createElement(q.Z,{variant:"text",color:"primary",onClick:()=>i({parentUri:o,attributeType:n,index:0})},f().text("Create attribute")):a().createElement("div",{className:t},r.map((e=>a().createElement(Y.Z,$({key:e.uri,attributeValue:e,attributeType:n,onAdd:i,disableEdit:s},c)))))};var X=r(49402);function Q(){return Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Q.apply(this,arguments)}const J=e=>{let{className:t,attributeValues:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["className","attributeValues"]);return a().createElement("div",{className:t},r.map((e=>a().createElement(X.Z,Q({key:e.uri,attributeValue:e},n)))))};var ee=r(51557);function te(){return te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},te.apply(this,arguments)}const re=e=>{let{className:t,attributeValues:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["className","attributeValues"]);return a().createElement("div",{className:t},r.map((e=>a().createElement(ee.Z,te({key:e.uri,attributeValue:e},n)))))},ne=(0,x.Z)((()=>({wrapper:{display:"flex",flexDirection:"column",alignItems:"flex-start"},complexAttributesWrapper:{width:"100%"}})));function ae(){return ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ae.apply(this,arguments)}function le(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}const ie=e=>{let{attributeType:t,attributeValues:r=[],paging:s={},max:c=1/0,requestNextPage:u}=e,p=le(e,["attributeType","attributeValues","paging","max","requestNextPage"]);const d=ne(),[m,f]=(0,n.useState)(c),b=(0,y.propOr)(r.length,"totalValues",s),h=c<b,g=h&&m<b,E=h&&m>=b,v=r.slice(0,m),x=b-m;return a().createElement("div",{className:d.wrapper},(e=>{switch(t.type){case l.oS0.TYPE_NESTED:return a().createElement(K,ae({className:d.complexAttributesWrapper,attributeValues:e,attributeType:t},p));case l.oS0.TYPE_REFERENCE:{const{crosswalksMap:r}=p,n=le(p,["crosswalksMap"]);return a().createElement(J,ae({className:d.complexAttributesWrapper,attributeValues:e,attributeType:t,crosswalksMap:r},n))}case l.oS0.TYPE_IMAGE:return a().createElement(re,ae({className:d.complexAttributesWrapper,attributeValues:e,attributeType:t},p));default:return a().createElement(B,ae({attributeValues:e,attributeType:t},p))}})(v),g&&a().createElement(i.Z,{moreNumber:Math.min(c,x),valueNumber:x,onClick:()=>{r.length<b&&u(),f(m+c)}}),E&&a().createElement(o.Z,{onClick:()=>{f(c)}}))}},86966:(e,t,r)=>{r.d(t,{Z:()=>R});var n=r(24328),a=r.n(n),l=r(18435),i=r(2996),o=r(79935),s=r(23759),c=r(10918),u=r(90143),p=r(71153),d=r.n(p),m=r(21934);const f=e=>{let{crosswalk:t,className:r}=e;const n=(0,s.nX)(t),{isDimmed:l,highlightCrosswalk:i,removeHighlight:o}=(0,s.pu)(t),p=(0,m.y)({isOpaque:!l,color:n});return a().createElement(u.Z,{title:a().createElement(c.Z,{crosswalk:t,color:n}),placement:"top"},a().createElement("div",{className:d()(p.crosswalkIcon,r),onMouseEnter:()=>i(),onMouseLeave:()=>o()}))};var b=r(17440),h=r(85777),g=r(2002),y=r(92985),E=r(52239),v=r(79692);const x=(0,v.Z)((e=>({title:{fontSize:"12px",lineHeight:"14px",paddingBottom:"4px",display:"inline-block",color:e.palette.text.secondary}})));function O(){return O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(this,arguments)}const w=e=>{let{attributeTypes:t,attributes:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeTypes","attributes"]);const i=x();return a().createElement(a().Fragment,null,t.filter(l.Uty).map((e=>a().createElement(E.Z,{key:e.uri,enabled:!0},a().createElement(y.Z,{className:i.title,label:e.label}),a().createElement(g.Z,O({attributeType:e,attributeValues:r[e.name],paging:(0,b.path)(["paging",e.uri],r)},n))))))};var T=r(53203),I=r(20888),C=r(39475),S=r(22983),k=r(87918),N=r.n(k);const P=e=>{let{onClick:t}=e;return a().createElement(C.k,{icon:S.Z,tooltipTitle:N().text("Delete"),onClick:t,size:"XS",disableRipple:!0})};var D=r(55962),Z=r(38361);const A=(0,v.Z)((()=>({root:{display:"flex",minHeight:"20px"},actions:{display:"flex",width:"65px",justifyContent:"flex-end",flexShrink:0,alignSelf:"center"},crosswalkIcon:{display:"inline-block",verticalAlign:"middle","& + &":{marginLeft:"4px"}}}))),R=e=>{let{attributeType:t,attributeValue:r,attributeTypesList:s,label:c,crosswalksMap:u,disableEdit:p,disableDelete:d,onPin:m,onIgnore:g,onDelete:y,onEdit:E,onAdd:v}=e;const x=A(),{isReadingMode:O,onMouseEnter:C,onMouseLeave:S}=(0,i.p)(),k=!p&&(0,l.Z5t)(l.fO_.EDITING,t),N=!d&&(0,l.Edd)(l.fO_.EDITING,t),R=(0,l.ZiX)(r.uri),j=!R&&(!O&&k||r.pin),M=!R&&(!O&&k||r.ignored),_=!O&&N,L=(0,Z.Q)(r.uri),[V,U]=(0,n.useState)(L||R);(0,D.D)((()=>{L&&U(L)}),[L]);const H=(0,b.pipe)((0,b.pickBy)(((e,t)=>(0,l.sOy)(t,null==r?void 0:r.uri))),b.values,b.flatten,(0,b.uniqBy)((0,b.prop)("uri")))(u);return a().createElement(a().Fragment,null,a().createElement("div",{className:x.root,onMouseEnter:C,onMouseLeave:S},a().createElement(h.Z,{onClick:()=>U((e=>!e)),expanded:V}),a().createElement("span",null,c,H.map((e=>a().createElement(f,{key:(0,l.uKF)(e),crosswalk:e,className:x.crosswalkIcon})))),a().createElement(o.Z,null),a().createElement("div",{className:x.actions},j&&a().createElement(T.Z,{disabled:!k,isPinned:r.pin,onClick:()=>m({attributeValue:r})}),M&&a().createElement(I.Z,{disabled:!k,isIgnored:r.ignored,onClick:()=>g({attributeValue:r})}),_&&a().createElement(P,{onClick:()=>y({attributeType:t,attributeValue:r,crosswalks:u[r.uri]})}))),V&&a().createElement(w,{attributeTypes:s,attributes:r.value,parentUri:r.uri,crosswalksMap:u,disableEdit:!k,disableDelete:!N,onPin:m,onIgnore:g,onDelete:y,onEdit:E,onAdd:v}))}},51557:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24328),a=r.n(n),l=r(18435),i=r(26729),o=r(86966);const s=(0,r(79692).Z)((()=>({image:{borderRadius:"4px",background:"white",display:"inline-block",verticalAlign:"middle"},imageContainer:{display:"inline",lineHeight:"45px",paddingRight:"8px"}})));function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}const u={imageWidth:55,imageHeight:45},p=e=>{let{attributeValue:t,attributeType:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValue","attributeType"]);const p=s();return a().createElement(o.Z,c({attributeValue:t,attributeType:r,attributeTypesList:r.attributes,label:a().createElement(i.Z,{containerClassName:p.imageContainer,className:p.image,src:(0,l.Ysv)(t),size:u})},n))}},73149:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(24328),a=r.n(n),l=r(18435),i=r(86966),o=r(35969);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const c=e=>{let{attributeValue:t,attributeType:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValue","attributeType"]);const c=a().createElement(o.x,null,(0,l.idV)(null==t?void 0:t.label));return a().createElement(i.Z,s({attributeValue:t,attributeType:r,attributeTypesList:r.attributes,label:c},n))}},49402:(e,t,r)=>{r.d(t,{Z:()=>m});var n=r(24328),a=r.n(n),l=r(52730),i=r(89810),o=r(18435),s=r(86966),c=r(17440),u=r(35969);const p=(0,r(79692).Z)((e=>({label:{color:e.palette.primary.main,textDecoration:"none"},relationshipLabel:{marginLeft:"4px",color:e.palette.text.primary}})));function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}const m=e=>{let{attributeValue:t,attributeType:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValue","attributeType"]);const m=p(),f=(0,l.useSelector)(i.ZP.selectors.getMetadata),b=(0,l.useSelector)(i.ZP.selectors.getUIPath),h=a().createElement(u.x,null,a().createElement("a",{href:(0,o.ChB)({uiPath:b,uri:(0,o.bwT)(t)}),className:m.label},(0,o.idV)(t.label),t.relationshipLabel&&a().createElement("span",{className:m.relationshipLabel},t.relationshipLabel))),g=(0,c.pipe)(o.tF$,(0,c.map)((e=>(0,o.zeJ)(f,e))),(0,c.reject)(c.isNil))(r);return a().createElement(s.Z,d({attributeValue:t,attributeType:r,attributeTypesList:g,label:h},n))}},35969:(e,t,r)=>{r.d(t,{x:()=>o});var n=r(24328),a=r.n(n),l=r(90436),i=r(21934);const o=e=>{let{children:t}=e;const r=(0,i.q)();return a().createElement(l.Z,{component:"span",variant:"body2",classes:{body2:r.label}},t)}},20888:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),a=r.n(n),l=r(39475);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const o=e=>a().createElement("svg",i({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5A8.503 8.503 0 003.5 12c0 4.692 3.808 8.5 8.5 8.5s8.5-3.808 8.5-8.5-3.808-8.5-8.5-8.5zM6.1 12c0-3.26 2.64-5.9 5.9-5.9 1.161 0 2.24.336 3.149.917L7.017 15.15A5.821 5.821 0 016.101 12zm5.9 5.9c-1.16 0-2.24-.336-3.148-.917l8.131-8.131c.581.908.917 1.987.917 3.148 0 3.26-2.64 5.9-5.9 5.9z",fill:"#000",fillOpacity:.54}));function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const c=e=>a().createElement("svg",s({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.847 9.402a6.34 6.34 0 00-.8-1.322L8.08 17.048A6.34 6.34 0 0012 18.4a6.398 6.398 0 005.847-8.998zm-7.283 7.283l6.121-6.121a4.898 4.898 0 01-6.121 6.121zm1.437-11.084a6.334 6.334 0 013.92 1.352L6.953 15.92A6.334 6.334 0 015.6 12c0-3.536 2.864-6.4 6.4-6.4zm0 1.5c.5 0 .982.075 1.436.215l-6.121 6.12A4.898 4.898 0 0112 7.1zM6.6 17.903A7.967 7.967 0 0012 20c4.417-.001 8.001-3.585 8.001-8.001a7.967 7.967 0 00-2.601-5.902A7.988 7.988 0 0012 4c-4.416 0-8 3.584-8 8a7.967 7.967 0 002.602 5.902zM12 2.5c-5.244 0-9.5 4.256-9.5 9.5s4.256 9.5 9.5 9.5 9.5-4.256 9.5-9.5-4.256-9.5-9.5-9.5z",fill:"#000",fillOpacity:.54}));var u=r(87918),p=r.n(u);const d=e=>{let{isIgnored:t,onClick:r,disabled:n}=e;return a().createElement(l.k,{disabled:n,showForDisabled:!0,icon:t?o:c,tooltipTitle:n?p().text("You don't have permissions to ignore"):p().text("Ignore"),onClick:r,size:"XS",disableRipple:!0})}},53203:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),a=r.n(n),l=r(39475);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const o=e=>a().createElement("svg",i({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 4v6l2 2v2h-5v7l-.992 1L11 21v-7H6v-2l2-2V4H7V2h10v2h-1z",fill:"#000",fillOpacity:.54}));function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const c=e=>a().createElement("svg",s({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 10V4h1V2H7v2h1v6l-2 2v2h5v7l1.008 1L13 21v-7h5v-2l-2-2zm-6-6h4v7l1 1H9l1-1V4z",fill:"#000",fillOpacity:.54}));var u=r(87918),p=r.n(u);const d=e=>{let{isPinned:t,onClick:r,disabled:n}=e;return a().createElement(l.k,{disabled:n,showForDisabled:!0,onClick:r,icon:t?o:c,tooltipTitle:n?"You don't have permissions to pin":p().text("Pin"),size:"XS",disableRipple:!0})}},10918:(e,t,r)=>{r.d(t,{Z:()=>g});var n=r(24328),a=r.n(n),l=r(87918),i=r.n(l),o=r(89810),s=r(18435),c=r(52730),u=r(72753),p=r(21210),d=r(71153),m=r.n(d),f=r(23759),b=r(39475),h=r(21934);const g=e=>{let{crosswalk:t,color:r,className:n,focusable:l=!1}=e;const{toggleCrosswalkFocus:d,isFocused:g}=(0,f.BF)(t),y=(0,h.y)({color:r,isFocused:g}),E=(0,c.useSelector)(o.ZP.selectors.getMetadata),{label:v}=(0,s.PWK)(E,t.type);return a().createElement("div",{className:m()(y.sourceItem,n)},a().createElement(p.Z,{className:y.sourceIcon,sourceType:t.type}),a().createElement("div",{className:y.sourceInfo},a().createElement("div",null,a().createElement("span",{className:y.label},v),l&&a().createElement(b.k,{icon:u.Z,className:y.eyeIcon,size:"XXS",tooltipTitle:i().text("Focus"),onClick:()=>d()})),a().createElement("div",{className:y.crosswalkValue},t.value)))}},21934:(e,t,r)=>{r.d(t,{y:()=>a,q:()=>l});var n=r(79692);const a=(0,n.Z)({sourceItem:{display:"flex",overflow:"hidden"},eyeIcon:e=>{let{isFocused:t}=e;return{marginLeft:"10px",color:t?"#000":"rgba(0, 0, 0, 0.54)"}},label:{color:"rgba(0, 0, 0, 0.87)",verticalAlign:"top",fontSize:"13px",lineHeight:"16px"},sourceInfo:{overflow:"hidden"},crosswalkValue:{color:"rgba(0, 0, 0, 0.54)",fontSize:"12px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},sourceIcon:e=>{let{color:t}=e;return{height:"16px",width:"16px",marginRight:"9px",fontSize:"14px",backgroundColor:t}},crosswalkIcon:e=>{let{color:t,isOpaque:r}=e;return{backgroundColor:t,height:"12px",width:"12px",borderRadius:"30px",opacity:r?1:.38,transition:"opacity 0.3s"}}}),l=(0,n.Z)((()=>({label:{fontSize:"13px",lineHeight:"15px",letterSpacing:"normal",marginLeft:"2px",marginRight:"8px"}})))},2996:(e,t,r)=>{r.d(t,{p:()=>i});var n,a=r(18435),l=r(24328);!function(e){e.READING="READING",e.HOVERED="HOVERED",e.EDITING="EDITING"}(n||(n={}));const i=()=>{const[e,t]=(0,l.useState)(null),r=e===n.READING,i=e===n.EDITING,o=e===n.HOVERED;(0,l.useEffect)((()=>{t(n.READING)}),[]);const s=(0,l.useCallback)((0,a.DsO)(t,50),[]),c=(0,l.useCallback)((()=>{i||s(n.HOVERED)}),[s,i]),u=(0,l.useCallback)((()=>{i||s(n.READING)}),[s,i]);return{setReadingMode:(0,l.useCallback)((()=>t(n.READING)),[t]),setEditingMode:(0,l.useCallback)((()=>t(n.EDITING)),[t]),onMouseLeave:u,onMouseEnter:c,isReadingMode:r,isEditingMode:i,isHovered:o}}},45226:(e,t,r)=>{r.d(t,{Z:()=>m});var n=r(18435),a=r(24328),l=r.n(a),i=r(11013),o=r(61347);function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}const d=e=>{let{values:t,valueContainerClassName:r}=e,n=p(e,["values","valueContainerClassName"]);return l().createElement(l().Fragment,null,(t||[]).map((e=>l().createElement("div",{key:e.uri,className:r},l().createElement(i.Z,u({attributeValue:e},n))))))},m=(0,a.memo)((e=>{let{expanded:t}=e,r=p(e,["expanded"]);const{attributeType:a,values:i,valueContainerClassName:c}=r;switch(a.type){case n.oS0.TYPE_NESTED:case n.oS0.TYPE_REFERENCE:return d(s({expanded:t},r));case n.oS0.TYPE_IMAGE:return l().createElement("div",{className:c},l().createElement(o.Z,{attributeType:a,attributeValues:i,imageSize:{imageHeight:40,imageWidth:40,imageMargin:2}}));default:return d(s({},r))}}))},77194:(e,t,r)=>{r.d(t,{Z:()=>He});var n=r(24328),a=r.n(n),l=r(52730),i=r(87918),o=r.n(i),s=r(89810),c=r(18435),u=r(16809),p=r(66678),d=r(54238),m=r(45108),f=r(17998),b=r(17440),h=r(92332),g=r(71153),y=r.n(g),E=r(79692);const v=(0,E.Z)((e=>({coloredCell:{"&::before":{content:'""',position:"absolute",right:0,top:0,width:"100%",height:"100%",background:"rgba(0,0,0,0.06)",pointerEvents:"none"}},headCell:{display:"flex",alignItems:"center",fontSize:"12px",height:"100%",color:e.palette.text.secondary},rowCell:{fontSize:"13px",overflow:"hidden"},cellValueWrapper:{padding:"15px 15px 0 15px","&:last-child":{paddingBottom:"15px"}},attributeTitle:{display:"block",marginLeft:"3px","&:not(:last-child)":{marginBottom:"5px"}},ovValue:{"& + &":{marginTop:"4px"}},count:{textAlign:"center"},ruleType:{display:"flex",alignItems:"center"},ruleTypeLabel:{marginRight:"5px"},rulePopup:{width:"270px",overflowY:"hidden"},popupItem:{paddingBottom:"5px",paddingTop:"5px"},sourceIcon:{height:"16px",width:"16px",marginRight:"9px",fontSize:"14px"},closeButton:{height:24,width:24},popupTitle:{fontWeight:500,marginLeft:"12px"},popupTitleWrapper:{display:"flex",paddingLeft:16,paddingTop:16},popupItemsWrapper:{overflowY:"auto",maxHeight:"280px"},winnerSourceItemWrapper:{paddingBottom:"2px",paddingTop:"2px"},winnerSourceItem:{display:"flex",alignItems:"center",width:"100%",paddingLeft:"8px"},winnerSourceItemLabel:{fontSize:13}}))),x=e=>{const t=v();return a().createElement("div",{className:y()(t.headCell,t.coloredCell)},a().createElement(h.default,e),e.children)};var O=r(89913),w=r(30488);const T=(0,E.Z)({root:{marginBottom:"-6px"}}),I=(0,w.Z)((0,b.pick)(["parentUri","parentTypeUri","onAdd","selectedAttributeTypes","onSelectAttributeTypes"]))((e=>{let{parentTypeUri:t,parentUri:r,selectedAttributeTypes:n,onSelectAttributeTypes:i,onAdd:u}=e;const p=T(),d=(0,l.useSelector)(s.ZP.selectors.getMetadata),m=[...d.entityTypes,...d.relationTypes||[]].find((0,b.propEq)("uri",t)),f=e=>!(null!=n&&n.find((0,b.propEq)("uri",e.uri))),h=(0,b.pipe)((0,b.propOr)([],"attributes"),(0,b.reject)((0,b.either)(c.YkG,c.Or$)),(0,b.filter)((0,b.either)(c.QZu,f)),(0,b.filter)((0,b.both)(c.Uty,(e=>(0,c.Vg3)({attributeType:e,mode:c.fO_.EDITING})))))(m);return a().createElement("div",{className:p.root},a().createElement(O.Z,{label:o().text("Attribute"),popupTitle:o().text("Add attributes"),data:h,onApply:e=>{const t=e.filter(f);t.length>0&&i([...t,...n]),e.filter(c.QZu).forEach((e=>{u({attributeType:e,parentUri:r})}))}}))}));var C=r(79935);const S=(0,w.Z)((0,b.pick)(["readOnly"]))((e=>{let{readOnly:t}=e,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["readOnly"]);return t?a().createElement(x,r):a().createElement(x,r,a().createElement(C.Z,null),a().createElement(I,null))})),k=e=>{let{value:t}=e;const r=v();return a().createElement("div",{className:r.cellValueWrapper},t)};var N=r(2002);const P=(0,E.Z)((()=>({simpleAttributeWrapper:{padding:"15px"},complexAttributeWrapper:{padding:"15px","& + &":{borderTop:"1px solid rgba(0,0,0,.1)"}}})));function D(){return D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},D.apply(this,arguments)}const Z=e=>{let{attributeValues:t}=e,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValues"]);const n=P();return a().createElement("div",{className:n.simpleAttributeWrapper},a().createElement(N.Z,D({attributeValues:t},r)))};var A=r(73149);function R(){return R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},R.apply(this,arguments)}const j=e=>{let{attributeValues:t}=e,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValues"]);const n=P(),l=null==t?void 0:t.map(((e,t)=>a().createElement("div",{key:null==e?void 0:e.uri,className:n.complexAttributeWrapper,"data-reltio-id":`value-index-${t}`},a().createElement(A.Z,R({attributeValue:e},r)))));return a().createElement(a().Fragment,null,l)};var M=r(49402);function _(){return _=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.apply(this,arguments)}const L=e=>{let{attributeValues:t,crosswalksMap:r}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValues","crosswalksMap"]);const l=P(),i=null==t?void 0:t.map(((e,t)=>a().createElement("div",{key:null==e?void 0:e.uri,className:l.complexAttributeWrapper,"data-reltio-id":`value-index-${t}`},a().createElement(M.Z,_({attributeValue:e,crosswalksMap:r},n)))));return a().createElement(a().Fragment,null,i)};var V=r(51557);function U(){return U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},U.apply(this,arguments)}const H=e=>{let{attributeValues:t}=e,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["attributeValues"]);const n=P();return a().createElement(a().Fragment,null,null==t?void 0:t.map(((e,t)=>a().createElement("div",{key:null==e?void 0:e.uri,className:n.complexAttributeWrapper,"data-reltio-id":`value-index-${t}`},a().createElement(V.Z,U({attributeValue:e},r))))))};function z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const F=(0,w.Z)((0,b.pick)(["onDelete","onPin","onIgnore","onEdit","onAdd","parentUri","readOnly"]))((e=>{let{value:t,onDelete:r,onEdit:n,onPin:l,onIgnore:i,onAdd:o,parentUri:s,readOnly:u}=e;return class{static build(e,t){switch(e){case c.oS0.TYPE_NESTED:return a().createElement(j,t);case c.oS0.TYPE_REFERENCE:return a().createElement(L,t);case c.oS0.TYPE_IMAGE:return a().createElement(H,t);default:return a().createElement(Z,t)}}}.build(t.attributeType.type,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){z(e,t,r[t])}))}return e}({},t,{parentUri:s,onDelete:r,onEdit:n,onPin:l,onIgnore:i,onAdd:o,disableEdit:u,disableDelete:u}))}));var G=r(92985),W=r(45226);const B=e=>{let{value:{values:t,attributeType:r}}=e;const n=v();return a().createElement("div",{className:n.cellValueWrapper},a().createElement(G.Z,{className:n.attributeTitle,label:r.label}),a().createElement(W.Z,{values:t,attributeType:r,valueContainerClassName:n.ovValue}))},Y=e=>{let{value:t}=e;const r=v();return a().createElement("div",{className:y()(r.cellValueWrapper,r.count)},t)};var q=r(61837),$=r(11776),K=r(38402),X=r(49378),Q=r(79784),J=r(90436),ee=r(87685),te=r(99144),re=r(39475),ne=r(21210);const ae=e=>{let{sourcesUriOrder:t}=e;const r=v(),n=(0,l.useSelector)(s.ZP.selectors.getMetadata);return a().createElement(a().Fragment,null,t.map((e=>a().createElement(K.Z,{key:e,className:r.popupItem},a().createElement(ne.Z,{className:r.sourceIcon,sourceType:e}),a().createElement(X.Z,{primary:(0,c.tH7)(n,e),primaryTypographyProps:{variant:"body2"}})))))},le=e=>{let{attributeUri:t}=e;const r=v(),n=(0,l.useSelector)(s.ZP.selectors.getMetadata),i=(0,c.zeJ)(n,t);return a().createElement(K.Z,{key:i.uri,className:r.popupItem},a().createElement(X.Z,{primary:(0,c.idV)(i.label),primaryTypographyProps:{variant:"body2"}}))},ie=(0,b.cond)([[(0,b.prop)("sourcesUriOrder"),()=>o().text("Source sequence")],[(0,b.prop)("primaryAttributeUri"),()=>o().text("Attribute winner")],[(0,b.prop)("comparisonAttributeUri"),()=>o().text("Comparison attribute")]]),oe=(0,b.cond)([[(0,b.prop)("sourcesUriOrder"),e=>{let{sourcesUriOrder:t}=e;return a().createElement(ae,{sourcesUriOrder:t})}],[(0,b.prop)("primaryAttributeUri"),e=>{let{primaryAttributeUri:t}=e;return a().createElement(le,{attributeUri:t})}],[(0,b.prop)("comparisonAttributeUri"),e=>{let{comparisonAttributeUri:t}=e;return a().createElement(le,{attributeUri:t})}]]),se=e=>{let{info:t}=e;const r=v(),[l,i]=(0,n.useState)(null),s=()=>i(null);return a().createElement(a().Fragment,null,a().createElement(re.k,{icon:te.Z,tooltipTitle:o().text("View details"),size:"XS",onClick:e=>i(e.currentTarget)}),a().createElement(Q.ZP,{classes:{paper:r.rulePopup},open:!!l,anchorEl:l,onClose:s,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},a().createElement("div",{className:r.popupTitleWrapper},a().createElement(q.Z,{className:r.closeButton,onClick:s},a().createElement(ee.default,null)),a().createElement(J.Z,{variant:"subtitle1",className:r.popupTitle},ie(t))),a().createElement($.Z,{component:"div",className:r.popupItemsWrapper},oe(t))))},ce=e=>{let{value:{ruleType:t,sourcesUriOrder:r,primaryAttributeUri:n,comparisonAttributeUri:l}}=e;const i=v(),o=r||n||l;return a().createElement("div",{className:y()(i.cellValueWrapper,i.ruleType)},a().createElement("div",{className:i.ruleTypeLabel},t.label),o&&a().createElement(se,{info:{sourcesUriOrder:r,primaryAttributeUri:n,comparisonAttributeUri:l}}))};var ue=r(23759),pe=r(26752);const de=e=>{let{crosswalk:t}=e;const r=v(),n=(0,l.useSelector)(s.ZP.selectors.getMetadata),{isDimmed:i,highlightCrosswalk:o,removeHighlight:u}=(0,ue.pu)(t);return a().createElement(pe.Z,{className:r.winnerSourceItem,color:(0,c.CJp)((0,c.uKF)(t)),opacity:i?.38:1,onMouseEnter:()=>o(),onMouseLeave:()=>u()},a().createElement(ne.Z,{className:r.sourceIcon,sourceType:t.type}),a().createElement(X.Z,{primary:(0,c.tH7)(n,t.type),primaryTypographyProps:{variant:"body2"},classes:{primary:r.winnerSourceItemLabel}}))},me=e=>{let{value:{crosswalks:t}}=e;const r=v();return a().createElement($.Z,{component:"div"},t.map((e=>a().createElement(K.Z,{key:e.uri,className:r.winnerSourceItemWrapper},a().createElement(de,{crosswalk:e})))))},fe=[{id:"ovValues",get label(){return o().text("Attributes & OV")},hideable:!1,initialWidth:360,minWidth:250},{id:"winnerSources",get label(){return o().text("Winner source systems")},initialWidth:220},{id:"ruleType",get label(){return o().text("Rule type")},initialWidth:200},{id:"count",get label(){return o().text("Count")},initialWidth:80,minWidth:80},{id:"values",get label(){return o().text("Attribute values")},hideable:!1}],be=e=>(0,c.OXP)(e)&&!(0,c.ZiX)(e.uri),he=["ovValues","ruleType","values"],ge=e=>{switch(e){case"ovValues":return B;case"values":return F;case"count":return Y;case"ruleType":return ce;case"winnerSources":return me;default:return k}},ye=(0,b.pipe)(c.cwx,(0,b.sortWith)([(0,b.descend)((0,b.propOr)(-1,"priority"))]),(0,b.map)((0,b.prop)("uri"))),Ee=(0,b.curry)(((e,t)=>(0,c.YkG)(e)&&t&&(0,b.pipe)(c.c31,(0,b.find)((r=>r.slice((0,c.u5q)(r).length)===t.slice(e.uri.length))))(e)||t)),ve=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return(0,b.pipe)((0,b.filter)(be),(0,b.chain)((e=>(0,b.pipe)((0,b.pickBy)(((t,r)=>{const n=(0,c.sOy)(r,e.uri),a=n?r.slice(e.uri.length+1):"",l=a&&(0,c.IM5)(e.value,a);return n&&(!l||be(l))})),b.values,b.flatten)(t))),(0,b.uniqBy)((0,b.prop)("uri")))(e)},xe=(0,b.map)((e=>{let{id:t,label:r,initialWidth:n,minWidth:a}=e;return{id:t,label:r,initialWidth:n,minWidth:a,autoResize:!n,resizable:!0,sortable:!1,headCellRenderer:"ovValues"===t?S:x,rowCellValueRenderer:ge(t)}})),Oe=(e,t,r,n,a,l)=>{switch(e){case"ovValues":return{attributeType:n,values:null==l?void 0:l.filter(be)};case"values":return{attributeType:n,attributeValues:l,crosswalksMap:a};case"count":return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;switch(e){case c.oS0.TYPE_REFERENCE:case c.oS0.TYPE_NESTED:case c.oS0.TYPE_IMAGE:return t.length;default:return t.reduce(((e,t)=>e+r[t.uri].length),0)}}(n.type,l,a);case"ruleType":return((e,t,r)=>{var n,a;const l=[...e.entityTypes,...e.relationTypes||[]].find((0,b.propEq)("uri",r)),i=null==l||null===(n=l.survivorshipGroups)||void 0===n?void 0:n.find((0,b.propEq)("default",!0)),o=null==i||null===(a=i.mapping)||void 0===a?void 0:a.find((0,b.propEq)("attribute",t.uri)),s=(0,c.o_J)(e,null==o?void 0:o.survivorshipStrategy)||(0,c.Xaq)(e),u=(e=>"configuration/survivorshipStrategies/SRC_SYS"===(null==e?void 0:e.uri))(s)?(0,b.uniq)([...(null==o?void 0:o.sourcesUriOrder)||[],...(null==i?void 0:i.sourcesUriOrder)||[],...ye(e)]):void 0,p=Ee(t),d=(e=>"configuration/survivorshipStrategies/OtherAttributeWinnerCrosswalk"===(null==e?void 0:e.uri))(s)?p(null==o?void 0:o.primaryAttributeUri):void 0,m=(0,c.YkM)(t)&&(e=>"configuration/survivorshipStrategies/MinValue"===(null==e?void 0:e.uri)||"configuration/survivorshipStrategies/MaxValue"===(null==e?void 0:e.uri))(s)?p(null==o?void 0:o.comparisonAttributeUri):void 0;return{ruleType:s,sourcesUriOrder:u,primaryAttributeUri:d,comparisonAttributeUri:m}})(t,n,r);case"winnerSources":return{crosswalks:ve(l,a)};default:return null}};function we(){return we=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},we.apply(this,arguments)}const Te=e=>{let{cell:t,CellValueRenderer:r,columnIndex:n,columnData:l}=e,i=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["cell","CellValueRenderer","columnIndex","columnData"]);const o=v(),s=0===n;return a().createElement("div",{className:y()(o.rowCell,s&&o.coloredCell),"data-reltio-id":`column-name-${l.id}`},t.values.map(((e,t)=>a().createElement(r,we({key:t,value:e},i)))))};var Ie=r(87378),Ce=r(94059),Se=r(77277),ke=r(8629),Ne=r(49429),Pe=r(38724),De=r(55999),Ze=r(44962),Ae=r(2682),Re=r(5806),je=r(42494),Me=r(84899),_e=r(79573);const Le=e=>{let{open:t,onClose:r,onConfirmEditWithoutIgnore:l,onConfirmEditWithIgnore:i}=e;const[s,c]=(0,n.useState)("without");return a().createElement(ke.Z,{open:t,onEnter:()=>c("without")},a().createElement(Pe.Z,null,a().createElement(De.Z,null,o().text("You are attempting to change a value that is presently ignored.")),a().createElement(je.Z,{component:"fieldset"},a().createElement(Me.Z,{component:"legend"},o().text("Please choose an option:")),a().createElement(Ae.Z,{value:s,onChange:(0,b.pipe)(_e.NA,c)},a().createElement(Re.Z,{value:"without",control:a().createElement(Ze.Z,null),label:o().text("Save without Ignore")}),a().createElement(Re.Z,{value:"with",control:a().createElement(Ze.Z,null),label:o().text("Save and apply Ignore to new value")})))),a().createElement(Ne.Z,null,a().createElement(Se.Z,{onClick:r,color:"primary"},o().text("Cancel")),a().createElement(Se.Z,{onClick:()=>{"with"===s?i():l(),r()},color:"primary"},o().text("Ok"))))},Ve=(0,E.Z)({tableContainer:{height:"100%",overflow:"hidden",display:"flex",flexDirection:"column"},tableHeader:{display:"flex",flexDirection:"row",justifyContent:"space-between"},tableContent:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",position:"relative"}});function Ue(){return Ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ue.apply(this,arguments)}const He=(0,n.memo)((e=>{let{entity:t,isLoading:r,crosswalksMap:i,visibleColumns:h=he,onChangeVisibleColumns:g,readOnly:y,onDelete:E=_e.ZT,onPin:v=_e.ZT,onIgnore:x=_e.ZT,onEdit:O=_e.ZT,onAdd:w=_e.ZT,selectedAttributeTypes:T,onSelectAttributeTypes:I=_e.ZT}=e;const C=Ve(),S=(0,n.useMemo)((()=>(0,b.pipe)((0,b.filter)((e=>{let{id:t}=e;return h.includes(t)})),xe)(fe)),[h]),{type:k,uri:N,attributes:P={}}=t||{},D=(0,l.useSelector)(s.ZP.selectors.getMetadata);(0,n.useEffect)((()=>{if(t&&(0,b.isNil)(T)){const e=(0,b.pipe)(b.keys,(0,b.without)(["paging"]),(0,b.map)((0,c.tCm)(k)),(0,b.map)((e=>(0,c.zeJ)(D,e,k))),(0,b.filter)(c.Uty))(P);I(e)}}),[t,T]);const Z=(0,n.useMemo)((()=>k?function(e,t){let r=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).map((l=>{const i=(0,c.nIW)(l.uri),o=a[i],s=(0,c.YkG)(l)?n.relation:n.entity;return(0,b.pipe)((0,b.reduce)(((r,n)=>(0,b.assoc)(n,Oe(n,e,t,l,s,o),r)),{}),(0,b.assoc)("rawValue",o))(r)}))}(D,k,T,h,i,P):[]),[D,k,T,h,P,i]),{getDynamicRowCellHeight:A,changeRowCellHeight:R}=(0,u.Z)(),j=(0,n.useCallback)((e=>a().createElement(p.Z,Ue({onChangeHeight:R},e),a().createElement(Te,e))),[R]),M=(0,n.useCallback)((0,b.either)(A,(0,b.always)(68)),[A]),[_,L]=(0,n.useState)(null),[V,U]=(0,n.useState)(null),H=(0,n.useCallback)((e=>{e.attributeValue.ignored?U(e):O(e)}),[O,U]),z=(0,n.useMemo)((()=>({onDelete:L,onPin:v,onIgnore:x,onEdit:H,onAdd:w,parentUri:N,parentTypeUri:k,selectedAttributeTypes:T,onSelectAttributeTypes:I,readOnly:y})),[L,v,x,H,w,N,k,T,I,y]);return a().createElement("div",{className:C.tableContainer},a().createElement(f.Z,{classes:{root:C.tableHeader},title:o().text("Sources")},a().createElement(d.Z,{columnsData:fe,selectedColumns:h,onChangeColumns:g})),a().createElement("div",{className:C.tableContent},r&&a().createElement(Ie.Z,null),a().createElement(m.Z,{fixFirstColumn:!0,headRowHeight:48,defaultColumnWidth:250,defaultColumnMinWidth:200,columnsData:S,rowsData:Z,renderRowCell:j,getRowCellHeight:M,context:z})),a().createElement(Ce.Z,{open:!!_,onClose:()=>L(null),onConfirm:()=>E(_)}),a().createElement(Le,{open:!!V,onClose:()=>U(null),onConfirmEditWithIgnore:()=>O(V),onConfirmEditWithoutIgnore:()=>{x({attributeValue:V.attributeValue}),O(V)}}))}))},26752:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(24328),a=r.n(n),l=r(71153),i=r.n(l);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=(0,r(79692).Z)({item:e=>{let{color:t,opacity:r,variant:n}=e;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){o(e,t,r[t])}))}return e}({},"filled"===n&&{backgroundColor:t},"outlined"===n&&{border:`${t} solid 2px`},{opacity:r,transition:"opacity 0.3s",boxSizing:"border-box"})}});function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}const u=(0,n.forwardRef)(((e,t)=>{let{color:r,opacity:n,variant:l="filled",children:o,className:u}=e,p=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["color","opacity","variant","children","className"]);const d=s({color:r,opacity:n,variant:l});return a().createElement("div",c({ref:t,className:i()(d.item,u)},p),o)}))},60925:(e,t,r)=>{r.d(t,{Z:()=>A});var n=r(24328),a=r.n(n),l=r(52730),i=r(94059),o=r(89913),s=r(90590),c=r(39475),u=r(21210),p=r(43371),d=r(90436),m=r(22983),f=r(18435),b=r(17440),h=r(87918),g=r.n(h),y=r(89810),E=r(40435);function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}const x=e=>a().createElement("svg",v({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),a().createElement("defs",null,a().createElement("path",{d:"M20.222 6C21.21 6 22 6.8 22 7.778v12.444C22 21.2 21.209 22 20.222 22H7.778C6.79 22 6 21.2 6 20.222V7.778C6 6.8 6.791 6 7.778 6h12.444zM20 8H8v12h12V8zM4 18H2V4c0-1.1.9-2 2-2h14v2H4v14z",id:"Copy_svg__a"})),a().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},a().createElement("mask",{id:"Copy_svg__b",fill:"#fff"},a().createElement("use",{xlinkHref:"#Copy_svg__a"})),a().createElement("path",{fillOpacity:.54,fill:"#000",mask:"url(#Copy_svg__b)",d:"M0 0h24v24H0z"})));var O=r(79692);const w=(0,O.Z)((()=>({root:{display:"flex",justifyContent:"space-between",alignItems:"center",overflowWrap:"anywhere"},text:{fontSize:13},button:{flexShrink:0,marginLeft:8,padding:0,textTransform:"none"}}))),T=e=>{let{value:t}=e;const r=w();return a().createElement("div",{className:r.root},a().createElement(d.Z,{className:r.text,variant:"body2"},t),a().createElement(E.Z,{size:"XXS",icon:x,color:"primary",className:r.button,onClick:()=>navigator.clipboard.writeText(t)}))};var I=r(71153),C=r.n(I),S=r(91785);const k=(0,O.Z)((()=>({timestampEditorInput:{paddingTop:15,paddingBottom:15,fontSize:13},timestampEditor:{height:38}}))),N=e=>{let{value:t,classes:r={},disabled:l=!1,onChange:i}=e;const o=k(),[s,c]=(0,n.useState)(!1),u=e=>i(e.valueOf());return a().createElement(S.Z,{variant:"filled",value:t?new Date(t):null,disabled:l,onChange:(0,b.unless)((0,b.always)(s),u),onAccept:u,onOpen:()=>c(!0),onClose:()=>c(!1),InputProps:{disableUnderline:!0,classes:{input:o.timestampEditorInput,root:C()(o.timestampEditor,r.root)}}})};var P=r(95038),D=r.n(P);const Z=(0,O.Z)((e=>({text:{fontSize:13},attributeWrapper:{display:"flex",alignItems:"center",paddingTop:5,paddingBottom:5,marginLeft:12},attributeTitle:{fontSize:13,width:135,color:e.palette.text.secondary},attributeValue:{paddingLeft:10,display:"flex",alignItems:"center",flexGrow:1},input:{paddingTop:14,paddingBottom:14,fontSize:13},editor:{flexGrow:1},moreButton:{marginLeft:24},sourceIcon:{height:"16px",width:"16px",marginRight:"9px",fontSize:"14px"}}))),A=e=>{let{crosswalk:t,canEditAttribute:r=!0,onEditAttribute:h,onDeleteAttribute:E}=e;const v=Z(),x=!("uri"in t),O=(0,l.useSelector)(y.ZP.selectors.getMetadata),[w,I]=(0,n.useState)([]),[C,S]=(0,n.useState)(null),k=(0,n.useMemo)((()=>[{label:f.G39.sourceSystems.label,uri:"type"},{label:f.G39.value.label,uri:"value"},{label:f.G39.sourceTable.label,uri:"sourceTable",canBeAdded:x,canBeDeleted:x},{label:f.G39.createDate.label,uri:"createDate"},{label:f.G39.updateDate.label,uri:"updateDate"},{label:f.G39.deleteDate.label,uri:"deleteDate",canBeAdded:!0,canBeDeleted:!0},{label:f.G39.reltioLoadDate.label,uri:"reltioLoadDate"},{label:f.G39.publishDate.label,uri:"sourcePublishDate"}]),[]),P=(0,b.pipe)((0,b.filter)((0,b.propEq)("canBeAdded",!0)),(0,b.filter)((e=>!(0,b.has)(e.uri,t))),(0,b.filter)((e=>!w.includes(e.uri))))(k);return a().createElement(a().Fragment,null,P.length>0&&r&&a().createElement(o.Z,{label:g().text("Add attributes"),onApply:e=>{e.length>0&&I((t=>t.concat((0,b.map)((0,b.prop)("uri"),e))))},data:P}),k.map((e=>e.uri in t||w.includes(e.uri)?a().createElement("div",{key:e.uri,className:v.attributeWrapper},a().createElement(d.Z,{variant:"body2",className:v.attributeTitle},`${e.label}:`),a().createElement("div",{className:v.attributeValue},((e,t)=>{switch(e){case"type":{const r=(0,f.tH7)(O,t);return x?a().createElement(s.Z,{label:"",placeholder:t,className:v.editor,value:{value:t,label:r},options:(0,f.cwx)(O).sort((0,b.ascend)((0,b.prop)("label"))).map((e=>{let{uri:t,label:r}=e;return{value:t,label:r}})),onChange:t=>{let{value:r}=t;return h(e,r)},TextFieldProps:{InputProps:{disableUnderline:!0}}}):a().createElement(a().Fragment,null,a().createElement(u.Z,{className:v.sourceIcon,sourceType:t}),a().createElement(d.Z,{className:v.text,variant:"body2"},r))}case"sourceTable":return x?a().createElement(p.Z,{multiple:!1,multiline:!1,getValueLabel:void 0,classes:{root:v.editor},required:!0,variant:"filled",value:t,onInput:t=>h(e,t.target.value),margin:"dense",InputProps:{disableUnderline:!0,classes:{input:v.input}}}):a().createElement(d.Z,{className:v.text,variant:"body2"},t);case"value":return x?a().createElement(p.Z,{multiple:!1,multiline:!1,getValueLabel:void 0,classes:{root:v.editor},required:!0,variant:"filled",value:t,onInput:t=>h(e,t.target.value),margin:"dense",InputProps:{disableUnderline:!0,classes:{input:v.input}}}):a().createElement(T,{value:t});case"deleteDate":return a().createElement(N,{value:t&&D().utc((0,f.ZBU)(t)).valueOf(),onChange:t=>h(e,t.toString()),classes:{root:v.editor},disabled:!r});case"sourcePublishDate":case"createDate":case"updateDate":case"reltioLoadDate":return a().createElement(d.Z,{className:v.text,variant:"body2"},(0,f.o0x)(t));default:return null}})(e.uri,t[e.uri]),e.canBeDeleted&&a().createElement(c.k,{icon:m.Z,disabled:!r,onClick:()=>S(e.uri),size:"XS",tooltipTitle:g().text("Delete attribute"),showForDisabled:!0}))):null)),a().createElement(i.Z,{open:!!C,onClose:()=>S(null),onConfirm:()=>{return e=C,I((t=>(0,b.without)([e],t))),void((0,b.isNil)(t[e])||E(e));var e}}))}},10938:(e,t,r)=>{r.d(t,{Z:()=>b});var n=r(24328),a=r.n(n),l=r(13896),i=r(52730),o=r(18435),s=r(26752),c=r(23759),u=r(21210),p=r(90436),d=r(89810);const m=(0,r(79692).Z)({dragLayer:{position:"fixed",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",zIndex:1300,pointerEvents:"none"},crosswalkPreview:{height:"28px",maxWidth:"394px",display:"flex",overflow:"hidden",padding:"6px",alignItems:"center",boxSizing:"border-box"},sourceLabel:{fontSize:"13px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},sourceIcon:{width:"16px",height:"16px",marginRight:"9px"}}),f=e=>{let{crosswalk:t}=e;const r=m(),n=(0,c.nX)(t),l=(0,i.useSelector)(d.ZP.selectors.getMetadata),f=(0,o.tH7)(l,t.type);return a().createElement(s.Z,{color:n,className:r.crosswalkPreview},a().createElement(u.Z,{className:r.sourceIcon,sourceType:t.type}),a().createElement(p.Z,{className:r.sourceLabel,variant:"body2"},f))},b=(0,n.memo)((()=>{var e;const t=m(),{isDragging:r,clientOffset:i,item:o}=(0,l.useDragLayer)((e=>({isDragging:e.isDragging(),clientOffset:e.getClientOffset(),item:e.getItem()}))),s=(0,n.useRef)(),c=(null===(e=s.current)||void 0===e?void 0:e.getBoundingClientRect())||{x:0,y:0},u=`translate(${(null==i?void 0:i.x)-(null==c?void 0:c.x)}px, ${(null==i?void 0:i.y)-(null==c?void 0:c.y)}px`;return r&&a().createElement("div",{ref:s,className:t.dragLayer},a().createElement("div",{style:{display:"flex",transform:u,WebkitTransform:u}},"Crosswalk"===o.type&&a().createElement(f,{crosswalk:o.crosswalk})))}))},89468:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),a=r.n(n),l=r(87918),i=r.n(l),o=r(77277),s=r(90436),c=r(60925),u=r(17440);const p=(0,r(79692).Z)({caption:{paddingLeft:15,paddingTop:16,paddingBottom:8},controlButtons:{display:"flex",justifyContent:"flex-end",paddingBottom:10,paddingTop:20},cancelButton:{marginRight:20}}),d=e=>{let{className:t,onAdd:r,onClose:l}=e;const d=p(),[m,f]=(0,n.useState)({type:"",value:""});return a().createElement("div",{className:t},a().createElement(s.Z,{variant:"body1",className:d.caption},i().text("Add crosswalk")),a().createElement(c.Z,{crosswalk:m,onDeleteAttribute:e=>{f((0,u.dissoc)(e))},onEditAttribute:(e,t)=>{f((0,u.assoc)(e,t))}}),a().createElement("div",{className:d.controlButtons},a().createElement(o.Z,{className:d.cancelButton,onClick:l},i().text("Cancel")),a().createElement(o.Z,{color:"primary",onClick:()=>{r(m),l()},disabled:!m.type||!m.value},i().text("Add"))))}},71285:(e,t,r)=>{r.d(t,{Z:()=>j});var n=r(24328),a=r.n(n),l=r(23759),i=r(34802),o=r(18435),s=r(52730),c=r(90436),u=r(72753),p=r(21210),d=r(40435),m=r(89810),f=r(79692);const b=(0,f.Z)((()=>({root:e=>{let{isOpaque:t}=e;return{display:"flex",opacity:t?1:.38,transition:"opacity 0.3s"}},wrapper:{width:"100%",display:"flex",alignItems:"center",height:28,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDcvMjYvMTMEw7WpAAAAeElEQVQ4ja3VuwrAIBBE0aup0uX/v9ImCCGSdIL4WF136+EwxcC6+3k/hAsxSREArvPAW2LAGFzFhqAG64JarAnuYBW4ixWgBZZBKwzAW2Ig7HAVCzHJ4AoGQsNVbAhqsC6oxZrgDlaBu1gBWmAZtMIA3MwLmMUAfmyqQ9/LD+oDAAAAAElFTkSuQmCC)"},focusedIcon:{width:28,height:28,backgroundColor:"rgba(0, 0, 0, 0.12)",borderRadius:0,borderRight:"1px solid #fff"},sourceIcon:{height:"16px",width:"16px",marginLeft:"16px",marginRight:"9px",fontSize:"14px"}}))),h=(0,n.memo)((e=>{let{crosswalkType:t,focusable:r=!0}=e;const{isDimmed:n}=(0,l.pu)(),i=b({isOpaque:!n}),f=(0,s.useSelector)(m.ZP.selectors.getMetadata),h=(0,o.tH7)(f,t);return a().createElement("div",{className:i.root},a().createElement(d.Z,{size:"XXS",className:i.focusedIcon,icon:r&&u.Z,disabled:!0}),a().createElement("div",{className:i.wrapper},a().createElement(p.Z,{className:i.sourceIcon,sourceType:t}),a().createElement(c.Z,{variant:"body2"},h)))}));var g=r(87918),y=r.n(g),E=r(22983),v=r(85777),x=r(83088),O=r(26752),w=r(94059),T=r(39475),I=r(79935),C=r(19540),S=r(13896),k=r(42484),N=r(60925);const P=(0,f.Z)({root:e=>{let{isOpaque:t}=e;return{display:"flex",opacity:t?1:.19,transition:"opacity 0.3s"}},header:{width:"100%",display:"flex",alignItems:"center",height:"28px"},focusedIcon:e=>{let{isFocused:t}=e;return{width:"26px","&:not([disabled])":{border:"1px solid rgba(0, 0, 0, 0.12)"},height:"28px",color:t?"#000":"rgba(0, 0, 0, 0.54)",borderRadius:0,margin:"0px 1px"}},crosswalkWrapper:{width:"100%",overflow:"hidden"},sourceIcon:{height:"16px",width:"16px",marginRight:"9px",fontSize:"14px"},attributesWrapper:e=>{let{color:t}=e;return{border:"1px solid",borderColor:t,position:"relative"}},deleteCrosswalkButton:{position:"absolute",top:5,right:5},labelValue:{marginLeft:5,marginRight:8},dependentIcon:{width:"16px",height:"16px",fillOpacity:.38}}),D=(0,n.memo)((e=>{let{crosswalk:t,isDependent:r,isEmpty:i=!1,isColored:d=!0,focusable:f=!0,disableEdit:b,disableDelete:h,onDelete:g,onEdit:D}=e;const Z=(0,n.useRef)(null),A=(0,l.nX)(t),{toggleCrosswalkFocus:R,isFocused:j}=(0,l.BF)(t),M=i?"#FFF":d?A:"#CACCD1",{isDimmed:_,highlightCrosswalk:L,removeHighlight:V}=(0,l.pu)(t),[U]=(0,l.RT)(),H=P({color:M,isOpaque:!_,isFocused:j}),[z,F]=(0,n.useState)(!1),[G,W]=(0,n.useState)(!1),B=(0,s.useSelector)(m.ZP.selectors.getMetadata),Y=(0,o.tH7)(B,t.type),q=(0,o.nIW)(t.uri),$=(0,o.x_)(t),[,K,X]=(0,S.useDrag)({item:{type:"Crosswalk",crosswalk:t},canDrag:!$}),Q=!$&&"relation"!==t.ownerType;return(0,n.useEffect)((()=>{X((0,k.r)(),{captureDraggingState:!0})}),[]),(0,n.useEffect)((()=>{var e;f&&U&&(0,o.aFF)(U,t)&&U!==t&&(null==Z||null===(e=Z.current)||void 0===e||e.scrollIntoView({behavior:"smooth"}))}),[U]),a().createElement("div",{className:H.root,ref:Z},a().createElement(T.k,{size:"XXS",className:H.focusedIcon,icon:f&&u.Z,onClick:()=>R(),disabled:!f,tooltipTitle:f&&y().text("Focus")}),a().createElement("div",{className:H.crosswalkWrapper},a().createElement(O.Z,{ref:K,className:H.header,color:M,variant:$?"outlined":"filled",onMouseEnter:()=>L(),onMouseLeave:()=>V()},r&&a().createElement(C.Z,{className:H.dependentIcon}),a().createElement(v.Z,{onClick:()=>F((e=>!e)),expanded:z}),a().createElement(p.Z,{className:H.sourceIcon,sourceType:t.type}),a().createElement(x.C,{value:Y},a().createElement(c.Z,{variant:"body2",noWrap:!0},Y)),a().createElement(I.Z,null),a().createElement(x.C,{value:t.value},a().createElement(c.Z,{variant:"body2",className:H.labelValue,noWrap:!0},t.value))),z&&a().createElement("div",{className:H.attributesWrapper},Q&&a().createElement("div",{className:H.deleteCrosswalkButton},a().createElement(T.k,{icon:E.Z,disabled:h,onClick:()=>W(!0),size:"XS",tooltipTitle:h?y().text("You don't have permissions to delete"):y().text("Delete crosswalk"),showForDisabled:!0}),a().createElement(w.Z,{open:G,onConfirm:()=>{j&&R(),g(q)},onClose:()=>W(!1)})),a().createElement(N.Z,{crosswalk:t,canEditAttribute:!b,onEditAttribute:(e,t)=>{D({crosswalkId:q,attributeName:e,value:t})},onDeleteAttribute:e=>{D({crosswalkId:q,attributeName:e})}}))))}));var Z=r(86689);const A=(0,f.Z)((()=>({root:{display:"flex",alignItems:"center",height:"28px",paddingLeft:"37px"}}))),R=e=>{let{showMore:t,onClick:r}=e;const n=A();return a().createElement(Z.Z,{className:n.root,component:"button",variant:"caption",underline:"none",onClick:r},a().createElement("span",null,t?y().text("View dependent crosswalks"):y().text("Hide dependent crosswalks")))},j=e=>{let{source:t,crosswalksByTypes:r,showCrosswalkColors:s=!0,crosswalksFocusEnabled:c=!0,expanded:u,disableEditCrosswalk:p,disableDeleteCrosswalk:d,onEdit:m,onDelete:f,onToggleExpanded:b}=e;const g=(0,l.RT)();return(0,n.useEffect)((()=>{!u&&c&&r[i.Y.Dependent].some((e=>g.some((0,o.aFF)(e))))&&b()}),[g]),a().createElement(a().Fragment,null,0===r[i.Y.Simple].length&&0===r[i.Y.Empty].length&&a().createElement(h,{crosswalkType:t,focusable:c}),r[i.Y.Simple].map((e=>a().createElement(D,{key:e.uri,crosswalk:e,focusable:c,disableEdit:p,disableDelete:d,onDelete:f,onEdit:m,isColored:s}))),r[i.Y.Empty].map((e=>a().createElement(D,{key:e.uri,crosswalk:e,focusable:c,isEmpty:!0,disableEdit:p,disableDelete:d,onDelete:f,onEdit:m,isColored:s}))),u&&r[i.Y.Dependent].map((e=>a().createElement(D,{key:e.uri,crosswalk:e,isDependent:!0,disableEdit:p,disableDelete:d,onDelete:f,onEdit:m,focusable:c,isColored:s}))),r[i.Y.Dependent].length>0&&a().createElement(R,{showMore:!u,onClick:()=>b()}))}},73972:(e,t,r)=>{r.d(t,{P:()=>o});var n=r(24328),a=r(17440),l=r(18435),i=r(79573);const o=e=>{let{onLoad:t=i.ZT,onSuccess:r=i.ZT,onError:o=i.ZT}=e;const s=(0,n.useCallback)((e=>{t(),e.then((e=>{let{errors:t}=e;if(t)throw t;r()})).catch(o)}),[t,o,r]);return{addCrosswalk:(0,n.useCallback)((e=>{let{entity:t,contributorCrosswalk:r,crosswalk:n}=e;const i=r?(0,l.psB)({entityTypeUri:t.type,contributorCrosswalkType:r.type,contributorCrosswalkValue:r.value,contributorCrosswalkSourceTable:r.sourceTable,crosswalkType:n.type,crosswalkValue:n.value,crosswalkSourceTable:n.sourceTable,crosswalkDeleteDate:n.deleteDate}):(0,l.kRE)({entityUri:t.uri,crosswalk:n});(0,a.pipe)((0,a.andThen)((e=>{let[t]=e;return t})),s)(i)}),[s]),editCrosswalk:(0,n.useCallback)((e=>{let{entityUri:t,crosswalkId:r,attributeName:n,value:i}=e;(0,a.pipe)((0,a.ifElse)((e=>{let{value:t}=e;return(0,a.isNil)(t)}),l.K$w,l.WVU),(0,a.andThen)((e=>{let[t]=e;return t})),s)({entityUri:t,crosswalkId:r,attributeName:n,value:i})}),[s]),deleteCrosswalk:(0,n.useCallback)((e=>{let{entityUri:t,crosswalkId:r}=e;(0,a.pipe)(l.Gmt,s)({entityUri:t,crosswalkId:r})}),[s])}}},82658:(e,t,r)=>{r.d(t,{Q:()=>u});var n=r(24328),a=r(18435),l=r(17440),i=r(79573);function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){s(e,t,r[t])}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=[],u=e=>{let{entity:t,onLoad:r=i.ZT,onModify:s=i.ZT,onError:u=i.ZT}=e;const[p,d]=(0,n.useState)(null),[m,f]=(0,n.useState)(null),b=(0,n.useRef)([]),h=(0,n.useRef)(null),g=(0,n.useCallback)((()=>{h.current=null}),[]),[y,E]=(0,n.useState)(c),v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(((e,t)=>((0,a.sJj)(t).forEach((r=>{e[r]=[...e[r]||[],t]})),e)),{})};(0,n.useEffect)((()=>{const e={entity:v(null==t?void 0:t.crosswalks),relation:(0,l.pipe)(a.HQx,v)(t)};if((null==p?void 0:p.uri)===(null==t?void 0:t.uri)&&h.current){const{ownerType:t}=h.current,r=Object.keys(e[t]),n=Object.keys(m[t]);E((0,l.difference)(r,n))}else E(c);g(),d(t),f(e),b.current=[]}),[t]);const x=(0,n.useCallback)((0,l.pipe)(u,g),[u,g]),{deleteAttribute:O,ignoreAttribute:w,pinAttribute:T,createAttribute:I,updateAttribute:C}=(e=>{let{onSuccess:t=i.ZT,onError:r=i.ZT,onLoad:o=i.ZT}=e;const s=(0,n.useCallback)((e=>{o(),e.then((()=>{t()})).catch(r)}),[r,t,o]),c=(0,n.useCallback)((e=>e.then((e=>{if("error"in e)throw e.error;return e}))),[]);return{deleteAttribute:(0,n.useCallback)((e=>{let{attributeValue:t,attributeType:r,crosswalks:n}=e;const i=(0,a.YkG)(r)?(0,l.pipe)(a.o96,(0,l.prop)("objectURI"),a.VGk,c)(t):Promise.all((n||[]).map((e=>{let{type:r,value:n,sourceTable:l}=e;return c((0,a.xZs)({attributeUri:t.uri,sourceUri:r,crosswalkValue:n,crosswalkSourceTable:l}))})));s(i)}),[s,c]),pinAttribute:(0,n.useCallback)((e=>{let{attributeValue:t}=e;(0,l.pipe)(a.xkv,c,s)({attributeUri:t.uri,value:!t.pin})}),[s,c]),ignoreAttribute:(0,n.useCallback)((e=>{let{attributeValue:t}=e;(0,l.pipe)(a.P8_,c,s)({attributeUri:t.uri,value:!t.ignored})}),[s,c]),updateAttribute:(0,n.useCallback)((e=>{let{attributeValue:t,attributeType:r,crosswalk:n}=e;(0,a.YkM)(r)||(0,a.Or$)(r)||(0,l.pipe)(a.tCj,c,s)({attributeUri:t.uri,sourceUri:n.type,crosswalkValue:n.value,crosswalkSourceTable:n.sourceTable,value:(0,a.CwH)(r)?t.lookupCode:t.value})}),[s,c]),createAttribute:(0,n.useCallback)((e=>{let{attributeValue:t,crosswalk:r}=e;(0,l.pipe)(a.JV_,(0,l.andThen)((e=>{let[{errors:t}]=e;if(t)throw t})),s)({attributeUri:t.uri,sourceUri:r.type,crosswalkValue:r.value,crosswalkSourceTable:r.sourceTable,value:t.value})}),[s])}})({onLoad:r,onSuccess:s,onError:x}),S=(0,n.useCallback)((e=>{let{attributeType:t,parentUri:r,crosswalk:n,index:i}=e;const s=(0,a.gjI)({parentUri:r,attributeType:t}),{uri:c}=s;if(n){const{ownerType:e}=n;f((t=>o({},t,{[e]:o({},t[e],{[c]:[n]})})))}d((e=>{var n;return(0,l.isNil)(i)&&(i=null===(n=(0,a.JQy)(e,r,t.name))||void 0===n?void 0:n.length),(0,a.wLZ)({entity:e,attributeType:t,newAttribute:s,index:i})})),b.current.some((e=>(0,a.sOy)(c,e)))||b.current.push(c)}),[]),k=(0,n.useCallback)((e=>{const{attributeValue:{uri:t},attributeType:r}=e;(0,a.ZiX)(t)?(d((e=>(0,a.d$I)({entity:e,attributeType:r,uri:t}))),f((0,l.evolve)({entity:(0,l.dissoc)(t),relation:(0,l.dissoc)(t)})),b.current=(0,l.without)([t],b.current)):O(e)}),[O]),N=(0,n.useCallback)((e=>{if((0,a.ZiX)(e.attributeValue.uri)){const{attributeValue:t,attributeType:r,crosswalk:n}=e;if(!(0,l.isNil)(t.value)){const{uri:e}=t,l=b.current.find((t=>(0,a.sOy)(e,t))),i=(0,a.ww$)({entity:p,attributeType:r,uri:e,value:(0,a.kDl)(t)});I({attributeValue:(0,a.dLR)(i,l),crosswalk:n}),h.current=n}}else C(e)}),[I,C,p]);return{modifiedEntity:p,crosswalksMap:m,onAddAttribute:S,onDeleteAttribute:k,onPinAttribute:T,onIgnoreAttribute:w,onEditAttribute:N,newlyCreatedAttributes:y}}},34802:(e,t,r)=>{let n;r.d(t,{Y:()=>n}),function(e){e.Simple="simple",e.Empty="empty",e.Dependent="dependent"}(n||(n={}))},10765:(e,t,r)=>{r.d(t,{o:()=>s});var n=r(18435),a=r(17440),l=r(34802);const i=e=>e[l.Y.Simple].length>0?1:e[l.Y.Dependent].length>0?e[l.Y.Empty].length>0?2:3:4,o=(0,a.evolve)({[l.Y.Dependent]:(0,a.sort)(((e,t)=>{const r=e.sourceTable||"",n=t.sourceTable||"";return r===n?0:r?n?r<n?-1:1:-1:1}))}),s=(0,a.curry)(((e,t,r)=>{const s=(r||[]).reduce(((r,i)=>(r[i.type]||(r[i.type]={[l.Y.Simple]:[],[l.Y.Empty]:[],[l.Y.Dependent]:[]}),"relation"===i.ownerType?r[i.type][l.Y.Dependent].push(i):((e,t,r)=>0===(0,n.sJj)(r).filter((r=>{const l=(0,n.AFK)(r,e);return t.some((0,a.propEq)("uri",l))})).length)(e,t,i)?r[i.type][l.Y.Empty].push(i):((e,t,r)=>!(0,n.sJj)(r).some((r=>{const l=(0,n.AFK)(r,e),i=t.find((0,a.propEq)("uri",l));return i&&!(0,n.YkM)(i)})))(e,t,i)?r[i.type][l.Y.Dependent].push(i):r[i.type][l.Y.Simple].push(i),r)),{});return Object.keys(s).sort(((e,t)=>i(s[e])-i(s[t])||(e<t?-1:1))).map((e=>({source:e,crosswalksByTypes:o(s[e])})))}))},27446:(e,t,r)=>{r.d(t,{Z:()=>g});var n=r(24328),a=r.n(n),l=r(95038),i=r.n(l),o=r(87918),s=r.n(o),c=r(17440),u=r(18435),p=r(86619),d=r(48348),m=r(59952),f=r(52346);const b=(0,r(79692).Z)({root:{flex:1},dropdownIndicator:{transition:"transform .15s ease"},inputRoot:{fontSize:"14px",height:46},input:{padding:"0 12px 0"},dateOptionLabel:{minWidth:"100px"},paper:{minWidth:"112px"}}),h=i().localeData().longDateFormat("L"),g=e=>{let{values:t,onChange:r,onFocus:l}=e;const i=h,o=(0,n.useRef)(null),[g,y]=(0,n.useState)(!1),E=b(),v=(0,n.useCallback)((()=>{y((e=>!e)),l()}),[l]),x=()=>{y(!1)};return a().createElement("div",{className:E.root},a().createElement(p.Z,{fullWidth:!0,value:t.map((e=>((e,t)=>(0,c.isNil)(e)?`${t}`:`${(0,u.mB6)({dataTypeDefinition:{type:u.oS0.TYPE_ACTIVENESS_DATE}},e)}`)(e,i))).join(" — "),onClick:v,variant:"filled",ref:o,InputProps:{endAdornment:a().createElement(m.Z,{selectProps:{classes:E,menuIsOpen:g},innerProps:{}}),disableUnderline:(0,c.isNil)(t),readOnly:!0,classes:{root:E.inputRoot,input:E.input}},InputLabelProps:{shrink:!1},placeholder:s().text(`${i} — ${i}`)}),a().createElement(d.Z,{variant:"menu",open:g,autoFocus:!1,classes:{paper:E.paper},anchorEl:o.current,onClose:x,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:g,style:{width:"100%"}}},a().createElement(f.Z,{values:t,onCancel:x,onApply:e=>{r(e),y(!1)},type:u.oS0.TYPE_ACTIVENESS_DATE})))}},70675:(e,t,r)=>{r.d(t,{Z:()=>re});var n=r(24328),a=r.n(n),l=r(87918),i=r.n(l),o=r(85256),s=r(90436),c=r(17440),u=r(79935),p=r(36444),d=r(77277),m=r(79784),f=r(40435),b=r(37696),h=r(15791),g=r(55234),y=r(71153),E=r.n(y),v=r(90590),x=r(39034);const O=[x.K.WITHIN,x.K.AGO,x.K.BETWEEN],w=e=>({[x.K.WITHIN]:i().text("Within the last"),[x.K.AGO]:i().text("More than"),[x.K.BETWEEN]:i().text("Date range")}[e]||"");var T=r(77875),I=r(55962),C=r(27446),S=r(79692);const k=(0,S.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},intervalContainer:{display:"flex",justifyContent:"space-between"},typeInput:{width:160,marginRight:10}}),N=[null,null],P=[null,"hours"],D=e=>{let{value:t,onChange:r,className:l}=e;const o=k(),c=e=>e===x.K.WITHIN||e===x.K.AGO,u=e=>e===x.K.BETWEEN,p=u(null==t?void 0:t.type)?t.period:N,d=c(null==t?void 0:t.type)?t.period:P,[m,f]=(0,n.useState)(p),[b,h]=(0,n.useState)(d),g=(null==t?void 0:t.type)||x.K.WITHIN,y=e=>c(e)?b:u(e)?m:void 0,S=e=>{r({type:g,period:e})};return(0,I.D)((()=>{t?c(t.type)?h(t.period):u(t.type)&&f(t.period):(f(N),h(P))}),[t]),a().createElement("div",{className:E()(o.root,l)},a().createElement(s.Z,{className:o.title,variant:"subtitle1"},i().text("Date")),a().createElement("div",{className:o.intervalContainer},a().createElement(v.Z,{label:"",className:o.typeInput,value:{value:g,label:w(g)},options:O.map((e=>({value:e,label:w(e)}))),onChange:e=>{let{value:n}=e;(null==t?void 0:t.type)!==n&&r({period:y(n),type:n})}}),c(g)?a().createElement(T.Z,{interval:b,onChange:S}):a().createElement(C.Z,{values:m,onChange:S})))};var Z=r(15793),A=r(59952),R=r(38323);const j=[R.M.UPDATE,R.M.MERGE,R.M.UNMERGE];function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){_(e,t,r[t])}))}return e}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const L={input:e=>M({},e,{fontSize:"14px"}),menuPortal:e=>M({},e,{zIndex:1300})},V=(0,S.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},valueContainer:{overflowY:"auto",height:44},option:{fontSize:"14px",height:"32px"}}),U=e=>{let{selectedHistoryActivityTypes:t,onChange:r,className:n}=e;const l=V(),o=e=>{return{value:e,label:(t=e,{[R.M.UPDATE]:i().text("Update"),[R.M.MERGE]:i().text("Merge"),[R.M.UNMERGE]:i().text("Unmerge")}[t]||"")};var t},u=e=>e.map(o),p=u(j);return a().createElement("div",{className:E()(l.root,n)},a().createElement(s.Z,{className:l.title,variant:"subtitle1"},i().text("Activity")),a().createElement(Z.Z,{value:u(t),onChange:(0,c.pipe)((0,c.defaultTo)([]),(0,c.pluck)("value"),r),options:p,TextFieldProps:{classes:{root:l.dropDownInput}},components:{DropdownIndicator:A.Z},styles:L,classes:l,menuPlacement:"bottom",menuPortalTarget:document.body}))},H=(0,S.Z)({popup:{width:500,height:500,overflowY:"hidden",display:"flex",flexDirection:"column"},filterContainer:{padding:20,height:410,display:"flex",flexDirection:"column"},filterContainerScrollable:{overflowY:"auto"},filterItem:{marginTop:15},filterControls:{display:"flex",padding:"10px 12px 0",borderTop:"solid 1px rgba(0, 0, 0, 0.12)"},clearButton:{marginRight:"auto"},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px"}});function z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const F=e=>{let{className:t,filter:r,onApplyFilter:l,onClearFilter:o,entityType:u}=e;const y=H(),[E,v]=(0,n.useState)(null),x=()=>v(null),[O,w]=(0,n.useState)(r);(0,n.useEffect)((()=>{w(r)}),[r]);const T=(0,c.curry)(((e,t)=>{w((r=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){z(e,t,r[t])}))}return e}({},r,{[e]:t})))})),{activities:I=[],attributes:C=[],dateRange:S=null,users:k=[]}=O||{};return a().createElement(a().Fragment,null,a().createElement(f.Z,{icon:p.Z,size:"L",onClick:e=>v(e.currentTarget),className:t}),a().createElement(m.ZP,{classes:{paper:y.popup},open:!!E,anchorEl:E,onClose:x,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},a().createElement("div",{className:y.filterContainer},a().createElement(s.Z,{variant:"h6"},i().text("Filter")),a().createElement("div",{className:y.filterContainerScrollable},a().createElement(D,{value:S,onChange:T("dateRange"),className:y.filterItem}),a().createElement(h.Z,{selectedUsers:k,onChange:T("users"),className:y.filterItem}),a().createElement(U,{selectedHistoryActivityTypes:I,onChange:T("activities"),className:y.filterItem}),a().createElement(g.Z,{selectedAttributes:C,entityType:u,onChange:T("attributes"),className:y.filterItem,title:i().text("Attribute updated")}))),a().createElement("div",{className:y.filterControls},a().createElement(d.Z,{onClick:o,className:y.clearButton},i().text("Clear all")),a().createElement(d.Z,{onClick:x},i().text("Cancel")),a().createElement(d.Z,{color:"primary",onClick:()=>{S&&(0,b.R)(S)?l(O):l((0,c.dissoc)("dateRange",O)),x()}},i().text("Apply")))))};var G=r(52730),W=r(43054),B=r(89810),Y=r(98538),q=r(12231),$=r(98281),K=r(79573);const X=(0,S.Z)({menuItem:{minHeight:"32px"},menuText:{fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"30px"},checkIcon:{position:"absolute",color:"rgba(0, 0, 0, 0.54)"}}),Q=(0,n.forwardRef)(((e,t)=>{let{item:r,onMenuClose:n=K.ZT}=e;const l=X(),{text:i,selected:o,onClick:c}=r;return a().createElement(q.Z,{classes:{root:l.menuItem},onClick:e=>{n(),c(e)},ref:t},o&&a().createElement($.Z,{className:l.checkIcon}),a().createElement(s.Z,{classes:{root:l.menuText}},i))}));Q.displayName="MenuItemRenderer";const J=Q,ee=()=>{const e=(0,G.useSelector)(B.ZP.selectors.getHistoryMode),t=(0,G.useDispatch)(),r=e=>{t(B.N5.history.actions.setHistoryMode(e))},n=[{text:i().text("Compare to Current view"),selected:e===B.Z9.Current,onClick:()=>r(B.Z9.Current)},{text:i().text("Compare to Previous view"),selected:e===B.Z9.Previous,onClick:()=>r(B.Z9.Previous)}];return a().createElement(Y.Z,{MenuItemRenderer:J,buttonComponent:f.Z,buttonProps:{icon:W.Z,size:"L"},menuId:"history-menu",menuItems:n})},te=(0,S.Z)({root:{display:"flex",flex:1,alignItems:"center"},icon:{margin:4},divider:{backgroundColor:"rgba(0,0,0,0.12)",margin:"3px 19px"},count:{fontSize:14},filterButton:{marginRight:"-4px"}}),re=e=>{let{total:t,entityType:r,filter:n,onApplyFilter:l,onClearFilter:p}=e;const d=te();return a().createElement("div",{className:d.root},a().createElement(s.Z,{variant:"h6"},i().text("History")),!(0,c.isNil)(t)&&a().createElement(a().Fragment,null,a().createElement(o.Z,{orientation:"vertical",flexItem:!0,className:d.divider}),a().createElement(s.Z,{variant:"body1",color:"textSecondary",className:d.count},1===t?i().text("${count} contributing profile",{count:t}):i().text("${count} contributing profiles",{count:t}))),a().createElement(u.Z,null),a().createElement(F,{className:d.filterButton,entityType:r,filter:n,onApplyFilter:l,onClearFilter:p}),a().createElement(ee,null))}},95085:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(24328),a=r.n(n),l=r(87918),i=r.n(l),o=r(15422);const s=()=>a().createElement(o.Z,{text:i().text("History in the making"),secondaryText:i().text("When you create an event or perform an activity, it will show up here.")})},32158:(e,t,r)=>{r.d(t,{Z:()=>V});var n=r(24328),a=r.n(n),l=r(52730),i=r(44443),o=r(87918),s=r.n(o),c=r(17440),u=r(71153),p=r.n(u),d=r(18435),m=r(89810),f=r(77277),b=r(90436),h=r(57312),g=r(79692);const y=(0,g.Z)((()=>({historyRow:{position:"relative",padding:"8px 12px 16px",cursor:"pointer"},selected:{background:"rgba(0,0,0,0.05)","&:before":{content:'""',background:"rgba(0,0,0,0.05)",width:"100%",height:"100%",position:"absolute",left:"-100%",top:0}},rowHeader:{display:"flex",position:"relative"},badge:e=>{let{color:t}=e;return{position:"absolute",width:"2px",height:"100%",left:"-9px",pointerEvents:"none",background:t,"&:before":{height:"100%",width:"3px",content:'""',left:"-3px",background:t,position:"absolute",opacity:.06}}},title:{color:"rgba(0,0,0,0.87)",fontSize:"13px",letterSpacing:0,lineHeight:"16px",fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","&.bold":{fontWeight:500}},date:{marginLeft:"auto",color:"rgba(0,0,0,0.54)",fontSize:"11px",letterSpacing:0,lineHeight:"16px"},user:{color:"rgba(0,0,0,0.38)",fontSize:"12px",letterSpacing:0,lineHeight:"14px"}}))),E=e=>{let{change:t,isCurrent:r,isSelected:n,onClick:l}=e;const{uri:i,type:o,matchGroups:c,user:u,timestamp:m}=t,f=(0,d.GtP)(i),g=y({color:f});return a().createElement("div",{className:p()(g.historyRow,{[g.selected]:n}),onClick:l},a().createElement("div",{className:g.rowHeader},a().createElement("div",{className:g.badge}),a().createElement(b.Z,{className:p()(g.title,{bold:r})},r?s().text("Current view"):(0,h.Xr)(o)),!r&&a().createElement(b.Z,{className:g.date},s().date(m,"L LT"))),c&&a().createElement(b.Z,{className:g.title},s().text("Match rule:")," ",c.join(", ")),a().createElement(b.Z,{className:g.user},u))};var v=r(21256);const x=e=>e===v.b.FAKE_FILTERED_INCOMING||e===v.b.FAKE_FILTERED_OUTGOING,O=e=>{let{x:t,y:r,toX:n,toY:l,color:i,isDashed:o}=e;const s=((e,t,r,n)=>{const a=t>n,l=e<r,i=a?-6:6;return`M${e} ${t} L${l?r-12:r+12} ${t} ${l?`c 6 0 12 ${i} 12`:`c -6 0 -12 ${i} -12`} ${a?-12:12} L${r} ${n}`})(t,r,n,l);return a().createElement("path",{d:s,stroke:i,strokeWidth:2,fill:"none",strokeDasharray:o?"3,3":void 0})};function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}const T=(0,n.forwardRef)(((e,t)=>{let{x:r,y:n,color:l,isDashed:i,isCollapsed:o,showCollapseIcon:s,showLine:c}=e,u=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["x","y","color","isDashed","isCollapsed","showCollapseIcon","showLine"]);const p=s?6:3;return a().createElement("g",w({},u,{ref:t}),c&&a().createElement("rect",{id:"line",x:r-p-4,y:n-p-4,width:2*p+8,height:2,fill:l}),a().createElement("circle",{cx:r,cy:n,r:p,fill:i?"#fff":l,stroke:l,strokeDasharray:i?"1,1":void 0,strokeWidth:2}),s&&a().createElement("g",{id:"icon"},a().createElement("rect",{x:r-4,y:n-1,width:8,height:2,fill:"#fff"}),o&&a().createElement("rect",{x:r-1,y:n-4,width:2,height:8,fill:"#fff"})))}));const I=(0,r(78223).Z)(T),C=(0,n.memo)((e=>{let{graphData:t,onHistoryCircleMouseOver:r}=e;const{historyLanes:n,rows:l}=t,i=[16],{links:o,rowLines:s,circles:c}=l.reduce(((e,t,o)=>{let{uri:s,height:c,uris:u,type:p,fakeType:m,index:f,timestamp:b,label:h}=t;const g=16*n[s].index+24,y=i[o];i.push(y+c);const E=x(m),w=E?u[0]:s,T=!(null!=u&&u.some((e=>n[e])));e.circles.push(a().createElement(I,{tooltipTitle:h,tooltipPlacement:"top",onMouseOver:r?()=>r(s,b,f):void 0,key:`circle-${w}-${o}`,x:g,y,color:(0,d.GtP)(w),isDashed:E,isCollapsed:T,showCollapseIcon:!!u,showLine:m===v.b.FAKE_NAVIGATE_PROFILE})),e.rowLines.push(a().createElement("rect",{key:`${w}-${f}`,x:g,y:y-8,width:"100%",height:16,fill:(0,d.GtP)(w),opacity:.06}));const C=p===v.b.ENTITIES_SPLITTED;return null==u||u.forEach((t=>{const r=n[t];if(!r)return;const i=l[o].height,s=16*r.index+24,c=C?y-i:y+i;g!==s&&e.links.push(a().createElement(O,{key:`link-${t}-${f}`,x:g,y,toX:s,toY:c,isDashed:x(m),color:(0,d.GtP)(t)}))})),e}),{links:[],circles:[],rowLines:[]}),u=16*Object.keys(n).length+24,p=i[i.length-1]-16;return Object.entries(n).forEach((e=>{let[t,r]=e;const n=16*r.index+24;r.lifeTime.forEach(((e,s)=>{var u;let{start:p,end:m}=e;if((null===(u=l[null==m?void 0:m.index])||void 0===u?void 0:u.type)===v.b.ENTITIES_SPLITTED)return;const f=(null==p?void 0:p.type)===v.b.ENTITIES_SPLITTED?(null==p?void 0:p.index)-1:null==p?void 0:p.index,b=(null==m?void 0:m.type)===v.b.ENTITIES_MERGED_MANUALLY||(null==m?void 0:m.type)===v.b.ENTITIES_MERGED?(null==m?void 0:m.index)+1:null==m?void 0:m.index,h=i[f]||i[i.length-2],g=i[b]||16;if(h<=g)return;const y=(0,d.GtP)(t);!m&&r.index>0&&c.push(a().createElement(T,{key:`initCircle-${t}-${s}`,x:n,y:g,color:y,showLine:!0})),o.unshift(a().createElement("path",{key:`line-${t}-${s}`,d:`M${n} ${h} L${n} ${g}`,stroke:y,strokeWidth:2}))}))})),a().createElement("svg",{className:"chart",width:u,height:p},a().createElement("g",{id:"rowLines"},s),a().createElement("g",{id:"links"},o),a().createElement("g",{id:"circles"},c))}));var S=r(87378);const k=(0,g.Z)({historyTree:{display:"grid",gridTemplateColumns:"auto 1fr",overflowY:"auto"},graph:{overflowX:"scroll",overflowY:"hidden"},history:{minWidth:344},buttonContainer:{gridColumnStart:1,gridColumnEnd:3,padding:"8px 16px"},shadow:{boxShadow:"inset -8px 0px 5px -5px rgba(0,0,0,0.1)"}});function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){P(e,t,r[t])}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const D=e=>{let{historyData:t,isLoading:r,canLoadMore:o,onLoadMore:u,entityUri:b,historyEvent:h,findPreviousChange:g}=e;const y=k(),v=(0,l.useDispatch)(),x=(0,l.useSelector)(m.ZP.selectors.getIsEditableMode),O=(0,l.useSelector)(m.ZP.selectors.getMetadata),[w,T]=(0,n.useState)({historyLanes:{},rows:[]}),[I,P]=(0,n.useState)(!1),[D,Z]=(0,n.useState)(-1);(0,n.useEffect)((()=>{if((0,c.isNil)(h))return void Z(0);const e=e=>(null==e?void 0:e.uri)===((null==h?void 0:h.overrideUri)||b)&&(null==e?void 0:e.timestamp)===(null==h?void 0:h.aStamp),r=-1!==D?t.rows[D]:null,n=t.rows.findIndex((t=>e(t)));Z(e(r)?D:n)}),[t.rows,h]);const A=(0,n.useRef)(null),R=(0,n.useCallback)((e=>{if(!(0,c.isNil)(e)){var r;const n=null===(r=t.rows)||void 0===r?void 0:r.map(((t,r)=>{var n;return N({},t,{height:null===(n=e.childNodes[r])||void 0===n?void 0:n.clientHeight})}));T({historyLanes:t.historyLanes,rows:n})}}),[t]),j=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:r}=(null==A?void 0:A.current)||{};P(r<e-t)};return a().createElement("div",{className:y.historyTree},r&&a().createElement(S.Z,null),a().createElement("div",{className:p()(y.graph,{[y.shadow]:I}),onScroll:j,ref:A},a().createElement(C,{onHistoryCircleMouseOver:(e,t,r)=>{if((0,c.isNil)(w.rows[r].label)){const n={time:t,select:"crosswalks"};(0,d.HvW)(e,n).then((e=>{let{crosswalks:t}=e;const n=t?(0,c.uniqBy)((0,c.prop)("type"),t).map((e=>{const t=(0,d.s5)(O,e.type);return t?t.label:null})).filter(c.identity).join(", "):s().text("No data");T((e=>N({},e,{rows:e.rows.map((e=>e.index===r?N({},e,{label:n}):e))})))}))}},graphData:w}),a().createElement(i.Z,{handleWidth:!0,onResize:j})),a().createElement("div",{ref:R,className:y.history},t.rows.map(((e,t)=>{const r=t===D,n=0===t;return a().createElement(E,{key:`row-${t}`,change:e,isCurrent:n,isSelected:r,onClick:()=>((e,t,r,n)=>{if(x){if(!window.confirm(s().text("Are you sure you want to go in history mode? All your changes will be lost.")))return;v(m.N5.mode.actions.modeUpdated(d.ARY.Viewing))}if(n&&!r||!n&&r)v(m.N5.history.actions.clearHistoryEvent()),Z(0);else if(!n&&!r){const r=g(e-1,t.uri||b),n=g(e,t.uri||b),a=null==r?void 0:r.timestamp,l=null==n?void 0:n.timestamp,i=(null==t?void 0:t.uri)===b?null:null==t?void 0:t.uri;v(m.N5.history.actions.setHistoryEvent({aStamp:a,bStamp:l,overrideUri:i})),Z(e)}})(t,e,r,n)})}))),o&&a().createElement("div",{className:y.buttonContainer},a().createElement(f.Z,{color:"primary",onClick:()=>u()},s().text("Show more"))))},Z=(0,g.Z)({root:{display:"flex",flexWrap:"wrap",padding:"10px 15px"}}),A=(0,g.Z)({icon:e=>{let{color:t}=e;return{boxSizing:"border-box",borderWidth:2,borderStyle:"solid",borderColor:t,height:12,width:12,borderRadius:30,transition:"opacity 0.3s",margin:4}},active:e=>{let{color:t}=e;return{backgroundColor:t}},inactive:{backgroundColor:"white"},clickable:{cursor:"pointer"}}),R=e=>{let{value:t,isSelected:r=!0,onClick:n}=e;const l=(0,d.GtP)(t),i=A({color:l});return a().createElement("div",{className:p()(i.icon,{[i.inactive]:!r,[i.active]:r,[i.clickable]:!!n}),onClick:n})},j=e=>{let{values:t,selectedValues:r,entityUri:n,onSelectValues:l,className:i}=e;const o=Z();return a().createElement("div",{className:p()(o.root,i)},a().createElement(R,{value:n}),(null==t?void 0:t.length)>0&&t.map((e=>a().createElement(R,{key:e,value:e,isSelected:null==r?void 0:r.includes(e),onClick:()=>(e=>{null!=r&&r.includes(e)?l((0,c.without)([e],r)):l([...r||[],e])})(e)}))))};function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _=(e,t)=>e.reduce(((e,r,n)=>{let{start:a,end:l}=r;if(a){const r=t-a.timestamp;((0,c.isNil)(e.startDistance)||Math.abs(e.startDistance)>Math.abs(r)&&r>0)&&(e.startIndex=n,e.startDistance=r)}if(l){const r=t-l.timestamp;((0,c.isNil)(e.endDistance)||Math.abs(e.endDistance)>Math.abs(r)&&r<0)&&(e.endIndex=n,e.endDistance=r)}return e}),{startIndex:null,endIndex:null,startDistance:null,endDistance:null}),L=(0,g.Z)({root:{display:"flex",flexDirection:"column",overflow:"hidden",position:"relative",height:"100%"},borderBottom:{borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}}),V=(0,n.memo)((e=>{let{isLoading:t,historyWithTotal:r,contributorsUris:l,entityUri:i,canLoadMore:o,onLoadMore:s,historyEvent:u}=e;const p=L(),[d,m]=(0,n.useState)(null);(0,n.useEffect)((()=>{m(l)}),[l]);const{historyData:f,findPreviousChange:b}=(e=>{let{entityUri:t,historyChanges:r,selectedUris:a}=e;return(0,n.useMemo)((()=>{const e={[t]:{index:0,lifeTime:[]}},n=[{user:"",timestamp:0,uri:t}],l=(0,c.curry)(((e,r,n)=>{const a=n.uri||t;if(e)if(Array.isArray(e)){if(n.type!==v.b.ENTITY_LOST_MERGE)return null;if(e.includes(a))return n;if(r&&n.uris)return e.some((e=>n.uris.includes(e)))?n:null}else{var l;if(a===e||r&&null!==(l=n.uris)&&void 0!==l&&l.includes(e))return n}return null})),i=(e,t,n)=>(0,c.pipe)((0,c.drop)(e+1),(0,c.find)(l(t,n)))(r),o=t=>(e[t]||a&&!a.includes(t)||(e[t]={index:Object.keys(e).length,lifeTime:[]}),e[t]),s=(e,t)=>{const r=e[e.length-1];!r||r.start&&(r.start.type!==v.b.ENTITY_CREATED||t.type!==v.b.ENTITIES_SPLITTED)?e.push({start:t,end:null}):r.start=t},u=(e,t)=>{let r=!0;if(e.length){const n=e[e.length-1];r=!((!n.start||n.start.timestamp<t.timestamp)&&(!n.end||n.end.timestamp>t.timestamp))}r&&e.push({start:null,end:null})},p=(e,t)=>{if(e.length){const r=e[e.length-1];r.start||(r.start=t)}e.push({start:null,end:t})},d=[];return null==r||r.forEach(((r,a)=>{var l;switch(r.type){case v.b.ENTITIES_SPLITTED:if(!i(a,r.uri||t,!1))return;{const e=r.uri,t=r.uris?[r.uris,e]:[e],n=i(a,t,!0);if(n&&(!e||e===n.uri))return}break;case v.b.ENTITY_LOST_MERGE:case v.b.RELATIONSHIP_CREATED:case v.b.RELATIONSHIP_REMOVED:case v.b.RELATIONSHIP_CHANGED:return}let c=!1;null===(l=r.uris)||void 0===l||l.forEach((e=>{o(e)||(c=!0)}));const m=o(r.uri||t);if(!m)return;const f=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){M(e,t,r[t])}))}return e}({},r);((t,r)=>{var a,l;switch(r.type){case v.b.ENTITY_CREATED:s(t,r);break;case v.b.ENTITIES_MERGED_ON_THE_FLY:case v.b.ENTITY_CHANGED:u(t,r);break;case v.b.ENTITY_LOST_MERGE:case v.b.ENTITY_REMOVED:p(t,r);break;case v.b.ENTITIES_SPLITTED:u(t,r),null===(a=r.uris)||void 0===a||a.forEach((t=>{const a=e[t];if(!a)return;const l=a.lifeTime.length;l?s(a.lifeTime,r):p(a.lifeTime,r),n.push({uri:t,user:r.user,type:r.type,fakeType:l?v.b.FAKE_UPDATE:v.b.FAKE_NAVIGATE_PROFILE,timestamp:r.timestamp})}));break;case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:u(t,r),null===(l=r.uris)||void 0===l||l.forEach((t=>{const n=e[t];n&&p(n.lifeTime,r)}))}})(m.lifeTime,f),c&&d.push(f),n.push(f)})),d.forEach((t=>{t.uris.forEach((a=>{e[a]||r.forEach((r=>{let{uri:l,uris:i,timestamp:o,user:s,type:u}=r;l===a&&(null==i||i.forEach((r=>{const a=e[r];if(!a)return;let l=null;switch(u){case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:l=v.b.FAKE_FILTERED_INCOMING;break;case v.b.ENTITIES_SPLITTED:l=v.b.FAKE_FILTERED_OUTGOING;break;default:return}const i={fakeType:l,uri:t.uri,uris:[r],type:u,user:s,timestamp:o},p=_(a.lifeTime,t.timestamp);l===v.b.FAKE_FILTERED_INCOMING?(0,c.isNil)(p.endIndex)||(a.lifeTime[p.endIndex].end=i):(0,c.isNil)(p.startIndex)||(a.lifeTime[p.startIndex].start=i),n.splice(n.indexOf(t),0,i)})))}))}))})),n.forEach(((e,r)=>{e.index=r,e.uri=e.uri||t})),{historyData:{historyLanes:e,rows:n},findPreviousChange:(e,t)=>(0,c.pipe)((0,c.slice)(e+1,1/0),(0,c.find)(l(t,!1)))(n)}}),[t,r,a])})({entityUri:i,historyChanges:null==r?void 0:r.changes,selectedUris:d});return a().createElement("div",{className:p.root},a().createElement(j,{values:l,selectedValues:d,onSelectValues:m,entityUri:i,className:p.borderBottom}),a().createElement(D,{historyData:f,isLoading:t,onLoadMore:s,canLoadMore:o,entityUri:i,historyEvent:u,findPreviousChange:b}))}))},75647:(e,t,r)=>{r.d(t,{Z:()=>m});var n=r(24328),a=r.n(n),l=r(52730),i=r(89810),o=r(77277),s=r(90436),c=r(17440),u=r(87918),p=r.n(u);const d=(0,r(79692).Z)({root:{display:"flex",alignItems:"flex-start"},slice:{fontWeight:500},cancelButton:{width:"88px",flexShrink:0,marginLeft:"15px"}}),m=()=>{const e=d(),t=(0,l.useSelector)(i.ZP.selectors.getHistoryEvent),r=(0,l.useDispatch)(),n=(0,c.pipe)(i.N5.history.actions.clearHistoryEvent,r);return t?a().createElement("div",{className:e.root},a().createElement(s.Z,{component:"div"},p().text("You are viewing a historic slice:")," ",a().createElement("span",{className:e.slice},p().date(t.aStamp,"llll"))),a().createElement(o.Z,{className:e.cancelButton,variant:"contained",color:"primary",onClick:n},p().text("Cancel"))):null}},85457:(e,t,r)=>{r.d(t,{k:()=>p});var n=r(24328),a=r(18435),l=r(38323),i=r(37696),o=r(29627);function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){c(e,t,r[t])}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u={activities:[l.M.MERGE,l.M.UNMERGE,l.M.UPDATE]},p=e=>{let{entity:t,enabled:r}=e;const[l,c]=(0,n.useState)(u),[p,d]=(0,n.useState)(0),m=(0,n.useMemo)((()=>(0,i.Z)(l)),[l]),[f,b]=(0,n.useState)(null),[h,g]=(0,n.useState)(null),[y,E]=(0,n.useState)(!1),v=(0,o._)(),x=null==t?void 0:t.uri,O={max:32,order:"desc"},w=(0,a.O27)(null==l?void 0:l.attributes)||void 0;(0,n.useEffect)((()=>{x&&r&&(E(!0),v((0,a.kgP)(s({entityUri:x,historicUris:f,filter:m,showAll:w},O))).then(g).catch((e=>{console.warn("Failed to load history data",e),g(null)})).finally((()=>{E(!1)})))}),[m,w,f]),(0,n.useEffect)((()=>{x&&r&&(E(!0),v((0,a.wdF)({entityUri:x})).then((e=>{b(e)})).catch((e=>{console.warn("Failed to load history data",e),b(null)})).finally((()=>{E(!1)})),d(0))}),[x,null==t?void 0:t.updatedTime,r]);const T=(0,n.useCallback)((e=>{x&&f&&r&&(E(!0),v((0,a.kgP)(s({entityUri:x,historicUris:f,filter:m,showAll:w,offset:e},O))).then((e=>{g((t=>s({},t,{changes:[...null==t?void 0:t.changes,...e.changes]})))})).catch((e=>{console.warn("Failed to load history data",e)})).finally((()=>{E(!1)})))}),[f,m,r]),I=(0,n.useMemo)((()=>32*(p+1)<(null==h?void 0:h.total)),[h,p]),C=(0,n.useCallback)((e=>{d(0),c(e)}),[]),S=(0,n.useCallback)((()=>{C(s({},u))}),[]),k=(0,n.useCallback)((()=>{I&&(T(32*(p+1)),d(p+1))}),[T,p,I]);return{isLoading:y,canLoadMore:I,onLoadMore:k,onApplyFilter:C,onClearFilter:S,historicUris:f,historyWithTotal:h,historyFilter:l}}},69409:(e,t,r)=>{r.d(t,{C:()=>l});var n=r(24328),a=r(18435);const l=e=>{let{isHistoryTabActive:t,entity:r}=e;const[l,i]=(0,n.useState)(!1),o=null==r?void 0:r.uri;(0,n.useEffect)((()=>{t||i(!1)}),[o]),(0,n.useEffect)((()=>{t&&i(!0)}),[t]);const s=o&&!(0,a.ZiX)(o)&&!(0,a.biM)(r);return{isHistoryEnabled:l&&s,isProfilePersisted:s}}},35722:(e,t,r)=>{r.d(t,{a:()=>s});var n=r(24328),a=r(52730),l=r(89810),i=r(18435),o=r(29627);const s=e=>{let{entity:t,historyEvent:r}=e;const[s,c]=(0,n.useState)(!1),u=(0,a.useSelector)(l.ZP.selectors.getHistorySlice),p=(0,a.useDispatch)(),d=(0,o._)(),{aStamp:m,bStamp:f,overrideUri:b}=r||{},h=b||(null==t?void 0:t.uri);return(0,n.useEffect)((()=>{r&&h&&(c(!0),d(Promise.all([(0,i.lrH)(h,m),f&&1!==f?(0,i.lrH)(h,f):Promise.resolve(null)])).then((e=>{let[t,r]=e;p(l.N5.history.actions.setHistorySlice({aEntity:t,bEntity:r}))})).catch((e=>{console.warn("Failed to load entity slice",e)})).finally((()=>{c(!1)})))}),[m,f,h]),{isLoading:s,historySlice:u}}},21256:(e,t,r)=>{r.d(t,{b:()=>i});var n,a=r(20414);function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}!function(e){e.FAKE_NAVIGATE_PROFILE="FAKE_NAVIGATE_PROFILE",e.FAKE_FILTERED_INCOMING="FAKE_FILTERED_INCOMING",e.FAKE_FILTERED_OUTGOING="FAKE_FILTERED_OUTGOING",e.FAKE_UPDATE="FAKE_UPDATE"}(n||(n={}));const i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){l(e,t,r[t])}))}return e}({},a.I,n)},38323:(e,t,r)=>{let n;r.d(t,{M:()=>n}),function(e){e.UPDATE="UPDATE",e.MERGE="MERGE",e.UNMERGE="UNMERGE"}(n||(n={}))},37696:(e,t,r)=>{r.d(t,{Z:()=>f,R:()=>b});var n=r(95038),a=r.n(n),l=r(17440),i=r(18435),o=r(38323),s=r(20414),c=r(39034);const u=e=>(0,l.pipe)((0,l.map)(e),(0,l.join)(" or ")),p=e=>{const[t,r]=e;return a()().subtract(t,r).valueOf()},d=(0,l.chain)((0,l.cond)([[(0,l.equals)(o.M.MERGE),()=>[s.I.ENTITIES_MERGED,s.I.ENTITIES_MERGED_MANUALLY,s.I.ENTITIES_MERGED_ON_THE_FLY]],[(0,l.equals)(o.M.UNMERGE),()=>[s.I.ENTITIES_SPLITTED]],[(0,l.equals)(o.M.UPDATE),()=>[s.I.ENTITY_CHANGED]]])),m=(0,l.pipe)((0,l.defaultTo)([]),d,(0,l.concat)([s.I.ENTITY_CREATED,s.I.ENTITY_REMOVED,s.I.ENTITY_LOST_MERGE]),u((e=>`equals(type, '${e}')`))),f=(0,l.pipe)((0,l.defaultTo)({}),(0,l.reject)(i.O27),(0,l.evolve)({users:u((e=>`equals(user, '${(0,i.HRH)(e)}')`)),attributes:u((e=>`changes(${(0,i.HRH)(e.value)})`)),dateRange:e=>{let{type:t,period:r}=e;switch(t){case c.K.WITHIN:return`gte(timestamp, ${p(r)})`;case c.K.AGO:return`lte(timestamp, ${p(r)})`;case c.K.BETWEEN:{const[e,t]=r;return`gte(timestamp, ${e.valueOf()}) and lte(timestamp, ${a()(t).endOf("date").valueOf()})`}default:return""}}}),(0,l.over)((0,l.lensProp)("activities"),m),l.values,(0,l.reject)(i.O27),(0,l.append)("not equals(user, 'collaboration-service')"),(0,l.map)((e=>`(${e})`)),(0,l.join)(" and ")),b=e=>{if(e.type===c.K.AGO||e.type===c.K.WITHIN){const[t,r]=e.period;return"Number"===(0,l.type)(t)&&"String"===(0,l.type)(r)&&t>0}if(e.type===c.K.BETWEEN){const[t,r]=e.period;return t instanceof Date&&r instanceof Date}}},23759:(e,t,r)=>{r.d(t,{hR:()=>c,nX:()=>u,RT:()=>p,pu:()=>d,BF:()=>m});var n=r(24328),a=r.n(n),l=r(18435),i=r(17440),o=r(79573);const s=(0,n.createContext)(null),c=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["children"]);return a().createElement(s.Provider,{value:r},t)},u=e=>{const{getCrosswalkColor:t=(0,i.pipe)(l.uKF,l.CJp)}=(0,n.useContext)(s)||{};return e?t(e):""},p=()=>{const{highlightedCrosswalks:e=[]}=(0,n.useContext)(s)||{};return e},d=e=>{const{highlightedCrosswalks:t=[],setCrosswalkHighlighted:r=o.ZT}=(0,n.useContext)(s)||{},a=!!e&&!!t.find((0,i.eqBy)(l.uKF,e));return{isHighlighted:a,isDimmed:t.length>0&&!a,highlightCrosswalk:(0,n.useCallback)((()=>r(e,!0)),[e,r]),removeHighlight:(0,n.useCallback)((()=>r(e,!1)),[e,r])}},m=e=>{const{toggleCrosswalkFocus:t=o.ZT,focusedCrosswalks:r=[]}=(0,n.useContext)(s)||{};return{isFocused:!!e&&r.some((0,i.eqBy)(l.uKF,e)),toggleCrosswalkFocus:(0,n.useCallback)((()=>t(e)),[e,t])}}},38361:(e,t,r)=>{r.d(t,{R:()=>o,Q:()=>s});var n=r(24328),a=r.n(n),l=r(18435);const i=(0,n.createContext)(null),o=e=>{let{children:t,attributeUris:r}=e;return a().createElement(i.Provider,{value:r},t)},s=e=>((0,n.useContext)(i)||[]).some((t=>(0,l.sOy)(t,e)))},11326:(e,t,r)=>{r.d(t,{a:()=>a});var n=r(24328);const a=e=>{const[t,r]=(0,n.useState)(!1),[a,l]=(0,n.useState)({});return(0,n.useEffect)((()=>{e().then((e=>{l(e||{})})).then((e=>r(!0))).catch((e=>r(!0)))}),[]),{isLoaded:t,savedState:a}}},39034:(e,t,r)=>{let n;r.d(t,{K:()=>n}),function(e){e.WITHIN="within",e.AGO="ago",e.BETWEEN="between"}(n||(n={}))}}]);
|
package/6215.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[6215],{82113:(e,t,a)=>{a.d(t,{Z:()=>f});var n=a(7560),r=a(85354),o=a(54530),i=a(24328),l=a(6277),c=(a(13980),a(75614)),s=a(15459),d=a(39265),u=a(41070),m=a(60364),p=a(85974),v=i.forwardRef((function(e,t){var a=e.children,s=e.classes,v=e.className,f=e.collapsedHeight,h=void 0===f?"0px":f,b=e.component,g=void 0===b?"div":b,x=e.disableStrictModeCompat,y=void 0!==x&&x,Z=e.in,E=e.onEnter,w=e.onEntered,L=e.onEntering,N=e.onExit,k=e.onExited,S=e.onExiting,C=e.style,R=e.timeout,z=void 0===R?d.x9.standard:R,A=e.TransitionComponent,$=void 0===A?c.ZP:A,T=(0,o.Z)(e,["children","classes","className","collapsedHeight","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),M=(0,m.Z)(),I=i.useRef(),V=i.useRef(null),D=i.useRef(),H="number"==typeof h?"".concat(h,"px"):h;i.useEffect((function(){return function(){clearTimeout(I.current)}}),[]);var P=M.unstable_strictMode&&!y,F=i.useRef(null),B=(0,p.Z)(t,P?F:void 0),O=function(e){return function(t,a){if(e){var n=P?[F.current,t]:[t,a],o=(0,r.Z)(n,2),i=o[0],l=o[1];void 0===l?e(i):e(i,l)}}},U=O((function(e,t){e.style.height=H,E&&E(e,t)})),j=O((function(e,t){var a=V.current?V.current.clientHeight:0,n=(0,u.C)({style:C,timeout:z},{mode:"enter"}).duration;if("auto"===z){var r=M.transitions.getAutoHeightDuration(a);e.style.transitionDuration="".concat(r,"ms"),D.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height="".concat(a,"px"),L&&L(e,t)})),W=O((function(e,t){e.style.height="auto",w&&w(e,t)})),_=O((function(e){var t=V.current?V.current.clientHeight:0;e.style.height="".concat(t,"px"),N&&N(e)})),X=O(k),Y=O((function(e){var t=V.current?V.current.clientHeight:0,a=(0,u.C)({style:C,timeout:z},{mode:"exit"}).duration;if("auto"===z){var n=M.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(n,"ms"),D.current=n}else e.style.transitionDuration="string"==typeof a?a:"".concat(a,"ms");e.style.height=H,S&&S(e)}));return i.createElement($,(0,n.Z)({in:Z,onEnter:U,onEntered:W,onEntering:j,onExit:_,onExited:X,onExiting:Y,addEndListener:function(e,t){var a=P?e:t;"auto"===z&&(I.current=setTimeout(a,D.current||0))},nodeRef:P?F:void 0,timeout:"auto"===z?null:z},T),(function(e,t){return i.createElement(g,(0,n.Z)({className:(0,l.Z)(s.container,v,{entered:s.entered,exited:!Z&&"0px"===H&&s.hidden}[e]),style:(0,n.Z)({minHeight:H},C),ref:B},t),i.createElement("div",{className:s.wrapper,ref:V},i.createElement("div",{className:s.wrapperInner},a)))}))}));v.muiSupportAuto=!0;const f=(0,s.Z)((function(e){return{container:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(v)},24276:(e,t,a)=>{a.d(t,{Z:()=>d});var n=a(7560),r=a(54530),o=a(24328),i=(a(13980),a(6277)),l=a(15459),c=a(97580),s=o.forwardRef((function(e,t){var a=e.classes,l=e.className,s=e.color,d=void 0===s?"inherit":s,u=e.component,m=void 0===u?"span":u,p=e.fontSize,v=void 0===p?"default":p,f=(0,r.Z)(e,["classes","className","color","component","fontSize"]);return o.createElement(m,(0,n.Z)({className:(0,i.Z)("material-icons",a.root,l,"inherit"!==d&&a["color".concat((0,c.Z)(d))],"default"!==v&&a["fontSize".concat((0,c.Z)(v))]),"aria-hidden":!0,ref:t},f))}));s.muiName="Icon";const d=(0,l.Z)((function(e){return{root:{userSelect:"none",fontSize:e.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(36)}}}),{name:"MuiIcon"})(s)},11433:(e,t,a)=>{a.d(t,{Z:()=>z});var n=a(11720),r=a(85354),o=a(54530),i=a(7560),l=a(24328),c=(a(13980),a(6277)),s=a(15459),d=a(60364),u=a(41128),m=a(54736),p=a(8732),v=a(74718),f=a(85974),h=a(97580),b=a(24514);const g=(0,s.Z)((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:(0,i.Z)({zIndex:1},e.typography.body2,{fontSize:e.typography.pxToRem(12),lineHeight:1.2,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-34,transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:e.palette.primary.contrastText,transform:"rotate(45deg)"}}}),{name:"PrivateValueLabel"})((function(e){var t=e.children,a=e.classes,n=e.className,r=e.open,o=e.value,i=e.valueLabelDisplay;return"off"===i?t:l.cloneElement(t,{className:(0,c.Z)(t.props.className,(r||"on"===i)&&a.open,a.thumb)},l.createElement("span",{className:(0,c.Z)(a.offset,n)},l.createElement("span",{className:a.circle},l.createElement("span",{className:a.label},o))))}));function x(e,t){return e-t}function y(e,t,a){return Math.min(Math.max(t,e),a)}function Z(e,t){return e.reduce((function(e,a,n){var r=Math.abs(t-a);return null===e||r<e.distance||r===e.distance?{distance:r,index:n}:e}),null).index}function E(e,t){if(void 0!==t.current&&e.changedTouches){for(var a=0;a<e.changedTouches.length;a+=1){var n=e.changedTouches[a];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function w(e,t,a){return 100*(e-t)/(a-t)}function L(e,t,a){var n=Math.round((e-a)/t)*t+a;return Number(n.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),a=t[0].split(".")[1];return(a?a.length:0)+parseInt(t[1],10)}var n=e.toString().split(".")[1];return n?n.length:0}(t)))}function N(e){var t=e.values,a=e.source,n=e.newValue,r=e.index;if(t[r]===n)return a;var o=t.slice();return o[r]=n,o}function k(e){var t=e.sliderRef,a=e.activeIndex,n=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===a||t.current.querySelector('[role="slider"][data-index="'.concat(a,'"]')).focus(),n&&n(a)}var S={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},C=function(e){return e},R=l.forwardRef((function(e,t){var a=e["aria-label"],s=e["aria-labelledby"],u=e["aria-valuetext"],R=e.classes,z=e.className,A=e.color,$=void 0===A?"primary":A,T=e.component,M=void 0===T?"span":T,I=e.defaultValue,V=e.disabled,D=void 0!==V&&V,H=e.getAriaLabel,P=e.getAriaValueText,F=e.marks,B=void 0!==F&&F,O=e.max,U=void 0===O?100:O,j=e.min,W=void 0===j?0:j,_=e.name,X=e.onChange,Y=e.onChangeCommitted,q=e.onMouseDown,K=e.orientation,G=void 0===K?"horizontal":K,J=e.scale,Q=void 0===J?C:J,ee=e.step,te=void 0===ee?1:ee,ae=e.ThumbComponent,ne=void 0===ae?"span":ae,re=e.track,oe=void 0===re?"normal":re,ie=e.value,le=e.ValueLabelComponent,ce=void 0===le?g:le,se=e.valueLabelDisplay,de=void 0===se?"off":se,ue=e.valueLabelFormat,me=void 0===ue?C:ue,pe=(0,o.Z)(e,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),ve=(0,d.Z)(),fe=l.useRef(),he=l.useState(-1),be=he[0],ge=he[1],xe=l.useState(-1),ye=xe[0],Ze=xe[1],Ee=(0,b.Z)({controlled:ie,default:I,name:"Slider"}),we=(0,r.Z)(Ee,2),Le=we[0],Ne=we[1],ke=Array.isArray(Le),Se=ke?Le.slice().sort(x):[Le];Se=Se.map((function(e){return y(e,W,U)}));var Ce=!0===B&&null!==te?(0,n.Z)(Array(Math.floor((U-W)/te)+1)).map((function(e,t){return{value:W+te*t}})):B||[],Re=(0,m.Z)(),ze=Re.isFocusVisible,Ae=Re.onBlurVisible,$e=Re.ref,Te=l.useState(-1),Me=Te[0],Ie=Te[1],Ve=l.useRef(),De=(0,f.Z)($e,Ve),He=(0,f.Z)(t,De),Pe=(0,v.Z)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));ze(e)&&Ie(t),Ze(t)})),Fe=(0,v.Z)((function(){-1!==Me&&(Ie(-1),Ae()),Ze(-1)})),Be=(0,v.Z)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));Ze(t)})),Oe=(0,v.Z)((function(){Ze(-1)})),Ue="rtl"===ve.direction,je=(0,v.Z)((function(e){var t,a=Number(e.currentTarget.getAttribute("data-index")),n=Se[a],r=(U-W)/10,o=Ce.map((function(e){return e.value})),i=o.indexOf(n),l=Ue?"ArrowLeft":"ArrowRight",c=Ue?"ArrowRight":"ArrowLeft";switch(e.key){case"Home":t=W;break;case"End":t=U;break;case"PageUp":te&&(t=n+r);break;case"PageDown":te&&(t=n-r);break;case l:case"ArrowUp":t=te?n+te:o[i+1]||o[o.length-1];break;case c:case"ArrowDown":t=te?n-te:o[i-1]||o[0];break;default:return}if(e.preventDefault(),te&&(t=L(t,te,W)),t=y(t,W,U),ke){var s=t;t=N({values:Se,source:Le,newValue:t,index:a}).sort(x),k({sliderRef:Ve,activeIndex:t.indexOf(s)})}Ne(t),Ie(a),X&&X(e,t),Y&&Y(e,t)})),We=l.useRef(),_e=G;Ue&&"vertical"!==G&&(_e+="-reverse");var Xe=function(e){var t,a,n=e.finger,r=e.move,o=void 0!==r&&r,i=e.values,l=e.source,c=Ve.current.getBoundingClientRect(),s=c.width,d=c.height,u=c.bottom,m=c.left;if(t=0===_e.indexOf("vertical")?(u-n.y)/d:(n.x-m)/s,-1!==_e.indexOf("-reverse")&&(t=1-t),a=function(e,t,a){return(a-t)*e+t}(t,W,U),te)a=L(a,te,W);else{var p=Ce.map((function(e){return e.value}));a=p[Z(p,a)]}a=y(a,W,U);var v=0;if(ke){var f=a;v=(a=N({values:i,source:l,newValue:a,index:v=o?We.current:Z(i,a)}).sort(x)).indexOf(f),We.current=v}return{newValue:a,activeIndex:v}},Ye=(0,v.Z)((function(e){var t=E(e,fe);if(t){var a=Xe({finger:t,move:!0,values:Se,source:Le}),n=a.newValue,r=a.activeIndex;k({sliderRef:Ve,activeIndex:r,setActive:ge}),Ne(n),X&&X(e,n)}})),qe=(0,v.Z)((function(e){var t=E(e,fe);if(t){var a=Xe({finger:t,values:Se,source:Le}).newValue;ge(-1),"touchend"===e.type&&Ze(-1),Y&&Y(e,a),fe.current=void 0;var n=(0,p.Z)(Ve.current);n.removeEventListener("mousemove",Ye),n.removeEventListener("mouseup",qe),n.removeEventListener("touchmove",Ye),n.removeEventListener("touchend",qe)}})),Ke=(0,v.Z)((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(fe.current=t.identifier);var a=E(e,fe),n=Xe({finger:a,values:Se,source:Le}),r=n.newValue,o=n.activeIndex;k({sliderRef:Ve,activeIndex:o,setActive:ge}),Ne(r),X&&X(e,r);var i=(0,p.Z)(Ve.current);i.addEventListener("touchmove",Ye),i.addEventListener("touchend",qe)}));l.useEffect((function(){var e=Ve.current;e.addEventListener("touchstart",Ke);var t=(0,p.Z)(e);return function(){e.removeEventListener("touchstart",Ke),t.removeEventListener("mousemove",Ye),t.removeEventListener("mouseup",qe),t.removeEventListener("touchmove",Ye),t.removeEventListener("touchend",qe)}}),[qe,Ye,Ke]);var Ge=(0,v.Z)((function(e){q&&q(e),e.preventDefault();var t=E(e,fe),a=Xe({finger:t,values:Se,source:Le}),n=a.newValue,r=a.activeIndex;k({sliderRef:Ve,activeIndex:r,setActive:ge}),Ne(n),X&&X(e,n);var o=(0,p.Z)(Ve.current);o.addEventListener("mousemove",Ye),o.addEventListener("mouseup",qe)})),Je=w(ke?Se[0]:W,W,U),Qe=w(Se[Se.length-1],W,U)-Je,et=(0,i.Z)({},S[_e].offset(Je),S[_e].leap(Qe));return l.createElement(M,(0,i.Z)({ref:He,className:(0,c.Z)(R.root,R["color".concat((0,h.Z)($))],z,D&&R.disabled,Ce.length>0&&Ce.some((function(e){return e.label}))&&R.marked,!1===oe&&R.trackFalse,"vertical"===G&&R.vertical,"inverted"===oe&&R.trackInverted),onMouseDown:Ge},pe),l.createElement("span",{className:R.rail}),l.createElement("span",{className:R.track,style:et}),l.createElement("input",{value:Se.join(","),name:_,type:"hidden"}),Ce.map((function(e,t){var a,n=w(e.value,W,U),r=S[_e].offset(n);return a=!1===oe?-1!==Se.indexOf(e.value):"normal"===oe&&(ke?e.value>=Se[0]&&e.value<=Se[Se.length-1]:e.value<=Se[0])||"inverted"===oe&&(ke?e.value<=Se[0]||e.value>=Se[Se.length-1]:e.value>=Se[0]),l.createElement(l.Fragment,{key:e.value},l.createElement("span",{style:r,"data-index":t,className:(0,c.Z)(R.mark,a&&R.markActive)}),null!=e.label?l.createElement("span",{"aria-hidden":!0,"data-index":t,style:r,className:(0,c.Z)(R.markLabel,a&&R.markLabelActive)},e.label):null)})),Se.map((function(e,t){var n=w(e,W,U),r=S[_e].offset(n);return l.createElement(ce,{key:t,valueLabelFormat:me,valueLabelDisplay:de,className:R.valueLabel,value:"function"==typeof me?me(Q(e),t):me,index:t,open:ye===t||be===t||"on"===de,disabled:D},l.createElement(ne,{className:(0,c.Z)(R.thumb,R["thumbColor".concat((0,h.Z)($))],be===t&&R.active,D&&R.disabled,Me===t&&R.focusVisible),tabIndex:D?null:0,role:"slider",style:r,"data-index":t,"aria-label":H?H(t):a,"aria-labelledby":s,"aria-orientation":G,"aria-valuemax":Q(U),"aria-valuemin":Q(W),"aria-valuenow":Q(e),"aria-valuetext":P?P(Q(e),t):u,onKeyDown:je,onFocus:Pe,onBlur:Fe,onMouseOver:Be,onMouseLeave:Oe}))})))}));const z=(0,s.Z)((function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 13px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}},"@media print":{colorAdjust:"exact"}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?(0,u.$n)(e.palette.primary.main,.62):(0,u._j)(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",left:-15,top:-15,right:-15,bottom:-15},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat((0,u.U1)(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat((0,u.U1)(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat((0,u.U1)(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat((0,u.U1)(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:(0,i.Z)({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:26,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:26,transform:"translateY(50%)"},"@media (pointer: coarse)":{top:40,"$vertical &":{left:31}}}),markLabelActive:{color:e.palette.text.primary}}}),{name:"MuiSlider"})(R)},31377:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(7560),r=a(54530),o=a(24328),i=(a(48570),a(13980),a(6277)),l=a(15459),c=o.forwardRef((function(e,t){var a=e.active,l=void 0!==a&&a,c=e.alternativeLabel,s=e.children,d=e.classes,u=e.className,m=e.completed,p=void 0!==m&&m,v=e.connector,f=e.disabled,h=void 0!==f&&f,b=e.expanded,g=void 0!==b&&b,x=e.index,y=e.last,Z=e.orientation,E=(0,r.Z)(e,["active","alternativeLabel","children","classes","className","completed","connector","disabled","expanded","index","last","orientation"]),w=v?o.cloneElement(v,{orientation:Z,alternativeLabel:c,index:x,active:l,completed:p,disabled:h}):null,L=o.createElement("div",(0,n.Z)({className:(0,i.Z)(d.root,d[Z],u,c&&d.alternativeLabel,p&&d.completed),ref:t},E),w&&c&&0!==x?w:null,o.Children.map(s,(function(e){return o.isValidElement(e)?o.cloneElement(e,(0,n.Z)({active:l,alternativeLabel:c,completed:p,disabled:h,expanded:g,last:y,icon:x+1,orientation:Z},e.props)):null})));return w&&!c&&0!==x?o.createElement(o.Fragment,null,w,L):L}));const s=(0,l.Z)({root:{},horizontal:{paddingLeft:8,paddingRight:8},vertical:{},alternativeLabel:{flex:1,position:"relative"},completed:{}},{name:"MuiStep"})(c)},97136:(e,t,a)=>{a.d(t,{Z:()=>m});var n=a(7560),r=a(54530),o=a(24328),i=(a(13980),a(6277)),l=a(15459),c=a(57074),s=a(34546),d=a(33996),u=o.forwardRef((function(e,t){var a=e.active,l=e.alternativeLabel,u=e.children,m=e.classes,p=e.className,v=e.completed,f=e.disabled,h=(e.expanded,e.icon),b=(e.last,e.optional),g=e.orientation,x=(0,r.Z)(e,["active","alternativeLabel","children","classes","className","completed","disabled","expanded","icon","last","optional","orientation"]),y={active:a,alternativeLabel:l,completed:v,disabled:f,icon:h,optional:b,orientation:g},Z=(0,d.Z)(u,["StepLabel"])?o.cloneElement(u,y):o.createElement(s.Z,y,u);return o.createElement(c.Z,(0,n.Z)({focusRipple:!0,disabled:f,TouchRippleProps:{className:m.touchRipple},className:(0,i.Z)(m.root,m[g],p),ref:t},x),Z)}));const m=(0,l.Z)({root:{width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},horizontal:{},vertical:{justifyContent:"flex-start",padding:"8px",margin:"-8px"},touchRipple:{color:"rgba(0, 0, 0, 0.3)"}},{name:"MuiStepButton"})(u)},1707:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(7560),r=a(54530),o=a(24328),i=(a(13980),a(6277)),l=a(15459),c=o.forwardRef((function(e,t){var a=e.active,l=e.alternativeLabel,c=void 0!==l&&l,s=e.classes,d=e.className,u=e.completed,m=e.disabled,p=(e.index,e.orientation),v=void 0===p?"horizontal":p,f=(0,r.Z)(e,["active","alternativeLabel","classes","className","completed","disabled","index","orientation"]);return o.createElement("div",(0,n.Z)({className:(0,i.Z)(s.root,s[v],d,c&&s.alternativeLabel,a&&s.active,u&&s.completed,m&&s.disabled),ref:t},f),o.createElement("span",{className:(0,i.Z)(s.line,{horizontal:s.lineHorizontal,vertical:s.lineVertical}[v])}))}));const s=(0,l.Z)((function(e){return{root:{flex:"1 1 auto"},horizontal:{},vertical:{marginLeft:12,padding:"0 0 8px"},alternativeLabel:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"},active:{},completed:{},disabled:{},line:{display:"block",borderColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},lineHorizontal:{borderTopStyle:"solid",borderTopWidth:1},lineVertical:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}}),{name:"MuiStepConnector"})(c)},30594:(e,t,a)=>{a.d(t,{Z:()=>m});var n=a(24328),r=(a(13980),a(6277)),o=a(3752);const i=(0,o.Z)(n.createElement("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),l=(0,o.Z)(n.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");var c=a(15459),s=a(72379),d=n.createElement("circle",{cx:"12",cy:"12",r:"12"}),u=n.forwardRef((function(e,t){var a=e.completed,o=void 0!==a&&a,c=e.icon,u=e.active,m=void 0!==u&&u,p=e.error,v=void 0!==p&&p,f=e.classes;if("number"==typeof c||"string"==typeof c){var h=(0,r.Z)(f.root,m&&f.active,v&&f.error,o&&f.completed);return v?n.createElement(l,{className:h,ref:t}):o?n.createElement(i,{className:h,ref:t}):n.createElement(s.Z,{className:h,ref:t},d,n.createElement("text",{className:f.text,x:"12",y:"16",textAnchor:"middle"},c))}return c}));const m=(0,c.Z)((function(e){return{root:{display:"block",color:e.palette.text.disabled,"&$completed":{color:e.palette.primary.main},"&$active":{color:e.palette.primary.main},"&$error":{color:e.palette.error.main}},text:{fill:e.palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily},active:{},completed:{},error:{}}}),{name:"MuiStepIcon"})(u)},34546:(e,t,a)=>{a.d(t,{Z:()=>u});var n=a(7560),r=a(54530),o=a(24328),i=(a(13980),a(6277)),l=a(15459),c=a(90436),s=a(30594),d=o.forwardRef((function(e,t){var a=e.active,l=void 0!==a&&a,d=e.alternativeLabel,u=void 0!==d&&d,m=e.children,p=e.classes,v=e.className,f=e.completed,h=void 0!==f&&f,b=e.disabled,g=void 0!==b&&b,x=e.error,y=void 0!==x&&x,Z=(e.expanded,e.icon),E=(e.last,e.optional),w=e.orientation,L=void 0===w?"horizontal":w,N=e.StepIconComponent,k=e.StepIconProps,S=(0,r.Z)(e,["active","alternativeLabel","children","classes","className","completed","disabled","error","expanded","icon","last","optional","orientation","StepIconComponent","StepIconProps"]),C=N;return Z&&!C&&(C=s.Z),o.createElement("span",(0,n.Z)({className:(0,i.Z)(p.root,p[L],v,g&&p.disabled,u&&p.alternativeLabel,y&&p.error),ref:t},S),Z||C?o.createElement("span",{className:(0,i.Z)(p.iconContainer,u&&p.alternativeLabel)},o.createElement(C,(0,n.Z)({completed:h,active:l,error:y,icon:Z},k))):null,o.createElement("span",{className:p.labelContainer},m?o.createElement(c.Z,{variant:"body2",component:"span",display:"block",className:(0,i.Z)(p.label,u&&p.alternativeLabel,h&&p.completed,l&&p.active,y&&p.error)},m):null,E))}));d.muiName="StepLabel";const u=(0,l.Z)((function(e){return{root:{display:"flex",alignItems:"center","&$alternativeLabel":{flexDirection:"column"},"&$disabled":{cursor:"default"}},horizontal:{},vertical:{},label:{color:e.palette.text.secondary,"&$active":{color:e.palette.text.primary,fontWeight:500},"&$completed":{color:e.palette.text.primary,fontWeight:500},"&$alternativeLabel":{textAlign:"center",marginTop:16},"&$error":{color:e.palette.error.main}},active:{},completed:{},error:{},disabled:{},iconContainer:{flexShrink:0,display:"flex",paddingRight:8,"&$alternativeLabel":{paddingRight:0}},alternativeLabel:{},labelContainer:{width:"100%"}}}),{name:"MuiStepLabel"})(d)},31625:(e,t,a)=>{a.d(t,{Z:()=>m});var n=a(7560),r=a(54530),o=a(24328),i=(a(13980),a(6277)),l=a(15459),c=a(27556),s=a(1707),d=o.createElement(s.Z,null),u=o.forwardRef((function(e,t){var a=e.activeStep,l=void 0===a?0:a,s=e.alternativeLabel,u=void 0!==s&&s,m=e.children,p=e.classes,v=e.className,f=e.connector,h=void 0===f?d:f,b=e.nonLinear,g=void 0!==b&&b,x=e.orientation,y=void 0===x?"horizontal":x,Z=(0,r.Z)(e,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),E=o.isValidElement(h)?o.cloneElement(h,{orientation:y}):null,w=o.Children.toArray(m),L=w.map((function(e,t){var a={index:t,active:!1,completed:!1,disabled:!1};return l===t?a.active=!0:!g&&l>t?a.completed=!0:!g&&l<t&&(a.disabled=!0),o.cloneElement(e,(0,n.Z)({alternativeLabel:u,connector:E,last:t+1===w.length,orientation:y},a,e.props))}));return o.createElement(c.Z,(0,n.Z)({square:!0,elevation:0,className:(0,i.Z)(p.root,p[y],v,u&&p.alternativeLabel),ref:t},Z),L)}));const m=(0,l.Z)({root:{display:"flex",padding:24},horizontal:{flexDirection:"row",alignItems:"center"},vertical:{flexDirection:"column"},alternativeLabel:{alignItems:"flex-start"}},{name:"MuiStepper"})(u)},37390:(e,t,a)=>{a.d(t,{Z:()=>u});var n=a(54530),r=a(7560),o=a(24328),i=(a(13980),a(6277)),l=a(15459),c=a(98287),s="table",d=o.forwardRef((function(e,t){var a=e.classes,l=e.className,d=e.component,u=void 0===d?s:d,m=e.padding,p=void 0===m?"default":m,v=e.size,f=void 0===v?"medium":v,h=e.stickyHeader,b=void 0!==h&&h,g=(0,n.Z)(e,["classes","className","component","padding","size","stickyHeader"]),x=o.useMemo((function(){return{padding:p,size:f,stickyHeader:b}}),[p,f,b]);return o.createElement(c.Z.Provider,{value:x},o.createElement(u,(0,r.Z)({role:u===s?null:"table",ref:t,className:(0,i.Z)(a.root,l,b&&a.stickyHeader)},g)))}));const u=(0,l.Z)((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,r.Z)({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(d)},97485:(e,t,a)=>{a.d(t,{Z:()=>m});var n=a(7560),r=a(54530),o=a(24328),i=(a(13980),a(6277)),l=a(15459),c=a(49456),s={variant:"body"},d="tbody",u=o.forwardRef((function(e,t){var a=e.classes,l=e.className,u=e.component,m=void 0===u?d:u,p=(0,r.Z)(e,["classes","className","component"]);return o.createElement(c.Z.Provider,{value:s},o.createElement(m,(0,n.Z)({className:(0,i.Z)(a.root,l),ref:t,role:m===d?null:"rowgroup"},p)))}));const m=(0,l.Z)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(u)},91256:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(7560),r=a(54530),o=a(24328),i=(a(13980),a(6277)),l=a(15459),c=o.forwardRef((function(e,t){var a=e.classes,l=e.className,c=e.component,s=void 0===c?"div":c,d=(0,r.Z)(e,["classes","className","component"]);return o.createElement(s,(0,n.Z)({ref:t,className:(0,i.Z)(a.root,l)},d))}));const s=(0,l.Z)({root:{width:"100%",overflowX:"auto"}},{name:"MuiTableContainer"})(c)},58987:(e,t,a)=>{a.d(t,{Z:()=>m});var n=a(7560),r=a(54530),o=a(24328),i=(a(13980),a(6277)),l=a(15459),c=a(49456),s={variant:"head"},d="thead",u=o.forwardRef((function(e,t){var a=e.classes,l=e.className,u=e.component,m=void 0===u?d:u,p=(0,r.Z)(e,["classes","className","component"]);return o.createElement(c.Z.Provider,{value:s},o.createElement(m,(0,n.Z)({className:(0,i.Z)(a.root,l),ref:t,role:m===d?null:"rowgroup"},p)))}));const m=(0,l.Z)({root:{display:"table-header-group"}},{name:"MuiTableHead"})(u)},89571:(e,t,a)=>{a.d(t,{Z:()=>u});var n=a(7560),r=a(54530),o=a(24328),i=(a(13980),a(6277)),l=a(15459),c=a(49456),s=a(41128),d=o.forwardRef((function(e,t){var a=e.classes,l=e.className,s=e.component,d=void 0===s?"tr":s,u=e.hover,m=void 0!==u&&u,p=e.selected,v=void 0!==p&&p,f=(0,r.Z)(e,["classes","className","component","hover","selected"]),h=o.useContext(c.Z);return o.createElement(d,(0,n.Z)({ref:t,className:(0,i.Z)(a.root,l,h&&{head:a.head,footer:a.footer}[h.variant],m&&a.hover,v&&a.selected),role:"tr"===d?null:"row"},f))}));const u=(0,l.Z)((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:(0,s.U1)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(d)}}]);
|
package/64.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[64],{1292:(e,n,t)=>{t.d(n,{Z:()=>l});var r=t(24328),o=t(75047),i=(t(13980),t(8732)),a=t(85974),s=t(74718);function c(e){return e.substring(2).toLowerCase()}const l=function(e){var n=e.children,t=e.disableReactTree,l=void 0!==t&&t,u=e.mouseEvent,d=void 0===u?"onClick":u,m=e.onClickAway,f=e.touchEvent,p=void 0===f?"onTouchEnd":f,v=r.useRef(!1),g=r.useRef(null),h=r.useRef(!1),Z=r.useRef(!1);r.useEffect((function(){return setTimeout((function(){h.current=!0}),0),function(){h.current=!1}}),[]);var E=r.useCallback((function(e){g.current=o.findDOMNode(e)}),[]),y=(0,a.Z)(n.ref,E),b=(0,s.Z)((function(e){var n=Z.current;if(Z.current=!1,h.current&&g.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(v.current)v.current=!1;else{(e.composedPath?e.composedPath().indexOf(g.current)>-1:!(0,i.Z)(g.current).documentElement.contains(e.target)||g.current.contains(e.target))||!l&&n||m(e)}})),x=function(e){return function(t){Z.current=!0;var r=n.props[e];r&&r(t)}},k={ref:y};return!1!==p&&(k[p]=x(p)),r.useEffect((function(){if(!1!==p){var e=c(p),n=(0,i.Z)(g.current),t=function(){v.current=!0};return n.addEventListener(e,b),n.addEventListener("touchmove",t),function(){n.removeEventListener(e,b),n.removeEventListener("touchmove",t)}}}),[b,p]),!1!==d&&(k[d]=x(d)),r.useEffect((function(){if(!1!==d){var e=c(d),n=(0,i.Z)(g.current);return n.addEventListener(e,b),function(){n.removeEventListener(e,b)}}}),[b,d]),r.createElement(r.Fragment,null,r.cloneElement(n,k))}},85256:(e,n,t)=>{t.d(n,{Z:()=>u});var r=t(7560),o=t(54530),i=t(24328),a=(t(13980),t(6277)),s=t(15459),c=t(41128),l=i.forwardRef((function(e,n){var t=e.absolute,s=void 0!==t&&t,c=e.classes,l=e.className,u=e.component,d=void 0===u?"hr":u,m=e.flexItem,f=void 0!==m&&m,p=e.light,v=void 0!==p&&p,g=e.orientation,h=void 0===g?"horizontal":g,Z=e.role,E=void 0===Z?"hr"!==d?"separator":void 0:Z,y=e.variant,b=void 0===y?"fullWidth":y,x=(0,o.Z)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return i.createElement(d,(0,r.Z)({className:(0,a.Z)(c.root,l,"fullWidth"!==b&&c[b],s&&c.absolute,f&&c.flexItem,v&&c.light,"vertical"===h&&c.vertical),role:E,ref:n},x))}));const u=(0,s.Z)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:(0,c.U1)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(l)},49378:(e,n,t)=>{t.d(n,{Z:()=>d});var r=t(7560),o=t(54530),i=t(24328),a=(t(13980),t(6277)),s=t(15459),c=t(90436),l=t(20413),u=i.forwardRef((function(e,n){var t=e.children,s=e.classes,u=e.className,d=e.disableTypography,m=void 0!==d&&d,f=e.inset,p=void 0!==f&&f,v=e.primary,g=e.primaryTypographyProps,h=e.secondary,Z=e.secondaryTypographyProps,E=(0,o.Z)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),y=i.useContext(l.Z).dense,b=null!=v?v:t;null==b||b.type===c.Z||m||(b=i.createElement(c.Z,(0,r.Z)({variant:y?"body2":"body1",className:s.primary,component:"span",display:"block"},g),b));var x=h;return null==x||x.type===c.Z||m||(x=i.createElement(c.Z,(0,r.Z)({variant:"body2",className:s.secondary,color:"textSecondary",display:"block"},Z),x)),i.createElement("div",(0,r.Z)({className:(0,a.Z)(s.root,u,y&&s.dense,p&&s.inset,b&&x&&s.multiline),ref:n},E),b,x)}));const d=(0,s.Z)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(u)},37265:(e,n,t)=>{t.d(n,{Z:()=>h});var r=t(54530),o=t(51119),i=t(7560),a=t(24328),s=(t(13980),t(6277)),c=t(15459),l=t(39265),u=t(1292),d=t(74718),m=t(97580),f=t(11375),p=t(72654),v=t(93657),g=a.forwardRef((function(e,n){var t=e.action,o=e.anchorOrigin,c=(o=void 0===o?{vertical:"bottom",horizontal:"center"}:o).vertical,g=o.horizontal,h=e.autoHideDuration,Z=void 0===h?null:h,E=e.children,y=e.classes,b=e.className,x=e.ClickAwayListenerProps,k=e.ContentProps,w=e.disableWindowBlurListener,C=void 0!==w&&w,L=e.message,T=e.onClose,N=e.onEnter,R=e.onEntered,P=e.onEntering,M=e.onExit,O=e.onExited,I=e.onExiting,D=e.onMouseEnter,S=e.onMouseLeave,W=e.open,B=e.resumeHideDuration,z=e.TransitionComponent,H=void 0===z?p.Z:z,_=e.transitionDuration,A=void 0===_?{enter:l.x9.enteringScreen,exit:l.x9.leavingScreen}:_,j=e.TransitionProps,G=(0,r.Z)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),X=a.useRef(),q=a.useState(!0),F=q[0],U=q[1],Y=(0,d.Z)((function(){T&&T.apply(void 0,arguments)})),J=(0,d.Z)((function(e){T&&null!=e&&(clearTimeout(X.current),X.current=setTimeout((function(){Y(null,"timeout")}),e))}));a.useEffect((function(){return W&&J(Z),function(){clearTimeout(X.current)}}),[W,Z,J]);var K=function(){clearTimeout(X.current)},Q=a.useCallback((function(){null!=Z&&J(null!=B?B:.5*Z)}),[Z,B,J]);return a.useEffect((function(){if(!C&&W)return window.addEventListener("focus",Q),window.addEventListener("blur",K),function(){window.removeEventListener("focus",Q),window.removeEventListener("blur",K)}}),[C,Q,W]),!W&&F?null:a.createElement(u.Z,(0,i.Z)({onClickAway:function(e){T&&T(e,"clickaway")}},x),a.createElement("div",(0,i.Z)({className:(0,s.Z)(y.root,y["anchorOrigin".concat((0,m.Z)(c)).concat((0,m.Z)(g))],b),onMouseEnter:function(e){D&&D(e),K()},onMouseLeave:function(e){S&&S(e),Q()},ref:n},G),a.createElement(H,(0,i.Z)({appear:!0,in:W,onEnter:(0,f.Z)((function(){U(!1)}),N),onEntered:R,onEntering:P,onExit:M,onExited:(0,f.Z)((function(){U(!0)}),O),onExiting:I,timeout:A,direction:"top"===c?"down":"up"},j),E||a.createElement(v.Z,(0,i.Z)({message:L,action:t},k)))))}));const h=(0,c.Z)((function(e){var n={top:8},t={bottom:8},r={justifyContent:"flex-end"},a={justifyContent:"flex-start"},s={top:24},c={bottom:24},l={right:24},u={left:24},d={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:(0,i.Z)({},n,(0,o.Z)({},e.breakpoints.up("sm"),(0,i.Z)({},s,d))),anchorOriginBottomCenter:(0,i.Z)({},t,(0,o.Z)({},e.breakpoints.up("sm"),(0,i.Z)({},c,d))),anchorOriginTopRight:(0,i.Z)({},n,r,(0,o.Z)({},e.breakpoints.up("sm"),(0,i.Z)({left:"auto"},s,l))),anchorOriginBottomRight:(0,i.Z)({},t,r,(0,o.Z)({},e.breakpoints.up("sm"),(0,i.Z)({left:"auto"},c,l))),anchorOriginTopLeft:(0,i.Z)({},n,a,(0,o.Z)({},e.breakpoints.up("sm"),(0,i.Z)({right:"auto"},s,u))),anchorOriginBottomLeft:(0,i.Z)({},t,a,(0,o.Z)({},e.breakpoints.up("sm"),(0,i.Z)({right:"auto"},c,u)))}}),{flip:!1,name:"MuiSnackbar"})(g)},93657:(e,n,t)=>{t.d(n,{Z:()=>m});var r=t(54530),o=t(51119),i=t(7560),a=t(24328),s=(t(13980),t(6277)),c=t(15459),l=t(27556),u=t(41128),d=a.forwardRef((function(e,n){var t=e.action,o=e.classes,c=e.className,u=e.message,d=e.role,m=void 0===d?"alert":d,f=(0,r.Z)(e,["action","classes","className","message","role"]);return a.createElement(l.Z,(0,i.Z)({role:m,square:!0,elevation:6,className:(0,s.Z)(o.root,c),ref:n},f),a.createElement("div",{className:o.message},u),t?a.createElement("div",{className:o.action},t):null)}));const m=(0,c.Z)((function(e){var n="light"===e.palette.type?.8:.98,t=(0,u._4)(e.palette.background.default,n);return{root:(0,i.Z)({},e.typography.body2,(0,o.Z)({color:e.palette.getContrastText(t),backgroundColor:t,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(d)}}]);
|
package/6615.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[6615],{33117:(e,t,n)=>{n.d(t,{Z:()=>C});var r=n(24328),o=n.n(r),a=n(71153),l=n.n(a),i=n(87918),s=n.n(i),c=n(38402),p=n(49378),u=n(21324),d=n(83088),h=n(18435),g=n(78223),m=n(32701),f=n(79573),b=n(19540);function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}const x=e=>o().createElement("svg",v({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),o().createElement("path",{d:"M10 18h3v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1H8V8H6a1 1 0 01-1-1V3a1 1 0 011-1h6a1 1 0 011 1v4a1 1 0 01-1 1h-2v3h3v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1h-3v5z",fill:"#000",stroke:"none",strokeWidth:1,fillRule:"evenodd"}));function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}const w=e=>o().createElement("svg",y({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),o().createElement("rect",{fill:"#000",x:9,y:9,width:6,height:6,rx:1,stroke:"none",strokeWidth:1,fillRule:"evenodd"})),O=(0,n(79692).Z)({container:{"& > $marginWrapper:first-child":{paddingLeft:"4px"}},listItem:{paddingLeft:"1px",paddingTop:"2px",paddingBottom:"2px",transition:"none","&:hover":{"& $itemAfter":{background:"linear-gradient(to right, rgba(235, 235, 235, 0.2), rgba(235, 235, 235, 1) 100%)"}},"&$listItemFocus":{"& $itemAfter":{background:"linear-gradient(to right, rgba(219, 219, 219, 0.2), rgba(219, 219, 219, 1) 100%)"}},"&:focus":{outline:"none"}},listItemFocus:{},icon:{opacity:.29,width:"16px",height:"16px",flexShrink:0,marginRight:"6px",marginLeft:"8px"},recommendedIcon:{width:"18px",height:"18px",marginRight:"5px",marginLeft:"7px",flexShrink:0},logoIcon:{width:"18px",height:"18px",flexShrink:0,marginRight:"4px"},itemAfter:{position:"absolute",right:0,top:0,width:"40px",height:"100%",pointerEvents:"none",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)"},itemText:{padding:"0",margin:0,"& span":{fontSize:"0.8125rem",letterSpacing:"normal",whiteSpace:"nowrap"}},checkbox:{opacity:.34,padding:0,marginLeft:"14px","&$checked":{opacity:1,background:"none"}},checked:{},marginWrapper:{display:"flex",alignItems:"center"},defaultCursor:{cursor:"default"},itemTooltip:{margin:"4px 0"},marginText:{marginLeft:"21px"},itemTextWrapper:{display:"flex",alignItems:"center"}}),P=e=>{let{attrType:t={}}=e;const n=O(),r=(e=>{switch(e.type){case h.oS0.TYPE_IMAGE:case h.oS0.TYPE_NESTED:return b.Z;case h.oS0.TYPE_REFERENCE:return x;default:return w}})(t);return o().createElement(r,{className:n.icon})};var E=n(33286);function I(){return I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(this,arguments)}const k=(0,g.Z)((e=>o().createElement("svg",I({width:13,height:18,viewBox:"0 0 13 18",xmlns:"http://www.w3.org/2000/svg"},e),o().createElement("g",{transform:"translate(-3 -1)",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},o().createElement("path",{fill:"#FF4081",d:"M5.833 10h3.75v6.667l-3.75 1.666z"}),o().createElement("path",{fill:"#CE0C4E",d:"M13.333 10v8.333l-3.75-1.666V10z"}),o().createElement("circle",{fill:"#FFC058",cx:9.583,cy:7.917,r:6.25}),o().createElement("circle",{fill:"#FFCD7B",cx:9.583,cy:7.917,r:5.417}),o().createElement("path",{fill:"#FFFBB5",d:"M8.333 11.667L5 8.462l.933-.898 2.4 2.308L13.4 5l.933.897z"}))))),C=(0,r.memo)((e=>{let{groupId:t,data:n,checked:r=!1,isFocused:a=!1,isRequired:i=!1,label:g,labelInText:b,level:v,onClick:x=f.ZT,hideCheckBox:y=!1,hideIcon:w=!1,notSelectable:I=!1,disableHorizontalScrollbar:C=!1,style:j={},subItemMargin:Z=20,LogoIcon:S,className:F}=e;const T=O(),{attrType:L}=n||{},R=!(y&&(0,h.QZu)(L)||I),N=!!S;return o().createElement(d.C,{value:b||g,className:T.itemTooltip,placement:"bottom-end"},o().createElement(c.Z,{className:l()(T.container,T.listItem,{[T.defaultCursor]:!R},F),onClick:R?()=>x(n,!r,t):void 0,style:j,dense:!0,button:R,classes:{focusVisible:T.listItemFocus,selected:T.listItemFocus},selected:a,tabIndex:-1},!y&&o().createElement(u.Z,{checked:r,disableRipple:!0,disabled:!R,className:l()(T.checkbox,{[T.checked]:r}),tabIndex:-1}),o().createElement(E.Z,{margin:Z,level:v,className:T.marginWrapper},o().createElement(o().Fragment,null,!w&&(e=>"recommended"===t?o().createElement(k,{className:T.recommendedIcon,tooltipTitle:s().text("Recommended"),showForDisabled:!0}):o().createElement(P,{attrType:e}))(L),o().createElement("div",{className:l()(T.itemTextWrapper,{[T.marginText]:w})},N&&o().createElement(S,{className:T.logoIcon}),o().createElement(p.Z,{primary:o().createElement(o().Fragment,null,g,i&&o().createElement(m.Z,null)),className:T.itemText})))),R&&C&&o().createElement("div",{className:T.itemAfter})))}))},84425:(e,t,n)=>{n.d(t,{Z:()=>V});var r=n(24328),o=n.n(r),a=n(13980),l=n.n(a),i=n(71153),s=n.n(i),c=n(17440),p=n(78501),u=n(65549),d=n(79692);const h=(0,d.Z)((e=>({addLabel:{display:"flex",padding:"0 7px",height:"35px",alignItems:"center",fontSize:"13px",fontWeight:"500",color:e.palette.primary.main,cursor:"pointer",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",borderTop:"solid 1px rgba(0, 0, 0, 0.14)",backgroundColor:"rgba(0, 0, 0, 0.03)"},addIcon:{height:"18px",width:"18px",padding:"0 9px"}}))),g=(0,d.Z)({singleValue:{fontSize:"14px",lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"21px"}});var m=n(51556);const f=e=>{const{selectProps:{onCreate:t,createLabel:n,inputValue:r,components:a},children:l}=e,i=h();return o().createElement(m.Z,e,l,n&&!(0,c.prop)("Group",a)&&o().createElement("span",{className:i.addLabel,onClick:()=>t(r)},o().createElement(u.Z,{className:i.addIcon}),n))};f.propTypes={children:l().element.isRequired,selectProps:l().object.isRequired};const b=f;var v=n(12350),x=n(49861),y=n(79573),w=n(18435),O=n(62343),P=n(90436);function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}function I(e){const{selectProps:{menuIsOpen:t},innerProps:n,children:r}=e,a=g();return!t&&o().createElement(P.Z,E({className:a.singleValue},n),r)}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){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}I.propTypes={children:l().node,innerProps:l().object};const j=(0,d.Z)({control:{height:"auto"},dropdownIndicator:{transition:"transform .15s ease",padding:e=>(e.height-24)/2+"px 12px",cursor:"pointer",color:"rgba(0, 0, 0, 0.54)"},valueContainer:{marginLeft:"16px",width:0},formControl:{margin:0},filledInputRoot:{backgroundColor:"rgba(0, 0, 0, 0.03)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&.focused":{backgroundColor:"rgba(0, 0, 0, 0.03)"}},filledInputUnderline:{"&:before":{display:"none"}},inputLabel:{color:"rgba(0,0,0,0.6)",fontSize:"14px",lineHeight:"16px",paddingLeft:"4px","&.shrink":{paddingLeft:"4px"}}}),Z={menu:e=>k({},e,{borderRadius:"0 0 4px 4px",backgroundColor:"#FFFFFFFF",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)",margin:0}),menuList:e=>k({},e,{maxHeight:"208px",padding:"8px 0"}),group:e=>k({},e,{padding:"0 0 8px 0"}),input:e=>k({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:"16px 0 0",padding:0}),option:e=>k({},e,{fontSize:"13px",lineHeight:"15px",height:"32px"})},S={menuList:e=>k({},e,{padding:0})},F={input:e=>k({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:0,padding:0})};function T(){return T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){R(e,t,n[t])}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const N=e=>{let{value:t,label:n,createLabel:a,getOptions:l,options:i,height:u=46,onChange:d=c.identity,onCreate:h,onClear:g=c.identity,components:m,textFieldInputRef:f,TextFieldProps:P,classes:E}=e,k=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["value","label","createLabel","getOptions","options","height","onChange","onCreate","onClear","components","textFieldInputRef","TextFieldProps","classes"]);const C=j({height:u}),R=(0,O.a6)(),[N,z]=(0,r.useState)(!1),V=(0,r.useRef)(null),W=l?v.Z:x.Z,B=(0,c.prop)("ClearIndicator",m)?{}:{IndicatorSeparator:y.Vd,ClearIndicator:y.Vd},H=h?(e,t)=>{h(e,t),z(!1)}:void 0,M=(0,c.prop)("Group",m)?S:{},D=(0,c.isEmpty)(n)?F:{},_=L({},Z,M,D),A=L({},C,E);return o().createElement(W,T({placeholder:"",defaultOptions:!0},k,{value:(0,c.defaultTo)(null,t),loadOptions:l,options:i,cacheOptions:!0,onChange:d,onCreate:H,onClear:g,createLabel:a,classes:A,styles:_,components:L({DropdownIndicator:p.Z,LoadingIndicator:y.Vd,SingleValue:I,Menu:b},B,m),menuPlacement:"auto",TextFieldProps:L({},P,{label:n,variant:"filled",margin:"dense",classes:L({},(0,c.prop)("classes",P),{root:s()(C.formControl,(0,c.path)(["classes","root"],P))}),inputProps:L({},(0,c.prop)("inputProps",P)),InputProps:L({},(0,c.prop)("InputProps",P),{classes:L({},(0,c.path)(["InputProps","classes"],P),{root:s()(C.filledInputRoot,(0,c.path)(["InputProps","classes","root"],P)),underline:s()({[R.filledInputUnderline]:(0,w.O27)(t)},(0,c.path)(["InputProps","classes","underline"],P)),focused:s()("focused",(0,c.path)(["InputProps","classes","focused"],P))})}),InputLabelProps:L({},(0,c.prop)("InputLabelProps",P),{classes:L({},(0,c.path)(["InputLabelProps","classes"],P),{root:s()(C.inputLabel,(0,c.path)(["InputLabelProps","classes","root"],P)),shrink:s()("shrink",(0,c.path)(["InputLabelProps","classes","shrink"],P))}),shrink:!(0,w.O27)(t)||void 0}),ref:f||V}),inputRef:f||V,menuIsOpen:N,onMenuOpen:()=>z(!0),onMenuClose:()=>z(!1)}))},z={value:l().oneOfType([l().object,l().array]),label:l().string.isRequired,getOptions:l().func,options:l().array,onChange:l().func,onCreate:l().func,onClear:l().func,createLabel:l().string,components:l().object,textFieldInputRef:l().object,TextFieldProps:l().object,height:l().number,classes:l().object};N.propTypes=z;const V=N},42662:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),o=n.n(r),a=n(52730),l=n(89810),i=n(98018);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const c=e=>{const t=(0,a.useSelector)(l.ZP.selectors.getAbsoluteImagePath)||"";return o().createElement(i.ZP,s({},e,{storagePath:(n=t,n.endsWith("/")?n:n+"/")}));var n}},18527:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),o=n.n(r),a=n(52730),l=n(12212),i=n(89810),s=n(18435);const c=(0,r.forwardRef)(((e,t)=>{let{value:n,children:c,className:p}=e;const u=(0,a.useDispatch)(),d=(0,r.useContext)(l.m),h=(0,a.useSelector)(i.ZP.selectors.getUIPath),g=(0,r.useCallback)((()=>{u(i.ui.actions.openEntity({uri:n,viewId:d}))}),[d,n,u]);return o().createElement("a",{ref:t,href:(m=n,(0,s.ChB)({uiPath:h,uri:m})),onClick:e=>{g(),e.stopPropagation(),e.preventDefault()},className:p},c);var m}));c.displayName="EntityUriLink";const p=c},49861:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(4515),o=n(44711);const a=(0,r.Z)(o.ZP)},32701:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(24328),o=n.n(r);const a=(0,n(79692).Z)({mark:{color:"red"}}),l=()=>{const e=a();return o().createElement("span",{className:e.mark},"*")}},90590:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(24328),o=n.n(r),a=n(84425),l=n(13980),i=n.n(l),s=n(90436);const c=(0,n(79692).Z)({value:{color:"rgba(0, 0, 0, 0.87)"},placeholder:{color:"rgba(0, 0, 0, 0.38)",fontSize:"14px !important"}}),p=e=>{let{selectProps:{menuIsOpen:t},data:{label:n}}=e;const r=c();return!t&&o().createElement(s.Z,{variant:"body2",classes:{root:r.value}},n)};p.propTypes={selectProps:i().shape({menuIsOpen:i().bool}),data:i().shape({label:i().string})};const u=p;function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}const h=e=>{const t=c(),{innerProps:n={},children:r}=e;return o().createElement(s.Z,d({className:t.placeholder},n),r)};function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}h.propTypes={children:i().node,innerProps:i().object,selectProps:i().object.isRequired};const m={SingleValue:u,Placeholder:h},f=(0,r.memo)((e=>{let t=g({},e);return o().createElement(a.Z,g({components:m},t))}))},12212:(e,t,n)=>{n.d(t,{m:()=>o});var r=n(24328);const o=n.n(r)().createContext(null);o.displayName="ViewIdContext"},19540:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(24328),o=n.n(r);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const l=e=>o().createElement("svg",a({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),o().createElement("path",{d:"M14 11v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1h-3v1a1 1 0 01-1 1H6a1 1 0 01-1-1v-4a1 1 0 011-1h4a1 1 0 011 1v1h3z",fill:"#000",stroke:"none",strokeWidth:1,fillRule:"evenodd"}))}}]);
|
package/6619.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[6619],{49429:(e,a,t)=>{t.d(a,{Z:()=>i});var o=t(7560),n=t(54530),r=t(24328),c=(t(13980),t(6277)),l=t(15459),s=r.forwardRef((function(e,a){var t=e.disableSpacing,l=void 0!==t&&t,s=e.classes,i=e.className,d=(0,n.Z)(e,["disableSpacing","classes","className"]);return r.createElement("div",(0,o.Z)({className:(0,c.Z)(s.root,i,!l&&s.spacing),ref:a},d))}));const i=(0,l.Z)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(s)},55999:(e,a,t)=>{t.d(a,{Z:()=>s});var o=t(7560),n=t(24328),r=(t(13980),t(15459)),c=t(90436),l=n.forwardRef((function(e,a){return n.createElement(c.Z,(0,o.Z)({component:"p",variant:"body1",color:"textSecondary",ref:a},e))}));const s=(0,r.Z)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(l)},79249:(e,a,t)=>{t.d(a,{Z:()=>d});var o=t(7560),n=t(54530),r=t(24328),c=(t(13980),t(6277)),l=t(15459),s=t(90436),i=r.forwardRef((function(e,a){var t=e.children,l=e.classes,i=e.className,d=e.disableTypography,u=void 0!==d&&d,m=(0,n.Z)(e,["children","classes","className","disableTypography"]);return r.createElement("div",(0,o.Z)({className:(0,c.Z)(l.root,i),ref:a},m),u?t:r.createElement(s.Z,{component:"h2",variant:"h6"},t))}));const d=(0,l.Z)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(i)},64326:(e,a,t)=>{t.d(a,{Z:()=>i});var o=t(7560),n=t(54530),r=t(24328),c=(t(13980),t(6277)),l=t(15459),s=r.forwardRef((function(e,a){var t=e.classes,l=e.className,s=e.row,i=void 0!==s&&s,d=(0,n.Z)(e,["classes","className","row"]);return r.createElement("div",(0,o.Z)({className:(0,c.Z)(t.root,l,i&&t.row),ref:a},d))}));const i=(0,l.Z)({root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},{name:"MuiFormGroup"})(s)},44962:(e,a,t)=>{t.d(a,{Z:()=>k});var o=t(7560),n=t(54530),r=t(24328),c=(t(13980),t(6277)),l=t(28838),s=t(3752);const i=(0,s.Z)(r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),d=(0,s.Z)(r.createElement("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");var u=t(15459);const m=(0,u.Z)((function(e){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},checked:{}}}),{name:"PrivateRadioButtonIcon"})((function(e){var a=e.checked,t=e.classes,o=e.fontSize;return r.createElement("div",{className:(0,c.Z)(t.root,a&&t.checked)},r.createElement(i,{fontSize:o}),r.createElement(d,{fontSize:o,className:t.layer}))}));var f=t(41128),p=t(97580),v=t(11375),h=t(72909),Z=r.createElement(m,{checked:!0}),g=r.createElement(m,null),y=r.forwardRef((function(e,a){var t=e.checked,s=e.classes,i=e.color,d=void 0===i?"secondary":i,u=e.name,m=e.onChange,f=e.size,y=void 0===f?"medium":f,k=(0,n.Z)(e,["checked","classes","color","name","onChange","size"]),C=(0,h.Z)(),b=t,E=(0,v.Z)(m,C&&C.onChange),x=u;return C&&(void 0===b&&(b=C.value===e.value),void 0===x&&(x=C.name)),r.createElement(l.Z,(0,o.Z)({color:d,type:"radio",icon:r.cloneElement(g,{fontSize:"small"===y?"small":"default"}),checkedIcon:r.cloneElement(Z,{fontSize:"small"===y?"small":"default"}),classes:{root:(0,c.Z)(s.root,s["color".concat((0,p.Z)(d))]),checked:s.checked,disabled:s.disabled},name:x,checked:b,onChange:E,ref:a},k))}));const k=(0,u.Z)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,f.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,f.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiRadio"})(y)},2682:(e,a,t)=>{t.d(a,{Z:()=>m});var o=t(7560),n=t(85354),r=t(54530),c=t(24328),l=(t(13980),t(64326)),s=t(85974),i=t(24514),d=t(28006),u=t(66049);const m=c.forwardRef((function(e,a){var t=e.actions,m=e.children,f=e.name,p=e.value,v=e.onChange,h=(0,r.Z)(e,["actions","children","name","value","onChange"]),Z=c.useRef(null),g=(0,i.Z)({controlled:p,default:e.defaultValue,name:"RadioGroup"}),y=(0,n.Z)(g,2),k=y[0],C=y[1];c.useImperativeHandle(t,(function(){return{focus:function(){var e=Z.current.querySelector("input:not(:disabled):checked");e||(e=Z.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var b=(0,s.Z)(a,Z),E=(0,u.Z)(f);return c.createElement(d.Z.Provider,{value:{name:E,onChange:function(e){C(e.target.value),v&&v(e,e.target.value)},value:k}},c.createElement(l.Z,(0,o.Z)({role:"radiogroup",ref:b},h),m))}))},28006:(e,a,t)=>{t.d(a,{Z:()=>o});const o=t(24328).createContext()},72909:(e,a,t)=>{t.d(a,{Z:()=>r});var o=t(24328),n=t(28006);function r(){return o.useContext(n.Z)}}}]);
|