@reltio/remotes 1.4.1824-hf → 1.4.1824-hf-2

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.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[1707],{71707:(e,t,r)=>{r.r(t),r.d(t,{ACTIVENESS_ATTR_TYPES:()=>i.ViP,ACTIVITY_TYPES:()=>i.IL3,ActionConfigType:()=>i.uTe,ActivenessAttrTypes:()=>i.PY2,ActivityFilter:()=>i.Ng6,AdditionalFilterOptionsValues:()=>i.NlI,AllDateRangeValues:()=>i.XYV,ApiErrorCode:()=>i.Xt7,AttributeErrorType:()=>i.wfT,AttributeTypeType:()=>i.EMD,AttributeValuePathItemType:()=>i.HAc,AuditAttrTypes:()=>i.PEf,CLEANSE_STATUS_ERROR_PATH:()=>i.yBB,ChartType:()=>i.oXM,CollaborationAttrTypes:()=>i.eWf,CollaborationObjectTypes:()=>i.q7e,ComplexAttributeType:()=>i.KVe,ConfigPermissions:()=>i.WVQ,ConnectionEntityType:()=>i.oZZ,ConnectionRelationType:()=>i.bNA,ConnectionType:()=>i.Rjq,CrosswalksAttrTypes:()=>i.G39,CustomAction:()=>i.W0P,CustomScriptPlatform:()=>i.X1H,DCRChangeRequestState:()=>i.hdG,DCROperationTypes:()=>i.ws7,DCRTypes:()=>i.VI$,DQDataLevel:()=>i.yn8,DQMetric:()=>i.N0y,DQViewType:()=>i.fpD,DashboardViewType:()=>i.fEX,DataTenantType:()=>i.bQt,DataTypes:()=>i.oS0,DateRangeTypes:()=>i.KfU,DateRangeValue:()=>i.bZE,Directions:()=>i.Nsj,DraftMarks:()=>i.psV,EntityAttrTypes:()=>i.xPW,EntityType:()=>i.pyR,EntityTypeType:()=>i.p8l,ErrorSeverity:()=>i.Wkf,ErrorSource:()=>i.zHr,ErrorType:()=>i.NIO,FACET_TYPES:()=>i.$26,FillRateState:()=>i.s9T,FilterBuilder:()=>i.MEy,FilterOptions:()=>i.j5E,FilterType:()=>i.vAw,FilterValueType:()=>i.NMQ,GlobalContextValue:()=>i.eVu,GraphLayout:()=>i.YGb,HistoryMode:()=>i.Z9$,HistoryOperations:()=>i.Y1q,InteractionTypeType:()=>i.RgZ,KeywordSearchType:()=>i.Qy0,LOCALE_ATTRIBUTE_PRESENTATION:()=>i.Q26,LookupValueType:()=>i.pYu,MAP_SEARCH_TYPES:()=>i.wIJ,MapSearch:()=>i.GFH,MatchRulesAttrNames:()=>i.Ury,MatchRulesAttrTypes:()=>i.S91,Maybe:()=>i.wSh,MetadataPermissions:()=>i.BDP,MetadataType:()=>i.pGS,Mode:()=>i.ARY,ModeType:()=>i.XGc,NODE_EDITING_MODES:()=>i.wwy,NOT_MATCH:()=>i.h_8,NO_LABEL:()=>i._XL,NestedAttributeType:()=>i.j2V,NestedAttributeValueType:()=>i.dMV,NumberPresentationStrategy:()=>i.xYD,Operation:()=>i.OXy,Operations:()=>i.BXd,Order:()=>i.KM9,PotentialMatchesAttrTypes:()=>i.C68,PredefinedWorkflowProcessType:()=>i.Yj_,PreviewPanelMode:()=>i.D25,ProfileViewType:()=>i.Z$A,READABLE_QUERY_PRIMITIVE_TYPES:()=>i.Tl4,RatingValue:()=>i.dFy,RdmAttrTypes:()=>i.lwr,ReferenceAttributeType:()=>i.NkU,ReferenceAttributeValueType:()=>i.Rtp,RelationDirections:()=>i.YGx,RelationType:()=>i.uTS,RelationTypeDirection:()=>i.MCv,RelationTypeType:()=>i.IYE,RelationsConfigType:()=>i.PiC,RequestAction:()=>i.MVv,STATUS_CODE_FIELD:()=>i.Q_m,ScreenType:()=>i.TWo,SearchDrivenDateRangeValues:()=>i.DUe,SearchOperator:()=>i.tJI,SearchResultMode:()=>i.fDt,SidePanelViewId:()=>i.DLi,SimpleAttributeValueType:()=>i.cNQ,SimpleLookupType:()=>i.SwE,SortOrderType:()=>i.ZHR,SortingStrategy:()=>i.PYu,SpecialAttrTypes:()=>i.lD1,StatusVF:()=>i.lVm,TREE_DEFAULT_SORT_FIELD:()=>i.vnX,TREE_DEFAULT_SORT_ORDER:()=>i.$x5,TREE_SORT_FIELD_VALUES:()=>i._R1,TREE_SORT_ORDER_VALUES:()=>i.wUm,UniquenessAnalysisState:()=>i.dC6,UnmergeOperation:()=>i.MBD,UserPermissions:()=>i.GmF,ValidationServiceOption:()=>i.cKm,ValidationState:()=>i.YgU,WorkflowAttrTypes:()=>i.iP_,WorkflowPriority:()=>i.NVC,addAttribute:()=>i.tPT,addCommentForTask:()=>i.tZe,addCrosswalk:()=>i.kRE,addCrosswalkInContributor:()=>i.psB,addDefaultValuesToAttributes:()=>i.X0$,addDefaultValuesToComplexAttribute:()=>i.$vY,addEntityAttributes:()=>i.zE1,addEntitySpecialAttribute:()=>i.Wm5,addGlobalFilterToQuery:()=>i.vyX,addNewAttribute:()=>i.wLZ,addProtocolToLink:()=>i.W4V,addReferencedRelationCrosswalks:()=>i.EtK,addToEntityRequiredAttributes:()=>i.ayi,addValueToDependentLookups:()=>i.asT,applyCrosswalks:()=>i.kGs,applyPresentationStrategyToValue:()=>i.RLE,applyRelationTypeObject:()=>i.ewt,areAllOperatorsAnd:()=>i.O_f,areOneHierarchyUris:()=>i.sOy,attributeUriToSearchUri:()=>i.Tde,attributesPresentationStrategyCustomization:()=>i.aBP,basicFilterBuildRules:()=>i.LMI,buildAttributesReadableQuery:()=>i.skb,buildBasicFilterString:()=>i.sPt,buildComplexFilterString:()=>i.sH1,buildDateRangeFilterClause:()=>i.lPZ,buildEntityTypeFilterClause:()=>i.bG8,buildEntityUriFilterClause:()=>i._LJ,buildError:()=>i.RPM,buildFilterHierarchyList:()=>i.h27,buildFilterQueryString:()=>i.Uqd,buildHierarchyAttributesReadableQuery:()=>i.xG,buildLookupRecord:()=>i.Z2f,buildOperationsToString:()=>i.fgW,buildReadableQuery:()=>i.I69,buildReadableQueryToString:()=>i.ZxB,buildSourceFilterClause:()=>i.dwd,buildUserFilterClause:()=>i.F$g,bulkMergeRequest:()=>i.MJn,bulkNotMatchRequest:()=>i.GOl,calcTotalCommentItems:()=>i.mdt,calculateCrosswalkTreeDeep:()=>i.Qbq,canCreateRelationBetweenEntities:()=>i.rny,canUserCreateWorkflowConfigJar:()=>i.UEY,canUserCreateWorkflowEnvironmentConfigJar:()=>i.Q0T,canUserDeleteProfiles:()=>i.Lyr,canUserExecuteWorkflowJobs:()=>i.sBn,canUserExecuteWorkflowJobsSyncBusinessProcessData:()=>i.itK,canUserExecuteWorkflowJobsTerminateProcessInstance:()=>i.H9$,canUserExecuteWorkflowJobsUpdateTasks:()=>i.KPc,canUserExecuteWorkflowJobsValidateTasks:()=>i.zos,canUserGetDQStatistic:()=>i.ELQ,canUserImportEntitiesFromDT:()=>i.dZs,canUserMakeActivitiesExport:()=>i.Cz4,canUserMakeBulkUpdate:()=>i.z_L,canUserMakeExport:()=>i.fGe,canUserManageWorkflowDefinition:()=>i.iuF,canUserManageWorkflowEnvironmentDefinition:()=>i.Wib,canUserOpenDataLoader:()=>i.Hn0,canUserReadDVF:()=>i.obS,canUserReadEntitiesFromDT:()=>i.E$L,canUserReadWorkflowDataTask:()=>i.XUh,canUserRegisterConfigEnvironments:()=>i.Qp_,canUserStartProcessInstanceFromQuery:()=>i._jk,canUserUpdateProcessInstance:()=>i.sKE,canUserUpdateWorkflowDataTask:()=>i.WmG,canUserViewProcessInstanceSearchQuery:()=>i.QKx,canUserViewWorkflowConfigJar:()=>i.Oik,canUserViewWorkflowDefinition:()=>i.s0A,canUserViewWorkflowEnvironmentConfigJar:()=>i.o9m,canUserViewWorkflowJobs:()=>i.MCd,canWrapInSameAttribute:()=>i.RsS,cascadeUpdate:()=>i.tGK,changeEntityAttribute:()=>i.lIv,checkBasicMetadataPermission:()=>i.mqZ,checkCanCreateAttribute:()=>i.Vg3,checkCanCreateCrosswalk:()=>i.mkC,checkCanDeleteAttribute:()=>i.xv5,checkCanDeleteCrosswalk:()=>i.a14,checkCanEditAttribute:()=>i.yv0,checkCanEditCrosswalk:()=>i.Zm0,checkCanImportEntityOfType:()=>i.Nxd,checkCanReadAttribute:()=>i.$mM,checkConfigPermission:()=>i.ifj,checkDraftMarked:()=>i.NWi,checkEdited:()=>i.xr3,checkIfOptionHasValues:()=>i.wNf,checkIgnored:()=>i.iJH,checkMatchRuleSummaryRelevance:()=>i.KB$,checkMergePermission:()=>i.GhL,checkMetadataForCreate:()=>i.d89,checkMetadataForDelete:()=>i.Edd,checkMetadataForUpdate:()=>i.Z5t,checkMetadataPermission:()=>i.uGe,checkMetadataPermissions:()=>i.UoR,checkNew:()=>i.xvW,checkRemoved:()=>i.$qe,checkUserPermissions:()=>i.yPM,cleanAttributes:()=>i.$cp,cleanAttributesWith:()=>i.vKJ,cleanseData:()=>i.O6H,cloneEntity:()=>i.VtG,collectAllDiffs:()=>i.AID,collectAllTransitiveEntitiesUris:()=>i.B1H,collectContributorsFromTree:()=>i.b7X,collectCrosswalksFromAttributes:()=>i.$uE,collectCrosswalksFromContributor:()=>i.keo,collectDiffForValidation:()=>i.C_p,collectPerspectiveViews:()=>i.G27,collectSearchParamsForTotal:()=>i.O8b,collectVersions:()=>i.JA0,compareActivenessAttributes:()=>i.b3T,compareAttributes:()=>i.oC6,compareImages:()=>i._Zs,compareRoles:()=>i.epC,compareTags:()=>i.YYG,configServiceRequest:()=>i.f_2,convertConfigViews:()=>i.Qck,convertOldAdvancedAttribute:()=>i.w3l,convertOldDashboardConfig:()=>i.QHB,convertOldFacets:()=>i.Jso,convertOldLayoutToReltioGridLayout:()=>i.RXH,convertOldProfileConfig:()=>i.Vr9,convertOldUIConfigToNewConfig:()=>i.lMm,convertPivotingValueToSearchFilters:()=>i.BlA,convertReferencedEntityForAttrValue:()=>i.fmQ,convertTransitionAttributes:()=>i.yRD,convertValidationServiceErrors:()=>i.NcL,countPercents:()=>i.QK6,createActivity:()=>i.ymd,createAttribute:()=>i.JV_,createCommandExecutor:()=>i.XiW,createComment:()=>i.Yrx,createDCRProcessor:()=>i.BiY,createDefaultAuthoringItem:()=>i.Dw9,createDefaultValues:()=>i.GPx,createNewAttribute:()=>i.gjI,createNewConnectionWithDefaultRelationType:()=>i.vlo,createObjectIdForPM:()=>i.E_P,createRecentSearch:()=>i.aAL,createReferencedRelationForAttrValue:()=>i.NBq,createRelatedObjectUris:()=>i.wp9,createRelation:()=>i.DsR,createRelationCreateCommand:()=>i.MPc,createRelationDeleteCommand:()=>i.gWE,createRelationIgnoreCommand:()=>i.DT_,createRelationRepointCommand:()=>i.ipn,createRelationTypesLabelsMap:()=>i.ORg,createRelationUpdateCommand:()=>i._wz,createRelationsCommandsFromConnections:()=>i.RYR,createReply:()=>i.PP2,createRequestProvider:()=>i.wS7,createSavedSearch:()=>i.cBQ,createTemporaryEntity:()=>i.pBq,createTicket:()=>i.axX,debounce:()=>i.DsO,deleteActivenessAttribute:()=>i.X78,deleteAttribute:()=>i.xZs,deleteChangeRequestItem:()=>i.hp4,deleteComment:()=>i.YFy,deleteCrosswalk:()=>i.Gmt,deleteCrosswalkAttribute:()=>i.K$w,deleteRecentSearch:()=>i.DSj,deleteReply:()=>i.Mfr,deleteSavedSearch:()=>i.k9j,durationToTimestamp:()=>i.EjS,editAttribute:()=>i.ww$,editCrosswalkAttribute:()=>i.WVU,editEntitySpecialAttribute:()=>i.hxF,enhanceDCREntitiesFromResponse:()=>i.n6p,enrichEntityWithDataTenant:()=>i.E7G,entity:()=>i.nwO,entityCumulativeDelete:()=>i.arB,entityCumulativeUpdate:()=>i.Mzk,eqCrosswalks:()=>i.aFF,escapeQueryValue:()=>i.HRH,evaluateAttributeLabel:()=>i.EZK,evaluateDeepEntityLabel:()=>i.Kxm,evaluateErrorPath:()=>i.Z9i,exportActivities:()=>i.CrF,exportDQ:()=>i.Oz9,filterOutHiddenAttributes:()=>i.DNd,filterRelatedParentValuesForDependentLookupValueUri:()=>i.vUy,filterValueToQueryString:()=>i.lJh,filterValueToQueryStringWithQuotes:()=>i.zHo,findAllPerspectiveConfigs:()=>i.MUm,findAllTemporaryRefEntityURI:()=>i.UO$,findAttributeTypeByUri:()=>i.zeJ,findAttributeValueByUri:()=>i.dLR,findAttributeValues:()=>i.JQy,findAttributeValuesByTypeUri:()=>i.XtP,findClosestCommonAncestor:()=>i.Ug0,findConnectionRelationObjectByRelationUri:()=>i.fa7,findContributorForCrosswalk:()=>i.A1W,findLabelPattern:()=>i.sw,findNodeById:()=>i.nv3,findParentNodeById:()=>i.JgD,findPerspectiveConfig:()=>i.YwY,findReferenceAttributeByRefEntityUri:()=>i.SkP,findRegularAttribute:()=>i.ayd,findRelatedTemporaryEntities:()=>i.SAs,findSiblingsAttributeValues:()=>i.i5L,findSourceSystemByUri:()=>i.PWK,findValueInAttributesByUriSuffix:()=>i.IM5,fixLayout:()=>i.Aup,fixNonUniqViewsIds:()=>i.Mfk,flatAttributeTreeNode:()=>i.HQx,flatAttributeTreeNodeWithSimplesOnly:()=>i.oN$,formatDataTypeValue:()=>i.mB6,formatDate:()=>i.p6d,formatDateTime:()=>i.o0x,formatNumber:()=>i.ufS,formatNumberAsMetric:()=>i.k7L,formatRelevanceScore:()=>i.ped,formatTime:()=>i.mrB,generateEntityUrlForOldMode:()=>i.OuZ,generateNewRelationUri:()=>i.ncP,generatePivotingUrlForOldMode:()=>i.FQ2,generateTagUrlForOldMode:()=>i.W$R,generateTempDCRUri:()=>i.JOV,generateTempUri:()=>i.Zmi,generateUri:()=>i.hm5,generateValuableQueryString:()=>i.ECL,getAbsoluteImageUrl:()=>i.vPL,getAbsoluteValueUriFromPath:()=>i.qmL,getAccessToken:()=>i.hPi,getActionPermissionForMatch:()=>i.hXd,getActionPermissionForMatches:()=>i.OCS,getActivenessAttributes:()=>i.p2l,getActivities:()=>i.qF1,getActivitiesTotal:()=>i._X$,getActivityFilter:()=>i.$1R,getActorsForInteraction:()=>i.bzh,getAllAttributeTypesTree:()=>i.k66,getAllEntityTypesForGraphType:()=>i.kiP,getAllPaths:()=>i.pSg,getAllRelationEditorActiveErrors:()=>i.yOY,getAllRelationsToAddAndEdit:()=>i.Z$v,getAllRelationsToSave:()=>i.sd8,getAllUsersForTenant:()=>i.kz_,getAnalyticsAttributeTypesTree:()=>i.H_U,getAnalyticsAttributesList:()=>i.t9e,getAssigneeForTask:()=>i.j2$,getAttrDataTypeDefinition:()=>i.PFL,getAttrTypeForFacet:()=>i.aJ3,getAttrTypeLookupCode:()=>i.To9,getAttributeErrorByTypeUri:()=>i.wuX,getAttributeOwnError:()=>i.ADq,getAttributePagerActiveErrors:()=>i.UUb,getAttributePagerActiveTypeErrorMessage:()=>i.tQX,getAttributeSource:()=>i.xy8,getAttributeTypeSubAttributes:()=>i.EUG,getAttributeTypeUriByValueUri:()=>i.AFK,getAttributeTypesHierarchyByUri:()=>i.X3M,getAttributeTypesTree:()=>i.WN0,getAttributeValue:()=>i.kDl,getAttributeValuePath:()=>i.uDV,getAttributeValuesByPath:()=>i.IhQ,getAttributeValuesByPathWithOvFlag:()=>i.pfb,getAttributeValuesByPathWithUri:()=>i.mJV,getAttributeValuesUris:()=>i.R$r,getAttributesForMatchRules:()=>i.w80,getAttributesList:()=>i.Pfu,getAttributesListForEditMode:()=>i.Gtj,getAttributesListForReadMode:()=>i.fyF,getAttributesTreeFromAttributes:()=>i.kkq,getAuthoringItemsFromLayoutByEntityType:()=>i.BAt,getBaseUri:()=>i.u5q,getBulkMatches:()=>i.naP,getBusinessCardAttributes:()=>i.O$n,getBusinessCardAttributesText:()=>i.ptG,getCachedActiveErrorsForAttributesPager:()=>i.b7z,getChartItemColor:()=>i.f4_,getCleanseAttributes:()=>i.goE,getCleanseType:()=>i.Xts,getColorForId:()=>i.uap,getComment:()=>i.d7q,getComments:()=>i.liG,getCommentsCount:()=>i.$oF,getConnectionEntityUriPath:()=>i.avf,getConnectionRelationAttributesPath:()=>i.DiQ,getConnectionRelationDirectionPath:()=>i.cfX,getConnectionRelationEndDatePath:()=>i.vD3,getConnectionRelationObjectPath:()=>i.Qrb,getConnectionRelationStartDatePath:()=>i.EJQ,getConnectionRelationTypePath:()=>i.HWy,getConnectionRelationUriForLink:()=>i.gjS,getConnectionRelationUriPath:()=>i.y6v,getConsoleApps:()=>i.JUW,getContributorColor:()=>i.GtP,getCreatableAttributeTypes:()=>i._kX,getCreatableOrReadableAttributeTypes:()=>i.u1e,getCrosswalkAttributes:()=>i.sJj,getCrosswalkColor:()=>i.CJp,getCrosswalkId:()=>i.uKF,getCrosswalkTree:()=>i.wo0,getCrosswalkType:()=>i.s5,getCrosswalksTypes:()=>i.cwx,getCustomerTenantInfo:()=>i.Y6b,getDQChartsData:()=>i.TTx,getDQDataGroupBySource:()=>i.g51,getDTSubscriptions:()=>i.UtR,getDVF:()=>i.HaQ,getDataChangeRequest:()=>i.E6I,getDataTenantEntity:()=>i.Won,getDataTenantEntitySecondaryLabel:()=>i.vTU,getDataTenantEntityUri:()=>i.Nsy,getDataTenantFromCrosswalks:()=>i.KMQ,getDataTenantFromEntityUri:()=>i.Do$,getDataTenantSpecialAttributeFieldName:()=>i.CSV,getDataTenantsInfo:()=>i.TMe,getDataTypeDefinitionForFilterValue:()=>i.l1V,getDateRangeByDatePeriod:()=>i.RHh,getDateRangeByValue:()=>i.VQ1,getDateRangeOptions:()=>i.cGG,getDefaultRelationTypeObject:()=>i.z7d,getDefaultSurvivorshipStrategy:()=>i.Xaq,getDependentLookupEditorState:()=>i._2w,getDependentLookupStateForValueUri:()=>i.Sj8,getDependentLookups:()=>i.PJj,getDependentLookupsStructureNode:()=>i.me4,getDescendantEntityTypes:()=>i.k3T,getDirectionalLabelFromObject:()=>i.PjQ,getDraftsByViewId:()=>i.qjb,getDraftsForSaveByViewId:()=>i.UCC,getDtssEntityUrl:()=>i.s7l,getDvfColor:()=>i.jLA,getEditableAttributeTypeSubAttributes:()=>i.BoX,getEndObjectTypeUri:()=>i.GGR,getEndObjectUri:()=>i.j5q,getEntitiesByUris:()=>i.DnY,getEntitiesHierarchy:()=>i.RY5,getEntitiesMapForConnections:()=>i.Px$,getEntitiesMapForTransitiveMatches:()=>i.KPC,getEntitiesStats:()=>i.NIY,getEntity:()=>i.HvW,getEntityAttributesFromMetadata:()=>i.Fof,getEntityBySurvivorshipGroupUri:()=>i.BXy,getEntityColor:()=>i.fX,getEntityId:()=>i.BTI,getEntityImage:()=>i.uie,getEntityMatchRules:()=>i.q27,getEntityPreviousChange:()=>i.fAQ,getEntitySecondaryLabel:()=>i.XkT,getEntitySliceByCrosswalk:()=>i._Km,getEntityTimeSlice:()=>i.lrH,getEntityType:()=>i.nt9,getEntityTypeGraphIcon:()=>i.XH8,getEntityTypeImage:()=>i.XH2,getEntityTypeLabel:()=>i.jFi,getEntityTypeMatchAttributes:()=>i.qhs,getEntityUpdatedTime:()=>i.GBJ,getEntityUriForLink:()=>i.wwR,getEntityUriFromAttributeUri:()=>i.Uk3,getEntityUriFromConnection:()=>i.yV,getEntityUriFromDCRUri:()=>i.$Rg,getEntityUriFromMatchObject:()=>i.ev7,getErrorId:()=>i.iFp,getErrorMessage:()=>i.e$p,getErrorType:()=>i.PcX,getErrorUniqKey:()=>i.SpP,getFacetTitle:()=>i.R6_,getFacetTypeForAttrType:()=>i.CY1,getFacetedAttributeData:()=>i.Ajk,getFacetedAttributeDataWithSearchParams:()=>i.Yiz,getFacets:()=>i.FK9,getFileName:()=>i.UOo,getFilterOptionArity:()=>i.uug,getFilterOptionForFacet:()=>i.P$2,getFilterOptionLabel:()=>i.XS2,getFilterOptionsForDataTypeDefinition:()=>i.Hyb,getFilterOptionsForQueryBuilder:()=>i.d3Y,getFilterOptionsForRelationshipQueryBuilder:()=>i.Klp,getFilterValueForFacet:()=>i.WxZ,getFilterValueLabel:()=>i.Gzu,getFilteredEntities:()=>i.ZOr,getFilteredEntitiesFromDataTenant:()=>i.uqV,getFirstElementIfArray:()=>i.Pm4,getFirstLevelSearchUri:()=>i.hWO,getFontColor:()=>i.nHA,getFullObjectsHierarchy:()=>i.nVD,getGlobalContextValue:()=>i._tF,getGlobalFilterQuery:()=>i.jrj,getGlobalSearchRequestOptions:()=>i.nDj,getGraphSearchCount:()=>i.dED,getGraphSearchEntities:()=>i.P2h,getGraphType:()=>i.jrr,getGraphTypesForEntityType:()=>i.mmY,getGroupLabelByTypeUri:()=>i.T6O,getGroupTasksForTenant:()=>i.h6J,getGroupsFromSearchState:()=>i.hM2,getHash:()=>i.XR6,getHierarchyAncestors:()=>i.jmz,getHierarchyDescendants:()=>i.IHt,getHierarchyNodeEditorActiveError:()=>i.NZI,getHistoricUris:()=>i.wdF,getHistoryAppearanceBySpecialAttributeValue:()=>i.YNv,getHistoryAppearanceByUri:()=>i.IFm,getHistoryAttributeClassName:()=>i.o_F,getHistoryWithTotal:()=>i.kgP,getHops:()=>i.ZYI,getImageAttributeOvPreviewUrl:()=>i.QXK,getImageAttributeOvThumbnailUrl:()=>i.efz,getImageAttributeOvUrl:()=>i.Q5d,getImageAttributeThumbnailUrl:()=>i.Ysv,getInOutRelationTypesForEntityTypeUri:()=>i.UWq,getInOutRelationUri:()=>i.qt9,getInOutRelations:()=>i.ocC,getInheritancePath:()=>i.io3,getInitialConnection:()=>i.XS1,getInitialConnectionTempEntity:()=>i.IK$,getInteractionAttributesFromMetadata:()=>i.Sbt,getInteractionType:()=>i.roS,getInteractionTypesForEntityType:()=>i.Ww1,getInteractions:()=>i.QaS,getIntervalUnitLabel:()=>i.wsP,getInvalidConnections:()=>i.EC$,getKeywordFromOldSearchState:()=>i.ERZ,getKeywordFromSearchState:()=>i.CL1,getLabel:()=>i.idV,getLastUriPart:()=>i.nIW,getLocaleFormat:()=>i.x7Y,getLookupCodesFromFacets:()=>i.fjE,getLookupLabel:()=>i.sG0,getLookups:()=>i.tV7,getMapSearchLabel:()=>i.g8o,getMapSearchValues:()=>i.Qy,getMatchGroupLabelsForFacet:()=>i.t2P,getMatchGroups:()=>i.KbW,getMatchRuleLabel:()=>i.wId,getMatchRuleSummary:()=>i.TAC,getMatchRules:()=>i.LS0,getMatchesForDataTenantEntity:()=>i.bFH,getMatchesFromDataTenants:()=>i.Rgl,getMaxItemWidth:()=>i.fW1,getMembersNameForType:()=>i.W5V,getMlDqData:()=>i.GFW,getNotAppliedTreeCommands:()=>i.Ywp,getNotMatch:()=>i.pg,getNotMatchesFromDataTenants:()=>i.WSA,getNumberFormat:()=>i.ffJ,getNumberFormatForLocale:()=>i.gEI,getOldRangeFacetValues:()=>i.fed,getOvAttributeValuesByPath:()=>i.tT_,getOvAttributeValuesByPathWithOvFlag:()=>i.BgZ,getOvAttributeValuesByPathWithUri:()=>i.xIV,getPagedEntity:()=>i.KbL,getParentUri:()=>i.JBA,getPathByEntityUri:()=>i.aNC,getPathsTree:()=>i.RFJ,getPathsWithTempUri:()=>i.Zeh,getPayloadForNodeApplyEditing:()=>i.OT5,getPinnedAttributesForUser:()=>i.mC3,getPivotingLabel:()=>i.kR6,getPotentialMatchesColor:()=>i.gFw,getPotentialMatchesObjectIdsForCollaboration:()=>i.NVY,getPreparedAuthoringItems:()=>i.iYu,getProfileActivities:()=>i.k6v,getProfileActivitiesTotal:()=>i.FEC,getProfileAttributeConfigPermissionsChecker:()=>i.PkA,getProfileBandObjectIdsForCollaboration:()=>i.L5S,getProfileEntityWithHistoryDiff:()=>i.Ob5,getProfileEntityWithoutHistoryDiff:()=>i.KUV,getProfileObjectIdsForCollaboration:()=>i.dvH,getProfileViewsIdsByTypes:()=>i.V3i,getPropWithInheritance:()=>i.VD3,getRangeOptionLabel:()=>i.mm2,getRdmTenants:()=>i.rou,getReadableAnalyticsAttributesList:()=>i._Zp,getReadableAttributeTypes:()=>i.izH,getReadableAttributesList:()=>i.DK$,getRecentSearches:()=>i.KMp,getReferencedAttrTypeUrisFromAttrType:()=>i.c31,getReferencedEntityActiveError:()=>i.mbo,getReferencedEntityAttrTypesUris:()=>i.gT8,getReferencedEntityFromAttrValue:()=>i.CZ8,getReferencedEntityTypeUri:()=>i.uGi,getReferencedEntityTypeUriFromAttrType:()=>i.Poc,getReferencedEntityTypeUriFromAttrValue:()=>i._9k,getReferencedEntityUri:()=>i.ZTM,getReferencedEntityUriFromAttrValue:()=>i.bwT,getReferencedRelationAttrTypesUris:()=>i.tF$,getReferencedRelationFromAttrValue:()=>i.o96,getReferencedRelationUriFromAttrValue:()=>i.M4S,getRelation:()=>i._vs,getRelationAttributesFromConnection:()=>i.Ff,getRelationAttributesList:()=>i.xF8,getRelationCrosswalks:()=>i.PUO,getRelationDirectionFromConnection:()=>i.CNu,getRelationEditorActiveError:()=>i.ATu,getRelationEntityTypesUris:()=>i.j1S,getRelationObjectFromConnection:()=>i.X1R,getRelationToAddByViewId:()=>i.GWB,getRelationToAddPath:()=>i.VFB,getRelationType:()=>i.V3K,getRelationTypeLabelFromMetadata:()=>i.Lmx,getRelationTypePropWithInheritance:()=>i.oSN,getRelationTypeUriFromAttrType:()=>i.ZaZ,getRelationUriFromConnection:()=>i.w1L,getRelationsForDataTenantEntity:()=>i.n_1,getRelationsForEntity:()=>i.N6e,getRelationsToEditByViewId:()=>i.IwQ,getRelationsToEditPath:()=>i.GWs,getRelationshipTypeUrisFromGraphType:()=>i.SxO,getRelationshipsObjectIdsForCollaboration:()=>i.w3p,getRequestErrorMessage:()=>i.xU7,getRequestErrorStatusCode:()=>i.hAq,getRequiredAttributeTypes:()=>i.Y_p,getRequiredAttributeTypesByTypeUri:()=>i.$k6,getResolvedLookupLabel:()=>i.Gdl,getResolvedLookupValue:()=>i.U6P,getResolvedLookupsForFacet:()=>i.OwB,getRestrictedObjectsHierarchy:()=>i.hTh,getRoleLabel:()=>i.xqc,getRolesForEntityType:()=>i.JvE,getRootFieldName:()=>i.i29,getRulesConfig:()=>i.dzT,getSavedSearch:()=>i.uPS,getSavedSearches:()=>i.cZV,getSearchGroupAttributeEntityTypeUri:()=>i.n3B,getSearchGroupAttributeLabel:()=>i.e6O,getSearchLink:()=>i.s7j,getSearchLinkState:()=>i.j$Q,getSearchOptions:()=>i.$op,getSingleAttributeEntity:()=>i.PeS,getSourceColor:()=>i.kW2,getSourceSystemLabel:()=>i.tH7,getSpecialAttrTypeByFieldName:()=>i.Yxg,getSpecialAttributesPresentation:()=>i.bOT,getStartObjectTypeUri:()=>i.MaZ,getStartObjectUri:()=>i.nqN,getStringifiedSearchOptions:()=>i.$wt,getSuitableEntityTypeUrisForRelationTypes:()=>i.jWj,getSurvivorshipStrategy:()=>i.o_J,getTaskById:()=>i.yW4,getTasksForEntity:()=>i.uT0,getTasksForTenant:()=>i.C82,getTempRelations:()=>i._we,getTenantIconColor:()=>i.bsH,getTenantName:()=>i.u9Z,getTenantPermissions:()=>i.LCU,getTotalFromDataTenant:()=>i.J$m,getTotals:()=>i.j_Q,getTotalsForQuery:()=>i.OaI,getTransitiveMatchRules:()=>i.wB1,getTransitiveMatches:()=>i.SP6,getTransitiveMatchesForEntity:()=>i.ZYr,getTree:()=>i.IMU,getUIConfiguration:()=>i.FoU,getUnresolvedLookupsList:()=>i.DVz,getUnresolvedLookupsListFromSearchGroups:()=>i.mxe,getUrisForSaving:()=>i.FHr,getUserPreference:()=>i.D1g,getValidatedSortField:()=>i.VO3,getValidatedSortOrder:()=>i.de5,getViewIdByRelationUri:()=>i.dbt,gif2Url:()=>i.Uw1,hasAttributeDescendantsWithErrors:()=>i.J6q,hasCleanseStatus:()=>i.Jjo,hasCleanseTypeInEntityType:()=>i.JIi,hasDependentLookupAttributes:()=>i.XCe,hasEntityInTree:()=>i.fbl,hasMatchRulesWithoutML:()=>i.Ir,hasMlMatchRule:()=>i.XQO,hasNonImportedRelations:()=>i.QXb,historyPalettes:()=>i.zXF,ignoreAttribute:()=>i.P8_,ignoreSuggestedRelation:()=>i.iiD,importDTConnections:()=>i.MOC,importEntityFromDataTenant:()=>i.WF,inOutRelationsDeduplicator:()=>i.xE1,initDependentLookups:()=>i.idW,initializeWebWorker:()=>i.QWZ,insertDefaultImageByAttrUri:()=>i.YL3,intl:()=>i.NW9,isAbortError:()=>i.D_E,isActiveObject:()=>i.Fn9,isActivenessAttrType:()=>i.j2U,isAllowedReferencedSubAttribute:()=>i.MpE,isAnalyticAttribute:()=>i.kQw,isAndOperator:()=>i.mfm,isAttributeSearchUri:()=>i.vZp,isAttributeTypeError:()=>i.Wah,isAttributeTypeInDependentLookups:()=>i.E8K,isAttributeValueLink:()=>i.VSb,isAutoGeneratedAttribute:()=>i.vr_,isAutopopulationEnabled:()=>i.Vmh,isAvailableAttributeTypeForProfile:()=>i.FgW,isAvailableEntityType:()=>i.oDv,isAvailableEntityTypeForDataTenant:()=>i.fGG,isAvailableEntityTypeUri:()=>i.kuw,isAvailableRelationBetweenEntities:()=>i.eHk,isAvailableRelationType:()=>i.Tt2,isAvailableRelationTypeUri:()=>i.pQZ,isAvailableTenantForEntityType:()=>i.oZ7,isBooleanType:()=>i.T6Y,isChangeRequestUri:()=>i.VRd,isCompatibleFilters:()=>i._26,isComplexAttribute:()=>i.YkM,isCompositeFilterOption:()=>i.J6y,isCountFilterOption:()=>i.njU,isCreatableEntityType:()=>i.TBP,isCriticalError:()=>i.IT0,isCrosswalkDisabled:()=>i.x_,isDCRUri:()=>i.FP6,isDataTenantEntity:()=>i.biM,isDataTenantEntityUri:()=>i.TMl,isDateFilterOption:()=>i.Vkd,isDateRangeFacet:()=>i.WiY,isDateRangeFilterOption:()=>i._zi,isDateRangeValid:()=>i.RZp,isDateRangeValue:()=>i.J6D,isDateType:()=>i.Lt4,isDependentLookupAttrType:()=>i.QEi,isEditMode:()=>i.whI,isEditableMode:()=>i.KIu,isEmail:()=>i.JhM,isEmailType:()=>i.C_0,isEmptyEntity:()=>i.lzc,isEmptySearchGroup:()=>i.qIF,isEmptyValue:()=>i.O27,isEntityImportedToCT:()=>i.aBi,isEntitySpecialAttrType:()=>i.xOX,isEntityTypeUri:()=>i.EdS,isEntityUri:()=>i.WgC,isEnumAttrType:()=>i.eEv,isFileFilterOption:()=>i.A4t,isFirstLevelAttributeUri:()=>i.YOQ,isFloatingType:()=>i.Wos,isFreemiumAdmin:()=>i.jWr,isImage:()=>i.Or$,isInHierarchy:()=>i.lhE,isLookupAttrType:()=>i.CwH,isMatchRuleAttrType:()=>i.pzC,isMultiValueOption:()=>i.ymH,isNested:()=>i.QZu,isNumericRangeFacet:()=>i.rYH,isNumericType:()=>i.FVt,isObject:()=>i.Kn2,isOrOperator:()=>i.jgw,isOutdatedDateRangeValue:()=>i.Qgr,isOv:()=>i.OXP,isPartOfErrorAttributeTypeUri:()=>i.nsY,isPartOfErrorParentUri:()=>i.vyG,isRDMLookupAttrType:()=>i.lS4,isRangeFacet:()=>i.g5f,isRangeFilterOption:()=>i.fp6,isReadableAttribute:()=>i.Uty,isReference:()=>i.YkG,isReferenceAttributeValue:()=>i.ZRh,isRelationAttrType:()=>i.xdS,isRelationCommandForUri:()=>i.kMF,isRelationTypeUri:()=>i.$NE,isRelationUri:()=>i.bC9,isRelationWithEntityType:()=>i.Ian,isReltioCrosswalk:()=>i.KVV,isRequired:()=>i.q9e,isResolvedLookupCode:()=>i.iIf,isRoleAttrType:()=>i.ian,isSSNType:()=>i.m6e,isSourceSystemAttrType:()=>i.OFd,isSpecialAttribute:()=>i.kqr,isSuggestMode:()=>i.fnZ,isTagAttrType:()=>i.VFZ,isTempUri:()=>i.ZiX,isTimestampBasedType:()=>i.j5n,isToday:()=>i.zkt,isTransitiveMatch:()=>i.Pcm,isTypeAttrType:()=>i.QDV,isTypeFacet:()=>i.M5u,isTypeSearchGroupAttribute:()=>i.laD,isTypeaheadAttrType:()=>i.mtq,isUnresolvedLookupCode:()=>i.CtB,isUnverifiedCleanse:()=>i.S8l,isUrl:()=>i.CBv,isUrlType:()=>i.I0t,isValidRelationToAdd:()=>i.u1G,isValidSearchGroup:()=>i.gk1,isValidSearchGroupAttribute:()=>i.Bgb,isViewMode:()=>i.uzs,joinFilterStrings:()=>i.v0l,loadMetadata:()=>i.Zqp,localizeMetadata:()=>i.j0k,looseEquals:()=>i.l22,makeAttrTypeUri:()=>i.tCm,makeCompositeFilterOption:()=>i.gmx,mapFilterValue:()=>i.mOr,mapSearchTypeToFieldName:()=>i.TwZ,mapTree:()=>i.GyU,markAsNotMatch:()=>i.zGm,markDataTenantEntityAsNotMatch:()=>i.bMg,markEdited:()=>i.EyD,markIgnored:()=>i.FQA,markMixedEntitiesAsNotMatches:()=>i.fZN,markNew:()=>i.xsF,markRemoved:()=>i.Lxg,markSavedSearchAsFavorite:()=>i.O3l,markSavedSearchAsPublic:()=>i.Wni,marksJSONReplacer:()=>i.wRx,memoizeWith:()=>i.b5p,mergeCustomerTenantEntityWithMixedEntities:()=>i.OxG,mergeDataEntityWithCustomerEntity:()=>i.Jwg,mergeDataTenantEntity:()=>i.uJQ,mergeLookupsLists:()=>i.qWg,mergeSameEntities:()=>i.i96,multiValueFilter:()=>i.NPd,normalizeMetadata:()=>i.MrZ,omitMarks:()=>i.zhn,operatorOptions:()=>i.G8q,optimizeCommands:()=>i.Jct,orderByArrayComparator:()=>i.A9Y,parseAdvancedSearch:()=>i.Y5F,parseAuthoringDraft:()=>i.iHq,parseBoolean:()=>i.gxP,parseCompositeFilterOption:()=>i.c$P,parseCompositeFilters:()=>i.M7o,parseMetadata:()=>i.BBN,parseRelationsConfig:()=>i.fS6,parseTimestamp:()=>i.ZBU,partitionByMlMatch:()=>i.UkJ,pinAttribute:()=>i.xkv,populateDependentLookupsFromEntity:()=>i.z$M,postGraphExport:()=>i.KAm,prepareAttrDiff:()=>i.lCl,prepareCleansedAttributes:()=>i.tuk,prepareConnectionsForValidation:()=>i.D9R,prepareEntityForValidation:()=>i.rkF,processDefinitions:()=>i.IU6,promiseAllSettled:()=>i.RGr,promisifyCallback:()=>i.aYu,promisifyProvider:()=>i.ije,rateRelation:()=>i.Buf,rawRequest:()=>i.YLu,referencedEntityAttributeTypesSelectionStrategy:()=>i.ct9,reinstateDataTenantEntityMatch:()=>i.XkY,reinstateMatch:()=>i.T5R,reinstateMixedEntitiesMatches:()=>i.uQS,relationEditorAttributeTypesSelectionStrategy:()=>i.wcJ,removeAttribute:()=>i.d$I,removeDtssPrefixFromEntityUri:()=>i.rSp,removeEntity:()=>i.Sx,removeEntityAttribute:()=>i.Ilm,removeEntityRelatedAttributes:()=>i.Y5k,removeEntitySpecialAttribute:()=>i.Ki6,removeRelation:()=>i.VGk,removeUnsupportedLayoutItems:()=>i.sFD,removeValuesFromDependentLookups:()=>i.eWN,replacePlaceholdersInQuery:()=>i.dWE,replaceTempUriInCommands:()=>i.Lkd,replaceTemporaryRefEntityURI:()=>i.aDL,requestForDataTenant:()=>i.yaA,resetUserPreference:()=>i.lOh,resolve:()=>i.DBr,resolveLookupsList:()=>i.hK$,revertPresentationStrategyForValue:()=>i.uKH,runTaskAction:()=>i.TZ_,sanitizeTypesInSearchGroups:()=>i.CMB,saveEntity:()=>i.FU8,saveTemporaryEntities:()=>i.J$p,saveTemporaryEntity:()=>i.b5s,searchUriToAttrUri:()=>i.h2W,sendRequestFromCustomSandbox:()=>i.SL_,sendWorkflowRequest:()=>i.oUH,setAsMatch:()=>i.ck9,setGlobalContextValue:()=>i.RAb,setLookupStrategy:()=>i.nL,setMinHeightForDashboardWidgets:()=>i.k$p,setRequestProvider:()=>i.Xs0,setUserPreference:()=>i.u7I,shiftDownOperators:()=>i.rxg,shiftUpOperators:()=>i.bji,shouldUseValidationService:()=>i.oCZ,sortTreeChildren:()=>i.MjG,splitErrorsBySeverity:()=>i.sqb,startProcessFromQuery:()=>i.FuV,startProcessInstance:()=>i.$ju,startProcessInstanceByPairs:()=>i.t6d,svg2Url:()=>i.m5F,syncAttributeTypeWithDependentLookups:()=>i.sx,theme:()=>i.rSc,typeAheadSearch:()=>i.U10,unmergeContributor:()=>i.L8n,unrateRelation:()=>i.$ZW,unsubscribeEntityFromDataTenantEntity:()=>i.R9X,updateActivenessAttribute:()=>i.rj2,updateAssigneeForTask:()=>i._C4,updateAttribute:()=>i.tCj,updateComment:()=>i.uAg,updateConnectionEntityLabel:()=>i.wx9,updateDueDateForTask:()=>i.KF3,updatePriorityForTask:()=>i.ax9,updateRelation:()=>i.HH7,updateReply:()=>i.ufV,updateSavedSearch:()=>i._6y,updateTreesWithNewEntity:()=>i.XTh,uploadFileForSearch:()=>i.AJo,uploadImage:()=>i.Ixr,userPreferencesComparator:()=>i.oss,utils:()=>i.P6Y,validateComplexAttribute:()=>i.q5j,validateConnection:()=>i.Bd_,validateConnectionRelation:()=>i.xkB,validateEntity:()=>i.W41,validateEntityChanges:()=>i.WkI,validateEntityLocally:()=>i.sSE,validateFilter:()=>i.GMd,validateFilterValue:()=>i.jtL,validateHierarchyConnection:()=>i.Bxm,validateMetadata:()=>i.zWh,validateRelations:()=>i.AlY,validateRequiredAttributes:()=>i.FVh,walkTree:()=>i.inb,withDtssPotentialItems:()=>i.U_T,wrapInArray:()=>i.FTe,wrapInArrayIfNeeded:()=>i.VGB,wrapInBrackets:()=>i.tM8,wrapInDoubleQuotes:()=>i.Wfe,wrapInQuotes:()=>i.Ls5,wrapQueryWithBrackets:()=>i.$bd});var i=r(42374)}}]);
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[2066],{48030:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(24328),a=r(50914),l=r(42374);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){o(e,t,r[t])}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=e=>{let{rowIndex:t,columnData:r,cellIndex:n}=e;return`${r.id}[${t}][${n}]`},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;const[t,r]=(0,n.useState)({}),o=(0,n.useRef)({}),c=(0,n.useCallback)((0,l.DsO)((()=>r(i({},o.current)))),[]),u=(0,n.useCallback)((()=>{o.current={}}),[]),p=(0,n.useCallback)((r=>{const n=e(r);return t[n]}),[e,t]),d=(0,n.useCallback)((0,a.curry)(((t,r)=>{const n=e(t);o.current[n]!==r&&(o.current[n]=r,c())})),[c,e]);return{getDynamicRowCellHeight:p,changeRowCellHeight:d,clearHeightsCache:u}}},96253:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(24328),a=r.n(n),l=r(44443),i=r(55962);const o=e=>{let{onChangeHeight:t,children:r}=e,o=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 s=(0,n.useRef)(),{rowValue:c,rowIndex:u,columnData:p,cellIndex:d}=o,m=t({rowIndex:u,cellIndex:d,columnData:p,rowValue:c}),b=()=>s.current&&m(s.current.clientHeight);return(0,i.D)(b,[c.rawValue]),a().createElement("div",{ref:s},a().createElement(l.Z,{handleHeight:!0,onResize:b}),r)}},94059:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),a=r.n(n),l=r(2507),i=r.n(l),o=r(38677),s=r(69089),c=r(79811),u=r(290),p=r(75779);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"))))}},90143:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(24328),a=r.n(n),l=r(23883);const i=(0,r(72342).makeStyles)((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.Z,o({},e,{classes:t,arrow:!0}))}},67275:(e,t,r)=>{r.d(t,{n:()=>f});var n=r(24328),a=r.n(n),l=r(71153),i=r.n(l),o=r(42374),s=r(79386),c=r(76368),u=r(72316),p=r(1824),d=r(62901),m=r(36852),b=r(75647);const y=(0,r(72342).makeStyles)({profileBandNavigation:{marginBottom:"10px"},comments:{display:"flex",justifyContent:"flex-end"}}),f=(0,n.memo)((e=>{let{entity:t,className:r,historySlice:l}=e;const f=y(),g=(0,n.useMemo)((()=>(0,o.L5S)(t)),[t]),v=(0,m.C)({objectIds:g}),h=(0,o.wwR)(t);return a().createElement(p.e,{collaboration:v},a().createElement(s.Z,{className:i()(r,d.U),entity:(null==l?void 0:l.aEntity)||t},l?a().createElement(b.Z,null):a().createElement(a().Fragment,null,a().createElement(c.a,{className:f.profileBandNavigation}),a().createElement(u.Z,{className:f.comments,uri:h,relatedObjectUris:(0,o.wp9)(o.q7e.ENTITY,{entityUri:h}),objectType:o.q7e.ENTITY}))))}));f.displayName="ScreenProfileBand"},2002:(e,t,r)=>{r.d(t,{Z:()=>ie});var n=r(24328),a=r.n(n),l=r(42374),i=r(35039),o=r(31992),s=r(6163),c=r(29754),u=r(50985),p=r(71153),d=r.n(p),m=r(2507),b=r.n(m),y=r(67586),f=r(98538),g=r(47019),v=r(50914),h=r(48819),E=r(12980),w=r(72342);const x=(0,w.makeStyles)((()=>({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 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 k=[l.oS0.TYPE_TEXT,l.oS0.TYPE_BLOB],C=e=>{let{attributeType:t,attributeValue:r,color:i,containerRef:o,onClose:s,onEdit:c,isTemporary:u}=e;const p=x({color:i,containerWidth:o.current?o.current.getBoundingClientRect().width:0}),m=(0,l.PFL)(t),b=(0,E.AG)(r,m),[y,f]=(0,n.useState)(b),w=!(0,v.isNil)(t.defaultValue)&&u,C={className:p.textField,InputProps:{disableUnderline:!0,classes:{root:p.input,multiline:p.inputMultiline}},fullWidth:!0,autoFocus:!0},T=()=>{const e=!(0,v.isNil)(y)&&(0,E.Ho)(t,y);if(!(0,v.isNil)(y)&&!(0,v.equals)(y,b)||w){const n=(0,l.CwH)(t)?{value:e.value,lookupCode:e.lookupCode}:{value:""===y&&(0,l.FVt)(m.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){O(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()(p.paper,{[p.booleanEditor]:(0,l.T6Y)(m.type),[p.timestampEditor]:(0,l.j5n)(m.type)}),root:p.popoverRoot},onKeyUp:e=>{"Enter"!==e.key||k.includes(m.type)?"Escape"===e.key&&s():T()},onBackdropClick:T},a().createElement(h.Z,{dataTypeDefinition:m,fieldName:(0,l.Tde)(t.uri),onChange:f,TextFieldProps:C,value:y}))};var T=r(39475),S=r(20888),A=r(53203),j=r(95341),Z=r(79312),I=r(78223),N=r(10918);const P=(0,w.makeStyles)((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"}}))),D=(0,I.Z)(j.Z),V=e=>{let{styles:t,icon:r,text:n}=e;return a().createElement(a().Fragment,null,r,a().createElement(Z.Z,{classes:{root:t.menuText}},n))},R=(0,n.forwardRef)(((e,t)=>{let{item:r,onMenuClose:n=(()=>{})}=e;const l=P(),{disabled:i,text:o,tooltip:s,onClick:c,id:u="",icon:p,crosswalk:d,color:m}=r;return d?a().createElement(N.Z,{className:l.sourceItem,color:m,crosswalk:d,focusable:!0}):a().createElement(D,{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(V,{icon:p,text:o,styles:l}))}));R.displayName="CrosswalkMenuItem";const U=R;var M=r(2996),W=r(23759);function H(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const z=(0,w.makeStyles)((()=>({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){H(e,t,r[t])}))}return e}({minHeight:"28px",wordBreak:"break-word"},"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",opacity:r?1:.38,transition:"opacity 0.3s",position:"relative"})},attributeValue:{marginLeft:"16px",padding:"6px 0",lineHeight:"14px",width:"calc(100% - 71px)"},actions:{display:"flex",width:"71px",justifyContent:"flex-end",marginRight:"4px"}}))),L=e=>{let{className:t,dataReltioId:r,attributeType:i=null,attributeValue:o,crosswalk:p,disableEdit:m,disableDelete:g,onIgnore:v,onEdit:h,onPin:E,onDelete:w,isEmpty:x}=e;const{isReadingMode:O,isEditingMode:k,isHovered:j,onMouseEnter:Z,onMouseLeave:I,setReadingMode:N,setEditingMode:P}=(0,M.p)(),D=(0,n.useRef)(),V=(0,l.nIW)(o.uri),R=(0,l.x_)(p),H=!i.system&&!R,L=H&&!m&&(0,l.Z5t)(l.ARY.Editing,i),B=H&&!g&&(0,l.Edd)(l.ARY.Editing,i),F=(0,l.ZiX)(o.uri),Y=(0,l.mqZ)(l.BDP.UPDATE,i)&&!m&&H,_=!F&&(!O&&Y||o.pin),G=!F&&(!O&&Y||o.ignored);(0,n.useEffect)((()=>{F&&!x&&P()}),[x]);const q=(0,W.nX)(p),{isHighlighted:X,isDimmed:$,highlightCrosswalk:Q,removeHighlight:J}=(0,W.pu)(p),K=z({variant:R?"outlined":"filled",opaque:!$,fullyColored:X,color:$?"rgba(0, 0, 0, 0.12)":q}),ee=[{crosswalk:p,color:q},{disabled:!L,text:b().text("Edit"),icon:a().createElement(c.Z,null),tooltip:L?null:b().text("You don't have permissions to edit"),onClick:()=>P(),id:"edit"},{disabled:!B,text:b().text("Delete"),icon:a().createElement(s.Z,null),tooltip:B?null:b().text("You don't have permissions to delete"),onClick:()=>w({attributeType:i,attributeValue:o,crosswalks:[p]}),id:"delete"}],te=()=>{J(),N()};return a().createElement("div",{ref:D,className:d()(t,K.root),onMouseEnter:()=>{Q(),Z()},onMouseLeave:()=>{J(),I()},"data-reltio-id":r},a().createElement("div",{className:K.attributeValue},a().createElement(y.Z,{value:(0,l.kDl)(o),dataTypeDefinition:(0,l.PFL)(i)})),a().createElement("div",{className:K.actions},_&&a().createElement(A.Z,{isPinned:o.pin,onClick:()=>E({attributeValue:o}),disabled:!Y}),G&&a().createElement(S.Z,{isIgnored:o.ignored,onClick:()=>v({attributeValue:o}),disabled:!Y}),j&&!(0,l.vr_)(i)&&a().createElement(f.Z,{MenuItemRenderer:U,menuId:`simple-attribute-additional-actions-${V}`,buttonComponent:T.k,buttonProps:{icon:u.Z,size:"XS",tooltipTitle:b().text("More actions")},onMenuClose:te,menuItems:ee})),k&&a().createElement(C,{attributeType:i,attributeValue:o,color:q,onClose:te,onEdit:e=>h({attributeType:i,attributeValue:e,crosswalk:p}),containerRef:D,isTemporary:F}))};var B=r(13896);const F=(0,w.makeStyles)((()=>({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 Y(){return Y=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},Y.apply(this,arguments)}const _=e=>{let{attributeValues:t,attributeType:r,parentUri:n,disableEdit:i,crosswalksMap:o,onAdd:s,emptyTempAttributeUris: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,["attributeValues","attributeType","parentUri","disableEdit","crosswalksMap","onAdd","emptyTempAttributeUris"]);const p=F(),[{isDragItemOver:d},m]=(0,B.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.ARY.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 y=0;return a().createElement("div",{ref:m,className:p.simpleAttributesWrapper,"data-reltio-id":"simple-attributes-wrapper"},t.map((e=>{var t;return null===(t=o[e.uri])||void 0===t?void 0:t.map((t=>a().createElement(L,Y({key:e.uri+t.uri,attributeType:r,attributeValue:e,crosswalk:t,disableEdit:i,isEmpty:c.includes(e.uri),dataReltioId:"value-index-"+y++},u))))})),d&&a().createElement("div",{className:p.dropIndicator},b().text("Drop here")))};var G=r(73149),q=r(38677);function X(){return X=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},X.apply(this,arguments)}const $=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.ARY.Editing,n);return 0===r.length&&u?a().createElement(q.Z,{variant:"text",color:"primary",onClick:()=>i({parentUri:o,attributeType:n,index:0})},b().text("Create attribute")):a().createElement("div",{className:t},r.map((e=>a().createElement(G.Z,X({key:e.uri,attributeValue:e,attributeType:n,onAdd:i,disableEdit:s},c)))))};var Q=r(49402);function J(){return J=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},J.apply(this,arguments)}const K=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(Q.Z,J({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,w.makeStyles)((()=>({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,b]=(0,n.useState)(c),y=(0,v.propOr)(r.length,"totalValues",s),f=c<y,g=f&&m<y,h=f&&m>=y,E=r.slice(0,m),w=y-m;return a().createElement("div",{className:d.wrapper},(e=>{switch(t.type){case l.oS0.TYPE_NESTED:return a().createElement($,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(K,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(_,ae({attributeValues:e,attributeType:t},p))}})(E),g&&a().createElement(i.Z,{moreNumber:Math.min(c,w),valueNumber:w,onClick:()=>{r.length<y&&u(),b(m+c)}}),h&&a().createElement(o.Z,{onClick:()=>{b(c)}}))}},86966:(e,t,r)=>{r.d(t,{Z:()=>D});var n=r(24328),a=r.n(n),l=r(42374),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 b=e=>{let{crosswalk:t,className:r}=e;const n=(0,s.nX)(t),i=(0,l.x_)(t),{isDimmed:o,highlightCrosswalk:p,removeHighlight:b}=(0,s.pu)(t),y=(0,m.y)({isOpaque:!o,color:o?"rgba(0, 0, 0, 0.12)":n,isDisabled:i});return a().createElement(u.Z,{title:a().createElement(c.Z,{crosswalk:t,color:n}),placement:"top"},a().createElement("div",{"data-reltio-id":"crosswalk-icon",className:d()(y.crosswalkIcon,r),onMouseEnter:()=>p(),onMouseLeave:()=>b()}))};var y=r(50914),f=r(85777),g=r(2002),v=r(14699),h=r(52239),E=r(72342);const w=(0,E.makeStyles)((e=>({title:{fontSize:"12px",lineHeight:"14px",paddingBottom:"4px",display:"inline-block",color:e.palette.text.secondary}})));function x(){return x=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},x.apply(this,arguments)}const O=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=w();return a().createElement(a().Fragment,null,t.filter(l.Uty).map((e=>a().createElement(h.Z,{key:e.uri,enabled:!0},a().createElement(v.Z,{className:i.title,label:e.label}),a().createElement(g.Z,x({attributeType:e,attributeValues:r[e.name],paging:(0,y.path)(["paging",e.uri],r)},n))))))};var k=r(53203),C=r(20888),T=r(39475),S=r(6163),A=r(2507),j=r.n(A);const Z=e=>{let{onClick:t}=e;return a().createElement(T.k,{icon:S.Z,tooltipTitle:j().text("Delete"),onClick:t,size:"XS",disableRipple:!0})};var I=r(55962),N=r(38361);const P=(0,E.makeStyles)((()=>({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"}}}))),D=e=>{let{attributeType:t,attributeValue:r,attributeTypesList:s,label:c,crosswalksMap:u,disableEdit:p,disableDelete:d,onPin:m,onIgnore:g,onDelete:v,onEdit:h,onAdd:E,emptyTempAttributeUris:w}=e;const x=P(),{isReadingMode:T,onMouseEnter:S,onMouseLeave:A}=(0,i.p)(),j=!p&&(0,l.Z5t)(l.ARY.Editing,t),D=!d&&(0,l.Edd)(l.ARY.Editing,t),V=(0,l.ZiX)(r.uri),R=!V&&(!T&&j||r.pin),U=!V&&(!T&&j||r.ignored),M=!T&&D,W=(0,N.Q)(r.uri),[H,z]=(0,n.useState)(W||V);(0,I.D)((()=>{W&&z(W)}),[W]);const L=(0,y.pipe)((0,y.pickBy)(((e,t)=>(0,l.sOy)(t,null==r?void 0:r.uri))),y.values,y.flatten,(0,y.uniqBy)((0,y.prop)("uri")))(u);return a().createElement(a().Fragment,null,a().createElement("div",{className:x.root,onMouseEnter:S,onMouseLeave:A},a().createElement(f.Z,{onClick:()=>z((e=>!e)),expanded:H}),a().createElement("span",null,c,L.map((e=>a().createElement(b,{key:(0,l.uKF)(e),crosswalk:e,className:x.crosswalkIcon})))),a().createElement(o.Z,null),a().createElement("div",{className:x.actions},R&&a().createElement(k.Z,{disabled:!j,isPinned:r.pin,onClick:()=>m({attributeValue:r})}),U&&a().createElement(C.Z,{disabled:!j,isIgnored:r.ignored,onClick:()=>g({attributeValue:r})}),M&&a().createElement(Z,{onClick:()=>v({attributeType:t,attributeValue:r,crosswalks:u[r.uri]})}))),H&&a().createElement(O,{attributeTypes:s,attributes:r.value,parentUri:r.uri,crosswalksMap:u,disableEdit:!j,disableDelete:!D,onPin:m,onIgnore:g,onDelete:v,onEdit:h,onAdd:E,emptyTempAttributeUris:w}))}},51557:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24328),a=r.n(n),l=r(42374),i=r(26729),o=r(86966);const s=(0,r(72342).makeStyles)((()=>({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(42374),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:()=>b});var n=r(24328),a=r.n(n),l=r(50914),i=r(42374),o=r(86966),s=r(35969),c=r(30357),u=r(98074),p=r(14596);const d=(0,r(72342).makeStyles)((e=>({relationshipLabel:{marginLeft:"4px",color:e.palette.text.primary}})));function m(){return m=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},m.apply(this,arguments)}const b=e=>{let{attributeValue:t,attributeType:r}=e,b=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 y=d(),{generateEntityUrl:f}=(0,n.useContext)(u.v),g=(0,p.AH)(),v=(0,p.Qh)(),h=a().createElement(s.x,null,a().createElement(c.Z,{href:f({uiPath:v,uri:(0,i.bwT)(t)})},(0,i.idV)(t.label),t.relationshipLabel&&a().createElement("span",{className:y.relationshipLabel},t.relationshipLabel))),E=(0,l.pipe)(i.tF$,(0,l.map)((e=>(0,i.zeJ)(g,e))),(0,l.reject)(l.isNil))(r);return a().createElement(o.Z,m({attributeValue:t,attributeType:r,attributeTypesList:E,label:h},b))}},35969:(e,t,r)=>{r.d(t,{x:()=>o});var n=r(24328),a=r.n(n),l=r(79312),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(2507),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(2507),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:()=>f});var n=r(24328),a=r.n(n),l=r(2507),i=r.n(l),o=r(71153),s=r.n(o),c=r(42374),u=r(26436),p=r(21210),d=r(23759),m=r(14596),b=r(39475),y=r(21934);const f=e=>{let{crosswalk:t,color:r,className:n,focusable:l=!1}=e;const{toggleCrosswalkFocus:o,isFocused:f}=(0,d.BF)(t),g=(0,y.y)({color:r,isFocused:f}),v=(0,m.AH)(),h=(0,c.tH7)(v,t.type);return a().createElement("div",{className:s()(g.sourceItem,n)},a().createElement(p.Z,{className:g.sourceIcon,sourceType:t.type}),a().createElement("div",{className:g.sourceInfo},a().createElement("div",null,a().createElement("span",{className:g.label},h),l&&a().createElement(b.k,{icon:u.Z,className:g.eyeIcon,size:"XXS",tooltipTitle:i().text("Focus"),onClick:()=>o()})),a().createElement("div",{className:g.crosswalkValue},t.value)))}},21934:(e,t,r)=>{r.d(t,{y:()=>a,q:()=>l});var n=r(72342);const a=(0,n.makeStyles)({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,isDisabled:n}=e;return{backgroundColor:n?"#fff":t,border:n?`2px solid ${t}`:null,height:"12px",width:"12px",boxSizing:"border-box",borderRadius:"30px",opacity:r?1:.38,transition:"opacity 0.3s"}}}),l=(0,n.makeStyles)((()=>({label:{fontSize:"13px",lineHeight:"15px",letterSpacing:"normal",marginLeft:"2px",marginRight:"8px"}})))},2996:(e,t,r)=>{r.d(t,{p:()=>i});var n=r(42374),a=r(24328),l=function(e){return e.READING="READING",e.HOVERED="HOVERED",e.EDITING="EDITING",e}(l||{});const i=()=>{const[e,t]=(0,a.useState)(null),r=e===l.READING,i=e===l.EDITING,o=e===l.HOVERED;(0,a.useEffect)((()=>{t(l.READING)}),[]);const s=(0,a.useCallback)((0,n.DsO)(t,50),[]),c=(0,a.useCallback)((()=>{i||s(l.HOVERED)}),[s,i]),u=(0,a.useCallback)((()=>{i||s(l.READING)}),[s,i]);return{setReadingMode:(0,a.useCallback)((()=>t(l.READING)),[t]),setEditingMode:(0,a.useCallback)((()=>t(l.EDITING)),[t]),onMouseLeave:u,onMouseEnter:c,isReadingMode:r,isEditingMode:i,isHovered:o}}},45226:(e,t,r)=>{r.d(t,{Z:()=>m});var n=r(42374),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,LabelRenderer:r,RightSlot:a}=e,i=p(e,["expanded","LabelRenderer","RightSlot"]);const{attributeType:c,values:u,valueContainerClassName:m}=i;switch(c.type){case n.oS0.TYPE_NESTED:case n.oS0.TYPE_REFERENCE:return d(s({expanded:t,LabelRenderer:r,RightSlot:a},i));case n.oS0.TYPE_IMAGE:return l().createElement("div",{className:m},l().createElement(o.Z,{attributeType:c,attributeValues:u,imageSize:{imageHeight:40,imageWidth:40,imageMargin:2}}));default:return d(s({},i))}}))},63309:(e,t,r)=>{r.d(t,{Z:()=>_e});var n=r(24328),a=r.n(n),l=r(71153),i=r.n(l),o=r(2507),s=r.n(o),c=r(42374),u=r(48030),p=r(80143),d=r(45108),m=r(17998),b=r(72342);const y=(0,b.makeStyles)((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:{position:"relative",padding:"15px 15px 0 15px","&:last-child":{paddingBottom:"15px"}},dragIndicator:{display:"none",position:"absolute",top:"15px",left:0,cursor:"grab"},dragIndicatorIcon:{fill:e.palette.text.secondary,width:"14px",height:"14px"},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}})));function f(){return f=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},f.apply(this,arguments)}const g=e=>{let{cell:t,CellValueRenderer:r,columnIndex:n,columnData:l,someRowIsDragging:o}=e,s=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","someRowIsDragging"]);const c=y(),u=0===n,p=!o||u;return a().createElement("div",{className:i()(c.rowCell,u&&c.coloredCell),"data-reltio-id":`column-name-${l.id}`},p&&a().createElement(a().Fragment,null,t.values.map(((e,t)=>a().createElement(r,f({key:t,value:e,someRowIsDragging:o},s))))))};var v=r(96253);function h(){return h=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},h.apply(this,arguments)}const E=e=>{let{changeRowCellHeight: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,["changeRowCellHeight"]);return r.isDragLayer?a().createElement(g,h({},r,{someRowIsDragging:!1})):a().createElement(v.Z,h({onChangeHeight:t},r),a().createElement(g,r))};var w=r(50914),x=r(92332);const O=e=>{const t=y();return a().createElement("div",{className:i()(t.headCell,t.coloredCell)},a().createElement(x.default,e),e.children)};var k=r(67283),C=r(30488),T=r(14596);const S=(0,b.makeStyles)({root:{marginBottom:"-6px"}}),A=(0,C.Z)((0,w.pick)(["parentUri","parentTypeUri","onAdd","selectedAttributeTypes","onSelectAttributeTypes"]))((e=>{let{parentTypeUri:t,parentUri:r,selectedAttributeTypes:n,onSelectAttributeTypes:l,onAdd:i}=e;const o=S(),u=(0,T.AH)(),p=[...u.entityTypes,...u.relationTypes||[]].find((0,w.propEq)("uri",t)),d=e=>!(null!=n&&n.find((0,w.propEq)("uri",e.uri))),m=(0,w.pipe)((0,w.propOr)([],"attributes"),(0,w.reject)((0,w.either)(c.YkG,c.Or$)),(0,w.filter)((0,w.either)(c.QZu,d)),(0,w.filter)((0,w.both)(c.Uty,(e=>(0,c.Vg3)({attributeType:e,mode:c.ARY.Editing})))))(p);return a().createElement("div",{className:o.root},a().createElement(k.Z,{label:s().text("Attribute"),popupTitle:s().text("Add attributes"),data:m,onApply:e=>{const t=e.filter(d);t.length>0&&l([...t,...n]),e.filter(c.QZu).forEach((e=>{i({attributeType:e,parentUri:r})}))}}))}));var j=r(79935);const Z=(0,C.Z)((0,w.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(O,r):a().createElement(O,r,a().createElement(j.Z,null),a().createElement(A,null))})),I=e=>{let{value:t}=e;const r=y();return a().createElement("div",{className:r.cellValueWrapper},t)};var N=r(2002);const P=(0,b.makeStyles)((()=>({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 V=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 R=r(73149);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 M=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(R.Z,U({attributeValue:e},r)))));return a().createElement(a().Fragment,null,l)};var W=r(49402);function H(){return H=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},H.apply(this,arguments)}const z=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(W.Z,H({attributeValue:e,crosswalksMap:r},n)))));return a().createElement(a().Fragment,null,i)};var L=r(51557);function B(){return B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B.apply(this,arguments)}const F=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(L.Z,B({attributeValue:e},r))))))};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 _=(0,C.Z)((0,w.pick)(["onDelete","onPin","onIgnore","onEdit","onAdd","parentUri","readOnly","emptyTempAttributeUris"]))((e=>{let{value:t,onDelete:r,onEdit:n,onPin:l,onIgnore:i,onAdd:o,emptyTempAttributeUris:s,parentUri:u,readOnly:p}=e;return class{static build(e,t){switch(e){case c.oS0.TYPE_NESTED:return a().createElement(M,t);case c.oS0.TYPE_REFERENCE:return a().createElement(z,t);case c.oS0.TYPE_IMAGE:return a().createElement(F,t);default:return a().createElement(V,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){Y(e,t,r[t])}))}return e}({},t,{parentUri:u,onDelete:r,onEdit:n,onPin:l,onIgnore:i,onAdd:o,emptyTempAttributeUris:s,disableEdit:p,disableDelete:p}))}));var G=r(63532),q=r(45226),X=r(14699);const $=e=>{let{value:{values:t,attributeType:r},someRowIsDragging:n,dragRef:l}=e;const i=y();return a().createElement("div",{className:i.cellValueWrapper},a().createElement("div",{ref:l,className:i.dragIndicator},a().createElement(G.Z,{className:i.dragIndicatorIcon})),a().createElement(X.Z,{className:i.attributeTitle,label:r.label}),!n&&a().createElement(q.Z,{values:t,attributeType:r,valueContainerClassName:i.ovValue}))},Q=e=>{let{value:t}=e;const r=y();return a().createElement("div",{className:i()(r.cellValueWrapper,r.count)},t)};var J=r(87037),K=r(81774),ee=r(35488),te=r(82056),re=r(47019),ne=r(79312),ae=r(92679),le=r(69208),ie=r(39475),oe=r(21210);const se=e=>{let{sourcesUriOrder:t,metadata:r}=e;const n=y();return a().createElement(a().Fragment,null,t.map((e=>a().createElement(ee.ZP,{key:e,className:n.popupItem},a().createElement(oe.Z,{className:n.sourceIcon,sourceType:e}),a().createElement(te.Z,{primary:(0,c.tH7)(r,e),primaryTypographyProps:{variant:"body2"}})))))},ce=e=>{let{attributeUri:t,metadata:r}=e;const n=y(),l=(0,c.zeJ)(r,t);return a().createElement(ee.ZP,{key:l.uri,className:n.popupItem},a().createElement(te.Z,{primary:(0,c.idV)(l.label),primaryTypographyProps:{variant:"body2"}}))},ue=(0,w.cond)([[(0,w.prop)("sourcesUriOrder"),()=>s().text("Source sequence")],[(0,w.prop)("primaryAttributeUri"),()=>s().text("Attribute winner")],[(0,w.prop)("comparisonAttributeUri"),()=>s().text("Comparison attribute")]]),pe=(0,w.cond)([[(0,w.prop)("sourcesUriOrder"),(e,t)=>{let{sourcesUriOrder:r}=e;return a().createElement(se,{metadata:t,sourcesUriOrder:r})}],[(0,w.prop)("primaryAttributeUri"),(e,t)=>{let{primaryAttributeUri:r}=e;return a().createElement(ce,{metadata:t,attributeUri:r})}],[(0,w.prop)("comparisonAttributeUri"),(e,t)=>{let{comparisonAttributeUri:r}=e;return a().createElement(ce,{metadata:t,attributeUri:r})}]]),de=e=>{let{info:t}=e;const r=y(),[l,i]=(0,n.useState)(null),o=(0,T.AH)(),c=()=>i(null);return a().createElement(a().Fragment,null,a().createElement(ie.k,{icon:le.Z,tooltipTitle:s().text("View details"),size:"XS",onClick:e=>i(e.currentTarget)}),a().createElement(re.ZP,{classes:{paper:r.rulePopup},open:!!l,anchorEl:l,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},a().createElement("div",{className:r.popupTitleWrapper},a().createElement(J.Z,{className:r.closeButton,onClick:c,size:"large"},a().createElement(ae.default,null)),a().createElement(ne.Z,{variant:"subtitle1",className:r.popupTitle},ue(t))),a().createElement(K.Z,{component:"div",className:r.popupItemsWrapper},pe(t,o))))},me=e=>{let{value:{ruleType:t,sourcesUriOrder:r,primaryAttributeUri:n,comparisonAttributeUri:l}}=e;const o=y(),s=r||n||l;return a().createElement("div",{className:i()(o.cellValueWrapper,o.ruleType)},a().createElement("div",{className:o.ruleTypeLabel},t.label),s&&a().createElement(de,{info:{sourcesUriOrder:r,primaryAttributeUri:n,comparisonAttributeUri:l}}))};var be=r(23759),ye=r(26752);const fe=e=>{let{crosswalk:t}=e;const r=y(),n=(0,T.AH)(),{isDimmed:l,highlightCrosswalk:i,removeHighlight:o}=(0,be.pu)(t);return a().createElement(ye.Z,{className:r.winnerSourceItem,color:l?"rgba(0, 0, 0, 0.12)":(0,c.CJp)((0,c.uKF)(t)),opacity:l?.38:1,onMouseEnter:()=>i(),onMouseLeave:()=>o()},a().createElement(oe.Z,{className:r.sourceIcon,sourceType:t.type}),a().createElement(te.Z,{primary:(0,c.tH7)(n,t.type),primaryTypographyProps:{variant:"body2"},classes:{primary:r.winnerSourceItemLabel}}))},ge=e=>{let{value:{crosswalks:t}}=e;const r=y();return a().createElement(K.Z,{component:"div"},t.map((e=>a().createElement(ee.ZP,{key:e.uri,className:r.winnerSourceItemWrapper},a().createElement(fe,{crosswalk:e})))))},ve=[{id:"ovValues",get label(){return s().text("Attributes & OV")},hideable:!1,initialWidth:360,minWidth:250},{id:"winnerSources",get label(){return s().text("Winner source systems")},initialWidth:220},{id:"ruleType",get label(){return s().text("Rule type")},initialWidth:200},{id:"count",get label(){return s().text("Count")},initialWidth:80,minWidth:80},{id:"values",get label(){return s().text("Attribute values")},hideable:!1}],he=e=>(0,c.OXP)(e)&&!(0,c.ZiX)(e.uri),Ee=["ovValues","ruleType","values"],we=e=>{switch(e){case"ovValues":return $;case"values":return _;case"count":return Q;case"ruleType":return me;case"winnerSources":return ge;default:return I}},xe=(0,w.pipe)(c.cwx,(0,w.sortWith)([(0,w.descend)((0,w.propOr)(-1,"priority"))]),(0,w.map)((0,w.prop)("uri"))),Oe=(0,w.curry)(((e,t)=>(0,c.YkG)(e)&&t&&(0,w.pipe)(c.c31,(0,w.find)((r=>r.slice((0,c.u5q)(r).length)===t.slice(e.uri.length))))(e)||t)),ke=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return(0,w.pipe)((0,w.filter)(he),(0,w.chain)((e=>(0,w.pipe)((0,w.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||he(l))})),w.values,w.flatten)(t))),(0,w.uniqBy)((0,w.prop)("uri")))(e)},Ce=(0,w.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?Z:O,rowCellValueRenderer:we(t)}})),Te=(e,t,r,n,a,l,i)=>{switch(e){case"ovValues":return{attributeType:n,values:null==l?void 0:l.filter(he)};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+(0,w.pathOr)(0,[t.uri,"length"],r)),0)}}(n.type,l,a);case"ruleType":return((e,t,r,n)=>{var a,l;const i=[...e.entityTypes,...e.relationTypes||[]].find((0,w.propEq)("uri",r)),o=null!==(a=null==i?void 0:i.survivorshipGroups)&&void 0!==a?a:[],s=n&&o.find((0,w.propEq)("uri",n))||o.find((0,w.propEq)("default",!0)),u=null==s||null===(l=s.mapping)||void 0===l?void 0:l.find((0,w.propEq)("attribute",t.uri)),p=(0,c.o_J)(e,null==u?void 0:u.survivorshipStrategy)||(0,c.Xaq)(e),d=(e=>"configuration/survivorshipStrategies/SRC_SYS"===(null==e?void 0:e.uri))(p)?(0,w.uniq)([...(null==u?void 0:u.sourcesUriOrder)||[],...(null==s?void 0:s.sourcesUriOrder)||[],...xe(e)]):void 0,m=Oe(t),b=(e=>"configuration/survivorshipStrategies/OtherAttributeWinnerCrosswalk"===(null==e?void 0:e.uri))(p)?m(null==u?void 0:u.primaryAttributeUri):void 0,y=(0,c.YkM)(t)&&(e=>"configuration/survivorshipStrategies/MinValue"===(null==e?void 0:e.uri)||"configuration/survivorshipStrategies/MaxValue"===(null==e?void 0:e.uri))(p)?m(null==u?void 0:u.comparisonAttributeUri):void 0;return{ruleType:p,sourcesUriOrder:d,primaryAttributeUri:b,comparisonAttributeUri:y}})(t,n,r,i);case"winnerSources":return{crosswalks:ke(l,a)};default:return null}};var Se=r(87378),Ae=r(94059),je=r(38677),Ze=r(69089),Ie=r(79811),Ne=r(290),Pe=r(75779),De=r(63297),Ve=r(96758),Re=r(30721),Ue=r(73074),Me=r(50553),We=r(79573);const He=e=>{let{open:t,onClose:r,onConfirmEditWithoutIgnore:l,onConfirmEditWithIgnore:i}=e;const[o,c]=(0,n.useState)("without");return a().createElement(Ze.Z,{open:t,TransitionProps:{onEnter:()=>c("without")}},a().createElement(Ne.Z,null,a().createElement(Pe.Z,null,s().text("You are attempting to change a value that is presently ignored.")),a().createElement(Ue.Z,{variant:"standard",component:"fieldset"},a().createElement(Me.Z,{component:"legend"},s().text("Please choose an option:")),a().createElement(Ve.Z,{value:o,onChange:(0,w.pipe)(We.NA,c)},a().createElement(Re.Z,{value:"without",control:a().createElement(De.Z,null),label:s().text("Save without Ignore")}),a().createElement(Re.Z,{value:"with",control:a().createElement(De.Z,null),label:s().text("Save and apply Ignore to new value")})))),a().createElement(Ie.Z,null,a().createElement(je.Z,{onClick:r,color:"primary"},s().text("Cancel")),a().createElement(je.Z,{onClick:()=>{"with"===o?i():l(),r()},color:"primary"},s().text("Ok"))))},ze=(0,b.makeStyles)({tableContainer:{height:"100%",overflow:"hidden",display:"flex",flexDirection:"column"},tableHeader:{display:"flex",flexDirection:"row"},tableTitle:{marginRight:"auto"},tableContent:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",position:"relative"}});function Le(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Be(){return Be=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},Be.apply(this,arguments)}const Fe=e=>e.ovValues.attributeType.uri,Ye=e=>{let{columnData:{id:t},cellIndex:r,rowValue:n}=e;return`${t}[${Fe(n)}][${r}]`},_e=(0,n.memo)((e=>{let{entity:t,isLoading:r,crosswalksMap:l,visibleColumns:o=Ee,onChangeVisibleColumns:b,readOnly:y,onDelete:f=We.ZT,onPin:g=We.ZT,onIgnore:v=We.ZT,onEdit:h=We.ZT,onAdd:x=We.ZT,emptyTempAttributeUris:O,selectedAttributeTypes:k,onSelectAttributeTypes:C=We.ZT,additionalHeaderItems:S,className:A,activeSurvivorshipGroupUri:j}=e;const Z=ze(),I=(0,T.AH)(),N=(0,n.useMemo)((()=>(0,w.pipe)((0,w.filter)((e=>{let{id:t}=e;return o.includes(t)})),Ce)(ve)),[o]),{type:P,uri:D,attributes:V={}}=t||{};(0,n.useEffect)((()=>{if(t&&(0,w.isNil)(k)){const e=(0,w.pipe)(w.keys,(0,w.without)(["paging"]),(0,w.map)((0,c.tCm)(P)),(0,w.map)((e=>(0,c.zeJ)(I,e,P))),(0,w.filter)((0,w.both)(w.identity,c.Uty)))(V);C(e)}}),[t,k]);const R=(0,n.useMemo)((()=>P?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,l=arguments.length>6?arguments[6]:void 0;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).map((i=>{const o=(0,c.nIW)(i.uri),s=a[o],u=(0,c.YkG)(i)?n.relation:n.entity;return(0,w.pipe)((0,w.reduce)(((r,n)=>(0,w.assoc)(n,Te(n,e,t,i,u,s,l),r)),{}),(0,w.assoc)("rawValue",s))(r)}))}(I,P,k,o,l,V,j):[]),[I,P,k,o,V,l,j]),{getDynamicRowCellHeight:U,changeRowCellHeight:M}=(0,u.Z)(Ye),W=(0,n.useCallback)((e=>a().createElement(E,Be({changeRowCellHeight:M},e))),[M]),H=(0,n.useCallback)((0,w.either)(U,(0,w.always)(68)),[U]),[z,L]=(0,n.useState)(null),[B,F]=(0,n.useState)(null),Y=(0,n.useCallback)((e=>{e.attributeValue.ignored?F(e):h(e)}),[h,F]),_=(0,n.useCallback)(((e,t)=>{C((0,w.move)(e,t,k))}),[C,k]),G=(0,n.useCallback)(z?()=>f(z):We.ZT,[z,f]),q=(0,n.useMemo)((()=>({onDelete:L,onPin:g,onIgnore:v,onEdit:Y,onAdd:x,parentUri:D,parentTypeUri:P,selectedAttributeTypes:k,onSelectAttributeTypes:C,emptyTempAttributeUris:O,readOnly:y})),[L,g,v,Y,x,D,P,k,C,O,y]);return a().createElement("div",{className:i()(Z.tableContainer,A)},a().createElement(m.Z,{classes:{root:Z.tableHeader,title:Z.tableTitle},title:s().text("Sources")},S,a().createElement(p.Z,{columnsData:ve,selectedColumns:o,onChangeColumns:b})),a().createElement("div",{className:Z.tableContent},r&&a().createElement(Se.Z,null),a().createElement(d.Z,{fixFirstColumn:!0,headRowHeight:48,defaultColumnWidth:250,defaultColumnMinWidth:200,columnsData:N,dndRowReorderingEnabled:!1,dndRowReorderingHandler:_,getIdFromRowValue:Fe,rowsData:R,renderRowCell:W,getRowCellHeight:H,context:q})),a().createElement(Ae.Z,{open:!!z,onClose:()=>L(null),onConfirm:G}),a().createElement(He,{open:!!B,onClose:()=>F(null),onConfirmEditWithIgnore:()=>h(B),onConfirmEditWithoutIgnore:()=>{h(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){Le(e,t,r[t])}))}return e}({},B,{clearAttributeFlags:!0}))}}))}))},26752:(e,t,r)=>{r.d(t,{Z:()=>b});var n=r(24328),a=r.n(n),l=r(2507),i=r.n(l),o=r(71153),s=r.n(o),c=r(42503),u=r(23883);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=(0,r(72342).makeStyles)({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){p(e,t,r[t])}))}return e}({},"standart"===n&&{backgroundColor:t,paddingRight:"29px"},"disabled"===n&&{border:`${t} solid 2px`},{opacity:r,filter:r&&1!==r?"saturate(20%)":null,transition:"opacity 0.3s",boxSizing:"border-box"})},endDatedCrosswalkIcon:{margin:"0 4px",width:"20px",height:"20px",color:"#ff1744"}});function m(){return m=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},m.apply(this,arguments)}const b=(0,n.forwardRef)(((e,t)=>{let{color:r,opacity:n,variant:l="standart",children:o,className:p}=e,b=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 y=d({color:r,opacity:n,variant:l});return a().createElement("div",m({ref:t,"data-reltio-id":"cw-colored-block",className:s()(y.item,p)},b),o,"disabled"===l&&a().createElement(u.Z,{title:i().text("End-dated crosswalk")},a().createElement(c.Z,{className:y.endDatedCrosswalkIcon})))}))},60925:(e,t,r)=>{r.d(t,{Z:()=>N});var n=r(24328),a=r.n(n),l=r(50914),i=r(2507),o=r.n(i),s=r(95038),c=r.n(s),u=r(42374),p=r(79312),d=r(6163),m=r(94059),b=r(67283),y=r(90590),f=r(39475),g=r(21210),v=r(40154),h=r(40435);function E(){return E=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},E.apply(this,arguments)}const w=e=>a().createElement("svg",E({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 x=r(72342);const O=(0,x.makeStyles)((()=>({root:{display:"flex",justifyContent:"space-between",alignItems:"center",overflowWrap:"anywhere"},text:{fontSize:13},button:{flexShrink:0,marginLeft:8,padding:0,textTransform:"none"}}))),k=e=>{let{value:t}=e;const r=O();return a().createElement("div",{className:r.root},a().createElement(p.Z,{className:r.text,variant:"body2"},t),a().createElement(h.Z,{size:"XXS",icon:w,color:"primary",className:r.button,onClick:()=>navigator.clipboard.writeText(t)}))};var C=r(71153),T=r.n(C),S=r(91785);const A=(0,x.makeStyles)((()=>({timestampEditorInput:{paddingTop:15,paddingBottom:15,fontSize:13},timestampEditor:{height:38}}))),j=e=>{let{value:t,classes:r={},disabled:l=!1,onChange:i}=e;const o=A(),[s,c]=(0,n.useState)(t);(0,n.useEffect)((()=>{c(t)}),[t]);const u=(0,n.useCallback)((()=>{const e=null==s?void 0:s.valueOf();t!==e&&i(e)}),[i,s,t]);return a().createElement(S.Z,{slotProps:{textField:{variant:"filled",InputProps:{disableUnderline:!0,classes:{input:o.timestampEditorInput,root:T()(o.timestampEditor,r.root)},onBlur:u}}},value:s||null,disabled:l,onChange:c,onClose:u})};var Z=r(14596);const I=(0,x.makeStyles)((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"}}))),N=e=>{let{crosswalk:t,canEditAttribute:r=!0,onEditAttribute:i,onDeleteAttribute:s}=e;const h=I(),[E,w]=(0,n.useState)([]),[x,O]=(0,n.useState)(null),C=(0,Z.AH)(),T=!("uri"in t),S=(0,n.useMemo)((()=>[{label:u.G39.sourceSystems.label,uri:"type"},{label:u.G39.value.label,uri:"value"},{label:u.G39.sourceTable.label,uri:"sourceTable",canBeAdded:T,canBeDeleted:T},{label:u.G39.createDate.label,uri:"createDate"},{label:u.G39.updateDate.label,uri:"updateDate"},{label:u.G39.deleteDate.label,uri:"deleteDate",canBeAdded:!0,canBeDeleted:!0},{label:u.G39.reltioLoadDate.label,uri:"reltioLoadDate"},{label:u.G39.publishDate.label,uri:"sourcePublishDate"}]),[]),A=(0,l.pipe)((0,l.filter)((0,l.propEq)("canBeAdded",!0)),(0,l.filter)((e=>!(0,l.has)(e.uri,t))),(0,l.filter)((e=>!E.includes(e.uri))))(S);return a().createElement(a().Fragment,null,A.length>0&&r&&a().createElement(b.Z,{label:o().text("Add attributes"),onApply:e=>{e.length>0&&w((t=>t.concat((0,l.map)((0,l.prop)("uri"),e))))},data:A}),S.map((e=>e.uri in t||E.includes(e.uri)?a().createElement("div",{key:e.uri,className:h.attributeWrapper},a().createElement(p.Z,{variant:"body2",className:h.attributeTitle},`${e.label}:`),a().createElement("div",{className:h.attributeValue},((e,t)=>{switch(e){case"type":{const r=(0,u.tH7)(C,t);return T?a().createElement(y.Z,{label:"",placeholder:t,className:h.editor,value:{value:t,label:r},options:(0,u.cwx)(C).sort((0,l.ascend)((0,l.prop)("label"))).map((e=>{let{uri:t,label:r}=e;return{value:t,label:r}})),onChange:t=>{let{value:r}=t;return i(e,r)},TextFieldProps:{InputProps:{disableUnderline:!0}}}):a().createElement(a().Fragment,null,a().createElement(g.Z,{className:h.sourceIcon,sourceType:t}),a().createElement(p.Z,{className:h.text,variant:"body2"},r))}case"sourceTable":return T?a().createElement(v.Z,{multiple:!1,multiline:!1,getValueLabel:void 0,classes:{root:h.editor},required:!0,variant:"filled",value:t,onInput:t=>i(e,t.target.value),size:"small",InputProps:{disableUnderline:!0,classes:{input:h.input}}}):a().createElement(p.Z,{className:h.text,variant:"body2"},t);case"value":return T?a().createElement(v.Z,{multiple:!1,multiline:!1,getValueLabel:void 0,classes:{root:h.editor},required:!0,variant:"filled",value:t,onInput:t=>i(e,t.target.value),size:"small",InputProps:{disableUnderline:!0,classes:{input:h.input}}}):a().createElement(k,{value:t});case"deleteDate":return a().createElement(j,{value:t&&c().utc((0,u.ZBU)(t)).valueOf(),onChange:t=>i(e,null==t?void 0:t.toString()),classes:{root:h.editor},disabled:!r});case"sourcePublishDate":case"createDate":case"updateDate":case"reltioLoadDate":return a().createElement(p.Z,{className:h.text,variant:"body2"},(0,u.o0x)(t));default:return null}})(e.uri,t[e.uri]),e.canBeDeleted&&a().createElement(f.k,{icon:d.Z,disabled:!r,onClick:()=>O(e.uri),size:"XS",tooltipTitle:o().text("Delete attribute"),showForDisabled:!0}))):null)),a().createElement(m.Z,{open:!!x,onClose:()=>O(null),onConfirm:()=>{return e=x,w((t=>(0,l.without)([e],t))),void((0,l.isNil)(t[e])||s(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(42374),o=r(79312),s=r(26752),c=r(23759),u=r(21210),p=r(14596);const d=(0,r(72342).makeStyles)({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"}}),m=e=>{let{crosswalk:t}=e;const r=d(),n=(0,p.AH)(),l=(0,c.nX)(t),m=(0,i.tH7)(n,t.type);return a().createElement(s.Z,{color:l,className:r.crosswalkPreview},a().createElement(u.Z,{className:r.sourceIcon,sourceType:t.type}),a().createElement(o.Z,{className:r.sourceLabel,variant:"body2"},m))},b=(0,n.memo)((()=>{var e;const t=d(),{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(m,{crosswalk:o.crosswalk})))}))},89468:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),a=r.n(n),l=r(2507),i=r.n(l),o=r(38677),s=r(79312),c=r(60925),u=r(50914);const p=(0,r(72342).makeStyles)({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,b]=(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=>{b((0,u.dissoc)(e))},onEditAttribute:(e,t)=>{b((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:()=>D});var n=r(24328),a=r.n(n),l=r(23759),i=r(34802),o=r(42374),s=r(79312),c=r(26436),u=r(21210),p=r(40435),d=r(14596),m=r(72342);const b=(0,m.makeStyles)((()=>({root:e=>{let{isOpaque:t}=e;return{display:"flex",opacity:t?1:.38,transition:"opacity 0.3s"}},wrapper:e=>{let{isOpaque:t}=e;return{width:"100%",display:"flex",alignItems:"center",height:28,filter:t?null:"saturate(0%)",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"}}))),y=(0,n.memo)((e=>{let{crosswalkType:t,focusable:r=!0}=e;const{isDimmed:n}=(0,l.pu)(),i=b({isOpaque:!n}),m=(0,d.AH)(),y=(0,o.tH7)(m,t);return a().createElement("div",{className:i.root},a().createElement(p.Z,{size:"XXS",className:i.focusedIcon,icon:r&&c.Z,disabled:!0}),a().createElement("div",{className:i.wrapper},a().createElement(u.Z,{className:i.sourceIcon,sourceType:t}),a().createElement(s.Z,{variant:"body2"},y)))}));var f=r(2507),g=r.n(f),v=r(13896),h=r(42484),E=r(6163),w=r(85777),x=r(40007),O=r(26752),k=r(94059),C=r(39475),T=r(79935),S=r(19540),A=r(60925);const j=(0,m.makeStyles)({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},dependentIcon:{width:"16px",height:"16px",fillOpacity:.38}}),Z=(0,n.memo)((e=>{let{crosswalk:t,isDependent:r,isEmpty:i=!1,isColored:p=!0,focusable:m=!0,disableEdit:b,disableDelete:y,onDelete:f,onEdit:Z}=e;const I=(0,n.useRef)(null),[N,P]=(0,n.useState)(!1),[D,V]=(0,n.useState)(!1),R=(0,d.AH)(),U=(0,l.nX)(t),{toggleCrosswalkFocus:M,isFocused:W}=(0,l.BF)(t),{isDimmed:H,highlightCrosswalk:z,removeHighlight:L}=(0,l.pu)(t),[B]=(0,l.RT)(),F=i?"#FFF":p?H?"rgba(0, 0, 0, 0.12)":U:"#CACCD1",Y=(0,o.tH7)(R,t.type),_=(0,o.nIW)(t.uri),G=(0,o.x_)(t),q=j({color:F,isOpaque:!H,isFocused:W}),[,X,$]=(0,v.useDrag)({item:{type:"Crosswalk",crosswalk:t},canDrag:!G}),Q=!G&&"relation"!==t.ownerType;return(0,n.useEffect)((()=>{$((0,h.r)(),{captureDraggingState:!0})}),[]),(0,n.useEffect)((()=>{var e;m&&B&&(0,o.aFF)(B,t)&&B!==t&&(null==I||null===(e=I.current)||void 0===e||e.scrollIntoView({behavior:"smooth"}))}),[B]),a().createElement("div",{className:q.root,ref:I},a().createElement(C.k,{size:"XXS",className:q.focusedIcon,icon:m&&c.Z,onClick:()=>M(),disabled:!m,tooltipTitle:m&&g().text("Focus")}),a().createElement("div",{className:q.crosswalkWrapper},a().createElement(O.Z,{ref:X,className:q.header,color:F,variant:G?"disabled":"standart",onMouseEnter:()=>z(),onMouseLeave:()=>L()},r&&a().createElement(S.Z,{className:q.dependentIcon}),a().createElement(w.Z,{onClick:()=>P((e=>!e)),expanded:N}),a().createElement(u.Z,{className:q.sourceIcon,sourceType:t.type}),a().createElement(x.Z,{value:Y},a().createElement(s.Z,{variant:"body2",noWrap:!0},Y)),a().createElement(T.Z,null),a().createElement(x.Z,{value:t.value},a().createElement(s.Z,{variant:"body2",className:q.labelValue,noWrap:!0},t.value))),N&&a().createElement("div",{className:q.attributesWrapper},Q&&a().createElement("div",{className:q.deleteCrosswalkButton},a().createElement(C.k,{icon:E.Z,disabled:y,onClick:()=>V(!0),size:"XS",tooltipTitle:y?g().text("You don't have permissions to delete"):g().text("Delete crosswalk"),showForDisabled:!0}),a().createElement(k.Z,{open:D,onConfirm:()=>{W&&M(),f(_)},onClose:()=>V(!1)})),a().createElement(A.Z,{crosswalk:t,canEditAttribute:!b,onEditAttribute:(e,t)=>{Z({crosswalkId:_,attributeName:e,value:t})},onDeleteAttribute:e=>{Z({crosswalkId:_,attributeName:e})}}))))}));var I=r(55485);const N=(0,m.makeStyles)((()=>({root:{display:"flex",alignItems:"center",height:"28px",paddingLeft:"37px"}}))),P=e=>{let{showMore:t,onClick:r}=e;const n=N();return a().createElement(I.Z,{className:n.root,component:"button",variant:"caption",underline:"none",onClick:r},a().createElement("span",null,t?g().text("View dependent crosswalks"):g().text("Hide dependent crosswalks")))},D=e=>{let{source:t,crosswalksByTypes:r,showCrosswalkColors:s=!0,crosswalksFocusEnabled:c=!0,expanded:u,disableEditCrosswalk:p,disableDeleteCrosswalk:d,onEdit:m,onDelete:b,onToggleExpanded:f}=e;const g=(0,l.RT)();return(0,n.useEffect)((()=>{!u&&c&&r[i.Y.Dependent].some((e=>g.some((0,o.aFF)(e))))&&f()}),[g]),a().createElement(a().Fragment,null,0===r[i.Y.Simple].length&&0===r[i.Y.Empty].length&&a().createElement(y,{crosswalkType:t,focusable:c}),r[i.Y.Simple].map((e=>a().createElement(Z,{key:e.uri,crosswalk:e,focusable:c,disableEdit:p,disableDelete:d,onDelete:b,onEdit:m,isColored:s}))),r[i.Y.Empty].map((e=>a().createElement(Z,{key:e.uri,crosswalk:e,focusable:c,isEmpty:!0,disableEdit:p,disableDelete:d,onDelete:b,onEdit:m,isColored:s}))),u&&r[i.Y.Dependent].map((e=>a().createElement(Z,{key:e.uri,crosswalk:e,isDependent:!0,disableEdit:p,disableDelete:d,onDelete:b,onEdit:m,focusable:c,isColored:s}))),r[i.Y.Dependent].length>0&&a().createElement(P,{showMore:!u,onClick:()=>f()}))}},73972:(e,t,r)=>{r.d(t,{P:()=>o});var n=r(24328),a=r(50914),l=r(42374),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(42374),l=r(50914),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,b]=(0,n.useState)([]),[y,f]=(0,n.useState)(null),g=(0,n.useRef)([]),v=(0,n.useRef)(null),h=(0,n.useCallback)((()=>{v.current=null}),[]),[E,w]=(0,n.useState)(c),x=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:x(null==t?void 0:t.crosswalks),relation:(0,l.pipe)(a.PUO,x)(t)};if((null==p?void 0:p.uri)===(null==t?void 0:t.uri)&&v.current){const{ownerType:t}=v.current,r=Object.keys(e[t]),n=Object.keys(y[t]);w((0,l.difference)(r,n)),b([])}else w(c);h(),d(t),f(e),g.current=[]}),[t]);const O=(0,n.useCallback)((0,l.pipe)(u,h),[u,h]),{deleteAttribute:k,ignoreAttribute:C,pinAttribute:T,createAttribute:S,updateAttribute:A}=(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):(0,l.pipe)((0,l.defaultTo)([]),(0,l.map)((e=>{let{type:r,value:n,sourceTable:a}=e;return{type:"DELETE_ATTRIBUTE",uri:t.uri,crosswalk:a?{type:r,value:n,sourceTable:a}:{type:r,value:n}}})),(e=>({uri:(0,a.u5q)(t.uri),diff:e})),a.Mzk,c)(n);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,clearAttributeFlags:l}=e;(0,a.YkM)(r)||(0,a.Or$)(r)||s((async()=>{await c((0,a.tCj)({attributeUri:t.uri,sourceUri:n.type,crosswalkValue:n.value,crosswalkSourceTable:n.sourceTable,value:(0,a.CwH)(r)?t.lookupCode:t.value})),l||(t.ignored?await c((0,a.P8_)({attributeUri:t.uri,value:!0})):t.pin&&await c((0,a.xkv)({attributeUri:t.uri,value:!0})))})())}),[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:O}),j=(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})})),g.current.some((e=>(0,a.sOy)(c,e)))||g.current.push(c),m.includes(s.uri)||b((e=>[...e,s.uri]))}),[]),Z=(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)})),g.current=(0,l.without)([t],g.current)):k(e)}),[k]),I=(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=g.current.find((t=>(0,a.sOy)(e,t))),i=(0,a.ww$)({entity:p,attributeType:r,uri:e,value:(0,a.kDl)(t)});S({attributeValue:(0,a.dLR)(i,l),crosswalk:n}),v.current=n}}else A(e)}),[S,A,p]);return{modifiedEntity:p,crosswalksMap:y,onAddAttribute:j,onDeleteAttribute:Z,onPinAttribute:T,onIgnoreAttribute:C,onEditAttribute:I,newlyCreatedAttributes:E,emptyTempAttributeUris:m}}},34802:(e,t,r)=>{r.d(t,{Y:()=>n});let n=function(e){return e.Simple="simple",e.Empty="empty",e.Dependent="dependent",e}({})},10765:(e,t,r)=>{r.d(t,{o:()=>s});var n=r(42374),a=r(50914),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])})))}))},38361:(e,t,r)=>{r.d(t,{R:()=>o,Q:()=>s});var n=r(24328),a=r.n(n),l=r(42374);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)))}}]);
2
- //# sourceMappingURL=2066.a6f72feba66f8066f832.js.map
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[2066],{48030:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(24328),a=r(50914),l=r(42374);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){o(e,t,r[t])}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=e=>{let{rowIndex:t,columnData:r,cellIndex:n}=e;return`${r.id}[${t}][${n}]`},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;const[t,r]=(0,n.useState)({}),o=(0,n.useRef)({}),c=(0,n.useCallback)((0,l.DsO)((()=>r(i({},o.current)))),[]),u=(0,n.useCallback)((()=>{o.current={}}),[]),p=(0,n.useCallback)((r=>{const n=e(r);return t[n]}),[e,t]),d=(0,n.useCallback)((0,a.curry)(((t,r)=>{const n=e(t);o.current[n]!==r&&(o.current[n]=r,c())})),[c,e]);return{getDynamicRowCellHeight:p,changeRowCellHeight:d,clearHeightsCache:u}}},96253:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(24328),a=r.n(n),l=r(44443),i=r(55962);const o=e=>{let{onChangeHeight:t,children:r}=e,o=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 s=(0,n.useRef)(),{rowValue:c,rowIndex:u,columnData:p,cellIndex:d}=o,m=t({rowIndex:u,cellIndex:d,columnData:p,rowValue:c}),b=()=>s.current&&m(s.current.clientHeight);return(0,i.D)(b,[c.rawValue]),a().createElement("div",{ref:s},a().createElement(l.Z,{handleHeight:!0,onResize:b}),r)}},94059:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),a=r.n(n),l=r(2507),i=r.n(l),o=r(38677),s=r(69089),c=r(79811),u=r(290),p=r(75779);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"))))}},90143:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(24328),a=r.n(n),l=r(23883);const i=(0,r(72342).makeStyles)((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.Z,o({},e,{classes:t,arrow:!0}))}},67275:(e,t,r)=>{r.d(t,{n:()=>f});var n=r(24328),a=r.n(n),l=r(71153),i=r.n(l),o=r(42374),s=r(79386),c=r(76368),u=r(72316),p=r(1824),d=r(62901),m=r(36852),b=r(75647);const y=(0,r(72342).makeStyles)({profileBandNavigation:{marginBottom:"10px"},comments:{display:"flex",justifyContent:"flex-end"}}),f=(0,n.memo)((e=>{let{entity:t,className:r,historySlice:l}=e;const f=y(),g=(0,n.useMemo)((()=>(0,o.L5S)(t)),[t]),v=(0,m.C)({objectIds:g}),h=(0,o.wwR)(t);return a().createElement(p.e,{collaboration:v},a().createElement(s.Z,{className:i()(r,d.U),entity:(null==l?void 0:l.aEntity)||t},l?a().createElement(b.Z,null):a().createElement(a().Fragment,null,a().createElement(c.a,{className:f.profileBandNavigation}),a().createElement(u.Z,{className:f.comments,uri:h,relatedObjectUris:(0,o.wp9)(o.q7e.ENTITY,{entityUri:h}),objectType:o.q7e.ENTITY}))))}));f.displayName="ScreenProfileBand"},2002:(e,t,r)=>{r.d(t,{Z:()=>ie});var n=r(24328),a=r.n(n),l=r(42374),i=r(35039),o=r(31992),s=r(6163),c=r(29754),u=r(50985),p=r(71153),d=r.n(p),m=r(2507),b=r.n(m),y=r(67586),f=r(98538),g=r(47019),v=r(50914),h=r(48819),E=r(12980),w=r(72342);const x=(0,w.makeStyles)((()=>({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 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 k=[l.oS0.TYPE_TEXT,l.oS0.TYPE_BLOB],C=e=>{let{attributeType:t,attributeValue:r,color:i,containerRef:o,onClose:s,onEdit:c,isTemporary:u}=e;const p=x({color:i,containerWidth:o.current?o.current.getBoundingClientRect().width:0}),m=(0,l.PFL)(t),b=(0,E.AG)(r,m),[y,f]=(0,n.useState)(b),w=!(0,v.isNil)(t.defaultValue)&&u,C={className:p.textField,InputProps:{disableUnderline:!0,classes:{root:p.input,multiline:p.inputMultiline}},fullWidth:!0,autoFocus:!0},T=()=>{const e=!(0,v.isNil)(y)&&(0,E.Ho)(t,y);if(!(0,v.isNil)(y)&&!(0,v.equals)(y,b)||w){const n=(0,l.CwH)(t)?{value:e.value,lookupCode:e.lookupCode}:{value:""===y&&(0,l.FVt)(m.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){O(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()(p.paper,{[p.booleanEditor]:(0,l.T6Y)(m.type),[p.timestampEditor]:(0,l.j5n)(m.type)}),root:p.popoverRoot},onKeyUp:e=>{"Enter"!==e.key||k.includes(m.type)?"Escape"===e.key&&s():T()},onBackdropClick:T},a().createElement(h.Z,{dataTypeDefinition:m,fieldName:(0,l.Tde)(t.uri),onChange:f,TextFieldProps:C,value:y}))};var T=r(39475),S=r(20888),A=r(53203),j=r(95341),Z=r(79312),I=r(78223),N=r(10918);const P=(0,w.makeStyles)((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"}}))),D=(0,I.Z)(j.Z),V=e=>{let{styles:t,icon:r,text:n}=e;return a().createElement(a().Fragment,null,r,a().createElement(Z.Z,{classes:{root:t.menuText}},n))},R=(0,n.forwardRef)(((e,t)=>{let{item:r,onMenuClose:n=(()=>{})}=e;const l=P(),{disabled:i,text:o,tooltip:s,onClick:c,id:u="",icon:p,crosswalk:d,color:m}=r;return d?a().createElement(N.Z,{className:l.sourceItem,color:m,crosswalk:d,focusable:!0}):a().createElement(D,{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(V,{icon:p,text:o,styles:l}))}));R.displayName="CrosswalkMenuItem";const U=R;var M=r(2996),W=r(23759);function H(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const L=(0,w.makeStyles)((()=>({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){H(e,t,r[t])}))}return e}({minHeight:"28px",wordBreak:"break-word"},"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",opacity:r?1:.38,transition:"opacity 0.3s",position:"relative"})},attributeValue:{marginLeft:"16px",padding:"6px 0",lineHeight:"14px",width:"calc(100% - 71px)"},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:v,onEdit:h,onPin:E,onDelete:w,isEmpty:x}=e;const{isReadingMode:O,isEditingMode:k,isHovered:j,onMouseEnter:Z,onMouseLeave:I,setReadingMode:N,setEditingMode:P}=(0,M.p)(),D=(0,n.useRef)(),V=(0,l.nIW)(o.uri),R=(0,l.x_)(p),H=!i.system&&!R,z=H&&!m&&(0,l.Z5t)(l.ARY.Editing,i),B=H&&!g&&(0,l.Edd)(l.ARY.Editing,i),F=(0,l.ZiX)(o.uri),Y=(0,l.mqZ)(l.BDP.UPDATE,i)&&!m&&H,_=!F&&(!O&&Y||o.pin),G=!F&&(!O&&Y||o.ignored);(0,n.useEffect)((()=>{F&&!x&&P()}),[x]);const q=(0,W.nX)(p),{isHighlighted:X,isDimmed:$,highlightCrosswalk:Q,removeHighlight:J}=(0,W.pu)(p),K=L({variant:R?"outlined":"filled",opaque:!$,fullyColored:X,color:$?"rgba(0, 0, 0, 0.12)":q}),ee=[{crosswalk:p,color:q},{disabled:!z,text:b().text("Edit"),icon:a().createElement(c.Z,null),tooltip:z?null:b().text("You don't have permissions to edit"),onClick:()=>P(),id:"edit"},{disabled:!B,text:b().text("Delete"),icon:a().createElement(s.Z,null),tooltip:B?null:b().text("You don't have permissions to delete"),onClick:()=>w({attributeType:i,attributeValue:o,crosswalks:[p]}),id:"delete"}],te=()=>{J(),N()};return a().createElement("div",{ref:D,className:d()(t,K.root),onMouseEnter:()=>{Q(),Z()},onMouseLeave:()=>{J(),I()},"data-reltio-id":r},a().createElement("div",{className:K.attributeValue},a().createElement(y.Z,{value:(0,l.kDl)(o),dataTypeDefinition:(0,l.PFL)(i)})),a().createElement("div",{className:K.actions},_&&a().createElement(A.Z,{isPinned:o.pin,onClick:()=>E({attributeValue:o}),disabled:!Y}),G&&a().createElement(S.Z,{isIgnored:o.ignored,onClick:()=>v({attributeValue:o}),disabled:!Y}),j&&!(0,l.vr_)(i)&&a().createElement(f.Z,{MenuItemRenderer:U,menuId:`simple-attribute-additional-actions-${V}`,buttonComponent:T.k,buttonProps:{icon:u.Z,size:"XS",tooltipTitle:b().text("More actions")},onMenuClose:te,menuItems:ee})),k&&a().createElement(C,{attributeType:i,attributeValue:o,color:q,onClose:te,onEdit:e=>h({attributeType:i,attributeValue:e,crosswalk:p}),containerRef:D,isTemporary:F}))};var B=r(13896);const F=(0,w.makeStyles)((()=>({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 Y(){return Y=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},Y.apply(this,arguments)}const _=e=>{let{attributeValues:t,attributeType:r,parentUri:n,disableEdit:i,crosswalksMap:o,onAdd:s,emptyTempAttributeUris: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,["attributeValues","attributeType","parentUri","disableEdit","crosswalksMap","onAdd","emptyTempAttributeUris"]);const p=F(),[{isDragItemOver:d},m]=(0,B.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.ARY.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 y=0;return a().createElement("div",{ref:m,className:p.simpleAttributesWrapper,"data-reltio-id":"simple-attributes-wrapper"},t.map((e=>{var t;return null===(t=o[e.uri])||void 0===t?void 0:t.map((t=>a().createElement(z,Y({key:e.uri+t.uri,attributeType:r,attributeValue:e,crosswalk:t,disableEdit:i,isEmpty:c.includes(e.uri),dataReltioId:"value-index-"+y++},u))))})),d&&a().createElement("div",{className:p.dropIndicator},b().text("Drop here")))};var G=r(73149),q=r(38677);function X(){return X=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},X.apply(this,arguments)}const $=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.ARY.Editing,n);return 0===r.length&&u?a().createElement(q.Z,{variant:"text",color:"primary",onClick:()=>i({parentUri:o,attributeType:n,index:0})},b().text("Create attribute")):a().createElement("div",{className:t},r.map((e=>a().createElement(G.Z,X({key:e.uri,attributeValue:e,attributeType:n,onAdd:i,disableEdit:s},c)))))};var Q=r(49402);function J(){return J=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},J.apply(this,arguments)}const K=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(Q.Z,J({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,w.makeStyles)((()=>({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,b]=(0,n.useState)(c),y=(0,v.propOr)(r.length,"totalValues",s),f=c<y,g=f&&m<y,h=f&&m>=y,E=r.slice(0,m),w=y-m;return a().createElement("div",{className:d.wrapper},(e=>{switch(t.type){case l.oS0.TYPE_NESTED:return a().createElement($,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(K,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(_,ae({attributeValues:e,attributeType:t},p))}})(E),g&&a().createElement(i.Z,{moreNumber:Math.min(c,w),valueNumber:w,onClick:()=>{r.length<y&&u(),b(m+c)}}),h&&a().createElement(o.Z,{onClick:()=>{b(c)}}))}},86966:(e,t,r)=>{r.d(t,{Z:()=>D});var n=r(24328),a=r.n(n),l=r(42374),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 b=e=>{let{crosswalk:t,className:r}=e;const n=(0,s.nX)(t),i=(0,l.x_)(t),{isDimmed:o,highlightCrosswalk:p,removeHighlight:b}=(0,s.pu)(t),y=(0,m.y)({isOpaque:!o,color:o?"rgba(0, 0, 0, 0.12)":n,isDisabled:i});return a().createElement(u.Z,{title:a().createElement(c.Z,{crosswalk:t,color:n}),placement:"top"},a().createElement("div",{"data-reltio-id":"crosswalk-icon",className:d()(y.crosswalkIcon,r),onMouseEnter:()=>p(),onMouseLeave:()=>b()}))};var y=r(50914),f=r(85777),g=r(2002),v=r(14699),h=r(52239),E=r(72342);const w=(0,E.makeStyles)((e=>({title:{fontSize:"12px",lineHeight:"14px",paddingBottom:"4px",display:"inline-block",color:e.palette.text.secondary}})));function x(){return x=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},x.apply(this,arguments)}const O=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=w();return a().createElement(a().Fragment,null,t.filter(l.Uty).map((e=>a().createElement(h.Z,{key:e.uri,enabled:!0},a().createElement(v.Z,{className:i.title,label:e.label}),a().createElement(g.Z,x({attributeType:e,attributeValues:r[e.name],paging:(0,y.path)(["paging",e.uri],r)},n))))))};var k=r(53203),C=r(20888),T=r(39475),S=r(6163),A=r(2507),j=r.n(A);const Z=e=>{let{onClick:t}=e;return a().createElement(T.k,{icon:S.Z,tooltipTitle:j().text("Delete"),onClick:t,size:"XS",disableRipple:!0})};var I=r(55962),N=r(38361);const P=(0,E.makeStyles)((()=>({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"}}}))),D=e=>{let{attributeType:t,attributeValue:r,attributeTypesList:s,label:c,crosswalksMap:u,disableEdit:p,disableDelete:d,onPin:m,onIgnore:g,onDelete:v,onEdit:h,onAdd:E,emptyTempAttributeUris:w}=e;const x=P(),{isReadingMode:T,onMouseEnter:S,onMouseLeave:A}=(0,i.p)(),j=!p&&(0,l.Z5t)(l.ARY.Editing,t),D=!d&&(0,l.Edd)(l.ARY.Editing,t),V=(0,l.ZiX)(r.uri),R=!V&&(!T&&j||r.pin),U=!V&&(!T&&j||r.ignored),M=!T&&D,W=(0,N.Q)(r.uri),[H,L]=(0,n.useState)(W||V);(0,I.D)((()=>{W&&L(W)}),[W]);const z=(0,y.pipe)((0,y.pickBy)(((e,t)=>(0,l.sOy)(t,null==r?void 0:r.uri))),y.values,y.flatten,(0,y.uniqBy)((0,y.prop)("uri")))(u);return a().createElement(a().Fragment,null,a().createElement("div",{className:x.root,onMouseEnter:S,onMouseLeave:A},a().createElement(f.Z,{onClick:()=>L((e=>!e)),expanded:H}),a().createElement("span",null,c,z.map((e=>a().createElement(b,{key:(0,l.uKF)(e),crosswalk:e,className:x.crosswalkIcon})))),a().createElement(o.Z,null),a().createElement("div",{className:x.actions},R&&a().createElement(k.Z,{disabled:!j,isPinned:r.pin,onClick:()=>m({attributeValue:r})}),U&&a().createElement(C.Z,{disabled:!j,isIgnored:r.ignored,onClick:()=>g({attributeValue:r})}),M&&a().createElement(Z,{onClick:()=>v({attributeType:t,attributeValue:r,crosswalks:u[r.uri]})}))),H&&a().createElement(O,{attributeTypes:s,attributes:r.value,parentUri:r.uri,crosswalksMap:u,disableEdit:!j,disableDelete:!D,onPin:m,onIgnore:g,onDelete:v,onEdit:h,onAdd:E,emptyTempAttributeUris:w}))}},51557:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24328),a=r.n(n),l=r(42374),i=r(26729),o=r(86966);const s=(0,r(72342).makeStyles)((()=>({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(42374),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:()=>b});var n=r(24328),a=r.n(n),l=r(50914),i=r(42374),o=r(86966),s=r(35969),c=r(30357),u=r(98074),p=r(14596);const d=(0,r(72342).makeStyles)((e=>({relationshipLabel:{marginLeft:"4px",color:e.palette.text.primary}})));function m(){return m=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},m.apply(this,arguments)}const b=e=>{let{attributeValue:t,attributeType:r}=e,b=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 y=d(),{generateEntityUrl:f}=(0,n.useContext)(u.v),g=(0,p.AH)(),v=(0,p.Qh)(),h=a().createElement(s.x,null,a().createElement(c.Z,{href:f({uiPath:v,uri:(0,i.bwT)(t)})},(0,i.idV)(t.label),t.relationshipLabel&&a().createElement("span",{className:y.relationshipLabel},t.relationshipLabel))),E=(0,l.pipe)(i.tF$,(0,l.map)((e=>(0,i.zeJ)(g,e))),(0,l.reject)(l.isNil))(r);return a().createElement(o.Z,m({attributeValue:t,attributeType:r,attributeTypesList:E,label:h},b))}},35969:(e,t,r)=>{r.d(t,{x:()=>o});var n=r(24328),a=r.n(n),l=r(79312),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(2507),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(2507),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:()=>f});var n=r(24328),a=r.n(n),l=r(2507),i=r.n(l),o=r(71153),s=r.n(o),c=r(42374),u=r(26436),p=r(21210),d=r(23759),m=r(14596),b=r(39475),y=r(21934);const f=e=>{let{crosswalk:t,color:r,className:n,focusable:l=!1}=e;const{toggleCrosswalkFocus:o,isFocused:f}=(0,d.BF)(t),g=(0,y.y)({color:r,isFocused:f}),v=(0,m.AH)(),h=(0,c.tH7)(v,t.type);return a().createElement("div",{className:s()(g.sourceItem,n)},a().createElement(p.Z,{className:g.sourceIcon,sourceType:t.type}),a().createElement("div",{className:g.sourceInfo},a().createElement("div",null,a().createElement("span",{className:g.label},h),l&&a().createElement(b.k,{icon:u.Z,className:g.eyeIcon,size:"XXS",tooltipTitle:i().text("Focus"),onClick:()=>o()})),a().createElement("div",{className:g.crosswalkValue},t.value)))}},21934:(e,t,r)=>{r.d(t,{y:()=>a,q:()=>l});var n=r(72342);const a=(0,n.makeStyles)({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,isDisabled:n}=e;return{backgroundColor:n?"#fff":t,border:n?`2px solid ${t}`:null,height:"12px",width:"12px",boxSizing:"border-box",borderRadius:"30px",opacity:r?1:.38,transition:"opacity 0.3s"}}}),l=(0,n.makeStyles)((()=>({label:{fontSize:"13px",lineHeight:"15px",letterSpacing:"normal",marginLeft:"2px",marginRight:"8px"}})))},2996:(e,t,r)=>{r.d(t,{p:()=>i});var n=r(42374),a=r(24328),l=function(e){return e.READING="READING",e.HOVERED="HOVERED",e.EDITING="EDITING",e}(l||{});const i=()=>{const[e,t]=(0,a.useState)(null),r=e===l.READING,i=e===l.EDITING,o=e===l.HOVERED;(0,a.useEffect)((()=>{t(l.READING)}),[]);const s=(0,a.useCallback)((0,n.DsO)(t,50),[]),c=(0,a.useCallback)((()=>{i||s(l.HOVERED)}),[s,i]),u=(0,a.useCallback)((()=>{i||s(l.READING)}),[s,i]);return{setReadingMode:(0,a.useCallback)((()=>t(l.READING)),[t]),setEditingMode:(0,a.useCallback)((()=>t(l.EDITING)),[t]),onMouseLeave:u,onMouseEnter:c,isReadingMode:r,isEditingMode:i,isHovered:o}}},45226:(e,t,r)=>{r.d(t,{Z:()=>m});var n=r(42374),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,LabelRenderer:r,RightSlot:a}=e,i=p(e,["expanded","LabelRenderer","RightSlot"]);const{attributeType:c,values:u,valueContainerClassName:m}=i;switch(c.type){case n.oS0.TYPE_NESTED:case n.oS0.TYPE_REFERENCE:return d(s({expanded:t,LabelRenderer:r,RightSlot:a},i));case n.oS0.TYPE_IMAGE:return l().createElement("div",{className:m},l().createElement(o.Z,{attributeType:c,attributeValues:u,imageSize:{imageHeight:40,imageWidth:40,imageMargin:2}}));default:return d(s({},i))}}))},63309:(e,t,r)=>{r.d(t,{Z:()=>_e});var n=r(24328),a=r.n(n),l=r(71153),i=r.n(l),o=r(2507),s=r.n(o),c=r(42374),u=r(48030),p=r(80143),d=r(45108),m=r(17998),b=r(72342);const y=(0,b.makeStyles)((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:{position:"relative",padding:"15px 15px 0 15px","&:last-child":{paddingBottom:"15px"}},dragIndicator:{display:"none",position:"absolute",top:"15px",left:0,cursor:"grab"},dragIndicatorIcon:{fill:e.palette.text.secondary,width:"14px",height:"14px"},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}})));function f(){return f=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},f.apply(this,arguments)}const g=e=>{let{cell:t,CellValueRenderer:r,columnIndex:n,columnData:l,someRowIsDragging:o}=e,s=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","someRowIsDragging"]);const c=y(),u=0===n,p=!o||u;return a().createElement("div",{className:i()(c.rowCell,u&&c.coloredCell),"data-reltio-id":`column-name-${l.id}`},p&&a().createElement(a().Fragment,null,t.values.map(((e,t)=>a().createElement(r,f({key:t,value:e,someRowIsDragging:o},s))))))};var v=r(96253);function h(){return h=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},h.apply(this,arguments)}const E=e=>{let{changeRowCellHeight: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,["changeRowCellHeight"]);return r.isDragLayer?a().createElement(g,h({},r,{someRowIsDragging:!1})):a().createElement(v.Z,h({onChangeHeight:t},r),a().createElement(g,r))};var w=r(50914),x=r(92332);const O=e=>{const t=y();return a().createElement("div",{className:i()(t.headCell,t.coloredCell)},a().createElement(x.default,e),e.children)};var k=r(67283),C=r(30488),T=r(14596);const S=(0,b.makeStyles)({root:{marginBottom:"-6px"}}),A=(0,C.Z)((0,w.pick)(["parentUri","parentTypeUri","onAdd","selectedAttributeTypes","onSelectAttributeTypes"]))((e=>{let{parentTypeUri:t,parentUri:r,selectedAttributeTypes:n,onSelectAttributeTypes:l,onAdd:i}=e;const o=S(),u=(0,T.AH)(),p=[...u.entityTypes,...u.relationTypes||[]].find((0,w.propEq)("uri",t)),d=e=>!(null!=n&&n.find((0,w.propEq)("uri",e.uri))),m=(0,w.pipe)((0,w.propOr)([],"attributes"),(0,w.reject)((0,w.either)(c.YkG,c.Or$)),(0,w.filter)((0,w.either)(c.QZu,d)),(0,w.filter)((0,w.both)(c.Uty,(e=>(0,c.Vg3)({attributeType:e,mode:c.ARY.Editing})))))(p);return a().createElement("div",{className:o.root},a().createElement(k.Z,{label:s().text("Attribute"),popupTitle:s().text("Add attributes"),data:m,onApply:e=>{const t=e.filter(d);t.length>0&&l([...t,...n]),e.filter(c.QZu).forEach((e=>{i({attributeType:e,parentUri:r})}))}}))}));var j=r(79935);const Z=(0,C.Z)((0,w.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(O,r):a().createElement(O,r,a().createElement(j.Z,null),a().createElement(A,null))})),I=e=>{let{value:t}=e;const r=y();return a().createElement("div",{className:r.cellValueWrapper},t)};var N=r(2002);const P=(0,b.makeStyles)((()=>({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 V=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 R=r(73149);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 M=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(R.Z,U({attributeValue:e},r)))));return a().createElement(a().Fragment,null,l)};var W=r(49402);function H(){return H=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},H.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(W.Z,H({attributeValue:e,crosswalksMap:r},n)))));return a().createElement(a().Fragment,null,i)};var z=r(51557);function B(){return B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B.apply(this,arguments)}const F=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(z.Z,B({attributeValue:e},r))))))};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 _=(0,C.Z)((0,w.pick)(["onDelete","onPin","onIgnore","onEdit","onAdd","parentUri","readOnly","emptyTempAttributeUris"]))((e=>{let{value:t,onDelete:r,onEdit:n,onPin:l,onIgnore:i,onAdd:o,emptyTempAttributeUris:s,parentUri:u,readOnly:p}=e;return class{static build(e,t){switch(e){case c.oS0.TYPE_NESTED:return a().createElement(M,t);case c.oS0.TYPE_REFERENCE:return a().createElement(L,t);case c.oS0.TYPE_IMAGE:return a().createElement(F,t);default:return a().createElement(V,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){Y(e,t,r[t])}))}return e}({},t,{parentUri:u,onDelete:r,onEdit:n,onPin:l,onIgnore:i,onAdd:o,emptyTempAttributeUris:s,disableEdit:p,disableDelete:p}))}));var G=r(63532),q=r(45226),X=r(14699);const $=e=>{let{value:{values:t,attributeType:r},someRowIsDragging:n,dragRef:l}=e;const i=y();return a().createElement("div",{className:i.cellValueWrapper},a().createElement("div",{ref:l,className:i.dragIndicator},a().createElement(G.Z,{className:i.dragIndicatorIcon})),a().createElement(X.Z,{className:i.attributeTitle,label:r.label}),!n&&a().createElement(q.Z,{values:t,attributeType:r,valueContainerClassName:i.ovValue}))},Q=e=>{let{value:t}=e;const r=y();return a().createElement("div",{className:i()(r.cellValueWrapper,r.count)},t)};var J=r(87037),K=r(81774),ee=r(35488),te=r(82056),re=r(47019),ne=r(79312),ae=r(92679),le=r(69208),ie=r(39475),oe=r(21210);const se=e=>{let{sourcesUriOrder:t,metadata:r}=e;const n=y();return a().createElement(a().Fragment,null,t.map((e=>a().createElement(ee.ZP,{key:e,className:n.popupItem},a().createElement(oe.Z,{className:n.sourceIcon,sourceType:e}),a().createElement(te.Z,{primary:(0,c.tH7)(r,e),primaryTypographyProps:{variant:"body2"}})))))},ce=e=>{let{attributeUri:t,metadata:r}=e;const n=y(),l=(0,c.zeJ)(r,t);return a().createElement(ee.ZP,{key:l.uri,className:n.popupItem},a().createElement(te.Z,{primary:(0,c.idV)(l.label),primaryTypographyProps:{variant:"body2"}}))},ue=(0,w.cond)([[(0,w.prop)("sourcesUriOrder"),()=>s().text("Source sequence")],[(0,w.prop)("primaryAttributeUri"),()=>s().text("Attribute winner")],[(0,w.prop)("comparisonAttributeUri"),()=>s().text("Comparison attribute")]]),pe=(0,w.cond)([[(0,w.prop)("sourcesUriOrder"),(e,t)=>{let{sourcesUriOrder:r}=e;return a().createElement(se,{metadata:t,sourcesUriOrder:r})}],[(0,w.prop)("primaryAttributeUri"),(e,t)=>{let{primaryAttributeUri:r}=e;return a().createElement(ce,{metadata:t,attributeUri:r})}],[(0,w.prop)("comparisonAttributeUri"),(e,t)=>{let{comparisonAttributeUri:r}=e;return a().createElement(ce,{metadata:t,attributeUri:r})}]]),de=e=>{let{info:t}=e;const r=y(),[l,i]=(0,n.useState)(null),o=(0,T.AH)(),c=()=>i(null);return a().createElement(a().Fragment,null,a().createElement(ie.k,{icon:le.Z,tooltipTitle:s().text("View details"),size:"XS",onClick:e=>i(e.currentTarget)}),a().createElement(re.ZP,{classes:{paper:r.rulePopup},open:!!l,anchorEl:l,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},a().createElement("div",{className:r.popupTitleWrapper},a().createElement(J.Z,{className:r.closeButton,onClick:c,size:"large"},a().createElement(ae.default,null)),a().createElement(ne.Z,{variant:"subtitle1",className:r.popupTitle},ue(t))),a().createElement(K.Z,{component:"div",className:r.popupItemsWrapper},pe(t,o))))},me=e=>{let{value:{ruleType:t,sourcesUriOrder:r,primaryAttributeUri:n,comparisonAttributeUri:l}}=e;const o=y(),s=r||n||l;return a().createElement("div",{className:i()(o.cellValueWrapper,o.ruleType)},a().createElement("div",{className:o.ruleTypeLabel},t.label),s&&a().createElement(de,{info:{sourcesUriOrder:r,primaryAttributeUri:n,comparisonAttributeUri:l}}))};var be=r(23759),ye=r(26752);const fe=e=>{let{crosswalk:t}=e;const r=y(),n=(0,T.AH)(),{isDimmed:l,highlightCrosswalk:i,removeHighlight:o}=(0,be.pu)(t);return a().createElement(ye.Z,{className:r.winnerSourceItem,color:l?"rgba(0, 0, 0, 0.12)":(0,c.CJp)((0,c.uKF)(t)),opacity:l?.38:1,onMouseEnter:()=>i(),onMouseLeave:()=>o()},a().createElement(oe.Z,{className:r.sourceIcon,sourceType:t.type}),a().createElement(te.Z,{primary:(0,c.tH7)(n,t.type),primaryTypographyProps:{variant:"body2"},classes:{primary:r.winnerSourceItemLabel}}))},ge=e=>{let{value:{crosswalks:t}}=e;const r=y();return a().createElement(K.Z,{component:"div"},t.map((e=>a().createElement(ee.ZP,{key:e.uri,className:r.winnerSourceItemWrapper},a().createElement(fe,{crosswalk:e})))))},ve=[{id:"ovValues",get label(){return s().text("Attributes & OV")},hideable:!1,initialWidth:360,minWidth:250},{id:"winnerSources",get label(){return s().text("Winner source systems")},initialWidth:220},{id:"ruleType",get label(){return s().text("Rule type")},initialWidth:200},{id:"count",get label(){return s().text("Count")},initialWidth:80,minWidth:80},{id:"values",get label(){return s().text("Attribute values")},hideable:!1}],he=e=>(0,c.OXP)(e)&&!(0,c.ZiX)(e.uri),Ee=["ovValues","ruleType","values"],we=e=>{switch(e){case"ovValues":return $;case"values":return _;case"count":return Q;case"ruleType":return me;case"winnerSources":return ge;default:return I}},xe=(0,w.pipe)(c.cwx,(0,w.sortWith)([(0,w.descend)((0,w.propOr)(-1,"priority"))]),(0,w.map)((0,w.prop)("uri"))),Oe=(0,w.curry)(((e,t)=>(0,c.YkG)(e)&&t&&(0,w.pipe)(c.c31,(0,w.find)((r=>r.slice((0,c.u5q)(r).length)===t.slice(e.uri.length))))(e)||t)),ke=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return(0,w.pipe)((0,w.filter)(he),(0,w.chain)((e=>(0,w.pipe)((0,w.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||he(l))})),w.values,w.flatten)(t))),(0,w.uniqBy)((0,w.prop)("uri")))(e)},Ce=(0,w.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?Z:O,rowCellValueRenderer:we(t)}})),Te=(e,t,r,n,a,l,i)=>{switch(e){case"ovValues":return{attributeType:n,values:null==l?void 0:l.filter(he)};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+(0,w.pathOr)(0,[t.uri,"length"],r)),0)}}(n.type,l,a);case"ruleType":return((e,t,r,n)=>{var a,l;const i=[...e.entityTypes,...e.relationTypes||[]].find((0,w.propEq)("uri",r)),o=null!==(a=null==i?void 0:i.survivorshipGroups)&&void 0!==a?a:[],s=n&&o.find((0,w.propEq)("uri",n))||o.find((0,w.propEq)("default",!0)),u=null==s||null===(l=s.mapping)||void 0===l?void 0:l.find((0,w.propEq)("attribute",t.uri)),p=(0,c.o_J)(e,null==u?void 0:u.survivorshipStrategy)||(0,c.Xaq)(e),d=(e=>"configuration/survivorshipStrategies/SRC_SYS"===(null==e?void 0:e.uri))(p)?(0,w.uniq)([...(null==u?void 0:u.sourcesUriOrder)||[],...(null==s?void 0:s.sourcesUriOrder)||[],...xe(e)]):void 0,m=Oe(t),b=(e=>"configuration/survivorshipStrategies/OtherAttributeWinnerCrosswalk"===(null==e?void 0:e.uri))(p)?m(null==u?void 0:u.primaryAttributeUri):void 0,y=(0,c.YkM)(t)&&(e=>"configuration/survivorshipStrategies/MinValue"===(null==e?void 0:e.uri)||"configuration/survivorshipStrategies/MaxValue"===(null==e?void 0:e.uri))(p)?m(null==u?void 0:u.comparisonAttributeUri):void 0;return{ruleType:p,sourcesUriOrder:d,primaryAttributeUri:b,comparisonAttributeUri:y}})(t,n,r,i);case"winnerSources":return{crosswalks:ke(l,a)};default:return null}};var Se=r(87378),Ae=r(94059),je=r(38677),Ze=r(69089),Ie=r(79811),Ne=r(290),Pe=r(75779),De=r(63297),Ve=r(96758),Re=r(30721),Ue=r(73074),Me=r(50553),We=r(79573);const He=e=>{let{open:t,onClose:r,onConfirmEditWithoutIgnore:l,onConfirmEditWithIgnore:i}=e;const[o,c]=(0,n.useState)("without");return a().createElement(Ze.Z,{open:t,TransitionProps:{onEnter:()=>c("without")}},a().createElement(Ne.Z,null,a().createElement(Pe.Z,null,s().text("You are attempting to change a value that is presently ignored.")),a().createElement(Ue.Z,{variant:"standard",component:"fieldset"},a().createElement(Me.Z,{component:"legend"},s().text("Please choose an option:")),a().createElement(Ve.Z,{value:o,onChange:(0,w.pipe)(We.NA,c)},a().createElement(Re.Z,{value:"without",control:a().createElement(De.Z,null),label:s().text("Save without Ignore")}),a().createElement(Re.Z,{value:"with",control:a().createElement(De.Z,null),label:s().text("Save and apply Ignore to new value")})))),a().createElement(Ie.Z,null,a().createElement(je.Z,{onClick:r,color:"primary"},s().text("Cancel")),a().createElement(je.Z,{onClick:()=>{"with"===o?i():l(),r()},color:"primary"},s().text("Ok"))))},Le=(0,b.makeStyles)({tableContainer:{height:"100%",overflow:"hidden",display:"flex",flexDirection:"column"},tableHeader:{display:"flex",flexDirection:"row"},tableTitle:{marginRight:"auto"},tableContent:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",position:"relative"}});function ze(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Be(){return Be=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},Be.apply(this,arguments)}const Fe=e=>e.ovValues.attributeType.uri,Ye=e=>{let{columnData:{id:t},cellIndex:r,rowValue:n}=e;return`${t}[${Fe(n)}][${r}]`},_e=(0,n.memo)((e=>{let{entity:t,isLoading:r,crosswalksMap:l,visibleColumns:o=Ee,onChangeVisibleColumns:b,readOnly:y,onDelete:f=We.ZT,onPin:g=We.ZT,onIgnore:v=We.ZT,onEdit:h=We.ZT,onAdd:x=We.ZT,emptyTempAttributeUris:O,selectedAttributeTypes:k,onSelectAttributeTypes:C=We.ZT,additionalHeaderItems:S,className:A,activeSurvivorshipGroupUri:j}=e;const Z=Le(),I=(0,T.AH)(),N=(0,n.useMemo)((()=>(0,w.pipe)((0,w.filter)((e=>{let{id:t}=e;return o.includes(t)})),Ce)(ve)),[o]),{type:P,uri:D,attributes:V={}}=t||{};(0,n.useEffect)((()=>{if(t&&(0,w.isNil)(k)){const e=(0,w.pipe)(w.keys,(0,w.without)(["paging"]),(0,w.map)((0,c.tCm)(P)),(0,w.map)((e=>(0,c.zeJ)(I,e,P))),(0,w.filter)((0,w.both)(w.identity,c.Uty)))(V);C(e)}}),[t,k]);const R=(0,n.useMemo)((()=>P?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,l=arguments.length>6?arguments[6]:void 0;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).map((i=>{const o=(0,c.nIW)(i.uri),s=a[o],u=(0,c.YkG)(i)?n.relation:n.entity;return(0,w.pipe)((0,w.reduce)(((r,n)=>(0,w.assoc)(n,Te(n,e,t,i,u,s,l),r)),{}),(0,w.assoc)("rawValue",s))(r)}))}(I,P,k,o,l,V,j):[]),[I,P,k,o,V,l,j]),{getDynamicRowCellHeight:U,changeRowCellHeight:M}=(0,u.Z)(Ye),W=(0,n.useCallback)((e=>a().createElement(E,Be({changeRowCellHeight:M},e))),[M]),H=(0,n.useCallback)((0,w.either)(U,(0,w.always)(68)),[U]),[L,z]=(0,n.useState)(null),[B,F]=(0,n.useState)(null),Y=(0,n.useCallback)((e=>{e.attributeValue.ignored?F(e):h(e)}),[h,F]),_=(0,n.useCallback)(((e,t)=>{C((0,w.move)(e,t,k))}),[C,k]),G=(0,n.useCallback)(L?()=>f(L):We.ZT,[L,f]),q=(0,n.useMemo)((()=>({onDelete:z,onPin:g,onIgnore:v,onEdit:Y,onAdd:x,parentUri:D,parentTypeUri:P,selectedAttributeTypes:k,onSelectAttributeTypes:C,emptyTempAttributeUris:O,readOnly:y})),[z,g,v,Y,x,D,P,k,C,O,y]);return a().createElement("div",{className:i()(Z.tableContainer,A)},a().createElement(m.Z,{classes:{root:Z.tableHeader,title:Z.tableTitle},title:s().text("Sources")},S,a().createElement(p.Z,{columnsData:ve,selectedColumns:o,onChangeColumns:b})),a().createElement("div",{className:Z.tableContent},r&&a().createElement(Se.Z,null),a().createElement(d.Z,{fixFirstColumn:!0,headRowHeight:48,defaultColumnWidth:250,defaultColumnMinWidth:200,columnsData:N,dndRowReorderingEnabled:!1,dndRowReorderingHandler:_,getIdFromRowValue:Fe,rowsData:R,renderRowCell:W,getRowCellHeight:H,context:q})),a().createElement(Ae.Z,{open:!!L,onClose:()=>z(null),onConfirm:G}),a().createElement(He,{open:!!B,onClose:()=>F(null),onConfirmEditWithIgnore:()=>h(B),onConfirmEditWithoutIgnore:()=>{h(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){ze(e,t,r[t])}))}return e}({},B,{clearAttributeFlags:!0}))}}))}))},26752:(e,t,r)=>{r.d(t,{Z:()=>b});var n=r(24328),a=r.n(n),l=r(2507),i=r.n(l),o=r(71153),s=r.n(o),c=r(42503),u=r(23883);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=(0,r(72342).makeStyles)({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){p(e,t,r[t])}))}return e}({},"standart"===n&&{backgroundColor:t,paddingRight:"29px"},"disabled"===n&&{border:`${t} solid 2px`},{opacity:r,filter:r&&1!==r?"saturate(20%)":null,transition:"opacity 0.3s",boxSizing:"border-box"})},endDatedCrosswalkIcon:{margin:"0 4px",width:"20px",height:"20px",color:"#ff1744"}});function m(){return m=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},m.apply(this,arguments)}const b=(0,n.forwardRef)(((e,t)=>{let{color:r,opacity:n,variant:l="standart",children:o,className:p}=e,b=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 y=d({color:r,opacity:n,variant:l});return a().createElement("div",m({ref:t,"data-reltio-id":"cw-colored-block",className:s()(y.item,p)},b),o,"disabled"===l&&a().createElement(u.Z,{title:i().text("End-dated crosswalk")},a().createElement(c.Z,{className:y.endDatedCrosswalkIcon})))}))},60925:(e,t,r)=>{r.d(t,{Z:()=>N});var n=r(24328),a=r.n(n),l=r(50914),i=r(2507),o=r.n(i),s=r(95038),c=r.n(s),u=r(42374),p=r(79312),d=r(6163),m=r(94059),b=r(67283),y=r(90590),f=r(39475),g=r(21210),v=r(40154),h=r(40435);function E(){return E=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},E.apply(this,arguments)}const w=e=>a().createElement("svg",E({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 x=r(72342);const O=(0,x.makeStyles)((()=>({root:{display:"flex",justifyContent:"space-between",alignItems:"center",overflowWrap:"anywhere"},text:{fontSize:13},button:{flexShrink:0,marginLeft:8,padding:0,textTransform:"none"}}))),k=e=>{let{value:t}=e;const r=O();return a().createElement("div",{className:r.root},a().createElement(p.Z,{className:r.text,variant:"body2"},t),a().createElement(h.Z,{size:"XXS",icon:w,color:"primary",className:r.button,onClick:()=>navigator.clipboard.writeText(t)}))};var C=r(71153),T=r.n(C),S=r(91785);const A=(0,x.makeStyles)((()=>({timestampEditorInput:{paddingTop:15,paddingBottom:15,fontSize:13},timestampEditor:{height:38}}))),j=e=>{let{value:t,classes:r={},disabled:l=!1,onChange:i}=e;const o=A(),[s,c]=(0,n.useState)(t);(0,n.useEffect)((()=>{c(t)}),[t]);const u=(0,n.useCallback)((()=>{const e=null==s?void 0:s.valueOf();t!==e&&i(e)}),[i,s,t]);return a().createElement(S.Z,{slotProps:{textField:{variant:"filled",InputProps:{disableUnderline:!0,classes:{input:o.timestampEditorInput,root:T()(o.timestampEditor,r.root)},onBlur:u}}},value:s||null,disabled:l,onChange:c,onClose:u})};var Z=r(14596);const I=(0,x.makeStyles)((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"}}))),N=e=>{let{crosswalk:t,canEditAttribute:r=!0,onEditAttribute:i,onDeleteAttribute:s}=e;const h=I(),[E,w]=(0,n.useState)([]),[x,O]=(0,n.useState)(null),C=(0,Z.AH)(),T=!("uri"in t),S=(0,n.useMemo)((()=>[{label:u.G39.sourceSystems.label,uri:"type"},{label:u.G39.value.label,uri:"value"},{label:u.G39.sourceTable.label,uri:"sourceTable",canBeAdded:T,canBeDeleted:T},{label:u.G39.createDate.label,uri:"createDate"},{label:u.G39.updateDate.label,uri:"updateDate"},{label:u.G39.deleteDate.label,uri:"deleteDate",canBeAdded:!0,canBeDeleted:!0},{label:u.G39.reltioLoadDate.label,uri:"reltioLoadDate"},{label:u.G39.publishDate.label,uri:"sourcePublishDate"}]),[]),A=(0,l.pipe)((0,l.filter)((0,l.propEq)("canBeAdded",!0)),(0,l.filter)((e=>!(0,l.has)(e.uri,t))),(0,l.filter)((e=>!E.includes(e.uri))))(S);return a().createElement(a().Fragment,null,A.length>0&&r&&a().createElement(b.Z,{label:o().text("Add attributes"),onApply:e=>{e.length>0&&w((t=>t.concat((0,l.map)((0,l.prop)("uri"),e))))},data:A}),S.map((e=>e.uri in t||E.includes(e.uri)?a().createElement("div",{key:e.uri,className:h.attributeWrapper},a().createElement(p.Z,{variant:"body2",className:h.attributeTitle},`${e.label}:`),a().createElement("div",{className:h.attributeValue},((e,t)=>{switch(e){case"type":{const r=(0,u.tH7)(C,t);return T?a().createElement(y.Z,{label:"",placeholder:t,className:h.editor,value:{value:t,label:r},options:(0,u.cwx)(C).sort((0,l.ascend)((0,l.prop)("label"))).map((e=>{let{uri:t,label:r}=e;return{value:t,label:r}})),onChange:t=>{let{value:r}=t;return i(e,r)},TextFieldProps:{InputProps:{disableUnderline:!0}}}):a().createElement(a().Fragment,null,a().createElement(g.Z,{className:h.sourceIcon,sourceType:t}),a().createElement(p.Z,{className:h.text,variant:"body2"},r))}case"sourceTable":return T?a().createElement(v.Z,{multiple:!1,multiline:!1,getValueLabel:void 0,classes:{root:h.editor},required:!0,variant:"filled",value:t,onInput:t=>i(e,t.target.value),size:"small",InputProps:{disableUnderline:!0,classes:{input:h.input}}}):a().createElement(p.Z,{className:h.text,variant:"body2"},t);case"value":return T?a().createElement(v.Z,{multiple:!1,multiline:!1,getValueLabel:void 0,classes:{root:h.editor},required:!0,variant:"filled",value:t,onInput:t=>i(e,t.target.value),size:"small",InputProps:{disableUnderline:!0,classes:{input:h.input}}}):a().createElement(k,{value:t});case"deleteDate":return a().createElement(j,{value:t&&c().utc((0,u.ZBU)(t)).valueOf(),onChange:t=>i(e,null==t?void 0:t.toString()),classes:{root:h.editor},disabled:!r});case"sourcePublishDate":case"createDate":case"updateDate":case"reltioLoadDate":return a().createElement(p.Z,{className:h.text,variant:"body2"},(0,u.o0x)(t));default:return null}})(e.uri,t[e.uri]),e.canBeDeleted&&a().createElement(f.k,{icon:d.Z,disabled:!r,onClick:()=>O(e.uri),size:"XS",tooltipTitle:o().text("Delete attribute"),showForDisabled:!0}))):null)),a().createElement(m.Z,{open:!!x,onClose:()=>O(null),onConfirm:()=>{return e=x,w((t=>(0,l.without)([e],t))),void((0,l.isNil)(t[e])||s(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(42374),o=r(79312),s=r(26752),c=r(23759),u=r(21210),p=r(14596);const d=(0,r(72342).makeStyles)({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"}}),m=e=>{let{crosswalk:t}=e;const r=d(),n=(0,p.AH)(),l=(0,c.nX)(t),m=(0,i.tH7)(n,t.type);return a().createElement(s.Z,{color:l,className:r.crosswalkPreview},a().createElement(u.Z,{className:r.sourceIcon,sourceType:t.type}),a().createElement(o.Z,{className:r.sourceLabel,variant:"body2"},m))},b=(0,n.memo)((()=>{var e;const t=d(),{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(m,{crosswalk:o.crosswalk})))}))},89468:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(24328),a=r.n(n),l=r(2507),i=r.n(l),o=r(38677),s=r(79312),c=r(60925),u=r(50914);const p=(0,r(72342).makeStyles)({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,b]=(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=>{b((0,u.dissoc)(e))},onEditAttribute:(e,t)=>{b((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:()=>D});var n=r(24328),a=r.n(n),l=r(23759),i=r(34802),o=r(42374),s=r(79312),c=r(26436),u=r(21210),p=r(40435),d=r(14596),m=r(72342);const b=(0,m.makeStyles)((()=>({root:e=>{let{isOpaque:t}=e;return{display:"flex",opacity:t?1:.38,transition:"opacity 0.3s"}},wrapper:e=>{let{isOpaque:t}=e;return{width:"100%",display:"flex",alignItems:"center",height:28,filter:t?null:"saturate(0%)",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"}}))),y=(0,n.memo)((e=>{let{crosswalkType:t,focusable:r=!0}=e;const{isDimmed:n}=(0,l.pu)(),i=b({isOpaque:!n}),m=(0,d.AH)(),y=(0,o.tH7)(m,t);return a().createElement("div",{className:i.root},a().createElement(p.Z,{size:"XXS",className:i.focusedIcon,icon:r&&c.Z,disabled:!0}),a().createElement("div",{className:i.wrapper},a().createElement(u.Z,{className:i.sourceIcon,sourceType:t}),a().createElement(s.Z,{variant:"body2"},y)))}));var f=r(2507),g=r.n(f),v=r(13896),h=r(42484),E=r(6163),w=r(85777),x=r(40007),O=r(26752),k=r(94059),C=r(39475),T=r(79935),S=r(19540),A=r(60925);const j=(0,m.makeStyles)({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},dependentIcon:{width:"16px",height:"16px",fillOpacity:.38}}),Z=(0,n.memo)((e=>{let{crosswalk:t,isDependent:r,isEmpty:i=!1,isColored:p=!0,focusable:m=!0,disableEdit:b,disableDelete:y,onDelete:f,onEdit:Z}=e;const I=(0,n.useRef)(null),[N,P]=(0,n.useState)(!1),[D,V]=(0,n.useState)(!1),R=(0,d.AH)(),U=(0,l.nX)(t),{toggleCrosswalkFocus:M,isFocused:W}=(0,l.BF)(t),{isDimmed:H,highlightCrosswalk:L,removeHighlight:z}=(0,l.pu)(t),[B]=(0,l.RT)(),F=i?"#FFF":p?H?"rgba(0, 0, 0, 0.12)":U:"#CACCD1",Y=(0,o.tH7)(R,t.type),_=(0,o.nIW)(t.uri),G=(0,o.x_)(t),q=j({color:F,isOpaque:!H,isFocused:W}),[,X,$]=(0,v.useDrag)({item:{type:"Crosswalk",crosswalk:t},canDrag:!G}),Q=!G&&"relation"!==t.ownerType;return(0,n.useEffect)((()=>{$((0,h.r)(),{captureDraggingState:!0})}),[]),(0,n.useEffect)((()=>{var e;m&&B&&(0,o.aFF)(B,t)&&B!==t&&(null==I||null===(e=I.current)||void 0===e||e.scrollIntoView({behavior:"smooth"}))}),[B]),a().createElement("div",{className:q.root,ref:I},a().createElement(C.k,{size:"XXS",className:q.focusedIcon,icon:m&&c.Z,onClick:()=>M(),disabled:!m,tooltipTitle:m&&g().text("Focus")}),a().createElement("div",{className:q.crosswalkWrapper},a().createElement(O.Z,{ref:X,className:q.header,color:F,variant:G?"disabled":"standart",onMouseEnter:()=>L(),onMouseLeave:()=>z()},r&&a().createElement(S.Z,{className:q.dependentIcon}),a().createElement(w.Z,{onClick:()=>P((e=>!e)),expanded:N}),a().createElement(u.Z,{className:q.sourceIcon,sourceType:t.type}),a().createElement(x.Z,{value:Y},a().createElement(s.Z,{variant:"body2",noWrap:!0},Y)),a().createElement(T.Z,null),a().createElement(x.Z,{value:t.value},a().createElement(s.Z,{variant:"body2",className:q.labelValue,noWrap:!0},t.value))),N&&a().createElement("div",{className:q.attributesWrapper},Q&&a().createElement("div",{className:q.deleteCrosswalkButton},a().createElement(C.k,{icon:E.Z,disabled:y,onClick:()=>V(!0),size:"XS",tooltipTitle:y?g().text("You don't have permissions to delete"):g().text("Delete crosswalk"),showForDisabled:!0}),a().createElement(k.Z,{open:D,onConfirm:()=>{W&&M(),f(_)},onClose:()=>V(!1)})),a().createElement(A.Z,{crosswalk:t,canEditAttribute:!b,onEditAttribute:(e,t)=>{Z({crosswalkId:_,attributeName:e,value:t})},onDeleteAttribute:e=>{Z({crosswalkId:_,attributeName:e})}}))))}));var I=r(55485);const N=(0,m.makeStyles)((()=>({root:{display:"flex",alignItems:"center",height:"28px",paddingLeft:"37px"}}))),P=e=>{let{showMore:t,onClick:r}=e;const n=N();return a().createElement(I.Z,{className:n.root,component:"button",variant:"caption",underline:"none",onClick:r},a().createElement("span",null,t?g().text("View dependent crosswalks"):g().text("Hide dependent crosswalks")))},D=e=>{let{source:t,crosswalksByTypes:r,showCrosswalkColors:s=!0,crosswalksFocusEnabled:c=!0,expanded:u,disableEditCrosswalk:p,disableDeleteCrosswalk:d,onEdit:m,onDelete:b,onToggleExpanded:f}=e;const g=(0,l.RT)();return(0,n.useEffect)((()=>{!u&&c&&r[i.Y.Dependent].some((e=>g.some((0,o.aFF)(e))))&&f()}),[g]),a().createElement(a().Fragment,null,0===r[i.Y.Simple].length&&0===r[i.Y.Empty].length&&a().createElement(y,{crosswalkType:t,focusable:c}),r[i.Y.Simple].map((e=>a().createElement(Z,{key:e.uri,crosswalk:e,focusable:c,disableEdit:p,disableDelete:d,onDelete:b,onEdit:m,isColored:s}))),r[i.Y.Empty].map((e=>a().createElement(Z,{key:e.uri,crosswalk:e,focusable:c,isEmpty:!0,disableEdit:p,disableDelete:d,onDelete:b,onEdit:m,isColored:s}))),u&&r[i.Y.Dependent].map((e=>a().createElement(Z,{key:e.uri,crosswalk:e,isDependent:!0,disableEdit:p,disableDelete:d,onDelete:b,onEdit:m,focusable:c,isColored:s}))),r[i.Y.Dependent].length>0&&a().createElement(P,{showMore:!u,onClick:()=>f()}))}},73972:(e,t,r)=>{r.d(t,{P:()=>o});var n=r(24328),a=r(50914),l=r(42374),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(42374),l=r(50914),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,b]=(0,n.useState)([]),[y,f]=(0,n.useState)(null),g=(0,n.useRef)([]),v=(0,n.useRef)(null),h=(0,n.useCallback)((()=>{v.current=null}),[]),[E,w]=(0,n.useState)(c),x=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:x(null==t?void 0:t.crosswalks),relation:(0,l.pipe)(a.PUO,x)(t)};if((null==p?void 0:p.uri)===(null==t?void 0:t.uri)&&v.current){const{ownerType:t}=v.current,r=Object.keys(e[t]),n=Object.keys(y[t]);w((0,l.difference)(r,n)),b([])}else w(c);h(),d(t),f(e),g.current=[]}),[t]);const O=(0,n.useCallback)((0,l.pipe)(u,h),[u,h]),{deleteAttribute:k,ignoreAttribute:C,pinAttribute:T,createAttribute:S,updateAttribute:A}=(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):(0,l.pipe)((0,l.defaultTo)([]),(0,l.map)((e=>{let{type:r,value:n,sourceTable:a}=e;return{type:"DELETE_ATTRIBUTE",uri:t.uri,crosswalk:a?{type:r,value:n,sourceTable:a}:{type:r,value:n}}})),(e=>({uri:(0,a.u5q)(t.uri),diff:e})),a.arB,c)(n);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,clearAttributeFlags:l}=e;(0,a.YkM)(r)||(0,a.Or$)(r)||s((async()=>{await c((0,a.tCj)({attributeUri:t.uri,sourceUri:n.type,crosswalkValue:n.value,crosswalkSourceTable:n.sourceTable,value:(0,a.CwH)(r)?t.lookupCode:t.value})),l||(t.ignored?await c((0,a.P8_)({attributeUri:t.uri,value:!0})):t.pin&&await c((0,a.xkv)({attributeUri:t.uri,value:!0})))})())}),[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:O}),j=(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})})),g.current.some((e=>(0,a.sOy)(c,e)))||g.current.push(c),m.includes(s.uri)||b((e=>[...e,s.uri]))}),[]),Z=(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)})),g.current=(0,l.without)([t],g.current)):k(e)}),[k]),I=(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=g.current.find((t=>(0,a.sOy)(e,t))),i=(0,a.ww$)({entity:p,attributeType:r,uri:e,value:(0,a.kDl)(t)});S({attributeValue:(0,a.dLR)(i,l),crosswalk:n}),v.current=n}}else A(e)}),[S,A,p]);return{modifiedEntity:p,crosswalksMap:y,onAddAttribute:j,onDeleteAttribute:Z,onPinAttribute:T,onIgnoreAttribute:C,onEditAttribute:I,newlyCreatedAttributes:E,emptyTempAttributeUris:m}}},34802:(e,t,r)=>{r.d(t,{Y:()=>n});let n=function(e){return e.Simple="simple",e.Empty="empty",e.Dependent="dependent",e}({})},10765:(e,t,r)=>{r.d(t,{o:()=>s});var n=r(42374),a=r(50914),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])})))}))},38361:(e,t,r)=>{r.d(t,{R:()=>o,Q:()=>s});var n=r(24328),a=r.n(n),l=r(42374);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)))}}]);
2
+ //# sourceMappingURL=2066.d7e408a027a36319fadf.js.map