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C,EAAAA,EAAuB,CAAAG,SACnB,kBACG6B,EAAAA,EAAAA,KAACw9B,EAA8B,CAACzR,SAAUA,EAAS5tB,SAC9CA,GAC4B,GAIjD,C","sources":["components/direct-bidding-agreement-disclaimer/DirectBiddingDisclaimer.tsx","components/direct-bidding-agreement-disclaimer/DirectBiddingDisclaimerLink.tsx","components/deals/DealItem.tsx","components/deals/DealsSelectionPanel.tsx","components/deals/tabs/overview/sections/ClassInfo.tsx","components/deals/tabs/overview/sections/Information.tsx","components/deals/tabs/overview/sections/Dates.tsx","components/deals/DealsContext.ts","components/deals/tabs/overview/sections/Parties.tsx","components/deals/DealsHeaderBase.tsx","components/deals/ClassSelect.tsx","components/deals/DealIntexLink.tsx","components/deals/DealsClassHeader.tsx","components/deals/useFirstClassNavigation.tsx","components/deals/tabs/overview/Overview.tsx","components/deals/CompanyPopup/tabs/Company.tsx","components/deals/CompanyPopup/tabs/Members.tsx","components/deals/CompanyPopup/CompanyPopup.tsx","components/deals/tabs/dealDetails/sections/Additional Information.tsx","components/deals/tabs/dealDetails/sections/ManagementFee.tsx","components/deals/tabs/dealDetails/sections/AdministrativeFee.tsx","components/deals/tabs/dealDetails/sections/DealAmendmentDetails.tsx","components/deals/DealsDefaultHeader.tsx","components/deals/tabs/dealDetails/DealDetails.tsx","components/deals/DealsSaveHeader.tsx","components/deals/tabs/dealDetails/edit/DealValidationSchema.ts","components/deals/tabs/dealDetails/edit/EditDealDetails.tsx","components/deals/tabs/class-detail/sections/ClassSecondaryInfo.tsx","components/deals/tabs/class-detail/ClassDetails.tsx","components/deals/tabs/amrInfo/AmrInfo.tsx","components/deals/tabs/amrInfo/AmrInfoHeader.tsx","components/deals/tabs/amrInfo/amr-classes.columns.tsx","components/deals/tabs/documents/DocumentsList.tsx","components/deals/tabs/amrInfo/edit/SettlementInsctructionsPopup.tsx","components/deals/tabs/amrInfo/edit/EditDealersPopup.tsx","components/deals/tabs/amrInfo/AmrInfoDetails.tsx","components/deals/tabs/all-classes/all-classes.columns.tsx","components/deals/tabs/all-classes/AllClassesView.tsx","components/deals/tabs/all-classes/AllClassesEdit.tsx","components/deals/tabs/all-classes/AllClasses.tsx","components/deals/tabs/documents/Documents.tsx","components/deals/tabs/documents/edit/EditDocumentsList.tsx","components/deals/tabs/documents/edit/PatternTextField.tsx","components/deals/tabs/documents/edit/EditDocumentsSection.tsx","components/deals/tabs/documents/edit/EditDocuments.tsx","components/deals/tabs/documents/edit/DealDocValidationSchema.ts","components/deals/tabs/amrInfo/edit/AmrInfoEdit.tsx","components/deals/tabs/amrInfo/AmrClassDetails.tsx","components/deals/Deals.tsx","components/direct-bidding-agreement-disclaimer/DirectBiddingDisclaimerActionBlocker.tsx","components/direct-bidding-agreement-disclaimer/DirectBiddingDisclaimerContext.ts","components/direct-bidding-agreement-disclaimer/DirectBiddingDisclaimerPopupText.tsx","components/direct-bidding-agreement-disclaimer/DirectBiddingDisclaimerPopup.tsx","components/direct-bidding-agreement-disclaimer/DirectBiddingDisclaimerContentBlocker.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\r\nimport { user } from '../../user';\r\nimport { useSettlementAgentAgreements } from '../../effects/useSettlementAgentAgreements';\r\nimport { SettlementAgreementStatus } from '../../types/bid-as-dealer/SettlementAgreementStatus';\r\nimport { BlockedFeatureContext } from '../access/BlockedFeatureContext';\r\nimport { DirectBiddingDisclaimerContext } from './DirectBiddingDisclaimerContext';\r\nimport { useSelector } from 'react-redux';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { isRequesting } from '../../utils';\r\nimport { roles } from '../../constants';\r\n\r\ninterface Props {\r\n children: (blocked: boolean) => React.ReactNode;\r\n}\r\n\r\nexport const DirectBiddingDisclaimer: React.FC = ({ children }) => {\r\n const isFeatureBlocked = React.useContext(BlockedFeatureContext);\r\n const agreementsState = useSettlementAgentAgreements();\r\n const agreements = agreementsState.items;\r\n const confirmRequestState = useSelector((state: AppState) => state.directBiddingDisclaimer.confirmRequestState);\r\n\r\n const hasConfirmedClearingBankAgreement = useMemo(() =>\r\n agreements.some(a =>\r\n a.agreementStatus === SettlementAgreementStatus.confirmed &&\r\n a.settlementAgent.isClearingBank),\r\n [agreements]\r\n );\r\n\r\n const blocked =\r\n !isFeatureBlocked &&\r\n hasConfirmedClearingBankAgreement &&\r\n user.hasRoles(roles.SellerTrader, roles.BrokerDealerTrader) &&\r\n !user.current()?.directBiddingAgreementSigned &&\r\n !isRequesting(confirmRequestState);\r\n\r\n return (\r\n \r\n {children(blocked)}\r\n \r\n )\r\n}\r\n","import * as React from 'react';\r\nimport { useHistory } from 'react-router';\r\nimport { SubscriptionFeature } from '../../types/billing/SubscriptionFeature';\r\nimport { ActionBlocker } from '../access/ActionBlocker';\r\nimport { DirectBiddingDisclaimerActionBlocker } from '../direct-bidding-agreement-disclaimer/DirectBiddingDisclaimerActionBlocker';\r\nimport { FeatureLink } from '../access/FeatureLink';\r\n\r\ninterface BodyContentProps {\r\n path: string;\r\n disclaimerDisabled?: boolean;\r\n requiredFeature?: SubscriptionFeature;\r\n disabled?: boolean;\r\n text?: string;\r\n className?: string;\r\n target?: string;\r\n tooltip?: string;\r\n}\r\n\r\nexport function DirectBiddingDesclaimerLink({\r\n path,\r\n disclaimerDisabled = false,\r\n requiredFeature,\r\n disabled = false,\r\n text = \"View\",\r\n target,\r\n className,\r\n tooltip\r\n}: BodyContentProps) {\r\n const history = useHistory();\r\n\r\n return (\r\n \r\n history.push(path)}\r\n >\r\n \r\n \r\n \r\n );\r\n}\r\n","import { forwardRef, useEffect, useState } from 'react';\r\nimport { DealShortInfo } from '../../types/amr-pipeline/models/Deal';\r\nimport classNames from 'classnames';\r\nimport { Link, useHistory, useParams } from 'react-router-dom';\r\nimport { roles, routes } from '../../constants';\r\nimport { DealsTabType, DealsTabTypes } from '../../types/deals/DealsTabType';\r\nimport { DealsRouteParams } from './Deals';\r\nimport Highlighter from '../amrPipeline/common/Highlighter';\r\nimport IconSVG from '../../styles/svg-icons';\r\nimport { user } from '../../user';\r\nimport { OnHoverTooltip } from '../common';\r\n\r\ninterface DealItemProps {\r\n deal: DealShortInfo;\r\n searchTerm: string;\r\n}\r\n\r\nexport const DealItem = forwardRef(({ deal, searchTerm }: DealItemProps, ref: React.ForwardedRef) => {\r\n const history = useHistory();\r\n const { referenceName } = deal;\r\n const { tab: activeTab, dealReferenceName: selectedDealReferenceName } = useParams();\r\n\r\n const isAdminOrDataEntry = user.hasRoles(roles.Administrator, roles.DataEntry);\r\n const withDocumentsAccess = isAdminOrDataEntry || user.hasRoles(...roles.seller());\r\n const isDealSelected = referenceName === selectedDealReferenceName;\r\n const isTabActive = (tab: DealsTabType) => tab === activeTab && isDealSelected;\r\n\r\n const [isCollapsed, setIsCollapsed] = useState(!isDealSelected);\r\n\r\n useEffect(() => {\r\n if (activeTab && isTabActive(activeTab)) {\r\n setIsCollapsed(false);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [selectedDealReferenceName]);\r\n\r\n useEffect(() => {\r\n setIsCollapsed(!isDealSelected);\r\n }, [isDealSelected, selectedDealReferenceName]);\r\n\r\n const handleDealClick = () => {\r\n setIsCollapsed(!isCollapsed);\r\n\r\n if (!isDealSelected) {\r\n history.push(routes.dealsUrl(referenceName, DealsTabType.Overview, undefined));\r\n }\r\n };\r\n\r\n const renderTabs = () => {\r\n let availableTabs = DealsTabTypes;\r\n\r\n if (!deal.hasClosedTransactions) {\r\n availableTabs = isAdminOrDataEntry ? availableTabs.filter(t => t.value === DealsTabType.DealDetail) : [];\r\n }\r\n\r\n if (!withDocumentsAccess) {\r\n availableTabs = availableTabs.filter(t => t.value !== DealsTabType.Documents);\r\n }\r\n\r\n return availableTabs.map(tab => {\r\n const { value, text } = tab;\r\n const isActive = isTabActive(value);\r\n\r\n if (value === DealsTabType.AmrInfo && !deal.hasAmrTransactions) {\r\n return null;\r\n }\r\n\r\n return (\r\n {\r\n isActive && e.preventDefault();\r\n e.stopPropagation();\r\n }}\r\n >\r\n \r\n {text}\r\n \r\n \r\n );\r\n });\r\n };\r\n\r\n return (\r\n
\r\n \r\n {/* */}\r\n {(deal.hasClosedTransactions || isAdminOrDataEntry) && (\r\n \r\n )}\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n {!isCollapsed &&
{renderTabs()}
}\r\n \r\n );\r\n});\r\n","import classnames from 'classnames';\r\nimport { SelectionPanelSearch } from '../amrPipeline/common/SelectionPanelSearch';\r\nimport { EmptyPlaceholder, Preloader } from '../common';\r\nimport { DealShortInfo } from '../../types/amr-pipeline/models/Deal';\r\nimport { useEffect, useLayoutEffect, useRef, useState } from 'react';\r\nimport { DealItem } from './DealItem';\r\nimport { useAppDispatch } from '../../effects/useAppDispatch';\r\nimport { dealsActions } from '../../actions/deals.actions';\r\nimport { useDebounce } from '../../effects/useDebounce';\r\n\r\ninterface Props {\r\n data: DealShortInfo[];\r\n selectedReferenceName: string;\r\n isLoading: boolean;\r\n}\r\n\r\nexport const DealsSelectionPanel = ({ data, selectedReferenceName, isLoading }: Props) => {\r\n const dispatch = useAppDispatch();\r\n const [collapsed, setCollapsed] = useState(false);\r\n const [searchTerm, setSearchTerm] = useState('');\r\n const selectedDealRef = useRef(null);\r\n\r\n const debouncedSearch = useDebounce(searchTerm, 500);\r\n\r\n useEffect(() => {\r\n var customEvent = document.createEvent('Events');\r\n customEvent.initEvent('resize', true, true);\r\n window.dispatchEvent(customEvent);\r\n }, [collapsed]);\r\n\r\n useLayoutEffect(() => {\r\n if (selectedReferenceName) {\r\n selectedDealRef.current?.scrollIntoView({ behavior: 'auto', block: 'start' });\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [data]);\r\n\r\n useEffect(() => {\r\n if (debouncedSearch.length > 2 || debouncedSearch.length === 0) {\r\n dispatch(dealsActions.getDeals(debouncedSearch));\r\n }\r\n }, [debouncedSearch, dispatch]);\r\n\r\n const handleSearchTermChange = (value: string) => {\r\n setSearchTerm(value);\r\n };\r\n\r\n const renderDeals = () =>\r\n data.map(deal => {\r\n return ;\r\n });\r\n\r\n const renderEmptyPlaceholder = () => ;\r\n\r\n return (\r\n \r\n );\r\n};\r\n","import { constants, roles } from '../../../../../constants';\r\nimport { Tranche } from '../../../../../types/amr-pipeline/models/Tranche';\r\nimport { amrFormatUtils, formatUtils, moneyUtils } from '../../../../../utils';\r\nimport { FormField } from '../../../../amrPipeline/common/FormField';\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport { Currency } from '../../../../../types/enums/Currency';\r\nimport { ShowFor } from '../../../../access';\r\n\r\ninterface ClassInfoProps {\r\n selectedClass: Tranche;\r\n dealCurrency?: Currency;\r\n closingDate?: Date;\r\n}\r\n\r\nconst { emptyPlaceholder } = constants;\r\n\r\nexport const ClassInfo = ({ selectedClass, dealCurrency, closingDate }: ClassInfoProps) => {\r\n const {\r\n ticker144A,\r\n cusip144A,\r\n isin144A,\r\n tickerRegS,\r\n cusipRegS,\r\n isinRegS,\r\n commonCodeRegS,\r\n tickerAccdInvCertif,\r\n cusipAccdInvCertif,\r\n isinAccdInvCertif,\r\n originalBalance,\r\n balance,\r\n originalMargin,\r\n margin,\r\n floaterIndex,\r\n minimumDenomination,\r\n factor,\r\n type,\r\n equity,\r\n redeemed,\r\n amr,\r\n nonAmrPeriod,\r\n nonAmrPeriodEnd,\r\n originalRatingMoodys,\r\n originalRatingSnP,\r\n originalRatingFitch,\r\n originalRatingKbra,\r\n originalRatingDbrs,\r\n ratingMoodys,\r\n ratingSnP,\r\n ratingFitch,\r\n ratingKbra,\r\n ratingDbrs,\r\n pariPassuTranches,\r\n trancheSupported,\r\n status,\r\n transactionReferenceName,\r\n name,\r\n linkedOtcName ,\r\n } = selectedClass;\r\n\r\n const { formatDate } = formatUtils;\r\n\r\n return (\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n};\r\n","import { FormField } from '../../../../amrPipeline/common/FormField';\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport { Deal } from '../../../../../types/amr-pipeline/models/Deal';\r\nimport { collateralTypesAbbr } from '../../../../../constants/collateral-types';\r\nimport { constants, roles } from '../../../../../constants';\r\nimport { formatUtils, moneyUtils } from '../../../../../utils';\r\nimport { ShowFor } from '../../../../access';\r\n\r\nconst { emptyPlaceholder } = constants;\r\n\r\ninterface Props {\r\n deal: Deal;\r\n}\r\n\r\nexport const Information = ({ deal }: Props) => {\r\n const {\r\n legalName,\r\n ticker,\r\n collateralType,\r\n currencyCode,\r\n originalBalance,\r\n currentBalance,\r\n factor,\r\n status,\r\n redeemed,\r\n } = deal;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n","import { FormField } from '../../../../amrPipeline/common/FormField';\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport { Deal } from '../../../../../types/amr-pipeline/models/Deal';\r\nimport { formatUtils } from '../../../../../utils';\r\nimport moment from 'moment';\r\nimport { constants } from '../../../../../constants';\r\n\r\ninterface Props {\r\n deal: Deal;\r\n}\r\n\r\nexport const Dates = ({ deal }: Props) => {\r\n const {\r\n closingDate,\r\n nonCallPeriodEnd,\r\n reinvestmentPeriodEnd,\r\n finalMaturity,\r\n firstPaymentDate,\r\n secondPaymentDate,\r\n quarterlyDay,\r\n quarterlyMonths,\r\n vintage,\r\n redemptionDate,\r\n } = deal;\r\n const { formatDate } = formatUtils;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n","import React from \"react\";\r\n\r\ninterface DealsContextProps {\r\n companyForPopup: string | null;\r\n setCompanyForPopup: (referenceName: string) => void;\r\n showDeleteConfirmationPopup: boolean;\r\n setShowDeleteConfirmationPopup: (show: boolean) => void;\r\n}\r\n\r\nconst DealsContext = React.createContext({\r\n companyForPopup: null,\r\n setCompanyForPopup: () => null,\r\n showDeleteConfirmationPopup: false,\r\n setShowDeleteConfirmationPopup: () => null,\r\n});\r\n\r\nexport default DealsContext;\r\n","import { FormField } from '../../../../amrPipeline/common/FormField';\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport { Deal } from '../../../../../types/amr-pipeline/models/Deal';\r\nimport { constants, routes } from '../../../../../constants';\r\nimport { useContext } from 'react';\r\nimport DealsContext from '../../../DealsContext';\r\nimport { Link } from 'react-router-dom';\r\nimport { CompanyStatus } from '../../../../../types/amr-pipeline/enums/CompanyStatus';\r\nimport { OnHoverTooltip } from '../../../../common/OnHoverTooltip';\r\n\r\ninterface Props {\r\n deal: Deal;\r\n}\r\n\r\nconst { emptyPlaceholder } = constants;\r\n\r\nexport const Parties = ({ deal }: Props) => {\r\n const { setCompanyForPopup } = useContext(DealsContext);\r\n const {\r\n collateralManager,\r\n majorityEquity,\r\n trustee,\r\n amrAgent,\r\n originalArranger,\r\n currentArranger\r\n } = deal;\r\n\r\n return (\r\n \r\n \r\n {originalArranger.legalName}\r\n \r\n ) : (\r\n emptyPlaceholder\r\n )\r\n }\r\n className=\"data-item-row-full-height data-item-row-title-md\"\r\n />\r\n \r\n {currentArranger.legalName}\r\n \r\n ) : (\r\n emptyPlaceholder\r\n )\r\n }\r\n className=\"data-item-row-full-height data-item-row-title-md\"\r\n />\r\n setCompanyForPopup(trustee.referenceName)}>\r\n {trustee.legalName}\r\n \r\n ) : (\r\n deal.trustee?.legalName ? (\r\n \r\n {deal.trustee?.legalName}\r\n \r\n ) : emptyPlaceholder\r\n )\r\n }\r\n className=\"data-item-row-full-height data-item-row-title-md\"\r\n />\r\n \r\n {collateralManager?.legalName}\r\n \r\n ) : (\r\n emptyPlaceholder\r\n )\r\n }\r\n className=\"data-item-row-full-height data-item-row-title-md\"\r\n />\r\n setCompanyForPopup(majorityEquity.referenceName)}\r\n >\r\n {majorityEquity.legalName}\r\n \r\n ) : (\r\n majorityEquity?.legalName ? (\r\n \r\n {majorityEquity?.legalName}\r\n \r\n ) : emptyPlaceholder\r\n )\r\n }\r\n className=\"data-item-row-full-height data-item-row-title-md\"\r\n />\r\n setCompanyForPopup(amrAgent.referenceName)}>\r\n {amrAgent.legalName}\r\n \r\n ) : (\r\n amrAgent?.legalName ? (\r\n \r\n {amrAgent?.legalName}\r\n \r\n ) : emptyPlaceholder\r\n )\r\n }\r\n className=\"data-item-row-full-height data-item-row-title-md\"\r\n />\r\n \r\n );\r\n};\r\n","import { useHistory } from 'react-router';\r\nimport { constants } from '../../constants';\r\nimport { dateTimeUtils } from '../../utils';\r\nimport { castArray } from 'lodash';\r\nimport IconSVG from '../../styles/svg-icons';\r\nimport { OnHoverTooltip } from '../common';\r\n\r\ninterface DealsHeaderBaseProps {\r\n title: string;\r\n dateUpdated: Date;\r\n renderTitleSuffix?: () => React.ReactNode;\r\n renderLinks?: () => React.ReactNode | React.ReactNode[];\r\n editButtonUrl?: string;\r\n editTooltip?: string;\r\n isEditDisabled?: boolean;\r\n onDeleteClick?: () => void;\r\n}\r\n\r\nexport const DealsHeaderBase = ({\r\n title,\r\n dateUpdated,\r\n renderTitleSuffix,\r\n renderLinks,\r\n editButtonUrl,\r\n editTooltip,\r\n isEditDisabled,\r\n onDeleteClick,\r\n}: DealsHeaderBaseProps) => {\r\n const history = useHistory();\r\n const dateUpdatedEst = dateTimeUtils.changeDateTimeZone(\r\n dateUpdated,\r\n constants.estTimezone,\r\n false\r\n );\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

{title}

\r\n {renderTitleSuffix && (\r\n <>\r\n
\r\n {renderTitleSuffix()}\r\n \r\n )}\r\n {(editButtonUrl || onDeleteClick) && (\r\n
\r\n {onDeleteClick &&\r\n
\r\n \r\n
\r\n }\r\n {editButtonUrl &&\r\n \r\n \r\n \r\n }\r\n
\r\n )}\r\n
\r\n
\r\n
\r\n \r\n {dateUpdatedEst.format(constants.dateFormat)}\r\n \r\n
\r\n {renderLinks && castArray(renderLinks()).map((el, index) => (\r\n
\r\n {el}\r\n
\r\n ))}\r\n
\r\n
\r\n
\r\n );\r\n};\r\n","import { useLayoutEffect, useRef, useState } from 'react';\r\nimport classNames from 'classnames';\r\nimport { ClickOutside } from '../common';\r\nimport IconSVG from '../../styles/svg-icons';\r\nimport { EmptyPlaceholder } from '../common';\r\nimport { Tranche } from '../../types/amr-pipeline/models/Tranche';\r\nimport { Table } from '../bidding/common/table';\r\nimport { constants } from '../../constants';\r\nimport { ColumnBuilder } from '../bidding/common/table/columns/column-builder/ColumnBuilder';\r\nimport { IColumnDefinition } from '../bidding/common/table/types/ColumnDefinition';\r\nimport moment from 'moment';\r\nimport { startCase } from 'lodash';\r\n\r\ninterface Props {\r\n classes: Tranche[];\r\n selectedClassReferenceName?: string;\r\n onChange: (key: string) => void;\r\n dropdownClass?: string;\r\n}\r\n\r\nconst classSelectColumnDefinitions: IColumnDefinition[] = [\r\n {\r\n columnKey: 'className',\r\n renderColumnHeaderContent: () => 'Class',\r\n renderColumnContent: dealClass => dealClass.name,\r\n },\r\n {\r\n columnKey: 'closingDate',\r\n renderColumnHeaderContent: () => 'Closing',\r\n renderColumnContent: dealClass =>\r\n dealClass.transactionClosingDate\r\n ? moment(dealClass.transactionClosingDate).format(constants.dateFormat)\r\n : constants.emptyPlaceholder,\r\n className: \"closing-type-cell\"\r\n },\r\n {\r\n columnKey: 'type',\r\n renderColumnHeaderContent: () => 'Type',\r\n renderColumnContent: dealClass => startCase(dealClass.transactionType),\r\n className: \"closing-type-cell\"\r\n },\r\n];\r\n\r\nexport const classSelectColumns = classSelectColumnDefinitions.map(c => {\r\n return new ColumnBuilder(c);\r\n});\r\n\r\nexport function ClassSelect({ classes, selectedClassReferenceName, onChange, dropdownClass }: Props) {\r\n const selected = classes.find(c => c.referenceName === selectedClassReferenceName);\r\n const [expanded, setExpanded] = useState(false);\r\n\r\n const ref = useRef(null);\r\n\r\n useLayoutEffect(() => {\r\n ref.current?.scrollIntoView();\r\n },[expanded]);\r\n\r\n const onRowClick = (dealClass: Tranche) => {\r\n onChange(dealClass.referenceName);\r\n setExpanded(false);\r\n };\r\n\r\n return (\r\n setExpanded(false)}>\r\n setExpanded(!expanded)}\r\n >\r\n Class {selected?.name}\r\n \r\n
\r\n {expanded && (\r\n
\r\n {classes.length ? (\r\n (item.referenceName === selectedClassReferenceName ? ref : null)}\r\n onRowClick={onRowClick}\r\n createSecurityCustomClassName={(c: Tranche) => {\r\n let classes = [];\r\n\r\n if (c.referenceName === selectedClassReferenceName) {\r\n classes.push('selected');\r\n }\r\n\r\n if (c.status === \"Inactive\") {\r\n classes.push('inactive-class');\r\n }\r\n\r\n return classes.join(' ');\r\n }}\r\n />\r\n ) : (\r\n \r\n )}\r\n
\r\n )}\r\n \r\n );\r\n}\r\n","import { Deal } from '../../types/amr-pipeline/models/Deal';\r\nimport { getCurrentIntexPositionIdForDeal } from '../../utils/amr-pipeline.utils';\r\nimport { IntexLink } from '../common/IntexLink';\r\n\r\ninterface DealIntexLinkProps {\r\n deal: Deal;\r\n}\r\n\r\nexport const DealIntexLink = ({ deal }: DealIntexLinkProps) => (\r\n \r\n);\r\n","import { useSelector } from 'react-redux';\r\nimport { DealsHeaderBase } from './DealsHeaderBase';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { DealsState } from '../../types/state/DealsState';\r\nimport { useHistory, useParams } from 'react-router';\r\nimport { DealsRouteParams } from './Deals';\r\nimport { ClassSelect } from './ClassSelect';\r\nimport { routes } from '../../constants';\r\nimport { ValitanaLink } from '../common/ValitanaLink';\r\nimport { BloombergLink } from '../common/BloombergLink';\r\nimport { DealIntexLink } from './DealIntexLink';\r\nimport { RelatedTransDropdown } from '../amrPipeline/common/RelatedTransDropdown';\r\n\r\ninterface Props {\r\n tab: string;\r\n editButtonUrl?: string;\r\n}\r\n\r\nexport const DealsClassHeader = ({ tab, editButtonUrl }: Props) => {\r\n const history = useHistory();\r\n const { selectedDeal } = useSelector(state => state.deals);\r\n\r\n const { dealReferenceName, classReferenceName } = useParams();\r\n const activeClass = selectedDeal?.classes.find(c => c.referenceName === classReferenceName);\r\n const withTransactions = !!selectedDeal?.transactions?.length;\r\n\r\n if (!selectedDeal) {\r\n return null;\r\n }\r\n\r\n const renderRelatedTransIcon = () => {\r\n return (\r\n \r\n );\r\n };\r\n\r\n const onChangeClass = (dealClassReferenceName: string) => {\r\n return history.push(routes.dealsUrl(dealReferenceName, tab, dealClassReferenceName));\r\n }\r\n\r\n return (\r\n (\r\n <>\r\n
\r\n \r\n \r\n )\r\n : undefined\r\n }\r\n renderLinks={() => [\r\n renderRelatedTransIcon(),\r\n ,\r\n ,\r\n ,\r\n ]}\r\n />\r\n );\r\n};\r\n","import { head } from \"lodash\";\r\nimport { useEffect } from \"react\";\r\nimport { DealsTabType } from \"../../types/deals/DealsTabType\";\r\nimport { useHistory } from \"react-router\";\r\nimport { Deal, DealShortInfo } from \"../../types/amr-pipeline/models/Deal\";\r\nimport { Tranche } from \"../../types/amr-pipeline/models/Tranche\";\r\nimport { routes } from \"../../constants\";\r\n\r\nexport const useFirstClassNavigation = (\r\n dealReferenceName: string,\r\n dealTab: DealsTabType,\r\n data?: DealShortInfo[],\r\n selectedDeal?: Deal,\r\n selectedClass?: Tranche,\r\n) => {\r\n const history = useHistory();\r\n\r\n useEffect(() => {\r\n const firstClass = head(selectedDeal?.classes);\r\n if(selectedClass || !data || !firstClass) {\r\n return;\r\n }\r\n\r\n history.replace(\r\n routes.dealsUrl(\r\n dealReferenceName,\r\n dealTab,\r\n firstClass.referenceName\r\n )\r\n ); \r\n }, [selectedDeal, selectedClass, history, data, dealReferenceName, dealTab]);\r\n};\r\n\r\n","import { useSelector } from 'react-redux';\r\nimport { AppState } from '../../../../types/state/AppState';\r\nimport { DealsState } from '../../../../types/state/DealsState';\r\nimport { DealsRouteParams } from '../../Deals';\r\nimport { DealsTabType } from '../../../../types/deals/DealsTabType';\r\nimport { ClassInfo } from './sections/ClassInfo';\r\nimport { Information } from './sections/Information';\r\nimport { Dates } from './sections/Dates';\r\nimport { Parties } from './sections/Parties';\r\nimport { TrancheStatus } from '../../../../types/amr-pipeline/enums/TrancheStatus';\r\nimport { DealsClassHeader } from '../../DealsClassHeader';\r\nimport { Currency } from '../../../../types/enums/Currency';\r\nimport { useFirstClassNavigation } from '../../useFirstClassNavigation';\r\nimport { user } from '../../../../user';\r\nimport { roles, routes } from '../../../../constants';\r\nimport { TransactionStatus } from '../../../../types/amr-pipeline/enums/TransactionStatus';\r\nimport { EmptyPlaceholder } from '../../../common';\r\n\r\nexport const Overview = ({ dealReferenceName, classReferenceName }: DealsRouteParams) => {\r\n const { selectedDeal, data } = useSelector(state => state.deals);\r\n const isAdminOrDataEntry = user.hasRoles(\r\n roles.Administrator,\r\n roles.DataEntry\r\n );\r\n\r\n const dealClasses = isAdminOrDataEntry\r\n ? selectedDeal?.classes\r\n : selectedDeal?.classes.filter(c => c.status !== TrancheStatus.Draft);\r\n const selectedClass = dealClasses?.find(c => c.referenceName === classReferenceName);\r\n\r\n useFirstClassNavigation(\r\n dealReferenceName,\r\n DealsTabType.Overview,\r\n data,\r\n selectedDeal,\r\n selectedClass\r\n );\r\n\r\n if (!selectedDeal) {\r\n return null;\r\n }\r\n\r\n const hasEmptyContent =\r\n !isAdminOrDataEntry &&\r\n !selectedDeal.transactions?.some(\r\n (t) => t.status === TransactionStatus.Closed\r\n );\r\n\r\n const renderEmptyPlaceHolder = () => {\r\n const transactionUrl = selectedDeal.transactions?.length\r\n ? routes.transactionDetailUrl(\r\n selectedDeal.transactions[0].referenceName,\r\n selectedDeal.referenceName\r\n )\r\n : null;\r\n return (\r\n \r\n Information will be available after the first transaction closing.
\r\n {transactionUrl && (\r\n <>\r\n \r\n Click here\r\n {\" \"}\r\n to view transaction details.\r\n \r\n )}\r\n
\r\n }\r\n />\r\n );\r\n };\r\n\r\n return (\r\n
\r\n \r\n
\r\n {hasEmptyContent ? (\r\n renderEmptyPlaceHolder()\r\n ) : (\r\n <>\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n {selectedClass && (\r\n \r\n )}\r\n \r\n
\r\n
\r\n \r\n )}\r\n
\r\n
\r\n );\r\n};\r\n","import { CompanyWithMembers } from '../../../../types/amr-pipeline/models/Company';\r\nimport { FormField } from '../../../amrPipeline/common/FormField';\r\n\r\ninterface Props {\r\n company?: CompanyWithMembers;\r\n}\r\n\r\nexport const CompanyTab = ({ company }: Props) => {\r\n const renderAddress = () => {\r\n if (!company) return null;\r\n\r\n const { address, city, state, zipCode, country } = company;\r\n\r\n return (\r\n
\r\n

{address}

\r\n

{city?.name}, {state?.name}

\r\n

{zipCode}, {country?.name}

\r\n
\r\n );\r\n };\r\n\r\n return ;\r\n};\r\n","import { EmptyPlaceholder, OnHoverTooltip } from '../../../common';\r\nimport { Contact } from '../../../../types/amr-pipeline/models/Contact';\r\nimport { Table } from '../../../bidding/common/table';\r\nimport { IColumnDefinition } from '../../../bidding/common/table/types/ColumnDefinition';\r\nimport { nameUtils } from '../../../../utils';\r\nimport { constants } from '../../../../constants';\r\nimport IconSVG from '../../../../styles/svg-icons';\r\nimport { ColumnBuilder } from '../../../bidding/common/table/columns/column-builder/ColumnBuilder';\r\n\r\ninterface Props {\r\n members?: Contact[];\r\n primaryContact?: Contact;\r\n collateralManagerReferenceName?: string;\r\n}\r\n\r\nconst fullName: IColumnDefinition = {\r\n columnKey: 'fullName',\r\n renderColumnHeaderContent: () => 'Full Name',\r\n renderColumnContent: ({ firstName, lastName }) => {\r\n const fullName = nameUtils.getFullName(firstName, lastName);\r\n\r\n return (\r\n
\r\n \r\n {fullName}\r\n \r\n
\r\n );\r\n },\r\n className: 'data-list-cell-lg',\r\n };\r\nconst nameOfGroup: IColumnDefinition = {\r\n ...fullName,\r\n renderColumnContent: (name) => name,\r\n}\r\n\r\nconst memberColumnsDefinitions: IColumnDefinition[] = [\r\n {\r\n columnKey: 'iconContact',\r\n renderColumnHeaderContent: () => null,\r\n renderColumnContent: (member, { primaryContact }) => (\r\n <>\r\n {member.email === primaryContact?.email && (\r\n \r\n \r\n \r\n )}\r\n \r\n ),\r\n className: 'data-list-cell-xxs padding-l-0 text-center',\r\n },\r\n {\r\n columnKey: 'email',\r\n renderColumnHeaderContent: () => 'Email',\r\n renderColumnContent: member => (\r\n
\r\n \r\n {member.email}\r\n \r\n
\r\n ),\r\n className: 'data-list-cell-xl',\r\n },\r\n {\r\n columnKey: 'phone',\r\n renderColumnHeaderContent: () => 'Phone',\r\n renderColumnContent: member => member.mobilePhoneNumber || constants.emptyPlaceholder,\r\n className: 'data-list-cell-md',\r\n },\r\n];\r\n\r\nconst memberColumns = [fullName, ...memberColumnsDefinitions].map(c => new ColumnBuilder(c));\r\nconst memberCollapsibleColumns = [fullName, ...memberColumnsDefinitions].map(c => new ColumnBuilder({ ...c, renderColumnHeaderContent: () => null }));\r\nconst memberHeadColumns = [new ColumnBuilder(nameOfGroup), ...memberColumnsDefinitions.map(c => new ColumnBuilder({ ...c, renderColumnContent: () => null}))];\r\n\r\nconst MembersTab = ({ members, collateralManagerReferenceName, primaryContact }: Props) => {\r\n const withAssignedCollateralManager = (member: Contact) =>\r\n member.assignedCollateralManagerReferenceName === collateralManagerReferenceName;\r\n\r\n const isListGrouped = members?.some(withAssignedCollateralManager) && !members.every(withAssignedCollateralManager);\r\n\r\n const renderCollapsibleList = () => {\r\n const allMembers = (members || []).reduce(\r\n (acc: { assignedContacts: Contact[]; otherContacts: Contact[] }, member) => {\r\n const list: keyof typeof acc = withAssignedCollateralManager(member)\r\n ? 'assignedContacts'\r\n : 'otherContacts';\r\n\r\n return { ...acc, [list]: [...acc[list], member] };\r\n },\r\n { assignedContacts: [], otherContacts: [] },\r\n );\r\n\r\n const { assignedContacts, otherContacts } = allMembers;\r\n const assignedTitle = `Assigned Contacts (${assignedContacts.length})`;\r\n const otherTitle = `Other Contacts (${otherContacts.length})`;\r\n\r\n const allRows = [assignedTitle, otherTitle];\r\n\r\n const renderCollapsibleItem = (listItem: string) => {\r\n return (\r\n \r\n );\r\n };\r\n\r\n return (\r\n \r\n );\r\n };\r\n\r\n const renderPlainList = () => {\r\n return (\r\n ({ primaryContact })}\r\n className=\"data-list-striped\"\r\n />\r\n )\r\n };\r\n\r\n const renderList = () => (isListGrouped ? renderCollapsibleList() : renderPlainList());\r\n\r\n if (!members?.length) {\r\n return ;\r\n }\r\n\r\n return renderList();\r\n};\r\n\r\nexport default MembersTab;\r\n","import { useState } from 'react';\r\nimport { CompanyTab } from './tabs/Company';\r\nimport { Contact } from '../../../types/amr-pipeline/models/Contact';\r\nimport { useCompany } from '../../../effects/data-accessors/useCompany';\r\nimport Popup from '../../controls/Popup';\r\nimport { TabList } from '../../bidding/common/tab-list/TabList';\r\nimport { TabItem } from '../../bidding/common/tab-list/TabItem';\r\nimport { sortContactsByPrimary } from '../../../utils/amr-pipeline.utils';\r\nimport MembersTab from './tabs/Members';\r\n\r\nenum Tab {\r\n Members,\r\n Company,\r\n}\r\n\r\ninterface Props {\r\n companyReferenceName: string;\r\n collateralManagerReferenceName?: string;\r\n onClose: () => void;\r\n}\r\n\r\nexport const CompanyPopup = ({ companyReferenceName, collateralManagerReferenceName, onClose }: Props) => {\r\n const [tab, setTab] = useState(Tab.Members);\r\n\r\n const { companyWithMembers } = useCompany(companyReferenceName);\r\n\r\n const { members, primaryContact, legalName } = companyWithMembers || {};\r\n\r\n if (!companyWithMembers) {\r\n return null;\r\n }\r\n\r\n const renderTab = () => {\r\n if (tab === Tab.Company) {\r\n return ;\r\n }\r\n\r\n let sortedMembers: Contact[] = [];\r\n\r\n if (members && members.length) {\r\n sortedMembers = sortContactsByPrimary(members, primaryContact);\r\n }\r\n\r\n return (\r\n \r\n );\r\n };\r\n\r\n if (!members) {\r\n return null;\r\n }\r\n\r\n const getMembersTitle = () => {\r\n let title = \"Members\";\r\n if (members.length) {\r\n title += ` (${members.length})`;\r\n }\r\n\r\n return title;\r\n };\r\n\r\n return (\r\n \r\n
\r\n \r\n setTab(Tab.Members)}\r\n />\r\n setTab(Tab.Company)} />\r\n \r\n
{renderTab()}
\r\n
\r\n
\r\n \r\n
\r\n
\r\n );\r\n};\r\n","import { capitalize } from \"lodash\";\r\nimport { FormField } from '../../../../amrPipeline/common/FormField';\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport { Deal } from '../../../../../types/amr-pipeline/models/Deal';\r\nimport { formatUtils } from '../../../../../utils';\r\nimport { renderMarkdownOrEmpty } from \"../../../../common/markdown-editor\";\r\n\r\ninterface Props {\r\n deal: Deal;\r\n}\r\n\r\nexport const AdditionalInformation = ({ deal }: Props) => {\r\n const {\r\n euCompliance,\r\n euRiskRetentionRequirements,\r\n euDisclosureRequirements,\r\n esg,\r\n esgComment,\r\n staticDeal,\r\n amrDeal,\r\n } = deal;\r\n\r\n return (\r\n \r\n \r\n \r\n
\r\n {renderMarkdownOrEmpty(euRiskRetentionRequirements)}\r\n
\r\n
\r\n \r\n
\r\n {renderMarkdownOrEmpty(euDisclosureRequirements)}\r\n
\r\n \r\n \r\n \r\n
\r\n {renderMarkdownOrEmpty(esgComment)}\r\n
\r\n \r\n \r\n \r\n \r\n );\r\n};\r\n","import { FormField } from '../../../../amrPipeline/common/FormField';\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport { Deal } from '../../../../../types/amr-pipeline/models/Deal';\r\nimport { formatUtils } from '../../../../../utils';\r\nimport { constants } from '../../../../../constants';\r\n\r\ninterface Props {\r\n deal: Deal;\r\n}\r\n\r\nconst { emptyPlaceholder } = constants;\r\n\r\nexport const ManagementFee = ({ deal }: Props) => {\r\n const { seniorManagementFee, incentiveManagementFee, subManagementFee } = deal;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n","import { FormField } from '../../../../amrPipeline/common/FormField';\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport { Deal } from '../../../../../types/amr-pipeline/models/Deal';\r\nimport { formatUtils, moneyUtils } from '../../../../../utils';\r\nimport { constants } from '../../../../../constants';\r\n\r\ninterface Props {\r\n deal: Deal;\r\n}\r\n\r\nconst { emptyPlaceholder } = constants;\r\n\r\nexport const AdministrativeFee = ({ deal }: Props) => {\r\n const { adminExpenseCap, adminExpenseCapPercentage, trusteeFee } = deal;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n","import React from 'react';\r\nimport { Deal } from '../../../../../types/amr-pipeline/models/Deal';\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport { IColumnDefinition } from '../../../../bidding/common/table/types/ColumnDefinition';\r\nimport IconSVG from '../../../../../styles/svg-icons';\r\nimport { Link } from 'react-router-dom';\r\nimport { SORT, SORTING_TYPE, constants, routes } from '../../../../../constants';\r\nimport { Transaction } from '../../../../../types/amr-pipeline/models/Transaction';\r\nimport { formatUtils } from '../../../../../utils';\r\nimport { ColumnBuilder } from '../../../../bidding/common/table/columns/column-builder/ColumnBuilder';\r\nimport { Table } from '../../../../bidding/common/table';\r\nimport { startCase } from 'lodash';\r\nimport { EmptyPlaceholder, OnHoverTooltip } from '../../../../common';\r\n\r\ninterface Props {\r\n deal: Deal;\r\n}\r\n\r\nconst dealAmendmentDetailsColumnsDefinition: IColumnDefinition<\r\n Transaction,\r\n { dealReferenceName: string; previousTransaction?: Transaction }\r\n>[] = [\r\n {\r\n columnKey: 'type',\r\n renderColumnHeaderContent: () => 'Type',\r\n renderColumnContent: transaction => startCase(transaction.type),\r\n sortingField: 'type',\r\n },\r\n {\r\n columnKey: 'link',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (transaction, { dealReferenceName }) => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n },\r\n className: 'data-list-cell-xxs',\r\n },\r\n {\r\n columnKey: 'closingDate',\r\n renderColumnHeaderContent: () => 'Closing',\r\n renderColumnContent: transaction =>\r\n transaction.closingDate ? formatUtils.formatDate(transaction.closingDate) : constants.emptyPlaceholder,\r\n sortingField: 'closingDate',\r\n sortingType: SORTING_TYPE.date,\r\n },\r\n {\r\n columnKey: 'riEnd',\r\n renderColumnHeaderContent: () => 'Previous / Amended RIE',\r\n renderColumnContent: (transaction, { previousTransaction }) =>\r\n `${\r\n previousTransaction?.reinvestmentPeriodEnd\r\n ? formatUtils.formatDate(previousTransaction.reinvestmentPeriodEnd)\r\n : constants.emptyPlaceholder\r\n } / ${\r\n transaction.reinvestmentPeriodEnd\r\n ? formatUtils.formatDate(transaction.reinvestmentPeriodEnd)\r\n : constants.emptyPlaceholder\r\n }`,\r\n className: 'data-list-cell-xl',\r\n },\r\n {\r\n columnKey: 'ncEnd',\r\n renderColumnHeaderContent: () => 'Previous / Amended NCE',\r\n renderColumnContent: (transaction, { previousTransaction }) =>\r\n `${\r\n previousTransaction?.nonCallPeriodEnd\r\n ? formatUtils.formatDate(previousTransaction.nonCallPeriodEnd)\r\n : constants.emptyPlaceholder\r\n } / ${\r\n transaction.nonCallPeriodEnd\r\n ? formatUtils.formatDate(transaction.nonCallPeriodEnd)\r\n : constants.emptyPlaceholder\r\n }`,\r\n className: 'data-list-cell-xl',\r\n },\r\n {\r\n columnKey: 'maturity',\r\n renderColumnHeaderContent: () => 'Previous / Amended Maturity',\r\n renderColumnContent: (transaction, { previousTransaction }) =>\r\n `${\r\n previousTransaction?.statedMaturity ?? previousTransaction?.finalMaturity\r\n ? formatUtils.formatDate(previousTransaction.statedMaturity ?? previousTransaction.finalMaturity)\r\n : constants.emptyPlaceholder\r\n } / ${\r\n transaction.statedMaturity ?? transaction.finalMaturity\r\n ? formatUtils.formatDate(transaction.statedMaturity ?? transaction.finalMaturity)\r\n : constants.emptyPlaceholder\r\n }`,\r\n className: 'data-list-cell-xl',\r\n },\r\n];\r\n\r\nconst dealAmendmentDetailsColumns = dealAmendmentDetailsColumnsDefinition.map(column => new ColumnBuilder(column));\r\n\r\nexport const DealAmendmentDetails = ({ deal }: Props) => {\r\n const transactions = deal.transactions;\r\n\r\n if (!transactions) {\r\n return null;\r\n }\r\n\r\n const findPreviousTransaction = (referenceName: string) => {\r\n const index = transactions.findIndex(t => t.referenceName === referenceName);\r\n\r\n if (index === -1) {\r\n return undefined;\r\n }\r\n\r\n return transactions[index + 1];\r\n };\r\n\r\n return (\r\n \r\n {!!transactions.length ? (\r\n ({\r\n dealReferenceName: deal.referenceName,\r\n previousTransaction: findPreviousTransaction(t.referenceName),\r\n })}\r\n className=\"data-list-striped\"\r\n />\r\n ) : (\r\n \r\n )}\r\n \r\n );\r\n};\r\n","import { useSelector } from 'react-redux';\r\nimport { DealsHeaderBase } from './DealsHeaderBase';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { DealsState } from '../../types/state/DealsState';\r\nimport { useParams } from 'react-router';\r\nimport { DealsRouteParams } from './Deals';\r\nimport { DealIntexLink } from './DealIntexLink';\r\nimport { RelatedTransDropdown } from '../amrPipeline/common/RelatedTransDropdown';\r\n\r\ninterface Props {\r\n editButtonUrl?: string;\r\n editTooltip?: string;\r\n isEditDisabled?: boolean;\r\n onDeleteClick?: () => void;\r\n}\r\n\r\nexport const DealsDefaultHeader = ({ editButtonUrl, editTooltip, isEditDisabled, onDeleteClick }: Props) => {\r\n const { selectedDeal } = useSelector(state => state.deals);\r\n\r\n const { dealReferenceName } = useParams();\r\n\r\n const hasTransactions = !!selectedDeal?.transactions?.length;\r\n\r\n if (!selectedDeal) {\r\n return null;\r\n }\r\n\r\n const renderRelatedTransIcon = () => (\r\n \r\n );\r\n\r\n return (\r\n [\r\n renderRelatedTransIcon(),\r\n ,\r\n ]}\r\n editButtonUrl={editButtonUrl}\r\n editTooltip={editTooltip}\r\n isEditDisabled={isEditDisabled}\r\n />\r\n );\r\n};\r\n","import { useSelector } from 'react-redux';\r\nimport { AppState } from '../../../../types/state/AppState';\r\nimport { DealsState } from '../../../../types/state/DealsState';\r\nimport { Dates } from '../overview/sections/Dates';\r\nimport { Information } from '../overview/sections/Information';\r\nimport { Parties } from '../overview/sections/Parties';\r\nimport { AdditionalInformation } from './sections/Additional Information';\r\nimport { ManagementFee } from './sections/ManagementFee';\r\nimport { AdministrativeFee } from './sections/AdministrativeFee';\r\nimport { DealAmendmentDetails } from './sections/DealAmendmentDetails';\r\nimport { DealsDefaultHeader } from '../../DealsDefaultHeader';\r\nimport { roles, routes } from '../../../../constants';\r\nimport { DealsTabType } from '../../../../types/deals/DealsTabType';\r\nimport { useContext } from 'react';\r\nimport DealsContext from '../../DealsContext';\r\nimport { DealStatus } from '../../../../types/amr-pipeline/enums/DealStatus';\r\nimport { user } from '../../../../user/user';\r\nimport { ShowFor } from '../../../access';\r\n\r\nexport const DealDetail = () => {\r\n const { setShowDeleteConfirmationPopup } = useContext(DealsContext);\r\n const { selectedDeal } = useSelector(state => state.deals);\r\n\r\n const isEditAvailable = user.hasRoles(...roles.dealsEdit());\r\n\r\n if (!selectedDeal) {\r\n return null;\r\n }\r\n\r\n return (\r\n
\r\n setShowDeleteConfirmationPopup(true)\r\n : undefined\r\n }\r\n />\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n );\r\n};\r\n","import { isNil } from 'lodash';\r\n\r\ninterface DealsSaveHeaderProps {\r\n title: string;\r\n subTitle: string;\r\n isUpdating?: boolean;\r\n hasChanges?: boolean;\r\n onSaveClick: () => void;\r\n onCancelClick: () => void;\r\n}\r\n\r\nexport const DealsSaveHeader = ({\r\n title,\r\n subTitle,\r\n isUpdating,\r\n hasChanges,\r\n onSaveClick,\r\n onCancelClick,\r\n}: DealsSaveHeaderProps) => {\r\n const saveButtonDisabled = isUpdating || (!isNil(hasChanges) && !hasChanges);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

{title}

\r\n {subTitle}\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n};\r\n","import * as Yup from 'yup';\r\n\r\nconst RequiredMessage = 'Required';\r\n\r\nexport const DealValidationSchema = Yup.object().shape(\r\n {\r\n legalName: Yup.string().trim().required(RequiredMessage),\r\n }\r\n);\r\n","import { FormikProps, Formik } from 'formik';\r\nimport { useRef, useEffect, useMemo } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { dealsActions } from '../../../../../actions/deals.actions';\r\nimport { useAppDispatch } from '../../../../../effects/useAppDispatch';\r\nimport { DealSave } from '../../../../../types/deals/DealSave';\r\nimport { AppState } from '../../../../../types/state/AppState';\r\nimport { DealsState } from '../../../../../types/state/DealsState';\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport { RouteLeavingGuard } from '../../../../routing';\r\nimport { collateralTypesSelectOptions } from '../../../../../constants/collateral-types';\r\nimport { Currencies } from '../../../../../types/enums/Currency';\r\nimport { FormField } from '../../../../amrPipeline/common/FormField';\r\nimport { constants, routes } from '../../../../../constants';\r\nimport { formatUtils } from '../../../../../utils';\r\nimport { DealStatus } from '../../../../../types/amr-pipeline/enums/DealStatus';\r\nimport moment from 'moment';\r\nimport { Preloader } from '../../../../common';\r\nimport { times, trim } from 'lodash';\r\nimport { DealsSaveHeader } from '../../../DealsSaveHeader';\r\nimport { DealsTabType } from '../../../../../types/deals/DealsTabType';\r\nimport { Company } from \"../../../../../types/amr-pipeline/models/Company\";\r\nimport { useParties } from '../../../../../effects/data-accessors/useParties';\r\nimport { TextField } from '../../../../common/form-fields/TextField';\r\nimport { SelectField } from '../../../../common/form-fields/SelectField';\r\nimport { NumberField } from '../../../../common/form-fields/NumberField';\r\nimport { CheckboxField } from '../../../../common/form-fields/CheckboxField';\r\nimport { DateField } from '../../../../common/form-fields/DateField';\r\nimport { MarkdownField } from '../../../../common/form-fields/MarkdownField';\r\nimport { SelectSearchField } from '../../../../forms/SelectSearchField';\r\nimport { DealValidationSchema } from './DealValidationSchema';\r\n\r\nconst currencyOptions = Currencies.map(currency => ({ value: currency, label: currency }));\r\nconst statusOptions = [\r\n {\r\n value: DealStatus.Ready,\r\n label: 'Ready',\r\n },\r\n {\r\n value: DealStatus.NewIssueDraft,\r\n label: 'New Issue',\r\n },\r\n {\r\n value: DealStatus.Draft,\r\n label: 'Draft',\r\n },\r\n];\r\n\r\nconst quarterlyDaysOptions = times(31, index => ({\r\n value: index + 1,\r\n label: index + 1,\r\n}));\r\n\r\nconst quarterlyMonthsOptions = ['Jan, Apr, Jul, Oct', 'Feb, May, Aug, Nov', 'Mar, Jun, Sep, Dec'].map(months => ({\r\n value: months,\r\n label: months,\r\n}));\r\n\r\nconst formatCompaniesToSelect = (selectedReferenceName?: string) => (company: Company) => ({\r\n value: company.referenceName,\r\n text: company.legalName,\r\n selected: company.referenceName === selectedReferenceName,\r\n});\r\n\r\nexport const EditDealDetails = () => {\r\n const dispatch = useAppDispatch();\r\n const history = useHistory();\r\n\r\n const formRef = useRef>(null);\r\n const { editDeal, isUpdating } = useSelector(state => state.deals);\r\n const { items: companies } = useParties();\r\n\r\n const availableStatusOptions = useMemo(() => {\r\n const showDraft = !editDeal?.transactions?.length && !editDeal?.hasAmrTransactions;\r\n\r\n return showDraft ? statusOptions : statusOptions.filter(option => option.value !== DealStatus.Draft);\r\n }, [editDeal?.hasAmrTransactions, editDeal?.transactions?.length]);\r\n\r\n useEffect(() => {\r\n dispatch(dealsActions.editDeal());\r\n\r\n return () => {\r\n dispatch(dealsActions.editDealReset());\r\n };\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n if (!editDeal || !companies) {\r\n return null;\r\n }\r\n\r\n if (isUpdating) {\r\n return \r\n }\r\n\r\n const handleSubmit = (values: DealSave) => {\r\n const deals = { ...values, ticker: trim(values.ticker), transactions: undefined };\r\n\r\n dispatch(dealsActions.updateDeal(editDeal.referenceName, deals));\r\n };\r\n\r\n const calculateFactor = (currentBalance?: number, originalBalance?: number) => {\r\n if (!currentBalance || !originalBalance) {\r\n return constants.emptyPlaceholder;\r\n }\r\n\r\n return formatUtils.formatFactor(currentBalance / originalBalance);\r\n };\r\n\r\n return (\r\n \r\n {({ values, dirty, isSubmitting, submitForm }) => (\r\n <>\r\n \r\n history.push(routes.dealsUrl(editDeal.referenceName, DealsTabType.DealDetail))\r\n }\r\n />\r\n history.push(pathname)}\r\n shouldBlockNavigation={() => !!dirty && !isSubmitting}\r\n />\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n )}\r\n \r\n );\r\n};\r\n","import { SectionContent } from \"../../../../amrPipeline/common/section/SectionContent\";\r\nimport { Tranche } from \"../../../../../types/amr-pipeline/models/Tranche\";\r\nimport { useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { dealsActions } from \"../../../../../actions/deals.actions\";\r\nimport { useInvenotory } from \"../../../../../effects/data-accessors/useInventory\";\r\nimport { AppState } from \"../../../../../types/state/AppState\";\r\nimport { isRequestNone, isRequesting } from \"../../../../../utils\";\r\nimport { SecurityHistory } from \"../../../../security-details/SecurityHistory\";\r\nimport { PxTalkHistoricalColorDispersion } from \"../../../../security-details/PxTalkHistoricalColorDispersion\";\r\nimport { EmptyPlaceholder, Preloader } from \"../../../../common\";\r\nimport { DealsState } from \"../../../../../types/state/DealsState\";\r\n\r\ninterface Props {\r\n selectedClass: Tranche;\r\n}\r\n\r\nexport const ClassSecondaryInfo = ({ selectedClass }: Props) => {\r\n const { classSecurity, classSecurityStats, isSecondaryInfoLoading } =\r\n useSelector((state) => state.deals);\r\n const isInventoryDisabled = classSecurity == null;\r\n const inventoryState = useInvenotory(\r\n isInventoryDisabled,\r\n [],\r\n classSecurity?.ticker || \"\"\r\n );\r\n\r\n const dispatch = useDispatch();\r\n\r\n useEffect(() => {\r\n dispatch(dealsActions.getClassSecondaryInfo(selectedClass));\r\n }, [dispatch, selectedClass]);\r\n\r\n const isLoading =\r\n isSecondaryInfoLoading ||\r\n (!isInventoryDisabled &&\r\n (isRequestNone(inventoryState.requestState) ||\r\n isRequesting(inventoryState.requestState))\r\n );\r\n\r\n const withHistoryData =\r\n classSecurity &&\r\n (classSecurityStats.count || inventoryState.inventory.length);\r\n\r\n return (\r\n \r\n
\r\n \r\n {withHistoryData ? (\r\n <>\r\n \r\n \r\n \r\n ) : (\r\n \r\n )}\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\n","import { useSelector } from \"react-redux\";\r\nimport { AppState } from \"../../../../types/state/AppState\";\r\nimport { DealsState } from \"../../../../types/state/DealsState\";\r\nimport { DealsRouteParams } from \"../../Deals\";\r\nimport { DealsTabType } from \"../../../../types/deals/DealsTabType\";\r\nimport { ClassInfo } from \"../overview/sections/ClassInfo\";\r\nimport { ClassSecondaryInfo } from \"./sections/ClassSecondaryInfo\";\r\nimport { DealsClassHeader } from \"../../DealsClassHeader\";\r\nimport { useFirstClassNavigation } from \"../../useFirstClassNavigation\";\r\n\r\nexport const ClassDetails = ({ dealReferenceName, classReferenceName }: DealsRouteParams) => {\r\n const { selectedDeal, data } = useSelector(\r\n (state) => state.deals\r\n );\r\n const selectedClass = selectedDeal?.classes.find(\r\n (c) => c.referenceName === classReferenceName\r\n );\r\n\r\n useFirstClassNavigation(\r\n dealReferenceName,\r\n DealsTabType.ClassDetail,\r\n data,\r\n selectedDeal,\r\n selectedClass\r\n );\r\n\r\n if (!selectedDeal || !selectedClass) {\r\n return null;\r\n }\r\n\r\n return (\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n );\r\n};\r\n","import { useSelector } from 'react-redux';\r\nimport { AppState } from '../../../../types/state/AppState';\r\nimport { DealsState } from '../../../../types/state/DealsState';\r\nimport { FormField } from '../../../amrPipeline/common/FormField';\r\nimport { formatUtils, moneyUtils, numericUtils } from '../../../../utils';\r\nimport { Table } from '../../../bidding/common/table';\r\nimport { AmrTransaction } from '../../../../types/amr-pipeline/models/AmrTransaction';\r\nimport { TransactionType } from '../../../../types/amr-pipeline/enums/TransactionType';\r\nimport { IColumnDefinition } from '../../../bidding/common/table/types/ColumnDefinition';\r\nimport { SORTING_TYPE, constants, roles, routes } from '../../../../constants';\r\nimport StatusLabel from '../../../amrPipeline/StatusLabel';\r\nimport { transactionStatusTitles } from '../../../../types/amr-pipeline/enums/TransactionStatus';\r\nimport { Link } from 'react-router-dom';\r\nimport { ColumnBuilder } from '../../../bidding/common/table/columns/column-builder/ColumnBuilder';\r\nimport { AmrClass } from '../../../../types/amr-pipeline/models/AmrClass';\r\nimport { AmrClassStatusLabel } from '../../../amrPipeline/common/AmrClassStatusLabel';\r\nimport { isNil } from 'lodash';\r\nimport { OnHoverTooltip } from '../../../common';\r\nimport { NonAmrPeriod } from '../../../amrPipeline/common/NonAmrPeriod';\r\nimport IconSVG from '../../../../styles/svg-icons';\r\nimport { DealsDefaultHeader } from '../../DealsDefaultHeader';\r\nimport { user } from '../../../../user/user';\r\nimport { TableColumnStickType } from '../../../bidding/common/table/types/TableColumnStickType';\r\n\r\nconst actionsColumn: IColumnDefinition = {\r\n columnKey: 'actions',\r\n renderColumnHeaderContent: () => 'Actions',\r\n renderColumnContent: transaction => (\r\n \r\n \r\n View / Edit AMR\r\n \r\n ),\r\n className: 'data-list-cell-md data-list-cell-action text-right',\r\n stickRight: true,\r\n};\r\n\r\nconst transactionColumnsDefinition: IColumnDefinition[] = [\r\n {\r\n columnKey: 'lastUpdated',\r\n renderColumnHeaderContent: () => 'Last Updated',\r\n renderColumnContent: transaction => formatUtils.formatDate(transaction.lastUpdated),\r\n sortingField: 'lastUpdated',\r\n sortingType: SORTING_TYPE.date,\r\n className: 'data-list-cell-sm',\r\n },\r\n {\r\n columnKey: 'status',\r\n renderColumnHeaderContent: () => 'Trans. Status',\r\n renderColumnContent: transaction => ,\r\n sortingField: 'status',\r\n className: 'data-list-cell-sm-01',\r\n sortingType: SORTING_TYPE.transactionStatus\r\n },\r\n {\r\n columnKey: 'settlementDate',\r\n renderColumnHeaderContent: () => 'AMR Settlement',\r\n renderColumnContent: transaction => formatUtils.formatDate(transaction.closingDate),\r\n sortingField: 'closingDate',\r\n sortingType: SORTING_TYPE.date,\r\n className: 'data-list-cell-auto',\r\n },\r\n];\r\nconst classesColumnsDefinition: IColumnDefinition[] = [\r\n {\r\n columnKey: 'status',\r\n renderColumnHeaderContent: () => 'Auction Status',\r\n renderColumnContent: amrClass => ,\r\n className: 'data-list-cell-lg',\r\n },\r\n {\r\n columnKey: 'class',\r\n renderColumnHeaderContent: () => 'Class',\r\n renderColumnContent: amrClass => amrClass.name,\r\n className: 'data-list-cell-sm',\r\n },\r\n {\r\n columnKey: 'cusip',\r\n renderColumnHeaderContent: () => 'Identifier 1 (144A)',\r\n renderColumnContent: amrClass => amrClass.cusip,\r\n className: 'data-list-cell-sm',\r\n },\r\n {\r\n columnKey: 'rating',\r\n renderColumnHeaderContent: () => 'Cur. Rtg (M/S/F/K/D)',\r\n renderColumnContent: amrClass =>\r\n `${amrClass.ratingMoodys || constants.emptyPlaceholder}/${\r\n amrClass.ratingSnP || constants.emptyPlaceholder\r\n }/${amrClass.ratingFitch || constants.emptyPlaceholder}/${\r\n amrClass.ratingKbra || constants.emptyPlaceholder\r\n }/${amrClass.ratingDbrs || constants.emptyPlaceholder}`,\r\n className: 'data-list-cell-xl',\r\n },\r\n {\r\n columnKey: 'balance',\r\n renderColumnHeaderContent: () => 'Cur. Bal',\r\n renderColumnContent: amrClass =>\r\n !isNil(amrClass.balance) && numericUtils.isNumber(amrClass.balance)\r\n ? moneyUtils.money(amrClass.balance)\r\n : constants.emptyPlaceholder,\r\n className: 'data-list-cell-sm text-right',\r\n },\r\n {\r\n columnKey: 'totalBids',\r\n renderColumnHeaderContent: () => 'Total Bids',\r\n renderColumnContent: amrClass =>\r\n amrClass.totalOfBids ? moneyUtils.money(amrClass.totalOfBids) : constants.emptyPlaceholder,\r\n className: 'data-list-cell-sm text-right',\r\n },\r\n {\r\n columnKey: 'winningMargin',\r\n renderColumnHeaderContent: () => 'Win Margin, %',\r\n renderColumnContent: amrClass =>\r\n amrClass.winningMargin ? formatUtils.formatMargin(amrClass.winningMargin) : constants.emptyPlaceholder,\r\n className: 'data-list-cell-sm-01 text-right',\r\n },\r\n {\r\n columnKey: 'capMargin',\r\n renderColumnHeaderContent: () => (\r\n \r\n Cap Margin, %\r\n \r\n ),\r\n renderColumnContent: amrClass =>\r\n amrClass.capMargin ? formatUtils.formatMargin(amrClass.capMargin) : constants.emptyPlaceholder,\r\n className: 'data-list-cell-md text-right',\r\n },\r\n {\r\n columnKey: 'pricingDate',\r\n renderColumnHeaderContent: () => (\r\n \r\n AMR Pricing\r\n \r\n ),\r\n renderColumnContent: amrClass => formatUtils.formatDate(amrClass.pricingDate),\r\n className: 'data-list-cell-sm-01',\r\n },\r\n {\r\n columnKey: 'nonAmr',\r\n renderColumnHeaderContent: () => (\r\n \r\n Non-AMR\r\n \r\n ),\r\n renderColumnContent: amrClass => ,\r\n className: 'data-list-cell-sm-01',\r\n },\r\n];\r\n\r\nconst transactionColumns = transactionColumnsDefinition.map(c => new ColumnBuilder(c));\r\nconst classesColumns = classesColumnsDefinition.map(c => new ColumnBuilder(c));\r\n\r\nexport const AmrInfo = () => {\r\n const { selectedDeal } = useSelector(state => state.deals);\r\n\r\n const amrTransactions = selectedDeal?.transactions?.filter(t => t.type === TransactionType.amr) || [];\r\n\r\n const isAdminOrDataEntryOrMedia = user.hasRoles(roles.Administrator, roles.DataEntry);\r\n\r\n if (!selectedDeal) {\r\n return null;\r\n }\r\n\r\n const renderCollapsibleItem = (transaction: AmrTransaction, columnType: TableColumnStickType) => {\r\n let columns = classesColumns;\r\n\r\n if (columnType === TableColumnStickType.Right) {\r\n columns = [\r\n new ColumnBuilder({\r\n columnKey: 'emptyCol',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: () => '',\r\n className: 'data-list-cell--01',\r\n stickRight: true,\r\n }),\r\n ];\r\n }\r\n\r\n return ;\r\n };\r\n\r\n return (\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n );\r\n};\r\n","import { useCallback } from 'react';\r\nimport { routes } from '../../../../constants';\r\nimport { Breadcrumbs } from '../../../controls/breadcrumbs/Breadcrumbs';\r\nimport { BreadcrumbsItem } from '../../../controls/breadcrumbs/BreadcrumbsItem';\r\nimport { useSelector } from 'react-redux';\r\nimport { useParams } from 'react-router';\r\nimport { AppState } from '../../../../types/state/AppState';\r\nimport { DealsState } from '../../../../types/state/DealsState';\r\nimport { DealsRouteParams } from '../../Deals';\r\nimport { DealsTabType } from '../../../../types/deals/DealsTabType';\r\nimport { formatUtils } from '../../../../utils';\r\nimport { DealsHeaderBase } from '../../DealsHeaderBase';\r\nimport { AmrTransaction } from '../../../../types/amr-pipeline/models/AmrTransaction';\r\nimport { AmrStatus } from '../../../../types/amr-pipeline/enums/AmrStatus';\r\n\r\nexport const AmrInfoHeader = ({ onDeleteClick }: { onDeleteClick?: () => void }) => {\r\n const { selectedDeal } = useSelector(state => state.deals);\r\n\r\n const { classReferenceName, transactionReferenceName } = useParams();\r\n\r\n if (!selectedDeal) {\r\n return null;\r\n }\r\n\r\n // eslint-disable-next-line react-hooks/rules-of-hooks\r\n const getSelectedTransaction = useCallback(() => {\r\n return selectedDeal.transactions?.find(t => t.referenceName === transactionReferenceName) as AmrTransaction;\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [classReferenceName, selectedDeal.transactions]);\r\n\r\n const selectedClass = getSelectedTransaction().classes?.find(c => c.referenceName === classReferenceName);\r\n\r\n const classTitle = `Class ${selectedClass?.name}`;\r\n const transactionTitle = `${selectedDeal.legalName} (${formatUtils.formatDate(\r\n getSelectedTransaction().lastUpdated,\r\n )})`;\r\n\r\n const title = classReferenceName ? classTitle : transactionTitle;\r\n\r\n const handleDelete = () => {\r\n onDeleteClick && onDeleteClick();\r\n };\r\n\r\n return (\r\n
\r\n \r\n \r\n\r\n {classReferenceName && (\r\n <>\r\n \r\n \r\n )}\r\n \r\n \r\n
\r\n );\r\n};\r\n\r\nexport default AmrInfoHeader;\r\n","import { Link } from 'react-router-dom';\r\nimport { AmrClass } from '../../../../types/amr-pipeline/models/AmrClass';\r\nimport { IColumnDefinition } from '../../../bidding/common/table/types/ColumnDefinition';\r\nimport { constants, routes } from '../../../../constants';\r\nimport { AmrClassStatusLabel } from '../../../amrPipeline/common/AmrClassStatusLabel';\r\nimport { isNil } from 'lodash';\r\nimport { numericUtils, moneyUtils, formatUtils } from '../../../../utils';\r\nimport { OnHoverTooltip } from '../../../common';\r\nimport { NonAmrPeriod } from '../../../amrPipeline/common/NonAmrPeriod';\r\nimport { ColumnBuilder } from '../../../bidding/common/table/columns/column-builder/ColumnBuilder';\r\nimport IconSVG from '../../../../styles/svg-icons';\r\n\r\nconst amrClassesColumnsDefinition: IColumnDefinition[] = [\r\n {\r\n columnKey: 'name',\r\n renderColumnHeaderContent: () => 'Class',\r\n renderColumnContent: amrClass => (\r\n \r\n {amrClass.name}\r\n \r\n ),\r\n stickLeft: true,\r\n },\r\n {\r\n columnKey: 'status',\r\n renderColumnHeaderContent: () => 'Auction Status',\r\n renderColumnContent: amrClass => ,\r\n className: 'data-list-cell-lg',\r\n },\r\n {\r\n columnKey: 'balance',\r\n renderColumnHeaderContent: () => 'Cur. Bal',\r\n renderColumnContent: amrClass =>\r\n !isNil(amrClass.balance) && numericUtils.isNumber(amrClass.balance)\r\n ? moneyUtils.money(amrClass.balance)\r\n : constants.emptyPlaceholder,\r\n className: 'data-list-cell-sm text-right',\r\n },\r\n {\r\n columnKey: 'margin',\r\n renderColumnHeaderContent: () => 'Cur. Margin, %',\r\n renderColumnContent: amrClass =>\r\n amrClass.margin ? formatUtils.formatMargin(amrClass.margin) : constants.emptyPlaceholder,\r\n className: 'data-list-cell-sm text-right',\r\n },\r\n {\r\n columnKey: 'capMargin',\r\n renderColumnHeaderContent: () => (\r\n \r\n Cap Margin, %\r\n \r\n ),\r\n renderColumnContent: amrClass =>\r\n amrClass.capMargin ? formatUtils.formatMargin(amrClass.capMargin) : constants.emptyPlaceholder,\r\n className: 'data-list-cell-sm text-right',\r\n },\r\n {\r\n columnKey: 'maxAmount',\r\n renderColumnHeaderContent: () => 'Max Amount',\r\n renderColumnContent: amrClass =>\r\n !isNil(amrClass.balance) && numericUtils.isNumber(amrClass.balance)\r\n ? moneyUtils.money(amrClass.balance)\r\n : constants.emptyPlaceholder,\r\n className: 'data-list-cell-sm text-right',\r\n },\r\n {\r\n columnKey: 'minAmount',\r\n renderColumnHeaderContent: () => 'Min Amount',\r\n renderColumnContent: amrClass =>\r\n !isNil(amrClass.minBidAmount) && numericUtils.isNumber(amrClass.minBidAmount)\r\n ? moneyUtils.money(amrClass.minBidAmount)\r\n : constants.emptyPlaceholder,\r\n className: 'data-list-cell-sm text-right',\r\n },\r\n {\r\n columnKey: 'stepAmount',\r\n renderColumnHeaderContent: () => 'Step Amount',\r\n renderColumnContent: amrClass =>\r\n !isNil(amrClass.principalAmountStep) && numericUtils.isNumber(amrClass.principalAmountStep)\r\n ? moneyUtils.money(amrClass.principalAmountStep)\r\n : constants.emptyPlaceholder,\r\n className: 'data-list-cell-sm text-right',\r\n },\r\n {\r\n columnKey: 'redemption',\r\n renderColumnHeaderContent: () => 'Redemption Price',\r\n renderColumnContent: amrClass =>\r\n amrClass.redemptionPriceInPercent\r\n ? formatUtils.formatDecimal(amrClass.redemptionPriceInPercent, 6)\r\n : constants.emptyPlaceholder,\r\n className: 'data-list-cell-md text-right'\r\n },\r\n {\r\n columnKey: 'pricingDate',\r\n renderColumnHeaderContent: () => 'AMR Pricing',\r\n renderColumnContent: amrClass =>\r\n amrClass.pricingDate ? formatUtils.formatDate(amrClass.pricingDate) : constants.emptyPlaceholder,\r\n className: 'data-list-cell-sm',\r\n },\r\n {\r\n columnKey: 'settlementDate',\r\n renderColumnHeaderContent: () => 'AMR Settlement',\r\n renderColumnContent: amrClass =>\r\n amrClass.settlementDate ? formatUtils.formatDate(amrClass.settlementDate) : constants.emptyPlaceholder,\r\n className: 'data-list-cell-sm',\r\n },\r\n {\r\n columnKey: 'nonAmr',\r\n renderColumnHeaderContent: () => (\r\n \r\n Non-AMR\r\n \r\n ),\r\n renderColumnContent: amrClass => ,\r\n className: 'data-list-cell-sm',\r\n },\r\n {\r\n columnKey: 'actions',\r\n renderColumnHeaderContent: () => 'Actions',\r\n renderColumnContent: (amrClass, { setClassForDealerPopup, setClassForSettlementInstructionPopup }) => (\r\n <>\r\n \r\n \r\n \r\n ),\r\n className: 'data-list-cell-xl data-list-cell-amr-classes-actions text-right',\r\n stickRight: true,\r\n },\r\n];\r\n\r\nexport const amrClassesColumns = amrClassesColumnsDefinition.map(column => new ColumnBuilder(column));\r\n","import { AmrDocument } from \"../../../../types/amr-pipeline/models/AmrDocument\";\r\nimport { Table } from \"../../../bidding/common/table\";\r\nimport { EmptySectionContent } from \"../../../amrPipeline/common/section/EmptySectionContent\";\r\nimport { SORT, SORTING_TYPE, constants, roles } from \"../../../../constants\";\r\nimport { user } from \"../../../../user\";\r\nimport { IColumnDefinition } from \"../../../bidding/common/table/types/ColumnDefinition\";\r\nimport { ColumnBuilder } from \"../../../bidding/common/table/columns/column-builder/ColumnBuilder\";\r\nimport IconSVG from \"../../../../styles/svg-icons\";\r\nimport { Checkbox, FileIcon } from \"../../../controls\";\r\nimport { DocumentTypeSelect } from \"../../../../types/amr-pipeline/enums/DocumentType\";\r\nimport moment from \"moment\";\r\nimport DownloadDocument from \"../../../amrPipeline/common/documents/DownloadDocument\";\r\nimport { OnHoverTooltip } from '../../../common';\r\nimport useDownloadDocumentList from \"../../../../effects/useDownloadDocumentList\";\r\nimport { dealsService } from \"../../../../services/deals.service\";\r\n\r\nexport type DocumentColumn = IColumnDefinition;\r\n\r\nexport enum DocumentColumnDate {\r\n executionDate = \"executionDate\",\r\n uploadTime = \"uploadTime\",\r\n}\r\n\r\ninterface Props {\r\n dealReferenceName: string;\r\n items: AmrDocument[];\r\n documentTypes?: DocumentTypeSelect[];\r\n withPublic?: boolean;\r\n documentColumnDate?: DocumentColumnDate;\r\n onClick?: (document: AmrDocument) => void;\r\n}\r\n\r\nexport function DocumentsList({\r\n dealReferenceName,\r\n items,\r\n documentTypes = [],\r\n withPublic = false,\r\n documentColumnDate = DocumentColumnDate.executionDate,\r\n onClick\r\n}: Props) {\r\n const { loadingState, loadHandler } = useDownloadDocumentList({\r\n documents: items,\r\n downloadRequest: (referenceName: string) =>\r\n dealsService.getDealDocument(dealReferenceName, referenceName),\r\n });\r\n\r\n const isAdminOrDataEntry = user.hasRoles(\r\n roles.Administrator,\r\n roles.DataEntry\r\n );\r\n\r\n function onRowClick(document: AmrDocument) {\r\n if (onClick) {\r\n onClick(document);\r\n return;\r\n }\r\n\r\n loadHandler(document.referenceName, document.name);\r\n }\r\n\r\n const getColumns = () => {\r\n const documentsColumnDefinitions: DocumentColumn[] = [\r\n {\r\n columnKey: \"name\",\r\n renderColumnHeaderContent: () => \"Name\",\r\n headerClassName: \"data-list-cell-xl-flexible\",\r\n bodyClassName: \"data-list-cell-xl-flexible\",\r\n renderColumnContent: (document) => (\r\n onRowClick(document)}\r\n >\r\n \r\n {document.name}\r\n \r\n ),\r\n sortingField: \"name\",\r\n sortingType: SORTING_TYPE.string,\r\n },\r\n ...(documentTypes.length\r\n ? [\r\n {\r\n columnKey: \"documentType\",\r\n renderColumnHeaderContent: () => \"Type\",\r\n headerClassName: \"data-list-cell-lg-02\",\r\n bodyClassName: \"data-list-cell-lg-02\",\r\n renderColumnContent: ({ documentType }) => {\r\n const typeLabel = documentTypes.find(dt=> dt.type === documentType)?.text;\r\n return (\r\n \r\n {typeLabel}\r\n \r\n );\r\n },\r\n sortingField: \"documentType\",\r\n sortingType: SORTING_TYPE.string,\r\n } as DocumentColumn,\r\n ]\r\n : []),\r\n {\r\n columnKey: documentColumnDate === DocumentColumnDate.executionDate ? 'executionDate' : 'uploadTime',\r\n renderColumnHeaderContent: () => 'Date',\r\n headerClassName: 'data-list-cell-lg',\r\n bodyClassName: 'data-list-cell-lg',\r\n renderColumnContent: document =>\r\n documentColumnDate === DocumentColumnDate.executionDate\r\n ? moment(document.executionDate).format(constants.dateFormat)\r\n : moment(document.uploadTime).format(constants.dateFormat),\r\n sortingField: documentColumnDate === DocumentColumnDate.executionDate ? 'executionDate' : 'uploadTime',\r\n sortingType: SORTING_TYPE.date,\r\n },\r\n ...(isAdminOrDataEntry && withPublic\r\n ? [\r\n {\r\n columnKey: \"isPublic\",\r\n renderColumnHeaderContent: () => \"Public\",\r\n headerClassName: \"data-list-cell-xs\",\r\n bodyClassName: \"data-list-cell-xs\",\r\n renderColumnContent: (document) => (\r\n \r\n ),\r\n } as DocumentColumn,\r\n ]\r\n : []),\r\n {\r\n columnKey: \"downloadButton\",\r\n renderColumnHeaderContent: () => \"\",\r\n headerClassName: \"data-list-cell-xs\",\r\n bodyClassName: \"data-list-cell-xs\",\r\n renderColumnContent: (document, { isLoading }) => (\r\n onRowClick(document)}\r\n isLoading={isLoading}\r\n >\r\n \r\n \r\n ),\r\n },\r\n ];\r\n\r\n return documentsColumnDefinitions.map((c) => {\r\n return new ColumnBuilder(c);\r\n });\r\n };\r\n\r\n return (\r\n
\r\n {items.length ? (\r\n ({\r\n isLoading: loadingState[item.referenceName],\r\n })}\r\n defaultSortBy=\"executionDate\"\r\n defaultSortByDirection={SORT.DESC}\r\n />\r\n ) : (\r\n \r\n )}\r\n
\r\n );\r\n}\r\n","import { Formik } from 'formik';\r\nimport { dealsActions } from '../../../../../actions/deals.actions';\r\nimport { RequestState } from '../../../../../constants/request-state';\r\nimport { useAppDispatch } from '../../../../../effects/useAppDispatch';\r\nimport { AmrClass } from '../../../../../types/amr-pipeline/models/AmrClass';\r\nimport { SettlementInstructions } from '../../../../../types/amr-pipeline/models/SettlementInstructions';\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport { TextField } from '../../../../common/form-fields/TextField';\r\nimport { Preloader } from '../../../../common';\r\nimport { Popup, PopupBody, PopupFooter } from '../../../../controls';\r\nimport { useSettlementInstructions } from '../../../../../effects/useSettlementInstructions';\r\nimport { yup } from '../../../../../validation/yup';\r\n\r\ninterface EditDealersPopupProps {\r\n onClose: () => void;\r\n selectedClass: AmrClass;\r\n}\r\n\r\nconst validationSchema = yup.object().shape({\r\n cashSettlementAccountAbaNumber: yup\r\n .string()\r\n .matches(/^[A-Za-z0-9]{9}$/, 'ABA Number should be a 9-character string.')\r\n .nullable(),\r\n cashSettlementAccountSWIFT: yup\r\n .string()\r\n .matches(/^[A-Za-z0-9]{8,11}$/, 'SWIFT should be 8 or 11-character string.')\r\n .nullable(),\r\n cashSettlementAccountAccountNumber: yup\r\n .string()\r\n .matches(/^[0-9]+$/, 'Must be only digits')\r\n .max(12, 'Account Number should be an up to 12-digits number.')\r\n .nullable(),\r\n bondSettlementAccountDTCParticipant: yup\r\n .string()\r\n .matches(/^[0-9]+$/, 'Must be only digits')\r\n .max(4, 'DTC Participant should be an up to 4-digit number.')\r\n .nullable(),\r\n bondSettlementAccountAgentNumber: yup\r\n .string()\r\n .matches(/^[0-9]+$/, 'Must be only digits')\r\n .max(6, 'Agent Number should be an up to 6-digits number.')\r\n .nullable(),\r\n bondSettlementAccountInstitutionalId: yup\r\n .string()\r\n .matches(/^[0-9]+$/, 'Must be only digits')\r\n .max(10, 'Institutional Id should be an up to 10-digits number.')\r\n .nullable(),\r\n bondSettlementAccountAccountNumber: yup\r\n .string()\r\n .matches(/^[0-9]+$/, 'Must be only digits')\r\n .max(12, 'Account Number should be an up to 12-digits number.')\r\n .nullable(),\r\n});\r\n\r\nexport const SettlementInstructionsPopup = ({ selectedClass, onClose }: EditDealersPopupProps) => {\r\n const dispatch = useAppDispatch();\r\n\r\n const { requestState, settlementInstructions } = useSettlementInstructions({\r\n dealReferenceName: selectedClass.dealReferenceName,\r\n transactionReferenceName: selectedClass.transactionReferenceName,\r\n classReferenceName: selectedClass.referenceName,\r\n });\r\n\r\n const handleSave = (value: SettlementInstructions) => {\r\n dispatch(\r\n dealsActions.saveSettlementInstructionsRequest(\r\n selectedClass.dealReferenceName,\r\n selectedClass.referenceName,\r\n value,\r\n ),\r\n );\r\n onClose();\r\n };\r\n\r\n return (\r\n \r\n Edit Settlement Instructions\r\n Class {selectedClass.name}\r\n \r\n }\r\n onClose={onClose}\r\n modalClass=\"edit-settlement-instructions-popup\"\r\n >\r\n \r\n {({ isSubmitting, submitForm }) => (\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n )}\r\n
\r\n \r\n );\r\n};\r\n","import React, { useEffect, useMemo, useState } from 'react';\r\nimport { dealsActions } from '../../../../../actions/deals.actions';\r\nimport { useAvailableBrokerDealers } from '../../../../../effects/data-accessors/useAvailableBrokerDealers';\r\nimport { useAppDispatch } from '../../../../../effects/useAppDispatch';\r\nimport { AmrClass } from '../../../../../types/amr-pipeline/models/AmrClass';\r\nimport { Transfer } from '../../../../common/transfer/Transfer';\r\nimport { TransferOption } from '../../../../common/transfer/types';\r\nimport { Popup, PopupBody, PopupFooter } from '../../../../controls';\r\nimport { useExcludedDealers } from '../../../../../effects/useExcludedDealers';\r\n\r\ninterface EditDealersPopupProps {\r\n onClose: () => void;\r\n selectedClass: AmrClass;\r\n}\r\n\r\nexport const EditDealersPopup = ({ selectedClass, onClose }: EditDealersPopupProps) => {\r\n const dispatch = useAppDispatch();\r\n const [selectedDealers, setSelectedDealers] = useState([]);\r\n\r\n const { items } = useAvailableBrokerDealers();\r\n const { excludedDealers } = useExcludedDealers({\r\n dealReferenceName: selectedClass.dealReferenceName,\r\n transactionReferenceName: selectedClass.transactionReferenceName,\r\n classReferenceName: selectedClass.referenceName,\r\n });\r\n\r\n const availableBrokerDealers = useMemo(() => {\r\n return items.map((company, key) => ({\r\n title: company.legalName,\r\n key: company.referenceName,\r\n fixed: false,\r\n permanent: false,\r\n available: true,\r\n draggable: false,\r\n order: key,\r\n }));\r\n }, [items]);\r\n\r\n useEffect(() => {\r\n setSelectedDealers(\r\n excludedDealers\r\n .filter(d => d.trancheReferenceName === selectedClass.referenceName)\r\n .map((d, key) => ({\r\n title: d.dealer.legalName,\r\n key: d.dealer.referenceName,\r\n fixed: false,\r\n permanent: false,\r\n available: true,\r\n draggable: false,\r\n order: key,\r\n })),\r\n );\r\n }, [excludedDealers, selectedClass.referenceName]);\r\n\r\n const handleTransferChange = (options: TransferOption[]) => {\r\n setSelectedDealers(options);\r\n };\r\n\r\n const handleReset = () => {\r\n setSelectedDealers([]);\r\n };\r\n\r\n const handleSave = () => {\r\n dispatch(\r\n dealsActions.saveExcludedDealersRequest(\r\n selectedClass.dealReferenceName,\r\n selectedClass.transactionReferenceName,\r\n selectedClass.referenceName,\r\n selectedDealers.map(dealer => dealer.key),\r\n ),\r\n );\r\n onClose();\r\n };\r\n\r\n return (\r\n \r\n Available / Excluded Dealers\r\n Class {selectedClass.name}\r\n \r\n }\r\n onClose={onClose}\r\n modalClass=\"customize-columns-popup available-excluded-dealers-popup\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n","import { useSelector } from 'react-redux';\r\nimport { AppState } from '../../../../types/state/AppState';\r\nimport { DealsState } from '../../../../types/state/DealsState';\r\nimport { useParams } from 'react-router-dom';\r\nimport { DealsRouteParams } from '../../Deals';\r\nimport AmrInfoHeader from './AmrInfoHeader';\r\nimport { SectionContent } from '../../../amrPipeline/common/section/SectionContent';\r\nimport { FormField } from '../../../amrPipeline/common/FormField';\r\nimport { AmrTransaction } from '../../../../types/amr-pipeline/models/AmrTransaction';\r\nimport StatusLabel from '../../../amrPipeline/StatusLabel';\r\nimport { formatUtils } from '../../../../utils';\r\nimport { constants } from '../../../../constants/constants';\r\nimport { Table } from '../../../bidding/common/table';\r\nimport { amrClassesColumns } from './amr-classes.columns';\r\nimport { useState } from 'react';\r\nimport { AmrClass } from '../../../../types/amr-pipeline/models/AmrClass';\r\nimport { DocumentGroup } from '../../../amrPipeline/common/documents/DocumentGroup';\r\nimport { DocumentColumnDate, DocumentsList } from '../documents/DocumentsList';\r\nimport { Preloader } from '../../../common';\r\nimport { RequestState } from '../../../../constants/request-state';\r\nimport { SettlementInstructionsPopup } from './edit/SettlementInsctructionsPopup';\r\nimport { EditDealersPopup } from './edit/EditDealersPopup';\r\nimport { useAmrDocuments } from '../../../../effects/useAmrDocuments';\r\nimport { dealsService } from '../../../../services/deals.service';\r\nimport { AmrFile } from '../../../../types/amr-pipeline/models/AmrFile';\r\nimport saveAs from 'file-saver';\r\nimport { dealsActions } from '../../../../actions/deals.actions';\r\nimport { useAppDispatch } from '../../../../effects/useAppDispatch';\r\nimport { Confirm } from '../../../alerts';\r\nimport { DownloadFile } from '../../../../types/amr-pipeline/models/DownloadedDocument';\r\n\r\nexport const AmrInfoDetails = () => {\r\n const dispatch = useAppDispatch();\r\n const { selectedDeal } = useSelector(state => state.deals);\r\n\r\n const [classForDealerPopup, setClassForDealerPopup] = useState();\r\n const [classForSettlementInstructionPopup, setClassForSettlementInstructionPopup] = useState();\r\n const [showDeleteConfirmationPopup, setShowDeleteConfirmationPopup] = useState(false);\r\n\r\n\r\n const { transactionReferenceName } = useParams();\r\n\r\n const selectedTransaction = selectedDeal?.transactions?.find(\r\n t => t.referenceName === transactionReferenceName,\r\n ) as AmrTransaction;\r\n\r\n const { amrDocuments, requestState } = useAmrDocuments({\r\n dealReferenceName: selectedDeal?.referenceName,\r\n transactionReferenceName: selectedTransaction?.referenceName,\r\n });\r\n\r\n if (!selectedDeal || !selectedTransaction) {\r\n return null;\r\n }\r\n\r\n const deleteDraftTransaction = () => {\r\n dispatch(dealsActions.deleteAmrTransaction(selectedDeal.referenceName, selectedTransaction.referenceName));\r\n }\r\n\r\n const downloadDocument = async (document: AmrFile) => {\r\n await dealsService\r\n .downloadAmrDocument(selectedDeal.referenceName, selectedTransaction.referenceName, document.referenceName)\r\n .then((file: DownloadFile) => saveAs(file.blob, document.name));\r\n }\r\n\r\n return (\r\n
\r\n setShowDeleteConfirmationPopup(true)} />\r\n
\r\n \r\n
\r\n }\r\n className=\"data-item-row-full-height data-item-row-status\"\r\n />\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n ({\r\n setClassForDealerPopup,\r\n setClassForSettlementInstructionPopup,\r\n })}\r\n className=\"data-list-amr-classes\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n {classForDealerPopup && (\r\n setClassForDealerPopup(undefined)}\r\n />\r\n )}\r\n {classForSettlementInstructionPopup && (\r\n setClassForSettlementInstructionPopup(undefined)}\r\n />\r\n )}\r\n
\r\n {showDeleteConfirmationPopup && (\r\n setShowDeleteConfirmationPopup(false)}\r\n onConfirm={deleteDraftTransaction}\r\n title=\"Delete Confirmation\"\r\n text={`Are you sure you want to delete ${\r\n selectedTransaction.legalNameOnDeal\r\n } ${formatUtils.formatDate(selectedTransaction.closingDate)} AMR Transaction?`}\r\n />\r\n )}\r\n
\r\n );\r\n};\r\n","import { Link } from 'react-router-dom';\r\nimport { capitalize, isNil, startCase } from 'lodash';\r\nimport { SORTING_TYPE, constants, roles, routes } from '../../../../constants';\r\nimport IconSVG from '../../../../styles/svg-icons';\r\nimport { Tranche } from '../../../../types/amr-pipeline/models/Tranche';\r\nimport { amrFormatUtils, formatUtils, moneyUtils } from '../../../../utils';\r\nimport { ColumnBuilder } from '../../../bidding/common/table/columns/column-builder/ColumnBuilder';\r\nimport { IColumnDefinition } from '../../../bidding/common/table/types/ColumnDefinition';\r\nimport { OnHoverTooltip } from '../../../common';\r\nimport { TrancheStatus } from '../../../../types/amr-pipeline/enums/TrancheStatus';\r\nimport { DealsTabType } from '../../../../types/deals/DealsTabType';\r\nimport { Deal } from '../../../../types/amr-pipeline/models/Deal';\r\nimport { user } from '../../../../user';\r\n\r\ninterface AllClassesColumnsContext {\r\n deal: Deal;\r\n}\r\n\r\nconst ExcludedColumnns = [\r\n 'status',\r\n 'transactionReferenceAndClass',\r\n];\r\n\r\nconst allClassesColumnDefinitions: IColumnDefinition[] = [\r\n {\r\n columnKey: 'name',\r\n renderColumnHeaderContent: () => 'Class',\r\n renderColumnContent: (tranche, context) => {\r\n if (tranche.status !== TrancheStatus.Active) {\r\n return tranche.name;\r\n }\r\n\r\n return (\r\n \r\n {tranche.name}\r\n \r\n );\r\n },\r\n sortingField: 'name',\r\n sortingType: SORTING_TYPE.string,\r\n stickLeft: true,\r\n },\r\n {\r\n columnKey: 'status',\r\n renderColumnHeaderContent: () => 'Status',\r\n renderColumnContent: (tranche) => {\r\n return tranche.status;\r\n },\r\n sortingField: 'status',\r\n sortingType: SORTING_TYPE.string,\r\n },\r\n {\r\n columnKey: 'transactionClosingDate',\r\n renderColumnHeaderContent: () => 'Closing',\r\n renderColumnContent: (tranche) => {\r\n return formatUtils.formatDate(tranche.transactionClosingDate);\r\n },\r\n sortingField: 'transactionClosingDate',\r\n sortingType: SORTING_TYPE.date,\r\n },\r\n {\r\n columnKey: 'transactionType',\r\n renderColumnHeaderContent: () => 'Trans. Type',\r\n renderColumnContent: (tranche) => {\r\n return tranche.transactionType\r\n ? startCase(tranche.transactionType)\r\n : constants.emptyPlaceholder;\r\n },\r\n sortingField: 'transactionType',\r\n sortingType: SORTING_TYPE.string,\r\n className: 'data-list-cell-sm-01',\r\n },\r\n {\r\n columnKey: 'link',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (tranche, context) => {\r\n if (!tranche.transactionReferenceName) {\r\n return null;\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n },\r\n className: 'data-list-cell-xxxs',\r\n },\r\n {\r\n columnKey: 'ticker144A',\r\n renderColumnHeaderContent: () => 'Ticker (Rule 144A)',\r\n renderColumnContent: (tranche) => {\r\n return tranche.ticker144A || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-lg',\r\n },\r\n {\r\n columnKey: 'cusiP144A',\r\n renderColumnHeaderContent: () => 'Identifier 1 (Rule 144A)',\r\n renderColumnContent: (tranche) => {\r\n return tranche.cusip144A || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-lg',\r\n },\r\n {\r\n columnKey: 'isiN144A',\r\n renderColumnHeaderContent: () => 'Identifier 2 (Rule 144A)',\r\n renderColumnContent: (tranche) => {\r\n return tranche.isin144A || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-lg',\r\n },\r\n {\r\n columnKey: 'tickerRegS',\r\n renderColumnHeaderContent: () => 'Ticker (Reg S)',\r\n renderColumnContent: (tranche) => {\r\n return tranche.tickerRegS || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-lg',\r\n },\r\n {\r\n columnKey: 'cusipRegS',\r\n renderColumnHeaderContent: () => 'Identifier 1 (Reg S)',\r\n renderColumnContent: (tranche) => {\r\n return tranche.cusipRegS || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-sm',\r\n },\r\n {\r\n columnKey: 'isinRegS',\r\n renderColumnHeaderContent: () => 'Identifier 2 (Reg S)',\r\n renderColumnContent: (tranche) => {\r\n return tranche.isinRegS || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-sm',\r\n },\r\n {\r\n columnKey: 'commonCodeRegS',\r\n renderColumnHeaderContent: () => 'Common Code (Reg S)',\r\n renderColumnContent: (tranche) => {\r\n return tranche.commonCodeRegS || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-lg text-right',\r\n },\r\n {\r\n columnKey: 'tickerAccdInvCertif',\r\n renderColumnHeaderContent: () => 'Ticker (Acc’d Inv/Certif.)',\r\n renderColumnContent: (tranche) => {\r\n return tranche.tickerAccdInvCertif || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-lg',\r\n },\r\n {\r\n columnKey: 'cusipAccdInvCertif',\r\n renderColumnHeaderContent: () => 'Identifier 1 (Acc’d Inv/Certif.)',\r\n renderColumnContent: (tranche) => {\r\n return tranche.cusipAccdInvCertif || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-lg-02',\r\n },\r\n {\r\n columnKey: 'isinAccdInvCertif',\r\n renderColumnHeaderContent: () => 'Identifier 2 (Acc’d Inv/Certif.)',\r\n renderColumnContent: (tranche) => {\r\n return tranche.isinAccdInvCertif || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-lg-02',\r\n },\r\n {\r\n columnKey: 'originalBalance',\r\n renderColumnHeaderContent: () => 'Orig. Balance',\r\n renderColumnContent: (tranche) => {\r\n return isNil(tranche.originalBalance)\r\n ? constants.emptyPlaceholder\r\n : moneyUtils.money(tranche.originalBalance);\r\n },\r\n className: 'data-list-cell-sm text-right',\r\n },\r\n {\r\n columnKey: 'balance',\r\n renderColumnHeaderContent: () => 'Cur. Balance',\r\n renderColumnContent: (tranche) => {\r\n return isNil(tranche.balance)\r\n ? constants.emptyPlaceholder\r\n : moneyUtils.money(tranche.balance);\r\n },\r\n className: 'data-list-cell-sm text-right',\r\n },\r\n {\r\n columnKey: 'originalMargin',\r\n renderColumnHeaderContent: () => 'Orig. Margin, %',\r\n renderColumnContent: (tranche) => {\r\n return isNil(tranche.originalMargin)\r\n ? constants.emptyPlaceholder\r\n : formatUtils.formatMargin(tranche.originalMargin)\r\n },\r\n className: 'data-list-cell-sm-01',\r\n },\r\n {\r\n columnKey: 'margin',\r\n renderColumnHeaderContent: () => 'Cur. Margin, %',\r\n renderColumnContent: (tranche) => {\r\n return isNil(tranche.margin)\r\n ? constants.emptyPlaceholder\r\n : formatUtils.formatMargin(tranche.margin)\r\n },\r\n className: 'data-list-cell-sm-01',\r\n },\r\n {\r\n columnKey: 'originalCoupon',\r\n renderColumnHeaderContent: () => 'Orig. Coupon',\r\n renderColumnContent: (tranche) => {\r\n return tranche.originalCoupon || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-md',\r\n },\r\n {\r\n columnKey: 'coupon',\r\n renderColumnHeaderContent: () => 'Cur. Coupon',\r\n renderColumnContent: (tranche) => {\r\n return tranche.coupon || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-md',\r\n },\r\n {\r\n columnKey: 'minimumDenomination',\r\n renderColumnHeaderContent: () => 'Min. Denomination',\r\n renderColumnContent: (tranche) => {\r\n return isNil(tranche.minimumDenomination)\r\n ? constants.emptyPlaceholder\r\n : moneyUtils.money(tranche.minimumDenomination);\r\n },\r\n className: 'data-list-cell-sm text-right',\r\n },\r\n {\r\n columnKey: 'type',\r\n renderColumnHeaderContent: () => 'Type',\r\n renderColumnContent: (tranche) => {\r\n return tranche.type || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-lg',\r\n },\r\n {\r\n columnKey: 'factor',\r\n renderColumnHeaderContent: () => 'Factor',\r\n renderColumnContent: (tranche) => {\r\n return isNil(tranche.factor)\r\n ? constants.emptyPlaceholder\r\n : formatUtils.formatDecimal(tranche.factor, 4);\r\n },\r\n className: 'data-list-cell-xs text-right',\r\n },\r\n {\r\n columnKey: 'equity',\r\n renderColumnHeaderContent: () => 'Equity',\r\n renderColumnContent: (tranche) => {\r\n return capitalize(formatUtils.formatBoolean(tranche.equity));\r\n },\r\n className: 'data-list-cell-xs',\r\n },\r\n {\r\n columnKey: 'redeemed',\r\n renderColumnHeaderContent: () => 'Redeemed',\r\n renderColumnContent: (tranche) => {\r\n return capitalize(formatUtils.formatBooleanWithPlaceholder(tranche.redeemed));\r\n },\r\n },\r\n {\r\n columnKey: 'amr',\r\n renderColumnHeaderContent: () => 'AMR Class',\r\n renderColumnContent: (tranche) => {\r\n return capitalize(formatUtils.formatBoolean(tranche.amr));\r\n },\r\n },\r\n {\r\n columnKey: 'nonAmrPeriod',\r\n renderColumnHeaderContent: () => 'Non-AMR',\r\n renderColumnContent: (tranche) => {\r\n return tranche.nonAmrPeriod\r\n ? `${tranche.nonAmrPeriod} months`\r\n : constants.emptyPlaceholder;\r\n },\r\n },\r\n {\r\n columnKey: 'nonAmrPeriodEnd',\r\n renderColumnHeaderContent: () => 'Non-AMR Period End',\r\n renderColumnContent: (tranche) => {\r\n return formatUtils.formatDate(tranche.nonAmrPeriodEnd);\r\n },\r\n className: 'data-list-cell-md',\r\n },\r\n {\r\n columnKey: 'originalRating',\r\n renderColumnHeaderContent: () => 'Orig. Rtg (M/S/F/K/D)',\r\n renderColumnContent: (tranche) => {\r\n return amrFormatUtils.formatOriginalRating(tranche);\r\n },\r\n className: 'data-list-cell-lg',\r\n },\r\n {\r\n columnKey: 'currentRating',\r\n renderColumnHeaderContent: () => 'Cur. Rtg (M/S/F/K/D)',\r\n renderColumnContent: (tranche) => {\r\n return amrFormatUtils.formatCurrentRating(tranche);\r\n },\r\n className: 'data-list-cell-lg',\r\n },\r\n {\r\n columnKey: 'currency',\r\n renderColumnHeaderContent: () => 'Currency',\r\n renderColumnContent: (tranche, content) => {\r\n return content.deal.currencyCode || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-xs',\r\n },\r\n {\r\n columnKey: 'pariPassuTranches',\r\n renderColumnHeaderContent: () => 'Pari-Passu Classes',\r\n renderColumnContent: (tranche) => {\r\n return tranche.pariPassuTranches || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-md',\r\n },\r\n {\r\n columnKey: 'trancheSupported',\r\n renderColumnHeaderContent: () => 'Class Supported',\r\n renderColumnContent: (tranche) => {\r\n return tranche.trancheSupported || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-lg',\r\n },\r\n {\r\n columnKey: 'transactionReferenceAndClass',\r\n renderColumnHeaderContent: () => 'Trans. Reference & Class',\r\n renderColumnContent: (tranche) => {\r\n if (!tranche.transactionReferenceName || !tranche.linkedOtcReferenceName) {\r\n return constants.emptyPlaceholder;\r\n }\r\n\r\n return (\r\n \r\n {tranche.transactionReferenceName}, {tranche.linkedOtcName}\r\n \r\n )\r\n },\r\n className: 'data-list-cell-xl-xxl',\r\n },\r\n];\r\n\r\nexport const getAllClassesColumns = () => {\r\n const columnDefinitions = user.hasRoles(...roles.bd(), ...roles.seller(), roles.Media)\r\n ? allClassesColumnDefinitions.filter(({ columnKey }) => !ExcludedColumnns.includes(columnKey))\r\n : allClassesColumnDefinitions;\r\n\r\n return columnDefinitions.map((c) => new ColumnBuilder(c));\r\n};\r\n","import { useSelector } from 'react-redux';\r\nimport { SORT, roles, routes } from '../../../../constants';\r\nimport { Table } from '../../../bidding/common/table';\r\nimport { DealsDefaultHeader } from '../../DealsDefaultHeader';\r\nimport { AppState } from '../../../../types/state/AppState';\r\nimport { DealsState } from '../../../../types/state/DealsState';\r\nimport { getAllClassesColumns } from './all-classes.columns';\r\nimport { Checkbox } from '../../../controls';\r\nimport { useMemo, useState } from 'react';\r\nimport { TrancheStatus } from '../../../../types/amr-pipeline/enums/TrancheStatus';\r\nimport { user } from '../../../../user';\r\nimport { Tranche } from '../../../../types/amr-pipeline/models/Tranche';\r\nimport { useDownloadDocument } from '../../../../effects/useDownloadDocument';\r\nimport ExportButton from '../../../common/ExportButton';\r\nimport { useSortedList } from '../../../../effects';\r\nimport { dealsService } from '../../../../services/deals.service';\r\nimport moment from 'moment';\r\n\r\nexport const AllClassesView = () => {\r\n const { selectedDeal } = useSelector(state => state.deals);\r\n const [showHistoricalClasses, setShowHistoricalClasses] = useState(true);\r\n const [orderBy, setOrderBy] =useState({\r\n field: \"transactionClosingDate\",\r\n direction: SORT.DESC\r\n })\r\n\r\n const { handleDownload, isDownloading } = useDownloadDocument({\r\n downloadRequest: dealsService.exportAllClasses,\r\n fileNameForSave: `${selectedDeal?.legalName} All Classes - ${moment().format('MMM DD YYYY')}`,\r\n requestArgs: [\r\n selectedDeal?.referenceName as string,\r\n showHistoricalClasses,\r\n [{\r\n field: orderBy.field,\r\n ascending: orderBy.direction === SORT.ASC,\r\n }]\r\n ],\r\n });\r\n\r\n const isCheckboxVisible = useMemo(() => {\r\n if (!selectedDeal) {\r\n return false;\r\n }\r\n\r\n return !(\r\n selectedDeal.classes.every(c => c.status === TrancheStatus.Inactive || c.status === TrancheStatus.Draft) ||\r\n !selectedDeal.classes.some(c => c.status === TrancheStatus.Inactive)\r\n );\r\n }, [selectedDeal]);\r\n\r\n const classes = useMemo(() => {\r\n if (!selectedDeal) {\r\n return [];\r\n }\r\n\r\n return showHistoricalClasses\r\n ? selectedDeal.classes\r\n : selectedDeal.classes.filter(tranche => tranche.status === TrancheStatus.Active);\r\n }, [selectedDeal, showHistoricalClasses]);\r\n\r\n const [sortedClasses] = useSortedList(classes, orderBy.field, orderBy.direction);\r\n\r\n if (!selectedDeal) {\r\n return null;\r\n }\r\n\r\n const editButtonUrl = user.hasRoles(roles.Administrator, roles.DataEntry)\r\n ? routes.dealsAllClasesUrl(selectedDeal.referenceName, true)\r\n : undefined;\r\n\r\n const setSortParams = (field: string, direction: string) => \r\n setOrderBy({\r\n direction,\r\n field,\r\n });\r\n\r\n return (\r\n <>\r\n \r\n
\r\n
\r\n {isCheckboxVisible && (\r\n setShowHistoricalClasses(e.target.checked)}\r\n label=\"Show Historical Classes\"\r\n className=\"flex-align-end show-historical-classes-checkbox\"\r\n />\r\n )}\r\n \r\n
\r\n \r\n ({\r\n deal: selectedDeal,\r\n })}\r\n columns={getAllClassesColumns()}\r\n sticky\r\n defaultSortBy={orderBy.field}\r\n defaultSortByDirection={orderBy.direction}\r\n onSort={setSortParams}\r\n createSecurityCustomClassName={(c: Tranche) => {\r\n if (c.status === TrancheStatus.Inactive || c.status === TrancheStatus.Draft) {\r\n return 'inactive';\r\n }\r\n }}\r\n />\r\n
\r\n \r\n );\r\n};\r\n","import { useEffect } from 'react';\r\nimport { Grid } from '../../../grid';\r\nimport { routes } from '../../../../constants';\r\nimport { useSelector } from 'react-redux';\r\nimport { AppState } from '../../../../types/state/AppState';\r\nimport { DealsState } from '../../../../types/state/DealsState';\r\nimport { useAppDispatch } from '../../../../effects/useAppDispatch';\r\nimport { isEqual, isNil } from 'lodash';\r\nimport { DealsSaveHeader } from '../../DealsSaveHeader';\r\nimport { useHistory } from 'react-router';\r\nimport { dealsActions } from '../../../../actions/deals.actions';\r\nimport { RouteLeavingGuard } from '../../../routing';\r\nimport { gridUtils } from '../../../../utils';\r\nimport { gridActions } from '../../../../actions';\r\n\r\nexport const AllClassesEdit = () => {\r\n const dispatch = useAppDispatch();\r\n const history = useHistory();\r\n const dataItems = useSelector((state: AppState) => state.grid.dataItems);\r\n const { selectedDeal, isDetailsLoading, isUpdating, allClasses } = useSelector(state => state.deals);\r\n\r\n useEffect(() => {\r\n return () => {\r\n dispatch(dealsActions.allClassesInvalidateTranceCache());\r\n dispatch(gridActions.reset());\r\n };\r\n }, [dispatch]);\r\n\r\n useEffect(() => {\r\n if (isDetailsLoading || isNil(selectedDeal)) {\r\n return;\r\n }\r\n\r\n dispatch(dealsActions.allClassesEditInit(selectedDeal));\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [isDetailsLoading, isNil(selectedDeal)]);\r\n\r\n if (!selectedDeal) {\r\n return null;\r\n }\r\n\r\n const hasChanges = () => !isEqual(allClasses.classes, gridUtils.sanitizeGridItems(dataItems));\r\n\r\n const handleSave = () => dispatch(dealsActions.allClassesUpdate(selectedDeal.referenceName));\r\n\r\n const handleCancel = () => history.push(routes.dealsAllClasesUrl(selectedDeal.referenceName));\r\n\r\n return (\r\n <>\r\n history.push(pathname)}\r\n shouldBlockNavigation={() => hasChanges() && !isUpdating}\r\n />\r\n \r\n
\r\n \r\n
\r\n \r\n );\r\n};\r\n","import { Route, Switch } from 'react-router';\r\nimport { routes } from '../../../../constants';\r\nimport { AllClassesView } from './AllClassesView';\r\nimport { AllClassesEdit } from './AllClassesEdit';\r\n\r\nexport const AllClasses = () => {\r\n return (\r\n
\r\n \r\n }\r\n />\r\n }\r\n />\r\n \r\n
\r\n );\r\n};\r\n","import { useSelector } from \"react-redux\";\r\nimport { AppState } from \"../../../../types/state/AppState\";\r\nimport { DealsState } from \"../../../../types/state/DealsState\";\r\nimport {\r\n cleansingNoticeDocsTypeList,\r\n dealRegularDocsTypeList,\r\n DocumentType,\r\n getDealRegularDocumentTypes,\r\n getDocumentTypeText,\r\n} from \"../../../../types/amr-pipeline/enums/DocumentType\";\r\nimport { AmrDocument } from \"../../../../types/amr-pipeline/models/AmrDocument\";\r\nimport { DocumentsList } from \"./DocumentsList\";\r\nimport { DealsDefaultHeader } from \"../../DealsDefaultHeader\";\r\nimport { constants, roles, routes } from \"../../../../constants\";\r\nimport { DealsTabType } from \"../../../../types/deals/DealsTabType\";\r\nimport { DocumentGroup } from \"../../../amrPipeline/common/documents/DocumentGroup\";\r\nimport { compareDates } from \"../../../../utils/compare.utils\";\r\nimport { user } from \"../../../../user\";\r\nimport { dealsService } from \"../../../../services/deals.service\";\r\nimport moment from \"moment\";\r\nimport { getDealDocLastDate } from \"../../../../utils/amr-pipeline.utils\";\r\nimport { FormField } from \"../../../amrPipeline/common/FormField\";\r\n\r\nexport const groupDocuments = (documentList: AmrDocument[] = [], withEditRole: boolean) => {\r\n const sortedDocumentList = documentList\r\n .map((d) => {\r\n const lastDate = getDealDocLastDate(d);\r\n return {\r\n ...d,\r\n executionDate: moment(lastDate).format(\r\n constants.formatTimeStringWithoutTimeZone\r\n ),\r\n };\r\n })\r\n .sort((a, b) => compareDates(b.executionDate, a.executionDate));\r\n\r\n return {\r\n dealDocuments: sortedDocumentList.filter((d) =>\r\n getDealRegularDocumentTypes().includes(d.documentType)\r\n ),\r\n cleansingNotices: sortedDocumentList.filter(\r\n (d) => {\r\n let isFormatAllowed = true;\r\n const withRequiredType = d.documentType === DocumentType.cleansingNoticeRefinancing \r\n || d.documentType === DocumentType.cleansingNoticeReset;\r\n\r\n if(!withEditRole) {\r\n const splittedDocName = d.name.split('.');\r\n const docFormat = splittedDocName[splittedDocName.length - 1].toLowerCase();\r\n\r\n isFormatAllowed = docFormat !== 'xls' && docFormat !== 'xlsx';\r\n }\r\n\r\n return isFormatAllowed && withRequiredType\r\n }\r\n ),\r\n distributionReports: sortedDocumentList.filter(\r\n (d) => d.documentType === DocumentType.distributionReport\r\n ),\r\n monthlyReports: sortedDocumentList.filter(\r\n (d) => d.documentType === DocumentType.monthlyReport\r\n ),\r\n reportsExcelFiles: sortedDocumentList.filter(\r\n (d) => d.documentType === DocumentType.reportsExcelFiles\r\n ),\r\n otherDocuments: sortedDocumentList.filter(\r\n (d) => d.documentType === DocumentType.otherDocument\r\n ),\r\n };\r\n};\r\n\r\nexport const Documents = () => {\r\n const { selectedDeal } = useSelector(\r\n (state) => state.deals\r\n );\r\n const isAdminOrDataEntry = user.hasRoles(roles.Administrator, roles.DataEntry);\r\n\r\n if (!selectedDeal) {\r\n return null;\r\n }\r\n\r\n const { referenceName, ticker } = selectedDeal;\r\n\r\n const allDocuments = isAdminOrDataEntry ? selectedDeal.documents?.dealDocuments : selectedDeal.documents?.dealDocuments?.filter(d => d.isPublic);\r\n const distributionReportsPattern = selectedDeal.documents?.dealDocumentPatterns.find(p => p.documentType === DocumentType.distributionReport)?.pattern;\r\n const monthlyReportsPattern = selectedDeal.documents?.dealDocumentPatterns.find(p => p.documentType === DocumentType.monthlyReport)?.pattern;\r\n\r\n\r\n const {\r\n dealDocuments,\r\n cleansingNotices,\r\n distributionReports,\r\n monthlyReports,\r\n reportsExcelFiles,\r\n otherDocuments,\r\n } = groupDocuments(allDocuments, isAdminOrDataEntry);\r\n\r\n return (\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {isAdminOrDataEntry && (\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\n","import { useFormikContext } from \"formik\";\r\nimport classNames from \"classnames\";\r\nimport { SORTING_TYPE, constants } from \"../../../../../constants\";\r\nimport IconSVG from \"../../../../../styles/svg-icons\";\r\nimport { AmrDocument } from \"../../../../../types/amr-pipeline/models/AmrDocument\";\r\nimport DownloadDocument from \"../../../../amrPipeline/common/documents/DownloadDocument\";\r\nimport { FilesUploaderChildProps } from \"../../../../amrPipeline/common/documents/FileUploader\";\r\nimport { EmptySectionContent } from \"../../../../amrPipeline/common/section/EmptySectionContent\";\r\nimport { Table } from \"../../../../bidding/common/table\";\r\nimport { ColumnBuilder } from \"../../../../bidding/common/table/columns/column-builder/ColumnBuilder\";\r\nimport { SelectField } from \"../../../../common/form-fields/SelectField\";\r\nimport { DateField } from \"../../../../common/form-fields/DateField\";\r\nimport { CheckboxField } from \"../../../../common/form-fields/CheckboxField\";\r\nimport { FileIcon, ProgressCircle } from \"../../../../controls\";\r\nimport { DocumentColumn, DocumentColumnDate } from \"../DocumentsList\";\r\nimport { DocumentsForm, DocumentsFormWithPatterns } from \"./EditDocuments\";\r\nimport useDownloadDocumentList from \"../../../../../effects/useDownloadDocumentList\";\r\nimport { dealsService } from \"../../../../../services/deals.service\";\r\nimport { DocumentTypeSelect } from '../../../../../types/amr-pipeline/enums/DocumentType';\r\n\r\ninterface Props extends FilesUploaderChildProps {\r\n documentKey: string;\r\n documentTypes?: DocumentTypeSelect[];\r\n withPublicColumn?: boolean;\r\n disabledDate?: boolean;\r\n documentColumnDate?: DocumentColumnDate;\r\n}\r\n\r\nexport function EditDocumentsList({\r\n referenceName,\r\n documents,\r\n progress,\r\n handleDeleteFile,\r\n documentKey,\r\n documentTypes = [],\r\n withPublicColumn = false,\r\n disabledDate = false,\r\n documentColumnDate = DocumentColumnDate.executionDate,\r\n}: Props) {\r\n const { values: {monthlyReportsPattern, ...docs} } = useFormikContext();\r\n const currentList = docs[documentKey as keyof DocumentsForm];\r\n\r\n const { loadingState, loadHandler } = useDownloadDocumentList({\r\n documents,\r\n downloadRequest: (documentReferenceName: string) => dealsService.getDealDocument(referenceName || '', documentReferenceName),\r\n });\r\n\r\n const getFormikIndex = (documentReferenceName: string) =>\r\n currentList.findIndex((l) => l.referenceName === documentReferenceName);\r\n\r\n const downloadDocument = (documentToDownload: AmrDocument) => {\r\n if (referenceName) {\r\n loadHandler(documentToDownload.referenceName, documentToDownload.name);\r\n }\r\n };\r\n\r\n const getTableColumns = () => {\r\n const documentsColumnDefinitions: DocumentColumn[] = [\r\n {\r\n columnKey: \"name\",\r\n renderColumnHeaderContent: () => \"Name\",\r\n headerClassName: \"data-list-cell-xl-flexible\",\r\n bodyClassName: \"data-list-cell-xl-flexible\",\r\n renderColumnContent: (document) => (\r\n downloadDocument(document)}\r\n disabled={!document.referenceName}\r\n >\r\n \r\n {document.name}\r\n \r\n ),\r\n sortingField: \"name\",\r\n sortingType: SORTING_TYPE.string,\r\n },\r\n {\r\n columnKey: \"progress\",\r\n renderColumnContent: (document) =>\r\n document.referenceName ? null : (\r\n \r\n ),\r\n renderColumnHeaderContent: () => \"\",\r\n headerClassName: \"data-list-cell-xxs\",\r\n bodyClassName: \"data-list-cell-xxs\",\r\n },\r\n ...(documentTypes.length\r\n ? [\r\n {\r\n columnKey: \"documentType\",\r\n renderColumnHeaderContent: () => \"Type\",\r\n headerClassName: \"data-list-cell-lg-02\",\r\n bodyClassName: \"data-list-cell-lg-02\",\r\n renderColumnContent: (document) => (\r\n \r\n ),\r\n } as DocumentColumn,\r\n ]\r\n : []),\r\n {\r\n columnKey: documentColumnDate === DocumentColumnDate.executionDate ? 'executionDate' : 'uploadTime',\r\n renderColumnHeaderContent: () => 'Date',\r\n headerClassName: 'data-list-cell-lg',\r\n bodyClassName: 'data-list-cell-lg',\r\n renderColumnContent: document => {\r\n const documentIndex = `${documentKey}.${getFormikIndex(document.referenceName)}`;\r\n\r\n const documentName =\r\n documentColumnDate === DocumentColumnDate.executionDate\r\n ? `${documentIndex}.executionDate`\r\n : `${documentIndex}.uploadTime`;\r\n\r\n return (\r\n \r\n );\r\n },\r\n },\r\n ...(withPublicColumn\r\n ? [\r\n {\r\n columnKey: 'isPublic',\r\n renderColumnHeaderContent: () => 'Public',\r\n headerClassName: 'data-list-cell-xxs-02 text-center',\r\n bodyClassName: 'data-list-cell-xxs-02 text-center',\r\n renderColumnContent: document => (\r\n \r\n ),\r\n } as DocumentColumn,\r\n ]\r\n : []),\r\n {\r\n columnKey: \"downloadButton\",\r\n renderColumnHeaderContent: () => \"\",\r\n headerClassName: \"data-list-cell-xxs-02 text-right\",\r\n bodyClassName: \"data-list-cell-xxs-02 text-right\",\r\n renderColumnContent: (document, { isLoading }) => (\r\n downloadDocument(document)}\r\n disabled={!document.referenceName}\r\n isLoading={isLoading}\r\n >\r\n \r\n \r\n ),\r\n },\r\n {\r\n columnKey: \"delete-action\",\r\n renderColumnContent: ({ referenceName }) => (\r\n \r\n \r\n \r\n ),\r\n renderColumnHeaderContent: () => \"\",\r\n headerClassName: \"data-list-cell-xxs padding-l-0\",\r\n bodyClassName: \"data-list-cell-xxs padding-l-0\",\r\n },\r\n ];\r\n\r\n return documentsColumnDefinitions.map((c) => {\r\n return new ColumnBuilder(c);\r\n });\r\n };\r\n\r\n return (\r\n
\r\n {documents.length ? (\r\n ({\r\n isLoading: loadingState[item.referenceName],\r\n })}\r\n createRowCustomKey={(\r\n document: AmrDocument,\r\n index: number,\r\n ) => document.referenceName || index}\r\n />\r\n ) : (\r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\n","import classNames from 'classnames';\r\nimport { BaseTextFieldProps, InputField } from '../../../../common/form-fields/InputField';\r\nimport { useState } from 'react';\r\n\r\nexport const PatternTextField = ({ maxLength, placeholder, formControlClassName, ...props }: BaseTextFieldProps) => {\r\n const [isFocused, setIsFocused] = useState(false);\r\n return (\r\n {\r\n const withError = !isFocused && meta.touched && meta.error;\r\n return (\r\n
\r\n {\r\n setIsFocused(true);\r\n }}\r\n onBlur={(e) => {\r\n formik.setFieldError(props.name, '')\r\n setIsFocused(false);\r\n field.onBlur(e);\r\n }}\r\n />\r\n {withError &&
{meta.error}
}\r\n
\r\n )\r\n }} />\r\n );\r\n}\r\n","import { FileUploader } from \"../../../../amrPipeline/common/documents/FileUploader\";\r\nimport { EditDocumentsList } from \"./EditDocumentsList\";\r\nimport { DocumentGroup } from \"../../../../amrPipeline/common/documents/DocumentGroup\";\r\nimport { AmrFile } from \"../../../../../types/amr-pipeline/models/AmrFile\";\r\nimport { DownloadFile } from \"../../../../../types/amr-pipeline/models/DownloadedDocument\";\r\nimport { Nullable } from \"../../../../../types/primitives/Nullable\";\r\nimport { DocumentColumnDate } from \"../DocumentsList\";\r\nimport { DocumentTypeSelect } from \"../../../../../types/amr-pipeline/enums/DocumentType\";\r\nimport { PatternTextField } from \"./PatternTextField\";\r\n\r\nconst maxDealDocSize = 50;\r\n\r\ninterface Props {\r\n title: string;\r\n dealReferenceName: string;\r\n items: AmrFile[];\r\n documentKey: string;\r\n documentTypes?: DocumentTypeSelect[];\r\n withPublicColumn?: boolean;\r\n disabledDate?: boolean;\r\n downloadAllFetch: (...args: TArgs) => Promise;\r\n downloadAllArgs: TArgs;\r\n fileNameForSave: Nullable;\r\n onUpload: (documents: AmrFile[]) => void;\r\n setUploadProgress: (isUploading: boolean) => void;\r\n onPatternChange?: (pattern: string) => void;\r\n patternName?: string;\r\n documentColumnDate?: DocumentColumnDate;\r\n renderAdditionalButton?: () => React.ReactNode;\r\n}\r\n\r\nexport const EditDocumentsSection = ({\r\n title,\r\n dealReferenceName,\r\n items,\r\n documentKey,\r\n documentTypes,\r\n withPublicColumn,\r\n disabledDate = false,\r\n downloadAllFetch,\r\n downloadAllArgs,\r\n fileNameForSave,\r\n onUpload,\r\n setUploadProgress,\r\n patternName,\r\n documentColumnDate = DocumentColumnDate.executionDate,\r\n renderAdditionalButton,\r\n}: Props) => {\r\n return (\r\n !i.remove).length}\r\n downloadAllFetch={downloadAllFetch}\r\n downloadAllArgs={downloadAllArgs}\r\n fileNameForSave={fileNameForSave}\r\n renderAdditionalButton={renderAdditionalButton}\r\n >\r\n {patternName && (\r\n \r\n )}\r\n \r\n {props => (\r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\n","import { useSelector } from 'react-redux';\r\nimport { groupDocuments } from '../Documents';\r\nimport { AppState } from '../../../../../types/state/AppState';\r\nimport { DealsState } from '../../../../../types/state/DealsState';\r\nimport { useMemo, useState } from 'react';\r\nimport { Formik, FormikErrors } from 'formik';\r\nimport { useAppDispatch } from '../../../../../effects/useAppDispatch';\r\nimport { AmrDocument } from '../../../../../types/amr-pipeline/models/AmrDocument';\r\nimport { dealsActions } from '../../../../../actions/deals.actions';\r\nimport { DealsSaveHeader } from '../../../DealsSaveHeader';\r\nimport { RouteLeavingGuard } from '../../../../routing';\r\nimport { useHistory } from 'react-router';\r\nimport { DealsTabType } from '../../../../../types/deals/DealsTabType';\r\nimport { cleansingNoticeDocsTypeList, dealRegularDocsTypeList, DocumentType, getDocumentTypeText } from '../../../../../types/amr-pipeline/enums/DocumentType';\r\nimport { constants, routes } from '../../../../../constants';\r\nimport { EditDocumentsSection } from './EditDocumentsSection';\r\nimport { has } from 'lodash';\r\nimport { AmrFile } from '../../../../../types/amr-pipeline/models/AmrFile';\r\nimport { Preloader } from '../../../../common';\r\nimport { dealsService } from '../../../../../services/deals.service';\r\nimport moment from 'moment';\r\nimport { DownloadTemplateButton } from '../../../../common/download-template/DownloadTemplateButton';\r\nimport { getDocValidationSchema } from './DealDocValidationSchema';\r\nimport { errorActions } from '../../../../../actions/error.actions';\r\n\r\nconst checkFileFormat = (fileName: string, ...fileFormats: string[]): boolean => {\r\n const fileExtension = fileName.split('.').pop()?.toLowerCase();\r\n\r\n return fileFormats.some(format => format.toLowerCase() === fileExtension);\r\n};\r\n\r\nexport interface DocumentsForm {\r\n dealDocuments: AmrDocument[];\r\n cleansingNotices: AmrDocument[];\r\n distributionReports: AmrDocument[];\r\n monthlyReports: AmrDocument[];\r\n reportsExcelFiles: AmrDocument[];\r\n otherDocuments: AmrDocument[];\r\n}\r\n\r\nexport interface DocumentsFormWithPatterns extends DocumentsForm {\r\n monthlyReportsPattern: string;\r\n distributionReportsPattern: string;\r\n}\r\n\r\nexport const EditDocuments = () => {\r\n const dispatch = useAppDispatch();\r\n const [isUploading, setIsUploading] = useState(false);\r\n const { selectedDeal, isUpdating } = useSelector(state => state.deals);\r\n const history = useHistory();\r\n\r\n const initialValues: DocumentsFormWithPatterns = useMemo(\r\n () => ({\r\n ...groupDocuments(selectedDeal?.documents?.dealDocuments, true),\r\n monthlyReportsPattern:\r\n selectedDeal?.documents?.dealDocumentPatterns?.find(p => p.documentType === DocumentType.monthlyReport)\r\n ?.pattern || '',\r\n distributionReportsPattern:\r\n selectedDeal?.documents?.dealDocumentPatterns?.find(\r\n p => p.documentType === DocumentType.distributionReport,\r\n )?.pattern || '',\r\n }),\r\n [selectedDeal],\r\n );\r\n\r\n if (isUpdating) {\r\n return ;\r\n }\r\n\r\n if (!selectedDeal) {\r\n return null;\r\n }\r\n\r\n const { referenceName, legalName, ticker } = selectedDeal;\r\n\r\n const handleSubmit = (values: DocumentsFormWithPatterns) => {\r\n const documentsList = [\r\n ...values.dealDocuments,\r\n ...values.cleansingNotices,\r\n ...values.distributionReports,\r\n ...values.monthlyReports,\r\n ...values.reportsExcelFiles,\r\n ...values.otherDocuments,\r\n ];\r\n\r\n dispatch(\r\n dealsActions.updateDealDocuments(referenceName, {\r\n dealDocuments: documentsList,\r\n dealDocumentPatterns: [\r\n { pattern: values.monthlyReportsPattern, documentType: DocumentType.monthlyReport },\r\n { pattern: values.distributionReportsPattern, documentType: DocumentType.distributionReport },\r\n ],\r\n }),\r\n );\r\n };\r\n\r\n const handleUpload = (\r\n name: string,\r\n documentType: DocumentType,\r\n setFieldValue: (\r\n field: string,\r\n value: any,\r\n shouldValidate?: boolean | undefined,\r\n ) => Promise>,\r\n files: AmrFile[],\r\n ) => {\r\n setFieldValue(\r\n name,\r\n files.map(f => ({\r\n ...f,\r\n isPublic: has(f, 'isPublic') ? f.isPublic : true,\r\n documentType: f.documentType || documentType,\r\n executionDate: f.executionDate || moment().format(constants.formatTimeStringWithoutTimeZone),\r\n })),\r\n );\r\n };\r\n\r\n const validateExpression = async (expression?: string) => {\r\n if (!expression) {\r\n return true;\r\n }\r\n try {\r\n const isExpressionValid: boolean =\r\n await dealsService.validateRegularExpression(expression);\r\n return isExpressionValid;\r\n } catch (error) {\r\n dispatch(errorActions.unexpectedError(error));\r\n return false;\r\n }\r\n };\r\n\r\n return (\r\n \r\n {({ values, setFieldValue, dirty, isSubmitting, submitForm, errors }) => {\r\n return (\r\n
\r\n history.push(routes.dealsUrl(referenceName, DealsTabType.Documents))}\r\n />\r\n
\r\n history.push(pathname)}\r\n shouldBlockNavigation={() => !!dirty && !isSubmitting}\r\n />\r\n \r\n handleUpload('dealDocuments', DocumentType.otherDealDocument, setFieldValue, files)\r\n }\r\n />\r\n \r\n handleUpload('cleansingNotices', DocumentType.cleansingNoticeRefinancing, setFieldValue, files.map(f => ({ ...f, isPublic: !checkFileFormat(f.name, 'xls', 'xlsx') ? true : false })))\r\n }\r\n renderAdditionalButton={() =>\r\n \r\n }\r\n />\r\n \r\n handleUpload(\r\n 'distributionReports',\r\n DocumentType.distributionReport,\r\n setFieldValue,\r\n files,\r\n )\r\n }\r\n />\r\n \r\n handleUpload('monthlyReports', DocumentType.monthlyReport, setFieldValue, files)\r\n }\r\n />\r\n \r\n handleUpload(\r\n 'reportsExcelFiles',\r\n DocumentType.reportsExcelFiles,\r\n setFieldValue,\r\n files,\r\n )\r\n }\r\n />\r\n \r\n handleUpload('otherDocuments', DocumentType.otherDocument, setFieldValue, files)\r\n }\r\n />\r\n
\r\n
\r\n );\r\n }}\r\n \r\n );\r\n};\r\n","import * as Yup from \"yup\";\r\nimport { errorMessages } from \"../../../../../constants\";\r\n\r\nexport const getDocValidationSchema = (\r\n getValidatePattern: (expression?: string) => Promise\r\n) => {\r\n return Yup.object().shape({\r\n distributionReportsPattern: Yup.string().test(\r\n \"distributionReportsPattern-validation\",\r\n errorMessages.invalidField(\"Distribution Reports Mask\"),\r\n getValidatePattern\r\n ),\r\n monthlyReportsPattern: Yup.string().test(\r\n \"monthlyReportsPattern-validation\",\r\n errorMessages.invalidField(\"Monthly Reports Mask\"),\r\n getValidatePattern\r\n ),\r\n });\r\n};\r\n","import { Formik } from 'formik';\r\nimport { useSelector } from 'react-redux';\r\nimport { AmrTransaction } from '../../../../../types/amr-pipeline/models/AmrTransaction';\r\nimport { AppState } from '../../../../../types/state/AppState';\r\nimport { DealsState } from '../../../../../types/state/DealsState';\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport { Preloader } from '../../../../common';\r\nimport { useHistory, useParams } from 'react-router';\r\nimport { DealsRouteParams } from '../../../Deals';\r\nimport { SelectField } from '../../../../common/form-fields/SelectField';\r\nimport { DateField } from '../../../../common/form-fields/DateField';\r\nimport { NumberField } from '../../../../common/form-fields/NumberField';\r\nimport { DealsSaveHeader } from '../../../DealsSaveHeader';\r\nimport { constants, routes } from '../../../../../constants';\r\nimport { Grid } from '../../../../grid';\r\nimport { useEffect, useState } from 'react';\r\nimport { has, isEqual, isNil } from 'lodash';\r\nimport { useAppDispatch } from '../../../../../effects/useAppDispatch';\r\nimport { dealsActions } from '../../../../../actions/deals.actions';\r\nimport { gridUtils } from '../../../../../utils';\r\nimport RouteLeavingGuard from '../../../../routing/RouteLeavingGuard';\r\nimport { EditDocumentsSection } from '../../documents/edit/EditDocumentsSection';\r\nimport * as Yup from 'yup';\r\nimport { AmrInfoSaveForm } from '../../../../../types/deals/AmrInfoSaveForm';\r\nimport { amrStatusesSelectOptions } from '../../../../../types/amr-pipeline/enums/AmrStatus';\r\nimport { useAmrDocuments } from '../../../../../effects/useAmrDocuments';\r\nimport { amrPipelineService } from '../../../../../services/amr-pipeline.service';\r\nimport { gridActions } from '../../../../../actions';\r\nimport { DocumentColumnDate } from '../../documents/DocumentsList';\r\n\r\nexport const validationSchema = Yup.object().shape({\r\n electionNoticeDate: Yup.date().required(),\r\n informationNoticeDate: Yup.date().required(),\r\n});\r\n\r\nexport const AmrInfoEdit = () => {\r\n const history = useHistory();\r\n const dispatch = useAppDispatch();\r\n\r\n const { selectedDeal, isUpdating } = useSelector(state => state.deals);\r\n const dataItems = useSelector((state: AppState) => state.grid.dataItems);\r\n\r\n const [isUploading, setIsUploading] = useState(false);\r\n\r\n const { transactionReferenceName } = useParams();\r\n\r\n const selectedTransaction = selectedDeal?.transactions?.find(\r\n t => t.referenceName === transactionReferenceName,\r\n ) as AmrTransaction;\r\n\r\n const { amrDocuments } = useAmrDocuments({\r\n dealReferenceName: selectedDeal?.referenceName,\r\n transactionReferenceName: selectedTransaction?.referenceName,\r\n });\r\n\r\n const hasGridChanges = () => !isEqual(selectedTransaction.classes, gridUtils.sanitizeGridItems(dataItems));\r\n\r\n useEffect(() => {\r\n if (isNil(selectedDeal)) {\r\n return;\r\n }\r\n\r\n dispatch(dealsActions.amrInfoClassesEdit(selectedTransaction.classes));\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [isNil(selectedDeal)]);\r\n\r\n useEffect(() => {\r\n return () => {\r\n dispatch(gridActions.reset());\r\n };\r\n }, [dispatch]);\r\n\r\n if (!selectedDeal || isUpdating) {\r\n return ;\r\n }\r\n\r\n const handleSave = (value: AmrInfoSaveForm) => {\r\n dispatch(dealsActions.amrInfoSave(selectedDeal.referenceName, selectedTransaction.referenceName, value));\r\n };\r\n\r\n const initialValues: AmrInfoSaveForm = {\r\n amrStatus: selectedTransaction.amrStatus,\r\n electionNoticeDate: selectedTransaction.electionNotice.noticeDate,\r\n informationNoticeDate: selectedTransaction.informationNoticeDate,\r\n electionToInformationBusinessDays: selectedDeal.electionToInformationBusinessDays,\r\n informationToPricingBusinessDays: selectedDeal.informationToPricingBusinessDays,\r\n pricingToSettlementBusinessDays: selectedDeal.pricingToSettlementBusinessDays,\r\n amrDocuments: amrDocuments ?? [],\r\n classes: selectedTransaction.classes,\r\n };\r\n\r\n return (\r\n \r\n {({ dirty, submitForm, setFieldValue, values }) => (\r\n
\r\n history.push(pathname)}\r\n shouldBlockNavigation={() => (hasGridChanges() || dirty) && !isUpdating}\r\n />\r\n \r\n history.push(routes.dealAmrInfoUrl(selectedDeal!.referenceName, transactionReferenceName))\r\n }\r\n />\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n \r\n setFieldValue(\r\n 'amrDocuments',\r\n files.map(f => ({\r\n ...f,\r\n isPublic: has(f, 'isPublic') ? f.isPublic : true,\r\n dealReferenceName: selectedDeal.referenceName,\r\n transactionReferenceName: selectedTransaction.referenceName,\r\n })),\r\n )\r\n }\r\n />\r\n
\r\n
\r\n
\r\n )}\r\n \r\n );\r\n};\r\n","import { useSelector } from 'react-redux';\r\nimport { AppState } from '../../../../types/state/AppState';\r\nimport { DealsState } from '../../../../types/state/DealsState';\r\nimport { FormField } from '../../../amrPipeline/common/FormField';\r\nimport { formatUtils, isRequesting, moneyUtils, numericUtils } from '../../../../utils';\r\nimport { AmrTransaction } from '../../../../types/amr-pipeline/models/AmrTransaction';\r\nimport { constants, routes } from '../../../../constants';\r\nimport StatusLabel from '../../../amrPipeline/StatusLabel';\r\nimport { useHistory, useParams } from 'react-router-dom';\r\nimport { AmrClass } from '../../../../types/amr-pipeline/models/AmrClass';\r\nimport { AmrClassStatusLabel } from '../../../amrPipeline/common/AmrClassStatusLabel';\r\nimport { isNil, startCase } from 'lodash';\r\nimport { OnHoverTooltip, Preloader } from '../../../common';\r\nimport IconSVG from '../../../../styles/svg-icons';\r\nimport { DealsRouteParams } from '../../Deals';\r\nimport { SectionContent } from '../../../amrPipeline/common/section/SectionContent';\r\nimport { useAppDispatch } from '../../../../effects/useAppDispatch';\r\nimport { dealsActions } from '../../../../actions/deals.actions';\r\nimport { useAvailableBrokerDealers } from '../../../../effects/data-accessors/useAvailableBrokerDealers';\r\nimport AmrInfoHeader from './AmrInfoHeader';\r\nimport { useExcludedDealers } from '../../../../effects/useExcludedDealers';\r\nimport { useSettlementInstructions } from '../../../../effects/useSettlementInstructions';\r\n\r\nconst renderEmptyDealersPlaceholder = (category: string) => (\r\n
\r\n {`There are no ${category} dealers to display`}\r\n
\r\n);\r\n\r\nexport const AmrClassDetails = () => {\r\n const dispatch = useAppDispatch();\r\n const history = useHistory();\r\n const { selectedDeal } = useSelector(state => state.deals);\r\n\r\n const { transactionReferenceName, classReferenceName } = useParams();\r\n\r\n const selectedTransaction = selectedDeal?.transactions?.find(\r\n t => t.referenceName === transactionReferenceName,\r\n ) as AmrTransaction;\r\n const selectedClass = selectedTransaction?.classes?.find(c => c.referenceName === classReferenceName) as AmrClass;\r\n\r\n const { requestState: settlementInstructionsRequestState, settlementInstructions } = useSettlementInstructions({\r\n dealReferenceName: selectedClass?.dealReferenceName,\r\n transactionReferenceName: selectedClass?.transactionReferenceName,\r\n classReferenceName: selectedClass?.referenceName,\r\n });\r\n const { requestState: availableBDRequestState, items: availableDealers } = useAvailableBrokerDealers();\r\n const { requestState: excludedBDRequestState, excludedDealers } = useExcludedDealers({\r\n dealReferenceName: selectedClass?.dealReferenceName,\r\n transactionReferenceName: selectedClass?.transactionReferenceName,\r\n classReferenceName: selectedClass?.referenceName,\r\n });\r\n\r\n if (!selectedDeal || !selectedTransaction) {\r\n return null;\r\n }\r\n\r\n if (!selectedClass) {\r\n history.push(routes.dealAmrInfoUrl(selectedDeal.referenceName, transactionReferenceName));\r\n }\r\n\r\n if (isRequesting(settlementInstructionsRequestState, availableBDRequestState, excludedBDRequestState)) {\r\n return ;\r\n }\r\n\r\n const renderAvailableDealers = () => {\r\n if (availableDealers.length === excludedDealers.length) {\r\n return renderEmptyDealersPlaceholder('available');\r\n }\r\n\r\n return availableDealers.map(d =>\r\n excludedDealers.some(ed => ed.dealer.referenceName === d.referenceName) ? null : (\r\n
\r\n {d.legalName}\r\n
\r\n ),\r\n );\r\n }\r\n\r\n const renderExcludedDealers = () => {\r\n if (!excludedDealers.length) {\r\n return renderEmptyDealersPlaceholder('excluded');\r\n }\r\n\r\n return excludedDealers.map(d => (\r\n
\r\n {d.dealer.legalName}\r\n
\r\n ));\r\n }\r\n\r\n return (\r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n }\r\n className=\"data-item-row-full-height data-item-row-title-md data-item-row-status\"\r\n />\r\n \r\n }\r\n className=\"data-item-row-full-height data-item-row-title-md data-item-row-status\"\r\n />\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n {\r\n dispatch(\r\n dealsActions.exportSettlementInstructions(\r\n selectedClass.dealReferenceName,\r\n selectedClass.dealLegalName,\r\n selectedClass.transactionReferenceName,\r\n selectedClass.referenceName,\r\n selectedClass.name,\r\n ),\r\n );\r\n }}\r\n className=\"btn-link flex-item-right\"\r\n >\r\n \r\n Export\r\n \r\n \r\n }\r\n title=\"Settlement Instructions\"\r\n className=\"data-item-general-cols amr-info-settlement-instructions\"\r\n >\r\n
\r\n
Cash Settlement Account
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
Bond Settlement Account
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n
Contacts
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n {renderAvailableDealers()}\r\n
\r\n
\r\n {renderExcludedDealers()}\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};\r\n","import { useDispatch, useSelector } from 'react-redux';\r\nimport { useHistory, useParams, Switch, Route, Redirect } from 'react-router';\r\nimport { roles, routes } from '../../constants';\r\nimport { DealsTabType } from '../../types/deals/DealsTabType';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { Preloader } from '../common';\r\nimport { DealsState } from '../../types/state/DealsState';\r\nimport { DealsSelectionPanel } from './DealsSelectionPanel';\r\nimport { useCallback, useEffect, useState } from 'react';\r\nimport { dealsActions } from '../../actions/deals.actions';\r\nimport { head } from 'lodash';\r\nimport { Overview } from './tabs/overview/Overview';\r\nimport DealsContext from './DealsContext';\r\nimport { CompanyPopup } from './CompanyPopup/CompanyPopup';\r\nimport { DealDetail } from './tabs/dealDetails/DealDetails';\r\nimport { EditDealDetails } from './tabs/dealDetails/edit/EditDealDetails';\r\nimport { ClassDetails } from './tabs/class-detail/ClassDetails';\r\nimport { AmrInfo } from './tabs/amrInfo/AmrInfo';\r\nimport { AmrInfoDetails } from './tabs/amrInfo/AmrInfoDetails';\r\nimport Confirm from '../alerts/Confirm';\r\nimport { AllClasses } from './tabs/all-classes/AllClasses';\r\nimport { EditDocuments } from './tabs/documents/edit/EditDocuments';\r\nimport { Documents } from './tabs/documents/Documents';\r\nimport { user } from '../../user';\r\nimport { AmrInfoEdit } from './tabs/amrInfo/edit/AmrInfoEdit';\r\nimport { AmrClassDetails } from './tabs/amrInfo/AmrClassDetails';\r\n\r\nexport interface DealsRouteParams {\r\n dealReferenceName: string;\r\n classReferenceName: string;\r\n transactionReferenceName?: string;\r\n tab?: DealsTabType;\r\n}\r\n\r\nexport const Deals = () => {\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n\r\n const { dealReferenceName, tab, classReferenceName } = useParams();\r\n const { data, isLoading, isDetailsLoading, selectedDeal } = useSelector(state => state.deals);\r\n\r\n const [companyForPopup, setCompanyForPopup] = useState(null);\r\n const [showDeleteConfirmationPopup, setShowDeleteConfirmationPopup] = useState(false);\r\n\r\n const isAdminOrDataEntry = user.hasRoles(roles.Administrator, roles.DataEntry);\r\n const withDocumentsAccess = isAdminOrDataEntry || user.hasRoles(...roles.seller());\r\n\r\n const context = {\r\n companyForPopup,\r\n setCompanyForPopup,\r\n showDeleteConfirmationPopup,\r\n setShowDeleteConfirmationPopup,\r\n };\r\n\r\n const navigateToFirstDeal = useCallback(\r\n (tab?: DealsTabType) => {\r\n const firstDeal = head(data);\r\n\r\n if (firstDeal) {\r\n history.replace(routes.dealsUrl(firstDeal.referenceName, tab || DealsTabType.Overview));\r\n }\r\n },\r\n [history, data],\r\n );\r\n\r\n useEffect(() => {\r\n dispatch(dealsActions.getDeals());\r\n\r\n return () => {\r\n dispatch(dealsActions.reset());\r\n };\r\n }, [dispatch]);\r\n\r\n useEffect(() => {\r\n if (!tab && !dealReferenceName) {\r\n navigateToFirstDeal();\r\n }\r\n }, [dealReferenceName, data, classReferenceName, tab, navigateToFirstDeal]);\r\n\r\n useEffect(() => {\r\n if (dealReferenceName) {\r\n dispatch(dealsActions.getDealDetails(dealReferenceName));\r\n }\r\n }, [dealReferenceName, dispatch]);\r\n\r\n if (selectedDeal) {\r\n document.title = `${selectedDeal.legalName} - KTX ATS Platform`;\r\n }\r\n\r\n const handleDeleteDeal = () => {\r\n dispatch(dealsActions.deleteDealRequest(dealReferenceName));\r\n setShowDeleteConfirmationPopup(false);\r\n };\r\n\r\n const hasClosedTransactions = !!data?.find(d => d.referenceName === dealReferenceName)?.hasClosedTransactions;\r\n\r\n const renderRedirect = () => {\r\n if (!dealReferenceName || !data) {\r\n return null;\r\n }\r\n\r\n let tabToRedirect = tab || DealsTabType.Overview;\r\n\r\n if (!hasClosedTransactions || !withDocumentsAccess) {\r\n tabToRedirect = isAdminOrDataEntry ? DealsTabType.DealDetail : DealsTabType.Overview;\r\n }\r\n\r\n return ;\r\n };\r\n\r\n const renderRoutes = () => (\r\n \r\n {(!isAdminOrDataEntry || hasClosedTransactions) && (\r\n (\r\n \r\n )}\r\n />\r\n )}\r\n {(isAdminOrDataEntry || hasClosedTransactions) && [\r\n }\r\n />,\r\n }\r\n />,\r\n ]}\r\n {isAdminOrDataEntry && (\r\n }\r\n />\r\n )}\r\n {hasClosedTransactions && [\r\n }\r\n />,\r\n }\r\n />,\r\n }\r\n />,\r\n }\r\n />,\r\n (\r\n \r\n )}\r\n />,\r\n }\r\n />,\r\n ...(withDocumentsAccess\r\n ? [\r\n }\r\n />,\r\n ]\r\n : []),\r\n ...((isAdminOrDataEntry && !!selectedDeal?.ticker)\r\n ? [\r\n }\r\n />,\r\n ]\r\n : []),\r\n }\r\n />,\r\n ]}\r\n {renderRedirect()}\r\n \r\n );\r\n\r\n return (\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n {renderRoutes()}\r\n \r\n
\r\n
\r\n
\r\n\r\n {companyForPopup && (\r\n setCompanyForPopup(null)}\r\n companyReferenceName={companyForPopup}\r\n collateralManagerReferenceName={selectedDeal?.collateralManager?.referenceName}\r\n />\r\n )}\r\n {showDeleteConfirmationPopup && (\r\n setShowDeleteConfirmationPopup(false)}\r\n onConfirm={handleDeleteDeal}\r\n title=\"Delete Confirmation\"\r\n text={`Are you sure you want to delete deal ${selectedDeal?.legalName}`}\r\n />\r\n )}\r\n
\r\n );\r\n};\r\n","import * as React from 'react';\r\nimport * as _ from 'lodash';\r\nimport { DirectBiddingDisclaimer } from './DirectBiddingDisclaimer';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { directBiddingDisclaimerActions } from '../../actions/direct-bidding-agreement-disclaimer.actions';\r\nimport { AppState } from '../../types/state/AppState';\r\n\r\ntype TRenderChildren = (blocked: boolean) => React.ReactNode;\r\n\r\ninterface Props {\r\n children: React.ReactNode | TRenderChildren;\r\n disabled?: boolean;\r\n onConfirm: () => void;\r\n}\r\n\r\nexport function DirectBiddingDisclaimerActionBlocker({ children, onConfirm, disabled = false }: Props) {\r\n const actionBlockerId = React.useRef(_.uniqueId('direct-bidding-disclaimer-action-blocker-'));\r\n const dispatch = useDispatch();\r\n const visible = useSelector((state: AppState) => state.directBiddingDisclaimer.visible);\r\n const confirmed = useSelector((state: AppState) => state.directBiddingDisclaimer.confirmed);\r\n const blockerId = useSelector((state: AppState) => state.directBiddingDisclaimer.blockerId);\r\n const handleConfirm = React.useCallback(() => onConfirm(), [onConfirm]);\r\n\r\n React.useEffect(() => {\r\n if (!visible && actionBlockerId.current === blockerId) {\r\n if (confirmed) {\r\n handleConfirm();\r\n }\r\n if (confirmed || confirmed === false) {\r\n dispatch(directBiddingDisclaimerActions.reset());\r\n }\r\n }\r\n }, [visible, actionBlockerId, blockerId, confirmed, dispatch, handleConfirm]);\r\n\r\n const handleClick = (e: React.MouseEvent) => {\r\n e.stopPropagation();\r\n dispatch(directBiddingDisclaimerActions.show(actionBlockerId.current));\r\n };\r\n\r\n const renderBlocked = () =>
{renderChildren(true)}
;\r\n\r\n const renderChildren = (blocked: boolean) => {\r\n if (typeof children === 'function') {\r\n return (children as TRenderChildren)(blocked);\r\n }\r\n return children;\r\n };\r\n\r\n if (disabled) {\r\n return <>{renderChildren(false)};\r\n }\r\n\r\n return (\r\n \r\n {(blocked: boolean) => blocked ? renderBlocked() : renderChildren(false)}\r\n \r\n );\r\n}\r\n","import * as React from 'react';\r\n\r\nexport const DirectBiddingDisclaimerContext = React.createContext(false);\r\n","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { routes } from '../../constants';\r\n\r\nexport const DirectBiddingDisclaimerPopupText: React.FC = () => {\r\n return (\r\n <>\r\n

DirectBidding™ and All-to-All Trading Protocols Terms and Conditions

\r\n

The DirectBidding™ and All-to-All trading protocols (the \"Trading Protocols\") are part of the KopenTech Alternative Trading System (the “ATS”). The use of Trading Protocols by you (\"You\") is governed by these Terms and Conditions.

\r\n

The use of the ATS is governed by the rules and procedures that govern the use of the ATS for all users (the “ATS Rulebook”), available on the KopenTech platform publicly for review and can be accessed here. You must confirm the receipt of the ATS Rulebook and agree to abide by the terms and conditions of the ATS.

\r\n

These Trading Protocols are designed to facilitate the matching of buyers and sellers on the KopenTech ATS. As a user of the ATS, You agree to comply with these Terms and Conditions, Trading Protocols, and the following rules:

\r\n\r\n

1. Display of Bids

\r\n

These Trading Protocols govern the process for posting lists of securities for sale, or BWICs, for CLOs that are (or will become) available for bidding. BWICs posted using the Trading Protocols will be marked with a special icon clearly indicated on the KopenTech ATS. For each BWIC available via the Trading Protocols, You can submit a bid directly and anonymously to the seller and receive real-time, automated feedback from the ATS. KopenTech only provides feedback to You during the “Bidding Window”, that is defined as the period of time specified by the seller on the BWIC announcement. This feedback shows Your standing among the other bidders. KopenTech ATS has pre-defined feedback choices that are automatically sent to a bidder once a bid is submitted.

\r\n

You will see Your bid position solely in the context of other users of the Trading Protocols. Depending on the chosen BWIC rules, You will receive real-time feedback as bids entered by You and other users are collected. At the end of the Bidding Window, the seller has the option to trade the bond to You.

\r\n\r\n

2. BWIC Exclusivity

\r\n

When posting a BWIC on the KopenTech ATS, You commit to not redistribute the same BWIC either through other available technology platforms and/or directly to broker dealers at the same time.

\r\n\r\n

3. Bidding

\r\n

On the BWIC Monitor, click on the “Bid” button to enter a bid for any bond(s) that are marked as available via the Trading Protocols. Bids are irrevocable upon submission. Your last submitted bid remains firm and executable until [30] minutes after the bidding window closes. Once that time lapses, if there is no action by the seller, the BWIC will close and the ATS will automatically send out information regarding the BWIC.

\r\n\r\n

4. Cancelling

\r\n

You cannot cancel Your bid. Once a bid is entered, a pop-up will appear asking You to confirm Your bid. This is done to prevent fat finger errors. See Section 5 for further information.

\r\n\r\n

5. Determination of Winning Bid

\r\n

The seller will evaluate the bids received from the BWIC participants. Sellers make their own determination about whether to sell the bonds based solely upon their own criteria.

\r\n

KopenTech is not acting as Your adviser or agent. Prior to making any investment decision or entering into any transaction, You should determine, without reliance on KopenTech or any of its affiliates, the economic risks and merits, as well as the legal, tax and accounting characterizations and consequences of any investment or transaction, and independently determine that You are able to assume these risks. By submitting Your bids, You acknowledge that (a) KopenTech is not in the business of providing legal, tax or accounting advice, (b) You understand that there may be legal, tax or accounting risks associated with any investment or transaction, (c) You should receive legal, tax and accounting advice from advisers with appropriate expertise to assess relevant risks. In addition, KopenTech will provide all bidders with the post-trade color, meaning the second-best bid received during the bidding period. By submitting Your bid, You acknowledge that post-trade color might deviate significantly from Your bid and the trading level and that this information does not affect the validity of Your bid. You are responsible for Your own independent research and assertion of value before deciding to place a bid on any security. All bids made and matched on the ATS are considered final transaction agreements and it is expected that subsequent transactions will be made based on the bids and matches.

\r\n\r\n

6. Trading

\r\n

The seller has the option to sell a security to You. Trade affirmation by You is required to complete the trade and must be performed by You within 30 minutes after receipt of notification from Seller via the ATS. Trades may only be declined in the case of technical errors. If a technical error occurs, You must promptly contact KopenTech at {process.env.REACT_APP_SUPPORT_EMAIL} in an effort to resolve the matter. Trades may not be rejected without valid reason and failure to affirm trades may result in revoked access to KopenTech Trading Protocols. KopenTech will have no liability for rejected trades.

\r\n

Trade settlement is conducted by KopenTech Capital Markets LLC, a registered broker-dealer and FINRA member and clearing is performed by a third-party clearing agent. The trade commission is set by KopenTech and can be accessed on the BWIC Trading Protocol. Trade commissions are subject to change from time to time and any changes will be communicated to You. You will be responsible any additional fees assessed by the clearing firm for any non-standard settlement or delayed settlement of trades.

\r\n\r\n

7. Information and Activity

\r\n

Data and information provided to You through the Trading Protocols is gathered from sources that KopenTech regards to be reliable, but KopenTech is not responsible for the accuracy of any data or information that it makes available to You.

\r\n

KopenTech may collect Your data to display aggregated analytics to platform users. KopenTech monitors ATS activity and collects trade data for analytical purposes. In addition, while Your specific bid information will not be divulged to other bidders, the Trading Protocols analyze the bid data You enter to inform You and other bidders of their relative standing, which can include the settlement agent, bidders and broker-dealers.

\r\n

You acknowledge that ATS and/or its affiliates and service providers own all rights, title and interest, including without limitation all intellectual property rights, in performance of the services provided herein, the ATS, and all trademarks and trade names used in connection with the services provided, including all data entered into or produced by or for the ATS, including without limitation all bid and ranking data (such data collectively, “KopenTech ASP Data”).

\r\n\r\n

8. Limitations on Liability and Use

\r\n

KopenTech reserves the right to change the these Terms and Conditions at any time. KopenTech also reserves the right, in its sole discretion, to revoke Your access to the Trading Protocols or to otherwise make the Trading Protocols unavailable to You.

\r\n\r\n

9. No Physical Settlement

\r\n

No transaction matched through the Trading Protocols on the ATS may be physically settled. The settlement agent has no responsibility for processing physical settlements. It is the responsibility of the seller of securities not to list such bonds via Trading Protocols.

\r\n\r\n

10. No 144A/Reg S Conversions

\r\n

No transaction matched through the Trading Protocols on the ATS may be converted from 144A to Reg S or vice versa. Buyers are providing firm bids for the securities listed in the format identified by a seller.

\r\n\r\n

11. Authorization

\r\n

You agree that You are responsible for the actions of any persons authorized to trade or act or act on Your behalf. You agree to maintain updated authorized trader list on file with KopenTech Capital Markets LLC.

\r\n\r\n

12. Commission Sharing

\r\n

KopenTech Capital Markets LLC and the clearing agent share commissions collected by the clearing agent to execute and settle transactions matched on the ATS. There is no additional cost to You because of this arrangement.

\r\n \r\n )\r\n}\r\n","import React, { useEffect, useState } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport Popup from '../controls/Popup';\r\nimport { PopupBody, PopupFooter } from '../controls';\r\nimport { Checkbox } from '../controls/Checkbox';\r\nimport { directBiddingDisclaimerActions } from '../../actions/direct-bidding-agreement-disclaimer.actions';\r\nimport { DirectBiddingDisclaimerPopupText } from './DirectBiddingDisclaimerPopupText';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { isRequesting } from '../../utils';\r\nimport IconSVG from '../../styles/svg-icons';\r\n\r\nexport const DirectBiddingDisclaimerPopup: React.FC = () => {\r\n const dispatch = useDispatch();\r\n\r\n const [agreeCheckBoxChecked, setAgreeCheckBoxChecked] = useState(false);\r\n const downloadPdfRequestState = useSelector((state: AppState) => state.directBiddingDisclaimer.downloadPdfRequestState);\r\n const confirmRequestState = useSelector((state: AppState) => state.directBiddingDisclaimer.confirmRequestState);\r\n const visible = useSelector((state: AppState) => state.directBiddingDisclaimer.visible);\r\n\r\n useEffect(() => {\r\n if (!visible) {\r\n setAgreeCheckBoxChecked(false);\r\n }\r\n }, [visible]);\r\n\r\n if (!visible) {\r\n return null;\r\n }\r\n\r\n const handleOnClose = () => {\r\n dispatch(directBiddingDisclaimerActions.hide(false))\r\n };\r\n\r\n return (\r\n \r\n \r\n
\r\n \r\n
\r\n dispatch(directBiddingDisclaimerActions.downloadPdfRequest())}\r\n disabled={isRequesting(downloadPdfRequestState)}\r\n >\r\n Download agreement\r\n \r\n
\r\n
\r\n setAgreeCheckBoxChecked(!agreeCheckBoxChecked)}\r\n />\r\n
\r\n
\r\n
\r\n \r\n \r\n dispatch(directBiddingDisclaimerActions.confirmRequest())}\r\n disabled={!agreeCheckBoxChecked || isRequesting(confirmRequestState)}\r\n >\r\n Agree\r\n \r\n \r\n \r\n )\r\n};\r\n","import * as React from 'react';\r\nimport * as _ from 'lodash';\r\nimport { useHistory } from 'react-router';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { DirectBiddingDisclaimer } from './DirectBiddingDisclaimer';\r\nimport { DirectBiddingDisclaimerContext } from './DirectBiddingDisclaimerContext';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { directBiddingDisclaimerActions } from '../../actions/direct-bidding-agreement-disclaimer.actions';\r\n\r\ninterface Props {\r\n disabled?: boolean;\r\n onCancel?: () => void;\r\n children: React.ReactNode;\r\n}\r\n\r\ninterface ContentProps {\r\n onCancel?: () => void;\r\n children: React.ReactNode;\r\n}\r\n\r\nconst DirectBiddingDisclaimerContent: React.FC = ({ children, onCancel }) => {\r\n const actionBlockerId = React.useRef(_.uniqueId('direct-bidding-disclaimer-content-blocker-'));\r\n const blocked = React.useContext(DirectBiddingDisclaimerContext);\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n const popupVisible = useSelector((state: AppState) => state.directBiddingDisclaimer.visible);\r\n const confirmed = useSelector((state: AppState) => state.directBiddingDisclaimer.confirmed);\r\n const blockerId = useSelector((state: AppState) => state.directBiddingDisclaimer.blockerId);\r\n const handleReject = React.useCallback(() => onCancel ? onCancel() : history.replace('/'), [onCancel, history]);\r\n\r\n React.useEffect(() => {\r\n if (blocked && !popupVisible && confirmed === undefined) {\r\n dispatch(directBiddingDisclaimerActions.show(actionBlockerId.current))\r\n }\r\n }, [dispatch, blocked, popupVisible, actionBlockerId, confirmed]);\r\n\r\n React.useEffect(() => {\r\n if (!popupVisible && confirmed === false && actionBlockerId.current === blockerId) {\r\n handleReject();\r\n dispatch(directBiddingDisclaimerActions.reset());\r\n }\r\n }, [history, popupVisible, confirmed, actionBlockerId, blockerId, dispatch, handleReject]);\r\n\r\n return blocked ? null : <>{children};\r\n};\r\n\r\nexport const DirectBiddingDisclaimerContentBlocker: React.FC = ({ disabled = false, children, onCancel }) => {\r\n if (disabled) return <>{children};\r\n\r\n return (\r\n \r\n {() => (\r\n \r\n {children}\r\n \r\n )}\r\n \r\n );\r\n};\r\n"],"names":["DirectBiddingDisclaimer","_ref","_user$current","children","isFeatureBlocked","React","BlockedFeatureContext","agreements","useSettlementAgentAgreements","items","confirmRequestState","useSelector","state","directBiddingDisclaimer","hasConfirmedClearingBankAgreement","useMemo","some","a","agreementStatus","SettlementAgreementStatus","confirmed","settlementAgent","isClearingBank","blocked","user","hasRoles","roles","SellerTrader","BrokerDealerTrader","current","directBiddingAgreementSigned","isRequesting","_jsx","DirectBiddingDisclaimerContext","Provider","value","DirectBiddingDesclaimerLink","path","_ref$disclaimerDisabl","disclaimerDisabled","requiredFeature","_ref$disabled","disabled","_ref$text","text","target","className","tooltip","history","useHistory","ActionBlocker","feature","DirectBiddingDisclaimerActionBlocker","onConfirm","push","FeatureLink","DealItem","forwardRef","ref","deal","searchTerm","referenceName","_useParams","useParams","activeTab","tab","selectedDealReferenceName","dealReferenceName","isAdminOrDataEntry","Administrator","DataEntry","withDocumentsAccess","apply","_toConsumableArray","seller","isDealSelected","isTabActive","_useState","useState","_useState2","_slicedToArray","isCollapsed","setIsCollapsed","useEffect","_jsxs","classNames","expanded","onClick","routes","dealsUrl","DealsTabType","Overview","undefined","hasClosedTransactions","IconSVG","name","width","height","OnHoverTooltip","overlay","legalName","Highlighter","searchWords","autoEscape","textToHighlight","availableTabs","DealsTabTypes","filter","t","DealDetail","Documents","map","isActive","AmrInfo","hasAmrTransactions","Link","active","to","e","preventDefault","stopPropagation","renderTabs","DealsSelectionPanel","data","selectedReferenceName","isLoading","dispatch","useAppDispatch","collapsed","setCollapsed","_useState3","_useState4","setSearchTerm","selectedDealRef","useRef","debouncedSearch","useDebounce","customEvent","document","createEvent","initEvent","window","dispatchEvent","useLayoutEffect","_selectedDealRef$curr","scrollIntoView","behavior","block","length","dealsActions","getDeals","classnames","SelectionPanelSearch","placeholder","onCollapseClick","onSearch","Preloader","inProgress","EmptyPlaceholder","textView","emptyPlaceholder","constants","ClassInfo","_amrFormatUtils$forma","_formatDate","_formatDate2","selectedClass","dealCurrency","closingDate","ticker144A","cusip144A","isin144A","tickerRegS","cusipRegS","isinRegS","commonCodeRegS","tickerAccdInvCertif","cusipAccdInvCertif","isinAccdInvCertif","originalBalance","balance","originalMargin","margin","floaterIndex","minimumDenomination","factor","type","equity","redeemed","amr","nonAmrPeriod","nonAmrPeriodEnd","originalRatingMoodys","originalRatingSnP","originalRatingFitch","originalRatingKbra","originalRatingDbrs","ratingMoodys","ratingSnP","ratingFitch","ratingKbra","ratingDbrs","pariPassuTranches","trancheSupported","status","transactionReferenceName","linkedOtcName","formatDate","formatUtils","SectionContent","title","concat","FormField","moneyUtils","money","formatMargin","amrFormatUtils","formatInventoryCoupon","formatFactor","formatBoolean","formatBooleanWithPlaceholder","ShowFor","getWithout","dealsAccess","bd","Media","Information","_collateralTypesAbbr$","ticker","collateralType","currencyCode","currentBalance","collateralTypesAbbr","formatDealStatus","Dates","nonCallPeriodEnd","reinvestmentPeriodEnd","finalMaturity","firstPaymentDate","secondPaymentDate","quarterlyDay","quarterlyMonths","vintage","redemptionDate","moment","year","companyForPopup","setCompanyForPopup","showDeleteConfirmationPopup","setShowDeleteConfirmationPopup","Parties","_deal$trustee","_deal$trustee2","_deal$trustee3","useContext","DealsContext","collateralManager","majorityEquity","trustee","amrAgent","originalArranger","currentArranger","manageBanksUrl","CompanyStatus","Active","manageCloManagerUrl","DealsHeaderBase","dateUpdated","renderTitleSuffix","renderLinks","editButtonUrl","editTooltip","isEditDisabled","onDeleteClick","dateUpdatedEst","dateTimeUtils","changeDateTimeZone","estTimezone","_Fragment","format","dateTimeFormat","wrapperClass","dateFormat","castArray","el","index","classSelectColumns","columnKey","renderColumnHeaderContent","renderColumnContent","dealClass","transactionClosingDate","startCase","transactionType","c","ColumnBuilder","ClassSelect","classes","selectedClassReferenceName","onChange","dropdownClass","selected","find","setExpanded","_ref$current","ClickOutside","Table","dataItems","columns","createRowRef","item","onRowClick","createSecurityCustomClassName","join","DealIntexLink","IntexLink","positionId","getCurrentIntexPositionIdForDeal","DealsClassHeader","_selectedDeal$transac","selectedDeal","deals","classReferenceName","activeClass","withTransactions","transactions","onChangeClass","dealClassReferenceName","RelatedTransDropdown","dealLegalName","hasTransactions","BloombergLink","identifiers","textLink","ValitanaLink","useFirstClassNavigation","dealTab","firstClass","head","replace","_useSelector","dealClasses","TrancheStatus","Draft","hasEmptyContent","TransactionStatus","Closed","_selectedDeal$transac2","transactionUrl","transactionDetailUrl","href","rel","renderEmptyPlaceHolder","CompanyTab","company","address","city","zipCode","country","renderAddress","fullName","firstName","lastName","nameUtils","getFullName","nameOfGroup","_objectSpread","memberColumnsDefinitions","member","_ref2","primaryContact","email","mobilePhoneNumber","memberColumns","memberCollapsibleColumns","memberHeadColumns","_ref3","members","collateralManagerReferenceName","withAssignedCollateralManager","assignedCollateralManagerReferenceName","isListGrouped","every","allMembers","reduce","acc","list","_defineProperty","assignedContacts","otherContacts","assignedTitle","otherTitle","allRows","renderCollapsibleItem","listItem","headerVisible","collapsible","renderCollapsibleList","createSecurityCustomArgs","Tab","CompanyPopup","companyReferenceName","onClose","Members","setTab","companyWithMembers","useCompany","Popup","modalClass","TabList","TabItem","getMembersTitle","Company","sortedMembers","sortContactsByPrimary","MembersTab","renderTab","AdditionalInformation","euCompliance","euRiskRetentionRequirements","euDisclosureRequirements","esg","esgComment","staticDeal","amrDeal","capitalize","renderMarkdownOrEmpty","ManagementFee","seniorManagementFee","incentiveManagementFee","subManagementFee","formatDecimal","AdministrativeFee","adminExpenseCap","adminExpenseCapPercentage","trusteeFee","dealAmendmentDetailsColumns","transaction","sortingField","sortingType","SORTING_TYPE","date","previousTransaction","_ref4","_previousTransaction$","_previousTransaction$2","_transaction$statedMa","_transaction$statedMa2","statedMaturity","column","DealAmendmentDetails","_ref5","findPreviousTransaction","findIndex","defaultSortBy","defaultSortByDirection","SORT","DESC","i","DealsDefaultHeader","isEditAvailable","dealsEdit","editDealUrl","DealStatus","getAllRolesExclude","DealsSaveHeader","subTitle","isUpdating","hasChanges","onSaveClick","onCancelClick","saveButtonDisabled","isNil","DealValidationSchema","Yup","shape","trim","required","currencyOptions","Currencies","currency","label","statusOptions","Ready","NewIssueDraft","quarterlyDaysOptions","times","quarterlyMonthsOptions","months","formatCompaniesToSelect","EditDealDetails","_editDeal$transaction2","formRef","editDeal","companies","useParties","availableStatusOptions","_editDeal$transaction","option","editDealReset","Formik","initialValues","innerRef","validationSchema","onSubmit","values","updateDeal","_values$originalArran","_values$currentArrang","_values$trustee","_values$collateralMan","_values$majorityEquit","_values$amrAgent","dirty","isSubmitting","submitForm","RouteLeavingGuard","navigate","pathname","shouldBlockNavigation","TextField","wrapperClassName","SelectField","collateralTypesSelectOptions","optionKeyProp","optionLabelProp","NumberField","CheckboxField","DateField","emptyIfNull","withCustomView","withEmptyValue","SelectSearchField","markRequired","withResetOption","options","arrangerCompanies","trusteeCompanies","collateralManagerCompanies","majorityEquityCompanies","amrAgentCompanies","MarkdownField","maxLength","ClassSecondaryInfo","classSecurity","classSecurityStats","isSecondaryInfoLoading","isInventoryDisabled","inventoryState","useInvenotory","useDispatch","getClassSecondaryInfo","isRequestNone","requestState","withHistoryData","count","inventory","PxTalkHistoricalColorDispersion","securityStatistics","securityId","id","evalPriceTalkVisible","SecurityHistory","securityIdentifier","bwicsHistory","ClassDetails","ClassDetail","actionsColumn","dealAmrInfoUrl","stickRight","classesColumnsDefinition","amrClass","AmrClassStatusLabel","cusip","numericUtils","isNumber","totalOfBids","winningMargin","placement","capMargin","pricingDate","NonAmrPeriod","period","transactionColumns","lastUpdated","StatusLabel","transactionStatusTitles","transactionStatus","classesColumns","amrTransactions","TransactionType","isAdminOrDataEntryOrMedia","lastAmrPricingDate","lastAmrSettlementDate","sticky","columnType","TableColumnStickType","Right","_getSelectedTransacti","getSelectedTransaction","useCallback","classTitle","transactionTitle","Breadcrumbs","BreadcrumbsItem","route","amrStatus","AmrStatus","dealAmrInfoEditUrl","amrClassesColumns","dealAmrInfoClassUrl","stickLeft","minBidAmount","principalAmountStep","redemptionPriceInPercent","settlementDate","setClassForDealerPopup","setClassForSettlementInstructionPopup","DocumentColumnDate","DocumentsList","_ref$documentTypes","documentTypes","_ref$withPublic","withPublic","_ref$documentColumnDa","documentColumnDate","executionDate","_useDownloadDocumentL","useDownloadDocumentList","documents","downloadRequest","dealsService","getDealDocument","loadingState","loadHandler","headerClassName","bodyClassName","DownloadDocument","FileIcon","filename","string","_documentTypes$find","documentType","typeLabel","dt","uploadTime","Checkbox","checked","isPublic","EmptySectionContent","yup","cashSettlementAccountAbaNumber","matches","nullable","cashSettlementAccountSWIFT","cashSettlementAccountAccountNumber","max","bondSettlementAccountDTCParticipant","bondSettlementAccountAgentNumber","bondSettlementAccountInstitutionalId","bondSettlementAccountAccountNumber","SettlementInstructionsPopup","_useSettlementInstruc","useSettlementInstructions","settlementInstructions","enableReinitialize","saveSettlementInstructionsRequest","RequestState","request","PopupBody","PopupFooter","EditDealersPopup","selectedDealers","setSelectedDealers","useAvailableBrokerDealers","excludedDealers","useExcludedDealers","availableBrokerDealers","key","fixed","permanent","available","draggable","order","d","trancheReferenceName","dealer","Transfer","leftColumnTitle","rightColumnTitle","withFixed","destinationDraggable","onReset","saveExcludedDealersRequest","AmrInfoDetails","classForDealerPopup","classForSettlementInstructionPopup","_useState5","_useState6","selectedTransaction","_useAmrDocuments","useAmrDocuments","amrDocuments","downloadDocument","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","downloadAmrDocument","then","file","saveAs","blob","stop","_x","arguments","AmrInfoHeader","electionNotice","noticeDate","informationNoticeDate","electionToInformationBusinessDays","informationToPricingBusinessDays","pricingToSettlementBusinessDays","DocumentGroup","itemsCount","downloadAllFetch","downloadAmrDocuments","downloadAllArgs","fileNameForSave","Confirm","confirmButtonText","onCancel","deleteAmrTransaction","legalNameOnDeal","ExcludedColumnns","allClassesColumnDefinitions","tranche","context","open","originalCoupon","coupon","formatOriginalRating","formatCurrentRating","content","linkedOtcReferenceName","AllClassesView","showHistoricalClasses","setShowHistoricalClasses","field","direction","orderBy","setOrderBy","_useDownloadDocument","useDownloadDocument","exportAllClasses","requestArgs","ascending","ASC","handleDownload","isDownloading","isCheckboxVisible","Inactive","_useSortedList","useSortedList","sortedClasses","dealsAllClasesUrl","ExportButton","isExportLoad","handleExport","includes","onSort","AllClassesEdit","grid","isDetailsLoading","allClasses","allClassesInvalidateTranceCache","gridActions","reset","allClassesEditInit","isEqual","gridUtils","sanitizeGridItems","allClassesUpdate","Grid","dataUploadDisabled","AllClasses","Switch","Route","exact","render","groupDocuments","withEditRole","sortedDocumentList","lastDate","getDealDocLastDate","formatTimeStringWithoutTimeZone","sort","b","compareDates","dealDocuments","getDealRegularDocumentTypes","cleansingNotices","isFormatAllowed","withRequiredType","DocumentType","cleansingNoticeRefinancing","cleansingNoticeReset","splittedDocName","split","docFormat","toLowerCase","distributionReports","distributionReport","monthlyReports","monthlyReport","reportsExcelFiles","otherDocuments","otherDocument","_selectedDeal$documen","_selectedDeal$documen2","_selectedDeal$documen3","_selectedDeal$documen4","_selectedDeal$documen5","_selectedDeal$documen6","_selectedDeal$documen7","allDocuments","distributionReportsPattern","dealDocumentPatterns","p","pattern","monthlyReportsPattern","_groupDocuments","getDealRegularDocuments","dealRegularDocsTypeList","getCleansingNoticeDocuments","cleansingNoticeDocsTypeList","getDealDocumentsByType","getDocumentTypeText","EditDocumentsList","progress","handleDeleteFile","documentKey","_ref$withPublicColumn","withPublicColumn","_ref$disabledDate","disabledDate","_useFormikContext$val","useFormikContext","currentList","_objectWithoutProperties","_excluded","documentReferenceName","getFormikIndex","l","documentToDownload","documentsColumnDefinitions","ProgressCircle","documentIndex","documentName","maximumDate","Date","getTableColumns","createRowCustomKey","PatternTextField","formControlClassName","props","isFocused","setIsFocused","InputField","renderElement","formik","meta","withError","touched","error","onFocus","onBlur","setFieldError","EditDocumentsSection","onUpload","setUploadProgress","patternName","renderAdditionalButton","remove","FileUploader","maxFileSizeInMb","onUploading","checkFileFormat","fileName","_fileName$split$pop","fileExtension","pop","_len","fileFormats","Array","_key","EditDocuments","isUploading","setIsUploading","getValidatePattern","handleUpload","setFieldValue","files","f","has","validateExpression","expression","isExpressionValid","abrupt","validateRegularExpression","sent","t0","errorActions","unexpectedError","test","errorMessages","invalidField","validateOnChange","documentsList","updateDealDocuments","errors","otherDealDocument","DownloadTemplateButton","templateType","electionNoticeDate","AmrInfoEdit","hasGridChanges","amrInfoClassesEdit","amrInfoSave","amrStatusesSelectOptions","deleteRowVisible","addRowVisible","moveRowVisible","amrPipelineService","getTransactionDocuments","renderEmptyDealersPlaceholder","category","AmrClassDetails","_selectedTransaction$","_selectedClass$nonAmr","_settlementInstructio","_settlementInstructio2","_settlementInstructio3","_settlementInstructio4","_settlementInstructio5","_settlementInstructio6","_settlementInstructio7","_settlementInstructio8","_settlementInstructio9","_settlementInstructio10","_settlementInstructio11","_settlementInstructio12","_settlementInstructio13","_settlementInstructio14","settlementInstructionsRequestState","_useAvailableBrokerDe","availableBDRequestState","availableDealers","_useExcludedDealers","excludedBDRequestState","redemptionPrice","amrStatusReason","statusReason","submissionDeadline","submissionErrorCorrectionDeadline","allocationErrorCorrectionDeadline","mandatoryTenderNoticeDate","amortizationNoticeDate","fundingDeadline","delayedFundingDeadline","settlementDeadline","actionBtn","exportSettlementInstructions","cashSettlementAccountBank","cashSettlementAccountAccountName","cashSettlementAccountReference","bondSettlementAccountBank","bondSettlementAccountAccountName","trusteeContact","amrAgentContact","ed","Deals","_data$find","_selectedDeal$collate","navigateToFirstDeal","firstDeal","getDealDetails","renderRedirect","tabToRedirect","Redirect","fullScreen","deleteDealRequest","actionBlockerId","_","visible","blockerId","handleConfirm","directBiddingDisclaimerActions","handleClick","show","renderChildren","DirectBiddingDisclaimerPopupText","ATSRulebook","process","DirectBiddingDisclaimerPopup","agreeCheckBoxChecked","setAgreeCheckBoxChecked","downloadPdfRequestState","handleOnClose","hide","downloadPdfRequest","confirmRequest","DirectBiddingDisclaimerContent","popupVisible","handleReject","DirectBiddingDisclaimerContentBlocker","_ref2$disabled"],"sourceRoot":""}