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rG,EAAU/9B,EAAV+9B,WAAU9C,EAAAj7B,EAAEoX,SAAAA,OAAQ,IAAA6jB,GAAQA,EAAAE,EAAAn7B,EAAEo7B,MAAAA,OAAK,IAAAD,EAAG,GAAEA,EAAEkJ,EAAkBrkC,EAAlBqkC,mBAAoB7I,EAAOx7B,EAAPw7B,QACrGM,EAAYruB,EAAAA,WAAiBsuB,EAAAA,GAyBnC,OACIl7B,EAAAA,EAAAA,MAAA,OAAKT,UAAU,iCAAgCC,SAAA,EAC3CF,EAAAA,EAAAA,KAAA,SACI8O,KAAK,OACL7O,UAAWwE,IAAW,+BAAgC,CAAE,eAAgBw2B,IACxEhkB,SAAUA,GAAY0kB,EACtBrL,UAAW,EACXppB,MAAO02B,EACPv4B,SA3BS,SAACzE,GAClB,IAAQsG,EAAUtG,EAAE8N,OAAZxH,MACHA,IAASq0B,EAAAA,GAAaoB,SAASz1B,IAChCg9B,EAAmBh9B,EAE3B,EAuBYw1B,OArBO,WAEXwH,EADAtG,IACqBA,GAAYoF,QAAQ10B,EAAAA,GAAU20B,yBAEhCgB,EAAmBjB,QAAQ10B,EAAAA,GAAU20B,0BAGxD5H,GACAA,GAER,EAYYe,QAjCQ,SAACx7B,GACjBA,EAAE8N,OAAO2tB,QACb,KAiCQr8B,EAAAA,EAAAA,KAACk9B,EAAAA,GAAS,CAACC,QAASlC,MAGhC,C","sources":["components/bid-as-dealer/BidAsDealerAgreementStatusLabel.tsx","components/banks/BanksAlertsButton.tsx","components/banks/BanksLabels.tsx","components/banks/BanksNavItem.tsx","components/banks/BanksSelectionPanel.tsx","components/banks/hooks.ts","components/banks/tabs/contacts-and-events/BanksKWatchNewsWidget.tsx","components/banks/tabs/contacts-and-events/BankEvents.tsx","components/banks/banksContext.tsx","components/banks/tabs/contacts-and-events/contacts.columns.tsx","components/banks/tabs/contacts-and-events/BankContacts.tsx","components/banks/tabs/contacts-and-events/ContactsAndEvents.tsx","components/banks/tabs/primary/Statistics.tsx","components/banks/tabs/primary/managersTransactionCount/managersTransactionCount.columns.tsx","components/banks/tabs/primary/managersTransactionCount/ManagersTransactionCountFilter.tsx","components/banks/tabs/primary/managersTransactionCount/ManagersTransactionCount.tsx","components/banks/tabs/primary/arrangerPipeline/bankArrangerPipeline.columns.tsx","components/banks/tabs/primary/arrangerPipeline/BankArrangerPipeline.tsx","components/banks/tabs/primary/deals/bankDeals.columns.tsx","components/banks/tabs/primary/deals/BankDeals.tsx","components/banks/tabs/primary/Primary.tsx","components/banks/tabs/secondary/bwicsPxTalk/bwicsPxTalk.columns.tsx","components/banks/tabs/secondary/bwicsPxTalk/BWICsPxTalk.tsx","components/banks/tabs/secondary/Secondary.tsx","components/banks/tabs/analytics/General.tsx","components/banks/tabs/analytics/ViewedTabs.tsx","components/banks/tabs/analytics/ProfileViewHistoryPopover/OverviewSection.tsx","components/banks/tabs/analytics/ProfileViewHistoryPopover/ContactsSection.tsx","components/banks/tabs/analytics/ProfileViewHistoryPopover/ProfileViewHistoryPopover.tsx","components/banks/tabs/analytics/profileViewHistory/profileViewHistory.columns.tsx","components/banks/tabs/analytics/profileViewHistory/ProfileViewHistoryWidget.tsx","components/banks/tabs/analytics/ClientsActivityWidget.tsx","components/banks/tabs/analytics/Analytics.tsx","components/banks/BankViewPage.tsx","components/banks/edit/EventItem.tsx","components/banks/edit/EditEvents.tsx","components/banks/edit/BanksValidationSchema.ts","components/banks/edit/BankEditPage.tsx","components/banks/BanksHeader.tsx","components/banks/BanksAlertsPopup.tsx","components/banks/Banks.tsx","components/banks/types/BankContactsColumn.ts","components/bid-as-dealer/submit-bid/Bid.tsx","components/bid-as-dealer/MyBidRequest.tsx","components/bid-as-dealer/confirm-bids/SubmitBidRequestStatus.tsx","components/bid-as-dealer/confirm-bids/ReSubmitBidRequestButton.tsx","components/bid-as-dealer/confirm-bids/ConfirmBidRequestsPopup.tsx","components/bid-as-dealer/submit-bid/Commission.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport {\r\n SettlementAgreementStatus,\r\n settlementAgreementStatusTitle\r\n} from '../../types/bid-as-dealer/SettlementAgreementStatus';\r\nimport { Popover } from '../controls';\r\n\r\ninterface Props {\r\n status: SettlementAgreementStatus;\r\n rejectReason?: string;\r\n}\r\n\r\nexport function BidAsDealerAgreementStatusLabel({ status, rejectReason }: Props) {\r\n return (\r\n
\r\n {rejectReason && status === SettlementAgreementStatus.rejected ? (\r\n \r\n \r\n \r\n )}\r\n >\r\n
\r\n \r\n {rejectReason}\r\n
\r\n \r\n ) : (\r\n e.stopPropagation()}\r\n >\r\n {settlementAgreementStatusTitle[status]}\r\n \r\n )}\r\n
\r\n );\r\n}\r\n","import { SubscriptionFeature } from '../../types/billing/SubscriptionFeature';\r\nimport { ActionBlocker } from '../access/ActionBlocker';\r\nimport { AlertsButton } from '../common/AlertsButton';\r\n\r\ninterface Props {\r\n isAlertOn: boolean;\r\n label?: string;\r\n onClick: () => void;\r\n}\r\n\r\nexport const BanksAlertsButton = ({\r\n isAlertOn,\r\n label,\r\n onClick\r\n}: Props) => {\r\n return (\r\n \r\n {blocked => (\r\n \r\n )}\r\n \r\n );\r\n};\r\n","import { compact } from 'lodash';\r\nimport IconSVG from '../../styles/svg-icons';\r\nimport { Bank } from '../../types/banks/Bank';\r\nimport { OnHoverTooltip } from '../common';\r\nimport { BanksAlertsButton } from './BanksAlertsButton';\r\nimport { useDispatch } from 'react-redux';\r\nimport { banksActions } from '../../actions/banks.actions';\r\n\r\ninterface Props {\r\n bank: Bank;\r\n isAlertOn?: boolean;\r\n showAlertSection?: boolean;\r\n showActivities?: boolean;\r\n}\r\n\r\nexport const BanksLabels = ({ bank, showAlertSection, isAlertOn = false, showActivities = true }: Props) => {\r\n const dispatch = useDispatch();\r\n const { hasActiveTransactions, sendsPxTalk, existsOnDealerInventory } = bank;\r\n\r\n const activitiesCount = compact([hasActiveTransactions, sendsPxTalk, existsOnDealerInventory]).length;\r\n\r\n const getTooltipOverlay = () => {\r\n const activities = compact([\r\n hasActiveTransactions ? 'Primary' : undefined,\r\n sendsPxTalk ? 'Secondary' : undefined,\r\n existsOnDealerInventory ? 'Inventory' : undefined\r\n ]);\r\n\r\n return activities.reduce((acc, activity) => acc ? `${acc}, ${activity}` : `Active${activities.length >= 2 ? ':' : ''} ${activity}`, '')\r\n };\r\n\r\n return (\r\n <>\r\n
\r\n {!!activitiesCount && (\r\n \r\n \r\n {showActivities && {getTooltipOverlay()}}\r\n \r\n )}\r\n
\r\n {showAlertSection && (\r\n
\r\n \r\n dispatch(banksActions.setBankForAlertPopup(bank.referenceName))}\r\n />\r\n \r\n
\r\n )}\r\n \r\n );\r\n};\r\n","import classNames from \"classnames\";\r\nimport { OnHoverTooltip } from '../common';\r\nimport { forwardRef, useState } from 'react';\r\nimport Highlighter from '../amrPipeline/common/Highlighter';\r\nimport { BanksLabels } from \"./BanksLabels\";\r\nimport { Bank } from '../../types/banks/Bank';\r\n\r\ninterface Props {\r\n selected: boolean;\r\n searchTerm: string;\r\n bank: Bank;\r\n withAlert?: boolean;\r\n onClick: (referenceName: string) => void;\r\n}\r\n\r\nexport const BanksNavItem = forwardRef(function BanksNavItem({\r\n selected,\r\n searchTerm,\r\n bank,\r\n withAlert,\r\n onClick,\r\n}: Props, ref: React.ForwardedRef) {\r\n const [hovered, setHovered] = useState(false);\r\n\r\n const {\r\n legalName,\r\n referenceName,\r\n isUserCompany\r\n } = bank;\r\n\r\n return (\r\n onClick(referenceName)}\r\n onMouseEnter={() => setHovered(true)}\r\n onMouseLeave={() => setHovered(false)}\r\n >\r\n
\r\n \r\n \r\n \r\n \r\n \r\n {isUserCompany && MY}\r\n
\r\n
\r\n \r\n
\r\n \r\n );\r\n});\r\n","import { useEffect, useState, useRef } from \"react\";\r\nimport classnames from \"classnames\";\r\nimport { SelectionPanelSearch } from '../amrPipeline/common/SelectionPanelSearch';\r\nimport { BanksNavItem } from './BanksNavItem';\r\nimport { Bank } from '../../types/banks/Bank';\r\nimport { AlertOption } from \"../../types/email-preferences/EmailPreferences\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { AppState } from \"../../types/state/AppState\";\r\nimport { UserConfigState } from \"../../types/state/UserConfigState\";\r\nimport { getAlertValues, hasBankAnalyticsAlertsChangeAccess } from \"../../utils/amr-pipeline.utils\";\r\nimport { EmptyPlaceholder } from \"../common\";\r\nimport { SubscriptionFeature } from \"../../types/billing/SubscriptionFeature\";\r\nimport { user } from \"../../user\";\r\nimport { bankImApRequiredFeatures } from \"../../constants/banks/bankImApRequiredFeatures\";\r\n\r\ninterface Props {\r\n data: Bank[];\r\n selectedReferenceName: string;\r\n onChange: (referenceName: string) => void;\r\n}\r\n\r\nconst searchBanks = (banks: Bank[], searchTerm: string) => {\r\n return banks.filter(({ legalName }) =>\r\n legalName\r\n .toLocaleLowerCase()\r\n .includes(searchTerm.toLocaleLowerCase().trim())\r\n );\r\n};\r\nexport const BanksSelectionPanel = ({\r\n data,\r\n selectedReferenceName,\r\n onChange,\r\n}: Props) => {\r\n const [collapsed, setCollapsed] = useState(false);\r\n const [searchTerm, setSearchTerm] = useState('');\r\n const selectedBankRef = useRef(null);\r\n\r\n const alertConfigs = useSelector((state: AppState) => state.imUserConfig);\r\n const userCompany = useSelector((state: AppState) => state.issuanceMonitor.amrPipelineCommon.userCompany);\r\n\r\n const withAnalyticsAccess = hasBankAnalyticsAlertsChangeAccess({ referenceName: selectedReferenceName }, userCompany);\r\n const withDiAccess = user.hasFeatures(SubscriptionFeature.InventoryAlerts);\r\n const withImApAccess = user.hasAllFeatures(...bankImApRequiredFeatures);\r\n\r\n const bankAnalyticsConfig = getAlertValues(withAnalyticsAccess ? alertConfigs.bankAnalyticsAlert.value : []);\r\n const bankApConfig = getAlertValues(withImApAccess ? alertConfigs.bankArrangerPipelineAlert.value : []);\r\n const bankImConfig = getAlertValues(withImApAccess ? alertConfigs.bankIssuanceMonitorAlert.value : []);\r\n const bankDealerInventoryConfig = getAlertValues(withDiAccess ? alertConfigs.bankDealerInventoryAlert.value : []);\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 useEffect(() => {\r\n if (selectedReferenceName) {\r\n selectedBankRef.current?.scrollIntoView({ behavior: 'smooth', block: 'center' });\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const banks = searchBanks(data, searchTerm);\r\n\r\n const renderBanks = () =>\r\n banks.map(bank => {\r\n const { referenceName } = bank;\r\n\r\n const analyticsAlertOption = bankAnalyticsConfig.get(referenceName)?.alertOption;\r\n const apAlertOption = bankApConfig.get(referenceName)?.alertOption;\r\n const imAlertOption = bankImConfig.get(referenceName)?.alertOption;\r\n const dealerInventoryAlertOption = bankDealerInventoryConfig.get(referenceName)?.alertOption;\r\n\r\n const withAlert = [analyticsAlertOption, apAlertOption, imAlertOption, dealerInventoryAlertOption].some(\r\n alert => alert && alert !== AlertOption.Never,\r\n );\r\n\r\n return (\r\n \r\n );\r\n });\r\n\r\n const renderEmptyPlaceholder = () => ;\r\n\r\n return (\r\n \r\n );\r\n};\r\n","import { useEffect, useState } from 'react';\r\nimport { OriginatingTransaction } from '../../types/amr-pipeline/models/OriginatingTransaction';\r\nimport { RequestState } from '../../constants/request-state';\r\nimport { amrPipelineService } from '../../services/amr-pipeline.service';\r\nimport { isRequestNone } from '../../utils';\r\nimport { amrArrangerPipelineService } from '../../services/amr-arranger-pipeline.service';\r\nimport { constants, roles } from '../../constants';\r\nimport { ArrangerPipeline } from '../../types/amr-pipeline/models/ArrangerPipeline';\r\nimport { News } from '../../types/news/News';\r\nimport { user } from '../../user';\r\nimport { newsService } from '../../services';\r\nimport { NewsCategory } from '../../types/news/enums/NewsCategory';\r\nimport { BWICPxTalk } from '../../types/banks/BWICPxTalk';\r\nimport { banksService } from '../../services/banks.service';\r\n\r\nexport function useDeals(companyReferenceName?: string) {\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n const [transactions, setTransactions] = useState([]);\r\n\r\n useEffect(() => {\r\n if (companyReferenceName && isRequestNone(requestState)) {\r\n const doRequest = async () => {\r\n setRequestState(RequestState.request);\r\n try {\r\n const transactions = await amrPipelineService.getBankTransactions(companyReferenceName);\r\n\r\n setTransactions(transactions);\r\n setRequestState(RequestState.success);\r\n } catch (e) {\r\n setRequestState(RequestState.failure);\r\n }\r\n }\r\n\r\n doRequest();\r\n }\r\n }, [requestState, companyReferenceName])\r\n\r\n return { requestState, transactions };\r\n}\r\n\r\nexport function useArrangerPipeline(companyReferenceName?: string) {\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n const [pipelines, setPipelines] = useState([]);\r\n\r\n useEffect(() => {\r\n if (companyReferenceName && isRequestNone(requestState)) {\r\n const doRequest = async () => {\r\n setRequestState(RequestState.request);\r\n try {\r\n const pipelines = await amrArrangerPipelineService.getArrangerPipelines(\r\n {\r\n arrangerReferenceNames: [companyReferenceName],\r\n count: constants.MAX_BACKEND_INT,\r\n offset: 0,\r\n },\r\n constants.defaultArrangerPipelineOrderCriteria\r\n );\r\n\r\n setPipelines(pipelines);\r\n setRequestState(RequestState.success);\r\n } catch (e) {\r\n setRequestState(RequestState.failure);\r\n }\r\n }\r\n\r\n doRequest();\r\n }\r\n }, [requestState, companyReferenceName])\r\n\r\n return { requestState, pipelines };\r\n};\r\n\r\nexport const useBankNews = (companyReferenceName: string) => {\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n const [news, setNews] = useState([]);\r\n\r\n useEffect(() => {\r\n if (user.hasRoles(roles.Media)) {\r\n return;\r\n }\r\n\r\n if (!companyReferenceName || !isRequestNone(requestState)) {\r\n return;\r\n }\r\n\r\n const doRequest = async () => {\r\n setRequestState(RequestState.request);\r\n\r\n try {\r\n const news = await newsService.getNews({\r\n arrangerReferenceNames: [companyReferenceName],\r\n categories: [\r\n NewsCategory.Primary,\r\n NewsCategory.Secondary,\r\n NewsCategory.Research,\r\n ]\r\n });\r\n\r\n setNews(news);\r\n setRequestState(RequestState.success);\r\n } catch (e) {\r\n setRequestState(RequestState.failure);\r\n }\r\n }\r\n\r\n doRequest();\r\n }, [requestState, companyReferenceName])\r\n\r\n return { requestState, news };\r\n};\r\n\r\nexport const useBWICsPriceTalks = (companyReferenceName: string) => {\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n const [bwics, setBwics] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!companyReferenceName || !isRequestNone(requestState)) {\r\n return;\r\n }\r\n\r\n const doRequest = async () => {\r\n setRequestState(RequestState.request);\r\n\r\n try {\r\n const bwics: BWICPxTalk[] = await banksService.getBwicsPriceTalks(companyReferenceName);\r\n\r\n setBwics(bwics);\r\n setRequestState(RequestState.success);\r\n } catch (e) {\r\n setRequestState(RequestState.failure);\r\n }\r\n }\r\n\r\n doRequest();\r\n }, [requestState, companyReferenceName])\r\n\r\n return { requestState, bwics };\r\n};\r\n","import { useDispatch } from \"react-redux\";\r\nimport { KWatchNewsWidget } from '../../../dashboard/k-watchNews/KWatchNewsWidget';\r\nimport { banksActions } from '../../../../actions/banks.actions';\r\nimport { BankAccessType } from '../../../../types/amr-pipeline/enums/BankAccessType';\r\nimport { useBankNews } from '../../hooks';\r\n\r\ninterface BanksKWatchNewsWidgetProps {\r\n companyReferenceName: string;\r\n}\r\n\r\nexport const BanksKWatchNewsWidget = ({ companyReferenceName }: BanksKWatchNewsWidgetProps) => {\r\n const dispatch = useDispatch();\r\n\r\n const { requestState, news } = useBankNews(companyReferenceName);\r\n\r\n if (!news.length) {\r\n return null;\r\n }\r\n\r\n const handleAllNewsClick = () => {\r\n if (companyReferenceName) {\r\n dispatch(banksActions.logUserActivity(companyReferenceName, BankAccessType.ContactsEventsAllNews));\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","import { useSelector } from 'react-redux';\r\nimport { AppState } from '../../../../types/state/AppState';\r\nimport { BanksState } from '../../../../types/state/BanksState';\r\nimport { EmptyPlaceholder } from '../../../common';\r\n\r\nexport const BankEvents = () => {\r\n const { events } = useSelector(state => state.banks);\r\n\r\n if (!events.length) {\r\n return (\r\n \r\n );\r\n }\r\n\r\n return (\r\n <>\r\n {events.map(event => {\r\n return (\r\n
\r\n {!event.published &&
Draft
}\r\n
\r\n
\r\n )\r\n })}\r\n \r\n );\r\n};\r\n","import React from 'react';\r\n\r\ninterface BanksContextProps {\r\n canEdit: boolean;\r\n ownCompany: boolean;\r\n hasAnalyticsAccess: boolean;\r\n hasProArrangerSubscripion: boolean;\r\n}\r\n\r\nconst BanksContext = React.createContext({\r\n canEdit: false,\r\n ownCompany: false,\r\n hasAnalyticsAccess: false,\r\n hasProArrangerSubscripion: false,\r\n});\r\n\r\nexport default BanksContext;\r\n","import { constants } from '../../../../constants';\r\nimport { contactsColumnsLabels } from '../../../../constants/banks/contactsColumnsLabels';\r\nimport IconSVG from '../../../../styles/svg-icons';\r\nimport { ColumnBuilder } from '../../../bidding/common/table/columns/column-builder/ColumnBuilder';\r\nimport { IColumnDefinition } from '../../../bidding/common/table/types/ColumnDefinition';\r\nimport { BankContactsColumn } from '../../types/BankContactsColumn';\r\nimport { BrokerDealerContact } from '../../../../types/amr-pipeline/models/BrokerDealerContact';\r\nimport { compact } from 'lodash';\r\nimport { ValueBlocker } from '../../../access/ValueBlocker';\r\nimport { SubscriptionFeature } from '../../../../types/billing/SubscriptionFeature';\r\nimport { ContactType } from '../../../../types/amr-pipeline/enums/ContactType';\r\n\r\nconst bankContactsColumnDefinitions: IColumnDefinition[] = [\r\n {\r\n columnKey: BankContactsColumn.fullName,\r\n renderColumnHeaderContent: () => contactsColumnsLabels[BankContactsColumn.fullName],\r\n renderColumnContent: contact => contact.firstName || contact.lastName ? (\r\n compact([contact.firstName, contact.lastName]).join(' ')\r\n ) : constants.emptyPlaceholder,\r\n className: 'data-list-cell-xl',\r\n },\r\n {\r\n columnKey: BankContactsColumn.linkedIn,\r\n renderColumnHeaderContent: () => contactsColumnsLabels[BankContactsColumn.linkedIn],\r\n renderColumnContent: (contact, { onLinkedInClick }) =>\r\n contact.linkedIn ? (\r\n \r\n \r\n \r\n ) : (\r\n constants.emptyPlaceholder\r\n ),\r\n className: 'data-list-cell-xxxs padding-l-0',\r\n },\r\n {\r\n columnKey: BankContactsColumn.distributionListIcon,\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: ({ type, headOfTrading }) => {\r\n if (type === ContactType.DistributionList) {\r\n return \r\n }\r\n\r\n if (type === ContactType.HeadOfDesk || headOfTrading) {\r\n return \r\n }\r\n },\r\n className: 'data-list-cell-xxxs padding-l-0',\r\n },\r\n {\r\n columnKey: BankContactsColumn.title,\r\n renderColumnHeaderContent: () => contactsColumnsLabels[BankContactsColumn.title],\r\n renderColumnContent: ({ type, headOfTrading, title }) => {\r\n if (type === ContactType.DistributionList) {\r\n return 'Distribution List';\r\n }\r\n\r\n if (type === ContactType.HeadOfDesk) {\r\n return 'Head of Desk';\r\n }\r\n\r\n if (headOfTrading) {\r\n return 'Head of Trading';\r\n }\r\n\r\n return title || constants.emptyPlaceholder\r\n },\r\n className: 'data-list-cell-xl-xxl',\r\n },\r\n {\r\n columnKey: BankContactsColumn.email,\r\n renderColumnHeaderContent: () => contactsColumnsLabels[BankContactsColumn.email],\r\n renderColumnContent: (contact) => contact.email\r\n ? {contact.email}\r\n : constants.emptyPlaceholder,\r\n className: 'data-list-cell-xl-xxl',\r\n },\r\n {\r\n columnKey: BankContactsColumn.officePhoneNumber,\r\n renderColumnHeaderContent: () => contactsColumnsLabels[BankContactsColumn.officePhoneNumber],\r\n renderColumnContent: (contact, { ownCompany }) =>\r\n \r\n {contact.officePhoneNumber || constants.emptyPlaceholder}\r\n ,\r\n className: 'data-list-cell-sm',\r\n },\r\n {\r\n columnKey: BankContactsColumn.mobilePhoneNumber,\r\n renderColumnHeaderContent: () => contactsColumnsLabels[BankContactsColumn.mobilePhoneNumber],\r\n renderColumnContent: (contact, { ownCompany }) =>\r\n \r\n {contact.mobilePhoneNumber || constants.emptyPlaceholder}\r\n ,\r\n className: 'data-list-cell-sm',\r\n },\r\n];\r\n\r\nexport const bankContactsColumns = bankContactsColumnDefinitions.map(c => new ColumnBuilder(c));\r\n","import { useDispatch, useSelector } from 'react-redux';\r\nimport classnames from 'classnames';\r\nimport { Table } from '../../../bidding/common/table';\r\nimport { bankContactsColumns } from './contacts.columns';\r\nimport { AppState } from '../../../../types/state/AppState';\r\nimport { BanksState } from '../../../../types/state/BanksState';\r\nimport { useContext } from 'react';\r\nimport { EmptyPlaceholder } from '../../../common';\r\nimport { Contact } from '../../../../types/amr-pipeline/models/Contact';\r\nimport { BankAccessType } from '../../../../types/amr-pipeline/enums/BankAccessType';\r\nimport { banksActions } from '../../../../actions/banks.actions';\r\nimport BanksContext from '../../banksContext';\r\nimport { SubscriptionFeature } from '../../../../types/billing/SubscriptionFeature';\r\nimport { BlockedFeatureContent, SubscribeLink } from '../../../access/BlockedFeatureText';\r\nimport { WithHiddenItems } from '../../../../types/amr-pipeline/models/WithHiddenItems';\r\nimport { ActionBlocker } from '../../../access/ActionBlocker';\r\nimport { user } from '../../../../user';\r\nimport { roles } from '../../../../constants';\r\n\r\nexport const BankContacts = () => {\r\n const dispatch = useDispatch();\r\n const { ownCompany } = useContext(BanksContext);\r\n const { selectedBank, syndicateContacts } = useSelector(state => state.banks);\r\n const { primaryContacts, secondaryContacts } = syndicateContacts;\r\n const allContactsCount = primaryContacts.items.length + secondaryContacts.items.length;\r\n const allHiddenContactsCount = primaryContacts.numberOfHiddenItems + secondaryContacts.numberOfHiddenItems;\r\n const isBrokerDealer = user.hasRoles(...roles.bd());\r\n\r\n if (!selectedBank?.referenceName) {\r\n return null;\r\n }\r\n\r\n const logColumnClick = (bankAccessType: BankAccessType) => () => {\r\n dispatch(banksActions.logUserActivity(selectedBank.referenceName, bankAccessType));\r\n };\r\n\r\n const renderTable = (primaryOrSecondary: 'Primary' | 'Secondary', contacts?: WithHiddenItems, className?: string) => {\r\n if (!contacts?.items.length && (!contacts?.numberOfHiddenItems || isBrokerDealer)) {\r\n return (\r\n \r\n );\r\n }\r\n\r\n return (\r\n \r\n {blocked => (\r\n
\r\n ({\r\n onLinkedInClick: logColumnClick(BankAccessType.ContactsEventsIn),\r\n ownCompany,\r\n })}\r\n />\r\n {blocked && !isBrokerDealer && contacts.numberOfHiddenItems > 0 && (\r\n to see {contacts.numberOfHiddenItems} more contact(s).}\r\n />\r\n )}\r\n
\r\n )}\r\n
\r\n );\r\n };\r\n\r\n if (!allContactsCount && !allHiddenContactsCount) {\r\n return (\r\n \r\n );\r\n }\r\n\r\n return (\r\n <>\r\n

Primary Desk

\r\n {renderTable('Primary', primaryContacts, 'content-item-wrap')}\r\n

Secondary Desk

\r\n {renderTable('Secondary', secondaryContacts)}\r\n \r\n );\r\n};\r\n","import { useSelector } from 'react-redux';\r\nimport { SectionContent } from '../../../amrPipeline/common/section/SectionContent';\r\nimport { AppState } from '../../../../types/state/AppState';\r\nimport { BanksState } from '../../../../types/state/BanksState';\r\nimport { useContext } from 'react';\r\nimport { BanksKWatchNewsWidget } from './BanksKWatchNewsWidget';\r\nimport { BankEvents } from './BankEvents';\r\nimport { ShowFor } from '../../../access';\r\nimport { roles } from '../../../../constants';\r\nimport BanksContext from '../../banksContext';\r\nimport { RequiredFeature } from '../../../access/RequiredFeature';\r\nimport { SubscriptionFeature } from '../../../../types/billing/SubscriptionFeature';\r\nimport { BlockedFeatureContent, SubscribeLink } from '../../../access/BlockedFeatureText';\r\nimport { BankContacts } from './BankContacts';\r\n\r\nexport const ContactsAndEvents = () => {\r\n const { ownCompany } = useContext(BanksContext);\r\n const { selectedBank } = useSelector(state => state.banks);\r\n\r\n if (!selectedBank?.referenceName) {\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 to see events.}\r\n className=\"empty-placeholder restricted-placeholder-general\"\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 { AumStatisticsItem } from '../../../clo-managers/tabs/overview/AumStatisticsItem'\r\nimport { StatisticsItem } from '../../../clo-managers/tabs/overview/StatisticsItem'\r\nimport { TotalStatisticsItem } from '../../../clo-managers/tabs/overview/TotalStatisticsItem'\r\nimport { routes } from '../../../../constants';\r\nimport { TransactionStatus } from '../../../../types/amr-pipeline/enums/TransactionStatus';\r\nimport { QueryStringArgumentSerializer } from '../../../../utils/filtering/serializers/QueryStringArgumentSerializer';\r\nimport { amr, arrangers, collateralTypes, imPipelineTab, multipleCurrencies, transactionStatuses, transactionTypes } from '../../../../utils/filtering/serializers/serializer.definitions';\r\nimport { queryStringSerializer } from '../../../../utils/filtering';\r\nimport { IssuanceMonitorTab } from '../../../amrPipeline/types/PipelineTabTypes';\r\nimport { Currency } from '../../../../types/enums/Currency';\r\nimport { CollateralType } from '../../../../types/amr-pipeline/enums/CollateralType';\r\nimport { SubscriptionFeature } from '../../../../types/billing/SubscriptionFeature';\r\nimport { user } from '../../../../user';\r\nimport { CompanyStats } from '../../../../types/amr-pipeline/models/CompanyStats';\r\nimport { StatisticsChartsTransactionStatuses, StatisticsChartsTransactionTypes } from '../../../clo-managers/tabs/overview/constants';\r\nimport { BankAccessType } from '../../../../types/amr-pipeline/enums/BankAccessType';\r\nimport { useDispatch } from 'react-redux';\r\nimport { banksActions } from '../../../../actions/banks.actions';\r\n\r\ninterface StatisticsProps {\r\n companyReferenceName: string;\r\n stats?: CompanyStats;\r\n}\r\n\r\nexport const Statistics = ({ companyReferenceName, stats }: StatisticsProps) => {\r\n const dispatch = useDispatch();\r\n if (!stats) {\r\n return null;\r\n }\r\n\r\n const redirectToIssuanceMonitor = (qsBuilder: (...params: any) => string, bankAccessType: BankAccessType) => (...params: any) => {\r\n const queryString = qsBuilder(...params);\r\n\r\n if (bankAccessType) {\r\n dispatch(banksActions.logUserActivity(companyReferenceName, bankAccessType));\r\n }\r\n\r\n window.open(`${window.location.origin}${routes.AMRPipeline}/?${queryString}`);\r\n };\r\n\r\n const redirectToArrangerPipeline = redirectToIssuanceMonitor(() => {\r\n const searchParams = {\r\n arrangers: [companyReferenceName],\r\n imPipelineTab: IssuanceMonitorTab.ArrangerPipeline,\r\n };\r\n\r\n const serializer: QueryStringArgumentSerializer[] = [\r\n arrangers(),\r\n imPipelineTab(),\r\n ];\r\n\r\n return queryStringSerializer.serialize(searchParams, serializer);\r\n }, BankAccessType.PrimaryStatUpcomingDealsDoor);\r\n\r\n const redirectToAmrDeals = redirectToIssuanceMonitor(() => {\r\n const searchParams = {\r\n arrangers: [companyReferenceName],\r\n transactionStatuses: StatisticsChartsTransactionStatuses,\r\n transactionTypes: StatisticsChartsTransactionTypes,\r\n amr: true,\r\n };\r\n\r\n const serializer: QueryStringArgumentSerializer[] = [\r\n arrangers(),\r\n transactionStatuses(),\r\n transactionTypes(),\r\n amr(),\r\n ];\r\n\r\n return queryStringSerializer.serialize(searchParams, serializer);\r\n }, BankAccessType.PrimaryStatAmrDealDoor);\r\n\r\n const redirectToTotalTransactions = redirectToIssuanceMonitor(() => {\r\n const hasImAccess = user.hasFeatures(SubscriptionFeature.IssuanceMonitorDealUpdateEmailAlerts);\r\n\r\n const searchParams = {\r\n arrangers: [companyReferenceName],\r\n // Generate different links for subscribed and unsubscribed users\r\n // to show `see N more deals` placeholder in particular case\r\n transactionStatuses: hasImAccess ? StatisticsChartsTransactionStatuses : undefined,\r\n transactionTypes: StatisticsChartsTransactionTypes,\r\n };\r\n\r\n const serializer: QueryStringArgumentSerializer[] = [\r\n arrangers(),\r\n transactionStatuses(),\r\n transactionTypes(),\r\n ];\r\n\r\n return queryStringSerializer.serialize(searchParams, serializer);\r\n }, BankAccessType.PrimaryStatTotalTransactionsDoor);\r\n\r\n const redirectToActiveTransactions = redirectToIssuanceMonitor(() => {\r\n const searchParams = {\r\n arrangers: [companyReferenceName],\r\n transactionStatuses: [TransactionStatus.Active],\r\n transactionTypes: StatisticsChartsTransactionTypes,\r\n };\r\n\r\n const serializer: QueryStringArgumentSerializer[] = [\r\n arrangers(),\r\n transactionStatuses(),\r\n transactionTypes(),\r\n ];\r\n\r\n return queryStringSerializer.serialize(searchParams, serializer);\r\n }, BankAccessType.PrimaryStatActiveTransactionsDoor);\r\n\r\n const redirectToVolume = (currency: Currency, collateralType: CollateralType) =>\r\n redirectToIssuanceMonitor(() => {\r\n const hasImAccess = user.hasFeatures(SubscriptionFeature.IssuanceMonitorDealUpdateEmailAlerts);\r\n\r\n const searchParams = {\r\n arrangers: [companyReferenceName],\r\n // Generate different links for subscribed and unsubscribed users\r\n // to show `see N more deals` placeholder in particular case\r\n transactionStatuses: hasImAccess ? StatisticsChartsTransactionStatuses : undefined,\r\n transactionTypes: StatisticsChartsTransactionTypes,\r\n currency: [currency],\r\n collateralTypes: [collateralType],\r\n };\r\n\r\n const serializer: QueryStringArgumentSerializer[] = [\r\n arrangers(),\r\n transactionStatuses(),\r\n transactionTypes(),\r\n multipleCurrencies(),\r\n collateralTypes(),\r\n ];\r\n\r\n return queryStringSerializer.serialize(searchParams, serializer);\r\n }, BankAccessType.PrimaryStatVolDoor);\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","import { ColumnBuilder } from '../../../../bidding/common/table/columns/column-builder/ColumnBuilder';\r\nimport { IColumnDefinition } from '../../../../bidding/common/table/types/ColumnDefinition';\r\nimport { ManagersTransactionAggregated } from '../../../../../types/banks/ManagersTransactionAggregated';\r\nimport { SORTING_TYPE, constants, routes } from '../../../../../constants';\r\nimport IconSVG from '../../../../../styles/svg-icons';\r\nimport { OnHoverTooltip } from '../../../../common';\r\nimport { ActionBlocker } from '../../../../access/ActionBlocker';\r\nimport { SubscriptionFeature } from '../../../../../types/billing/SubscriptionFeature';\r\n\r\nconst managersTransactionColumnDefinitions: IColumnDefinition[] = [\r\n {\r\n columnKey: 'collateralManager',\r\n renderColumnHeaderContent: () => 'Manager',\r\n renderColumnContent: (manager) => {\r\n return (\r\n \r\n \r\n {manager.collateralManager}\r\n \r\n \r\n );\r\n },\r\n className: 'data-list-cell-xxxxl',\r\n sortingField: 'collateralManager',\r\n sortingType: SORTING_TYPE.string,\r\n },\r\n {\r\n columnKey: 'newIssue',\r\n renderColumnHeaderContent: () => 'New Issue',\r\n renderColumnContent: (manager) => {\r\n return manager.newIssueCount || constants.emptyPlaceholder;\r\n },\r\n className: 'padding-r-0 text-right',\r\n sortingField: 'newIssueCount',\r\n sortingType: SORTING_TYPE.number,\r\n },\r\n {\r\n columnKey: 'refi',\r\n renderColumnHeaderContent: () => 'Refi',\r\n renderColumnContent: (manager) => {\r\n return manager.refinancingCount || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-xs padding-l-0 text-right',\r\n sortingField: 'refinancingCount',\r\n sortingType: SORTING_TYPE.number,\r\n },\r\n {\r\n columnKey: 'reset',\r\n renderColumnHeaderContent: () => 'Reset',\r\n renderColumnContent: (manager) => {\r\n return manager.resetCount || constants.emptyPlaceholder;\r\n },\r\n className: 'data-list-cell-xs padding-l-0 text-right',\r\n sortingField: 'resetCount',\r\n sortingType: SORTING_TYPE.number,\r\n },\r\n {\r\n columnKey: 'total',\r\n renderColumnHeaderContent: () => 'Total',\r\n renderColumnContent: (manager, context) => {\r\n if (!manager.totalCount) {\r\n return constants.emptyPlaceholder;\r\n }\r\n\r\n return manager.totalCount\r\n },\r\n className: 'data-list-cell-xs padding-l-0 text-right',\r\n sortingField: 'totalCount',\r\n sortingType: SORTING_TYPE.number,\r\n },\r\n {\r\n columnKey: 'link',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (manager, context) => {\r\n if (!manager.totalCount) {\r\n return '';\r\n }\r\n\r\n return (\r\n \r\n {blocked => (\r\n \r\n \r\n \r\n )}\r\n \r\n );\r\n },\r\n className: 'data-list-cell-xxxs',\r\n },\r\n];\r\n\r\nexport const managersTransactionColumns = managersTransactionColumnDefinitions.map(c => new ColumnBuilder(c));\r\n","import { isEqual } from 'lodash';\r\nimport { FilterClear, FilterPanel, FilterSection } from '../../../../filters';\r\nimport { YearSelector } from '../../../../controls/YearSelector';\r\nimport { DropDownList, DropDownListItem } from '../../../../controls/DropDownList';\r\nimport { CollateralType } from '../../../../../types/amr-pipeline/enums/CollateralType';\r\nimport { Currency } from '../../../../../types/enums/Currency';\r\nimport { getAvailableYears } from '../../../../dashboard/topIssuers/top-list.utils';\r\nimport { ManagersTransactionCountFilterValues } from '../../../../../types/banks/ManagersTransactionCountFilterValues';\r\nimport { defaultFilterValues } from '../../../../../constants/banks/managerTransactionsFilter';\r\nimport { constants } from '../../../../../constants';\r\n\r\ninterface ManagersTransactionCountFilterProps extends ManagersTransactionCountFilterValues {\r\n onChange: (value: ManagersTransactionCountFilterValues, filterChanged: boolean) => void;\r\n disabled?: boolean;\r\n}\r\n\r\nconst CollateralTypesList = [\r\n {\r\n text: 'All',\r\n value: constants.allListItem,\r\n },\r\n {\r\n text: 'BSL',\r\n value: CollateralType.broadlySyndicated,\r\n },\r\n {\r\n text: 'MM',\r\n value: CollateralType.middleMarket,\r\n }\r\n];\r\n\r\nconst CurrencyList = [\r\n {\r\n text: 'All',\r\n value: constants.allListItem,\r\n },\r\n {\r\n text: 'USD',\r\n value: Currency.USD,\r\n },\r\n {\r\n text: 'EUR',\r\n value: Currency.EUR,\r\n }\r\n];\r\n\r\nconst AvailableYears = getAvailableYears(2011);\r\n\r\nexport function ManagersTransactionCountFilter({\r\n onChange,\r\n disabled,\r\n ...filters\r\n}: ManagersTransactionCountFilterProps) {\r\n const isFilterChanged = !isEqual(filters, defaultFilterValues);\r\n\r\n const handleValueChange = (prop: keyof ManagersTransactionCountFilterValues) => (value: unknown) => {\r\n onChange({\r\n ...filters,\r\n [prop]: value,\r\n }, isFilterChanged);\r\n };\r\n\r\n const handleReset = () => {\r\n onChange(defaultFilterValues, false);\r\n };\r\n\r\n const renderSelectedWithPrefix = (prefix: string) =>\r\n (item: DropDownListItem) => `${prefix}: ${item.text}`;\r\n\r\n return (\r\n \r\n \r\n ({ ...x, selected: filters.currency === x.value }))}\r\n defaultSortingEnabled={false}\r\n onChange={({ value }) => handleValueChange('currency')(value)}\r\n renderSelectedItemCallback={renderSelectedWithPrefix('Ccy')}\r\n disabled={disabled}\r\n className=\"custom-drop-down-ghost\"\r\n />\r\n \r\n \r\n ({ ...x, selected: filters.collateralType === x.value }))}\r\n defaultSortingEnabled={false}\r\n onChange={({ value }) => handleValueChange('collateralType')(value)}\r\n renderSelectedItemCallback={renderSelectedWithPrefix('Collat.')}\r\n disabled={disabled}\r\n className=\"custom-drop-down-ghost\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n","import { useDispatch, useSelector } from \"react-redux\";\r\nimport { Table } from \"../../../../bidding/common/table\";\r\nimport { managersTransactionColumns } from \"./managersTransactionCount.columns\";\r\nimport { EmptyPlaceholder, OnHoverTooltip } from \"../../../../common\";\r\nimport { ManagersTransactionCountFilter } from './ManagersTransactionCountFilter';\r\nimport { useState } from 'react';\r\nimport { defaultFilterValues } from '../../../../../constants/banks/managerTransactionsFilter';\r\nimport { ManagersTransactionAggregated } from '../../../../../types/banks/ManagersTransactionAggregated';\r\nimport { ManagersTransactionCountFilterValues } from '../../../../../types/banks/ManagersTransactionCountFilterValues';\r\nimport { banksActions } from '../../../../../actions/banks.actions';\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport IconSVG from '../../../../../styles/svg-icons';\r\nimport { arrangers, collateralManagers } from '../../../../../utils/filtering/serializers/serializer.definitions';\r\nimport { queryStringSerializer } from '../../../../../utils/filtering';\r\nimport { SORT, constants, routes } from '../../../../../constants';\r\nimport { QueryStringArgumentSerializer } from '../../../../../utils/filtering/serializers/QueryStringArgumentSerializer';\r\nimport { BankAccessType } from '../../../../../types/amr-pipeline/enums/BankAccessType';\r\nimport { ActionBlocker } from '../../../../access/ActionBlocker';\r\nimport { SubscriptionFeature } from '../../../../../types/billing/SubscriptionFeature';\r\nimport ImExportButton from \"../../../../amrPipeline/common/ImExportButton\";\r\nimport { AppState } from \"../../../../../types/state/AppState\";\r\nimport { BanksState } from \"../../../../../types/state/BanksState\";\r\nimport { CollateralType } from \"../../../../../types/amr-pipeline/enums/CollateralType\";\r\nimport { Currency } from \"../../../../../types/enums/Currency\";\r\nimport { useSortedList } from \"../../../../../effects\";\r\nimport { compareStrings } from \"../../../../../utils/compare.utils\";\r\n\r\ninterface ManagersTransactionCountProps {\r\n companyReferenceName: string;\r\n companyLegalName: string;\r\n managerTransactions: ManagersTransactionAggregated[];\r\n}\r\n\r\nexport const ManagersTransactionCount = ({\r\n companyReferenceName,\r\n companyLegalName,\r\n managerTransactions\r\n}: ManagersTransactionCountProps) => {\r\n const dispatch = useDispatch();\r\n const { exportTransactionCountLoading } = useSelector((state: AppState) => state.banks);\r\n const [filterChanged, setFilterChanged] = useState(false);\r\n const [filter, setFilter] = useState(defaultFilterValues);\r\n const [orderBy, setOrderBy] =useState({\r\n field: \"totalCount\",\r\n direction: SORT.DESC\r\n })\r\n\r\n const [sortedManagerTransactions] = useSortedList(\r\n orderBy.field === 'collateralManager'\r\n ? managerTransactions\r\n : managerTransactions.sort((a,b) => compareStrings(a.collateralManager, b.collateralManager)), // Additional alphabetic sorting for items with equal values\r\n orderBy.field,\r\n orderBy.direction\r\n );\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 const handleFilterChange = (filter: ManagersTransactionCountFilterValues, filterChanged: boolean) => {\r\n setFilterChanged(filterChanged);\r\n setFilter(filter);\r\n dispatch(banksActions.managersTransactionCountFilter(filter));\r\n };\r\n\r\n const handleExport = () => {\r\n dispatch(banksActions.exportTransactionCountRequest(\r\n companyLegalName,\r\n companyReferenceName,\r\n {\r\n collateralTypes: filter.collateralType === constants.allListItem ? undefined : [filter.collateralType as CollateralType],\r\n currencyCodes: filter.currency === constants.allListItem ? undefined : [filter.currency as Currency],\r\n year: filter.year,\r\n orderBy: {\r\n field: orderBy.field,\r\n ascending: orderBy.direction === SORT.ASC\r\n }\r\n }\r\n ));\r\n }\r\n\r\n const redirectToIssuanceMonitor = (manager: ManagersTransactionAggregated) => {\r\n const searchParams = {\r\n arrangers: [companyReferenceName],\r\n collateralManagers: [manager.companyReferenceName],\r\n };\r\n\r\n const serializer: QueryStringArgumentSerializer[] = [\r\n arrangers(),\r\n collateralManagers(),\r\n ];\r\n\r\n const queryString = queryStringSerializer.serialize(searchParams, serializer);\r\n\r\n dispatch(banksActions.logUserActivity(companyReferenceName, BankAccessType.PrimaryTotalTransactionsDoor));\r\n\r\n window.open(`${window.location.origin}${routes.AMRPipeline}/?${queryString}`);\r\n };\r\n\r\n return (\r\n \r\n Managers Transaction Count\r\n \r\n \r\n \r\n \r\n {blocked => (\r\n \r\n )}\r\n \r\n \r\n }\r\n actionBtn={\r\n \r\n }\r\n className=\"managers-transaction-count\"\r\n >\r\n {sortedManagerTransactions.length ? (\r\n ({ redirectToIssuanceMonitor })}\r\n />\r\n ) : (\r\n \r\n )}\r\n \r\n );\r\n};\r\n","import { IColumnDefinition } from '../../../../bidding/common/table/types/ColumnDefinition';\r\nimport { ArrangerPipeline } from '../../../../../types/amr-pipeline/models/ArrangerPipeline';\r\nimport { ColumnBuilder } from '../../../../bidding/common/table/columns/column-builder/ColumnBuilder';\r\nimport {\r\n lastUpdatedColumn as defaultLastUpdatedColumn,\r\n dealNameColumn as defaultDealNameColumn,\r\n managerColumn as defaultManagerColumn,\r\n transactionTypeColumn as defaultTransactionTypeColumn,\r\n collateralTypeColumn as defaultCollateralTypeColumn,\r\n nonCallPeriodEndYrsColumn as defaultNonCallPeriodEndColumn,\r\n reinvestmentPeriodEndYrsColumn as defaultReinvestmentPeriodEndColumn,\r\n expectedTimingColumn as defaultExpectedTimingColumn,\r\n dealStageColumn as defaultDealStageColumn,\r\n euComplianceColumn as defaultEuComplianceColumn,\r\n anchorColumn as defaultAnchorColumn,\r\n equityColumn as defaultEquityColumn,\r\n disclosureFileColumn as defaultDisclosureFileColumn,\r\n managerPresentationFileColumn as defaultManagerPresentationFileColumn,\r\n} from '../../../../amrPipeline/aggregated/arranger-pipeline/arranger-pipeline.columns';\r\nimport { SORTING_TYPE } from '../../../../../constants';\r\n\r\nconst lastUpdatedColumn: IColumnDefinition = {\r\n ...defaultLastUpdatedColumn,\r\n sortingType: SORTING_TYPE.date,\r\n};\r\n\r\nconst dealNameColumn: IColumnDefinition = {\r\n ...defaultDealNameColumn,\r\n sortingField: 'dealLegalName',\r\n};\r\n\r\nconst managerColumn: IColumnDefinition = {\r\n ...defaultManagerColumn,\r\n sortingField: 'collateralManager',\r\n sortingType: SORTING_TYPE.company,\r\n};\r\n\r\nconst transactionTypeColumn: IColumnDefinition = {\r\n ...defaultTransactionTypeColumn,\r\n sortingField: 'type',\r\n sortingType: SORTING_TYPE.string,\r\n};\r\n\r\nconst collateralTypeColumn: IColumnDefinition = {\r\n ...defaultCollateralTypeColumn,\r\n sortingType: SORTING_TYPE.string,\r\n};\r\n\r\nconst nonCallPeriodEndColumn: IColumnDefinition = {\r\n ...defaultNonCallPeriodEndColumn,\r\n sortingType: SORTING_TYPE.number,\r\n};\r\n\r\nconst reinvestmentPeriodEndColumn: IColumnDefinition = {\r\n ...defaultReinvestmentPeriodEndColumn,\r\n sortingType: SORTING_TYPE.number,\r\n};\r\n\r\nconst expectedTimingColumn: IColumnDefinition = {\r\n ...defaultExpectedTimingColumn,\r\n sortingType: SORTING_TYPE.string,\r\n};\r\n\r\nconst dealStageColumn: IColumnDefinition = {\r\n ...defaultDealStageColumn,\r\n sortingType: SORTING_TYPE.string,\r\n};\r\n\r\nconst euComplianceColumn: IColumnDefinition = {\r\n ...defaultEuComplianceColumn,\r\n sortingType: SORTING_TYPE.boolean,\r\n};\r\n\r\nconst anchorColumn: IColumnDefinition = {\r\n ...defaultAnchorColumn,\r\n sortingType: SORTING_TYPE.boolean,\r\n};\r\n\r\nconst equityColumn: IColumnDefinition = {\r\n ...defaultEquityColumn,\r\n sortingType: SORTING_TYPE.string,\r\n};\r\n\r\nconst columns: IColumnDefinition[] = [\r\n lastUpdatedColumn,\r\n dealNameColumn,\r\n managerColumn,\r\n transactionTypeColumn,\r\n collateralTypeColumn,\r\n nonCallPeriodEndColumn,\r\n reinvestmentPeriodEndColumn,\r\n expectedTimingColumn,\r\n dealStageColumn,\r\n euComplianceColumn,\r\n anchorColumn,\r\n equityColumn,\r\n defaultDisclosureFileColumn,\r\n defaultManagerPresentationFileColumn,\r\n];\r\n\r\nexport const bankArrangerPipelineColumns = columns.map(c => new ColumnBuilder(c));\r\n","import { useDispatch } from 'react-redux';\r\nimport classNames from 'classnames';\r\nimport { EmptyPlaceholder, Preloader } from '../../../../common';\r\nimport { Table } from '../../../../bidding/common/table';\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport { bankArrangerPipelineColumns } from './bankArrangerPipeline.columns';\r\nimport { useArrangerPipeline } from '../../../hooks';\r\nimport { isRequesting } from '../../../../../utils';\r\nimport { amrArrangerPipelineActions as actions } from '../../../../../actions/amr-arranger-pipeline.actions';\r\nimport IconSVG from '../../../../../styles/svg-icons';\r\nimport { QueryStringArgumentSerializer } from '../../../../../utils/filtering/serializers/QueryStringArgumentSerializer';\r\nimport { arrangers, imPipelineTab } from '../../../../../utils/filtering/serializers/serializer.definitions';\r\nimport { IssuanceMonitorTab } from '../../../../amrPipeline/types/PipelineTabTypes';\r\nimport { queryStringSerializer } from '../../../../../utils/filtering';\r\nimport { routes } from '../../../../../constants';\r\nimport { BankAccessType } from '../../../../../types/amr-pipeline/enums/BankAccessType';\r\nimport { banksActions } from '../../../../../actions/banks.actions';\r\nimport { CloManagerAccessType } from '../../../../../types/amr-pipeline/enums/CloManagerAccessType';\r\nimport { RequiredFeature } from '../../../../access/RequiredFeature';\r\nimport { SubscriptionFeature } from '../../../../../types/billing/SubscriptionFeature';\r\nimport { BlockedFeatureContent, SubscribeLink } from '../../../../access/BlockedFeatureText';\r\nimport { useContext, useMemo } from 'react';\r\nimport BanksContext from '../../../banksContext';\r\nimport useDownloadDocumentList from '../../../../../effects/useDownloadDocumentList';\r\nimport { amrArrangerPipelineService } from '../../../../../services/amr-arranger-pipeline.service';\r\nimport { ArrangerPipeline } from '../../../../../types/amr-pipeline/models/ArrangerPipeline';\r\nimport { AmrDocument } from '../../../../../types/amr-pipeline/models/AmrDocument';\r\n\r\ninterface BankArrangerPipelineProps {\r\n companyReferenceName: string;\r\n}\r\n\r\nexport const BankArrangerPipeline = ({ companyReferenceName }: BankArrangerPipelineProps) => {\r\n const dispatch = useDispatch();\r\n const { ownCompany, hasProArrangerSubscripion } = useContext(BanksContext);\r\n const { requestState, pipelines } = useArrangerPipeline(companyReferenceName);\r\n\r\n const arrangerPipelinesDocs = useMemo(() => {\r\n const managerPresentations: AmrDocument[] = [];\r\n const disclosureFiles: AmrDocument[] = [];\r\n\r\n pipelines?.forEach(ap => {\r\n const presentation = ap.managerPresentationFile;\r\n const disclosure = ap.disclosureFile;\r\n\r\n if (presentation) {\r\n managerPresentations.push(presentation);\r\n }\r\n\r\n if (disclosure) {\r\n disclosureFiles.push(disclosure);\r\n }\r\n });\r\n\r\n return {\r\n managerPresentations,\r\n disclosureFiles,\r\n };\r\n }, [pipelines]);\r\n\r\n const { managerPresentations, disclosureFiles } = arrangerPipelinesDocs;\r\n\r\n const { loadHandler: managerPresentationLoadHandler, loadingState: managerPresentationLoadingState } =\r\n useDownloadDocumentList({\r\n documents: managerPresentations,\r\n downloadRequest: (referenceName, ...rest) => amrArrangerPipelineService.downloadManagerPresentation(referenceName, ...rest),\r\n });\r\n\r\n const { loadHandler: disclosureLoadHandler, loadingState: disclosureLoadingState } = useDownloadDocumentList({\r\n documents: disclosureFiles,\r\n downloadRequest: (referenceName, ...rest) => amrArrangerPipelineService.downloadDisclosureFile(referenceName, ...rest),\r\n });\r\n\r\n const redirectToArrangerPipeline = () => {\r\n const searchParams = {\r\n arrangers: [companyReferenceName],\r\n imPipelineTab: IssuanceMonitorTab.ArrangerPipeline,\r\n };\r\n\r\n const serializer: QueryStringArgumentSerializer[] = [\r\n arrangers(),\r\n imPipelineTab(),\r\n ];\r\n\r\n const queryString = queryStringSerializer.serialize(searchParams, serializer);\r\n\r\n dispatch(banksActions.logUserActivity(companyReferenceName, BankAccessType.PrimaryArrangerPipelineIssuanceMonitor));\r\n\r\n window.open(`${window.location.origin}${routes.AMRPipeline}/?${queryString}`);\r\n };\r\n\r\n const logColumnClick = (bankAccessType: BankAccessType) => () => {\r\n dispatch(banksActions.logUserActivity(companyReferenceName, bankAccessType));\r\n };\r\n\r\n return (\r\n \r\n \r\n Arranger Pipeline\r\n \r\n }\r\n className=\"arranger-pipeline\"\r\n >\r\n \r\n (\r\n \r\n to see the deals.\r\n \r\n }\r\n />\r\n )}\r\n >\r\n {pipelines.length ? (\r\n ({\r\n dispatch,\r\n actions,\r\n onManagerClick: logColumnClick(BankAccessType.PrimaryArrangerPipelineManagersName),\r\n managerPresentationAccessType:\r\n CloManagerAccessType.DownloadManagerPresentationFileFromBank,\r\n bankReferenceName: companyReferenceName,\r\n managerPresentationLoadHandler,\r\n disclosureLoadHandler,\r\n isManagerPresentationDownloading: managerPresentationLoadingState[p.referenceName],\r\n isDisclosureDownloading: disclosureLoadingState[p.referenceName],\r\n })}\r\n />\r\n ) : (\r\n \r\n )}\r\n \r\n \r\n \r\n );\r\n}\r\n","import { ColumnBuilder } from '../../../../bidding/common/table/columns/column-builder/ColumnBuilder';\r\nimport { collapseStickRightColumn } from '../../../../bidding/common/table/CollapseStickRightColumn';\r\nimport {\r\n isNewColumn,\r\n createLastUpdatedColumn,\r\n dealNameColumn,\r\n dealTickerColumn,\r\n transactionStatusColumn,\r\n transactionTypeColumn,\r\n transactionCollateralTypeColumn,\r\n transactionCurrencyColumn,\r\n transactionSizeColumn,\r\n pricingDateColumn,\r\n closingDateColumn,\r\n nonCallPeriodEndColumn,\r\n reinvestmentPeriodEndColumn,\r\n dealOptionsColumn,\r\n dealIntexColumn,\r\n createGoToColumn,\r\n createRelatedTransactionsColumn,\r\n nonCallPeriodEndYrsColumn,\r\n reinvestmentPeriodEndYrsColumn,\r\n outOfNcColumn,\r\n outOfRiColumn,\r\n} from '../../../../clo-managers/tabs/deals/columns';\r\nimport { PipelineColumn } from '../../../../amrPipeline/types/PipelineColumn';\r\nimport { SORTING_TYPE, constants, pipelineColumnLabels } from '../../../../../constants';\r\nimport { IColumnDefinition } from '../../../../bidding/common/table/types/ColumnDefinition';\r\nimport { OriginatingTransaction } from '../../../../../types/amr-pipeline/models/OriginatingTransaction';\r\nimport { ManagerLink } from '../../../../amrPipeline/common/ManagerLink';\r\nimport { SubscriptionFeature } from '../../../../../types/billing/SubscriptionFeature';\r\n\r\nexport const dealColumns = [\r\n isNewColumn,\r\n createLastUpdatedColumn([SubscriptionFeature.DealerProfileDeals, SubscriptionFeature.IssuanceMonitorHistoricalData]),\r\n dealNameColumn,\r\n dealTickerColumn,\r\n {\r\n columnKey: PipelineColumn.manager,\r\n renderColumnHeaderContent: () => pipelineColumnLabels[PipelineColumn.manager],\r\n renderColumnContent: (transaction, context) => {\r\n const { onManagerClick } = context;\r\n const { collateralManager } = transaction;\r\n\r\n if (!collateralManager) {\r\n return constants.emptyPlaceholder;\r\n }\r\n\r\n return (\r\n \r\n );\r\n },\r\n sortingField: 'collateralManager',\r\n sortingType: SORTING_TYPE.company,\r\n className: 'data-list-cell-xl',\r\n } as IColumnDefinition,\r\n transactionStatusColumn,\r\n transactionTypeColumn,\r\n transactionCollateralTypeColumn,\r\n transactionCurrencyColumn,\r\n transactionSizeColumn,\r\n pricingDateColumn,\r\n closingDateColumn,\r\n nonCallPeriodEndColumn,\r\n nonCallPeriodEndYrsColumn,\r\n outOfNcColumn,\r\n reinvestmentPeriodEndColumn,\r\n reinvestmentPeriodEndYrsColumn,\r\n outOfRiColumn,\r\n collapseStickRightColumn,\r\n dealOptionsColumn,\r\n dealIntexColumn,\r\n createGoToColumn([SubscriptionFeature.DealerProfileDeals, SubscriptionFeature.IssuanceMonitorHistoricalData]),\r\n createRelatedTransactionsColumn([SubscriptionFeature.DealerProfileDeals, SubscriptionFeature.IssuanceMonitorMarketingHistory]),\r\n].map((c) => new ColumnBuilder(c));\r\n\r\n","import { useState } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport classNames from 'classnames';\r\nimport { EmptyPlaceholder, OnHoverTooltip, Preloader } from '../../../../common';\r\nimport { Table } from '../../../../bidding/common/table';\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport { useDeals } from '../../../hooks';\r\nimport { isRequesting } from '../../../../../utils';\r\nimport { dealColumns } from './bankDeals.columns';\r\nimport { SORT, routes } from '../../../../../constants';\r\nimport { Transaction } from '../../../../../types/amr-pipeline/models/Transaction';\r\nimport { OriginatingTransaction } from '../../../../../types/amr-pipeline/models/OriginatingTransaction';\r\nimport IntexPopup from '../../../../amrPipeline/detailed/IntexPopup';\r\nimport { AppState } from '../../../../../types/state/AppState';\r\nimport IconSVG from '../../../../../styles/svg-icons';\r\nimport { queryStringSerializer } from '../../../../../utils/filtering';\r\nimport { arrangers, transactionStatuses } from '../../../../../utils/filtering/serializers/serializer.definitions';\r\nimport { TransactionStatus } from '../../../../../types/amr-pipeline/enums/TransactionStatus';\r\nimport { QueryStringArgumentSerializer } from '../../../../../utils/filtering/serializers/QueryStringArgumentSerializer';\r\nimport { banksActions } from '../../../../../actions/banks.actions';\r\nimport { BankAccessType } from '../../../../../types/amr-pipeline/enums/BankAccessType';\r\nimport { convertToTableItem } from '../../../../clo-managers/tabs/deals/columns';\r\n\r\ninterface BankDealsProps {\r\n companyReferenceName: string;\r\n}\r\n\r\nexport const BankDeals = ({ companyReferenceName }: BankDealsProps) => {\r\n const dispatch = useDispatch();\r\n const [transactionForIntex, setTransactionForIntex] = useState();\r\n const { userCompany } = useSelector((state: AppState) => state.issuanceMonitor.amrPipelineCommon);\r\n\r\n const { requestState, transactions } = useDeals(companyReferenceName);\r\n\r\n const redirectToIssuanceMonitor = () => {\r\n const searchParams = {\r\n arrangers: [companyReferenceName],\r\n transactionStatuses: [\r\n TransactionStatus.Active,\r\n TransactionStatus.Priced,\r\n TransactionStatus.OnHold,\r\n TransactionStatus.Closed\r\n ],\r\n };\r\n\r\n const serializer: QueryStringArgumentSerializer[] = [\r\n transactionStatuses(),\r\n arrangers(),\r\n ];\r\n\r\n const queryString = queryStringSerializer.serialize(searchParams, serializer);\r\n\r\n dispatch(banksActions.logUserActivity(companyReferenceName, BankAccessType.PrimaryIssuanceMonitor));\r\n\r\n window.open(`${window.location.origin}${routes.AMRPipeline}/?${queryString}`);\r\n };\r\n\r\n const logColumnClick = (bankAccessType: BankAccessType) => () => {\r\n dispatch(banksActions.logUserActivity(companyReferenceName, bankAccessType));\r\n };\r\n\r\n return (\r\n <>\r\n \r\n Deals\r\n \r\n \r\n \r\n \r\n }\r\n actionBtn={\r\n \r\n }\r\n className=\"deals\"\r\n >\r\n \r\n {transactions.length ? (\r\n ({\r\n setTransactionForIntex,\r\n userCompany,\r\n onLastUpdatedClick: logColumnClick(BankAccessType.PrimaryDealsLastUpdated),\r\n onVersionHistoryClick: logColumnClick(BankAccessType.PrimaryDealsLastUpdatedTransactionVersion),\r\n onManagerClick: logColumnClick(BankAccessType.PrimaryDealsManagersName),\r\n })}\r\n columns={dealColumns}\r\n sticky\r\n defaultSortBy=\"closingDate\"\r\n defaultSortByDirection={SORT.DESC}\r\n createRowCustomKey={(t: Transaction) => t.referenceName}\r\n />\r\n ) : (\r\n \r\n )}\r\n \r\n \r\n {transactionForIntex && (\r\n setTransactionForIntex(undefined)}\r\n />\r\n )}\r\n \r\n );\r\n}\r\n","import { useContext } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { roles, routes } from '../../../../constants';\r\nimport { Currency } from '../../../../types/enums/Currency';\r\nimport { AppState } from '../../../../types/state/AppState';\r\nimport { Statistics } from './Statistics';\r\nimport { StatisticsChart } from '../../../clo-managers/tabs/overview/StatisticsChart';\r\nimport { QueryStringArgumentSerializer } from '../../../../utils/filtering/serializers/QueryStringArgumentSerializer';\r\nimport { queryStringSerializer } from '../../../../utils/filtering';\r\nimport {\r\n multipleCurrencies,\r\n transactionTypes,\r\n esg,\r\n euCompliance,\r\n staticDeals,\r\n transactionStatuses,\r\n arrangers,\r\n outOfNC,\r\n outOfRI,\r\n} from '../../../../utils/filtering/serializers/serializer.definitions';\r\nimport { StatisticsChartsTransactionStatuses, StatisticsChartsTransactionTypes } from '../../../clo-managers/tabs/overview/constants';\r\nimport { BanksState } from '../../../../types/state/BanksState';\r\nimport { ManagersTransactionCount } from './managersTransactionCount/ManagersTransactionCount';\r\nimport { BankArrangerPipeline } from './arrangerPipeline/BankArrangerPipeline';\r\nimport { BankDeals } from './deals/BankDeals';\r\nimport { ShowFor } from '../../../access';\r\nimport BanksContext from '../../banksContext';\r\nimport { BankAccessType } from '../../../../types/amr-pipeline/enums/BankAccessType';\r\nimport { banksActions } from '../../../../actions/banks.actions';\r\nimport { SubscriptionFeature } from '../../../../types/billing/SubscriptionFeature';\r\n\r\nexport const Primary = () => {\r\n const dispatch = useDispatch();\r\n const { ownCompany } = useContext(BanksContext);\r\n const { selectedBank, aggregatedManagersCount } = useSelector((state: AppState) => state.banks);\r\n\r\n if (!selectedBank?.details) {\r\n return null;\r\n }\r\n\r\n const redirectToIssuanceMonitor = (qsBuilder: (...params: any) => string, bankAccessType: BankAccessType) => (...params: any) => {\r\n const queryString = qsBuilder(...params, bankAccessType);\r\n\r\n if (bankAccessType) {\r\n dispatch(banksActions.logUserActivity(selectedBank.referenceName, bankAccessType));\r\n }\r\n\r\n window.open(`${window.location.origin}${routes.AMRPipeline}/?${queryString}`);\r\n };\r\n\r\n const redirectToIMWithCurrency = redirectToIssuanceMonitor((currency: Currency) => {\r\n const searchParams = {\r\n arrangers: [selectedBank.referenceName],\r\n currency: [currency],\r\n transactionStatuses: StatisticsChartsTransactionStatuses,\r\n transactionTypes: StatisticsChartsTransactionTypes,\r\n };\r\n\r\n const serializer: QueryStringArgumentSerializer[] = [\r\n arrangers(),\r\n multipleCurrencies(),\r\n transactionStatuses(),\r\n transactionTypes(),\r\n ];\r\n\r\n return queryStringSerializer.serialize(searchParams, serializer);\r\n }, BankAccessType.PrimaryPieGeographicMixDoor);\r\n\r\n const redirectToIMWithESG = redirectToIssuanceMonitor((esgDeals: boolean) => {\r\n const searchParams = {\r\n arrangers: [selectedBank.referenceName],\r\n esg: esgDeals,\r\n transactionStatuses: StatisticsChartsTransactionStatuses,\r\n transactionTypes: StatisticsChartsTransactionTypes,\r\n };\r\n\r\n const serializer: QueryStringArgumentSerializer[] = [\r\n arrangers(),\r\n esg(),\r\n transactionStatuses(),\r\n transactionTypes(),\r\n ];\r\n\r\n return queryStringSerializer.serialize(searchParams, serializer);\r\n }, BankAccessType.PrimaryPieEsgDealsDoor);\r\n\r\n const redirectToIMWithEUCompliance = redirectToIssuanceMonitor((euComplianceDeals: boolean) => {\r\n const searchParams = {\r\n arrangers: [selectedBank.referenceName],\r\n euCompliance: euComplianceDeals,\r\n transactionStatuses: StatisticsChartsTransactionStatuses,\r\n transactionTypes: StatisticsChartsTransactionTypes,\r\n };\r\n\r\n const serializer: QueryStringArgumentSerializer[] = [\r\n arrangers(),\r\n euCompliance(),\r\n transactionStatuses(),\r\n transactionTypes(),\r\n ];\r\n\r\n return queryStringSerializer.serialize(searchParams, serializer);\r\n }, BankAccessType.PrimaryPieEuCompliantDoor);\r\n\r\n const redirectToIMWithStaticDeals = redirectToIssuanceMonitor((staticDeal: boolean) => {\r\n const searchParams = {\r\n arrangers: [selectedBank.referenceName],\r\n staticDeals: staticDeal,\r\n transactionStatuses: StatisticsChartsTransactionStatuses,\r\n transactionTypes: StatisticsChartsTransactionTypes,\r\n };\r\n\r\n const serializer: QueryStringArgumentSerializer[] = [\r\n arrangers(),\r\n staticDeals(),\r\n transactionStatuses(),\r\n transactionTypes(),\r\n ];\r\n\r\n return queryStringSerializer.serialize(searchParams, serializer);\r\n }, BankAccessType.PrimaryPieStaticDealsDoor);\r\n\r\n const redirectToIMWithOutOfNC = redirectToIssuanceMonitor((isOutOfNC: boolean) => {\r\n const searchParams = {\r\n arrangers: [selectedBank.referenceName],\r\n outOfNC: isOutOfNC,\r\n transactionStatuses: StatisticsChartsTransactionStatuses,\r\n transactionTypes: StatisticsChartsTransactionTypes,\r\n };\r\n\r\n const serializer: QueryStringArgumentSerializer[] = [\r\n arrangers(),\r\n outOfNC(),\r\n transactionStatuses(),\r\n transactionTypes(),\r\n ];\r\n\r\n return queryStringSerializer.serialize(searchParams, serializer);\r\n }, BankAccessType.PrimaryPieOutOfNCDoor);\r\n\r\n const redirectToIMWithOutOfRI = redirectToIssuanceMonitor((isOutOfRI: boolean) => {\r\n const searchParams = {\r\n arrangers: [selectedBank.referenceName],\r\n outOfRI: isOutOfRI,\r\n transactionStatuses: StatisticsChartsTransactionStatuses,\r\n transactionTypes: StatisticsChartsTransactionTypes,\r\n };\r\n\r\n const serializer: QueryStringArgumentSerializer[] = [\r\n arrangers(),\r\n outOfRI(),\r\n transactionStatuses(),\r\n transactionTypes(),\r\n ];\r\n\r\n return queryStringSerializer.serialize(searchParams, serializer);\r\n }, BankAccessType.PrimaryPieOutOfRIDoor);\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 {aggregatedManagersCount &&\r\n \r\n }\r\n \r\n \r\n \r\n \r\n
\r\n );\r\n}\r\n","import moment from 'moment';\r\nimport { IColumnDefinition } from '../../../../bidding/common/table/types/ColumnDefinition';\r\nimport { ColumnBuilder } from '../../../../bidding/common/table/columns/column-builder/ColumnBuilder';\r\nimport { SORTING_TYPE, constants } from '../../../../../constants';\r\nimport { BwicStatusLabel } from '../../../../common/BwicStatusLabel';\r\nimport { BWICPxTalk } from '../../../../../types/banks/BWICPxTalk';\r\nimport { formatUtils, moneyUtils } from '../../../../../utils';\r\nimport { ManagerLink } from '../../../../amrPipeline/common/ManagerLink';\r\nimport IconSVG from '../../../../../styles/svg-icons';\r\nimport { OnHoverTooltip } from '../../../../common';\r\nimport { Link } from 'react-router-dom';\r\nimport { ValueBlocker } from '../../../../access/ValueBlocker';\r\nimport { SubscriptionFeature } from '../../../../../types/billing/SubscriptionFeature';\r\nimport { ActionBlocker } from '../../../../access/ActionBlocker';\r\n\r\nconst columns: IColumnDefinition[] = [\r\n {\r\n columnKey: 'bwicStatus',\r\n renderColumnHeaderContent: () => 'Status',\r\n renderColumnContent: (bwic: BWICPxTalk) =>\r\n ,\r\n className: 'data-list-cell-sm-01 cell-bwic-status',\r\n sortingField: 'status',\r\n sortingType: SORTING_TYPE.number,\r\n },\r\n {\r\n columnKey: 'ticker',\r\n renderColumnHeaderContent: () => 'Ticker',\r\n renderColumnContent: (bwic) => bwic.ticker,\r\n className: 'data-list-cell-lg',\r\n sortingField: 'ticker',\r\n sortingType: SORTING_TYPE.string,\r\n },\r\n {\r\n columnKey: 'manager',\r\n renderColumnHeaderContent: () => 'Manager',\r\n renderColumnContent: ({ collateralManager }) => {\r\n if (collateralManager) {\r\n return (\r\n \r\n )\r\n }\r\n return constants.emptyPlaceholder\r\n },\r\n className: 'data-list-cell-xl',\r\n sortingField: 'collateralManager',\r\n sortingType: SORTING_TYPE.company,\r\n },\r\n {\r\n columnKey: 'rating',\r\n renderColumnHeaderContent: () => 'Rtg',\r\n renderColumnContent: (bwic) =>\r\n bwic.rating,\r\n className: 'data-list-cell-xs',\r\n sortingField: 'rating',\r\n sortingType: SORTING_TYPE.string,\r\n },\r\n {\r\n columnKey: 'currency',\r\n renderColumnHeaderContent: () => 'Ccy',\r\n renderColumnContent: (bwic) =>\r\n bwic.currency,\r\n className: 'data-list-cell-xs',\r\n sortingField: 'currency',\r\n sortingType: SORTING_TYPE.string,\r\n },\r\n {\r\n columnKey: 'size',\r\n renderColumnHeaderContent: () => 'Size, MM',\r\n renderColumnContent: (bwic) =>\r\n moneyUtils.amountToMM(bwic.size),\r\n className: 'text-right',\r\n sortingField: 'size',\r\n sortingType: SORTING_TYPE.number,\r\n },\r\n {\r\n columnKey: 'bwicStartDate',\r\n renderColumnHeaderContent: () => (\r\n \r\n BWIC Start Date\r\n \r\n \r\n ),\r\n renderColumnContent: (bwic) => moment(bwic.bwicBidsDueDateUtc).format(constants.dateTimeFormat),\r\n className: 'data-list-cell-lg',\r\n sortingField: 'bwicBidsDueDateUtc',\r\n sortingType: SORTING_TYPE.date,\r\n },\r\n {\r\n columnKey: 'pxTalk',\r\n renderColumnHeaderContent: () => 'Px Talk',\r\n renderColumnContent: (bwic) =>\r\n formatUtils.formatPxTalk(bwic.pxTalks, constants.emptyPlaceholder),\r\n className: 'data-list-cell-sm-01 text-right',\r\n },\r\n {\r\n columnKey: 'bofaPxTalk',\r\n renderColumnHeaderContent: ({ companyCode }) => `${companyCode} Px Talk`,\r\n renderColumnContent: (bwic, { companyReferenceName, ownCompany }) => {\r\n const companyPxTalks = bwic.pxTalks.filter(x => x.company.referenceName === companyReferenceName);\r\n\r\n return (\r\n \r\n {formatUtils.formatPxTalk(companyPxTalks)}\r\n \r\n );\r\n },\r\n className: 'data-list-cell-sm-01 text-right'\r\n },\r\n {\r\n columnKey: 'color',\r\n renderColumnHeaderContent: () => 'Color',\r\n renderColumnContent: (bwic) => bwic.color\r\n ? formatUtils.formatColor(bwic.color)\r\n : constants.emptyPlaceholder,\r\n className: 'data-list-cell-lg'\r\n },\r\n {\r\n columnKey: 'actions',\r\n renderColumnHeaderContent: () => 'Actions',\r\n renderColumnContent: (bwic, { createLinkToBwicMonitor }) => (\r\n \r\n {blocked => blocked ? (\r\n \r\n ) : (\r\n \r\n {\r\n e.stopPropagation();\r\n }}\r\n >\r\n \r\n \r\n \r\n )}\r\n \r\n ),\r\n className: 'data-list-cell-xs text-right padding-r-0',\r\n stickRight: true,\r\n }\r\n];\r\n\r\nexport const bwicsPxTalkColumns = columns.map(c => new ColumnBuilder(c));\r\n","import { Table } from '../../../../bidding/common/table';\r\nimport { useBWICsPriceTalks } from '../../../hooks';\r\nimport { bwicsPxTalkColumns } from './bwicsPxTalk.columns';\r\nimport { SORT, routes } from '../../../../../constants';\r\nimport { EmptyPlaceholder, OnHoverTooltip, Preloader } from '../../../../common';\r\nimport { isRequesting } from '../../../../../utils';\r\nimport IconSVG from '../../../../../styles/svg-icons';\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport { BWICPxTalk } from '../../../../../types/banks/BWICPxTalk';\r\nimport { BwicMonitorSortByOptions } from '../../../../../types/state/AllBwicsState';\r\nimport { dateFrom, identifiers, sorting } from '../../../../../utils/filtering/serializers/serializer.definitions';\r\nimport { QueryStringArgumentSerializer } from '../../../../../utils/filtering/serializers/QueryStringArgumentSerializer';\r\nimport { queryStringSerializer } from '../../../../../utils/filtering';\r\nimport { Link } from 'react-router-dom';\r\nimport { useContext } from 'react';\r\nimport BanksContext from '../../../banksContext';\r\n\r\ninterface BWICsPxTalkProps {\r\n companyCode: string;\r\n companyReferenceName: string;\r\n}\r\n\r\nexport const BWICsPxTalk = ({ companyCode, companyReferenceName }: BWICsPxTalkProps) => {\r\n const { ownCompany } = useContext(BanksContext);\r\n const { requestState, bwics } = useBWICsPriceTalks(companyReferenceName);\r\n\r\n const createLinkToBwicMonitor = (bwic: BWICPxTalk) => {\r\n const searchParams = {\r\n isinCusipsAndTickers: [bwic.ticker],\r\n dateFrom: new Date(),\r\n sorting: BwicMonitorSortByOptions.NewestFirst,\r\n };\r\n\r\n const serializer: QueryStringArgumentSerializer[] = [\r\n dateFrom(),\r\n sorting(),\r\n identifiers(),\r\n ];\r\n\r\n const queryString = queryStringSerializer.serialize(searchParams, serializer);\r\n\r\n return `${routes.allBWICs}/?${queryString}`;\r\n };\r\n\r\n return (\r\n \r\n BWICs Px Talk\r\n \r\n \r\n \r\n \r\n }\r\n actionBtn={\r\n \r\n \r\n BWIC Monitor\r\n \r\n }\r\n className=\"deals\"\r\n >\r\n \r\n {bwics.length ? (\r\n ({\r\n companyCode\r\n })}\r\n createSecurityCustomArgs={() => ({\r\n companyReferenceName,\r\n createLinkToBwicMonitor,\r\n ownCompany,\r\n })}\r\n columns={bwicsPxTalkColumns}\r\n sticky\r\n defaultSortBy=\"bwicBidsDueDateUtc\"\r\n defaultSortByDirection={SORT.DESC}\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 { BWICsPxTalk } from './bwicsPxTalk/BWICsPxTalk';\r\nimport { AppState } from '../../../../types/state/AppState';\r\nimport { BanksState } from '../../../../types/state/BanksState';\r\n\r\nexport const Secondary = () => {\r\n const { selectedBank } = useSelector(state => state.banks);\r\n\r\n if (!selectedBank) {\r\n return null;\r\n }\r\n\r\n return (\r\n \r\n );\r\n};\r\n","import { constants } from '../../../../constants'\r\nimport { SubscriptionFeature } from '../../../../types/billing/SubscriptionFeature';\r\nimport { FormField } from '../../../amrPipeline/common/FormField'\r\nimport { SectionContent } from '../../../amrPipeline/common/section/SectionContent'\r\nimport { BlockedFeatureContent, SubscribeLink } from '../../../access/BlockedFeatureText';\r\nimport { RequiredFeature } from '../../../access/RequiredFeature';\r\nimport { BankAnalytics } from '../../../../types/banks/BankAnalytics';\r\n\r\ninterface GeneralProps {\r\n data: BankAnalytics;\r\n}\r\n\r\nexport const General = ({ data }: GeneralProps) => {\r\n return (\r\n \r\n
\r\n \r\n {data.recentProfileViews || constants.emptyPlaceholder}\r\n \r\n \r\n \r\n

See total profile and deal views

\r\n \r\n \r\n }\r\n />\r\n }>\r\n \r\n {data.totalProfileViews || constants.emptyPlaceholder}\r\n \r\n \r\n {data.dealViews || constants.emptyPlaceholder}\r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\n","import { pick, sum, values } from 'lodash';\r\nimport { SectionContent } from '../../../amrPipeline/common/section/SectionContent'\r\nimport { PercentageBar } from '../../../amrPipeline/detailed/new-issue/analytics/PercentageBar';\r\nimport { RequiredFeature } from '../../../access/RequiredFeature';\r\nimport { SubscriptionFeature } from '../../../../types/billing/SubscriptionFeature';\r\nimport { BlockedFeatureContent, SubscribeLink } from '../../../access/BlockedFeatureText';\r\nimport { BankAnalytics } from '../../../../types/banks/BankAnalytics';\r\n\r\ninterface ViewedTabsProps {\r\n data: BankAnalytics;\r\n}\r\n\r\nexport const ViewedTabs = ({ data }: ViewedTabsProps) => {\r\n const totalViews = sum(values(pick(data, [\r\n 'viewedTabsContactsEvents',\r\n 'viewedTabsPrimary',\r\n 'viewedTabsSecondary'\r\n ])));\r\n\r\n return (\r\n \r\n \r\n
\r\n \r\n \r\n

See more tabs viewed by the clients

\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 { constants } from \"../../../../../constants\";\r\nimport { BankAccessType, BankAccessTypes } from '../../../../../types/amr-pipeline/enums/BankAccessType';\r\nimport { FormField } from \"../../../../amrPipeline/common/FormField\";\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\n\r\ninterface Props {\r\n views: Record;\r\n}\r\n\r\nexport function OverviewSection({ views }: Props) {\r\n return (\r\n \r\n \r\n {views &&\r\n BankAccessTypes.map((type) => (\r\n
  • \r\n \r\n {type.text}\r\n \r\n {views[type.value]\r\n ? `${views[type.value]} view(s)`\r\n : constants.emptyPlaceholder}\r\n
  • \r\n ))}\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 { constants } from \"../../../../../constants\";\r\nimport { BankProfileView } from '../../../../../types/amr-pipeline/models/BankSession';\r\nimport { FormField } from \"../../../../amrPipeline/common/FormField\";\r\nimport { SectionContent } from '../../../../amrPipeline/common/section/SectionContent';\r\nimport { OnHoverTooltip } from \"../../../../common\";\r\n\r\ninterface Props {\r\n userSession: BankProfileView;\r\n}\r\n\r\nexport function ContactsSection({ userSession }: Props) {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n {userSession.userEmail}\r\n \r\n \r\n }\r\n className=\"data-item-row-full-height data-item-row-title-md data-item-row-email\"\r\n />\r\n \r\n \r\n );\r\n}\r\n","import { OverviewSection } from \"./OverviewSection\";\r\nimport { ContactsSection } from \"./ContactsSection\";\r\nimport { OnHoverTooltip } from \"../../../../common\";\r\nimport { dateTimeUtils } from \"../../../../../utils\";\r\nimport { Popover } from \"../../../../controls\";\r\nimport { SubscriptionFeature } from \"../../../../../types/billing/SubscriptionFeature\";\r\nimport { RequiredFeature } from \"../../../../access/RequiredFeature\";\r\nimport { BankProfileView } from '../../../../../types/amr-pipeline/models/BankSession';\r\n\r\ninterface Props {\r\n userSession: BankProfileView;\r\n children?: React.ReactNode;\r\n}\r\n\r\nexport function ProfileViewHistoryPopover({\r\n userSession,\r\n children,\r\n}: Props) {\r\n const formattedActionDate = dateTimeUtils.utcToLocalString(\r\n userSession.accessDateTime\r\n );\r\n\r\n const PseudoLink = (\r\n \r\n {children || formattedActionDate}\r\n \r\n );\r\n\r\n return (\r\n (\r\n {children || formattedActionDate}\r\n )}\r\n >\r\n {userSession.userFullName}\r\n }\r\n actionButton={PseudoLink}\r\n showCloseButton={true}\r\n >\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n","import { SORTING_TYPE } from '../../../../../constants';\r\nimport { ColumnBuilder } from '../../../../bidding/common/table/columns/column-builder/ColumnBuilder';\r\nimport { IColumnDefinition } from '../../../../bidding/common/table/types/ColumnDefinition';\r\nimport { ProportionBar } from '../../../../amrPipeline/ProportionBar';\r\nimport { dateTimeUtils } from '../../../../../utils';\r\nimport { OnHoverTooltip } from '../../../../common';\r\nimport FollowUp from '../../../../common/FollowUp';\r\nimport { ProfileViewHistoryPopover } from '../ProfileViewHistoryPopover/ProfileViewHistoryPopover';\r\nimport { BankProfileView } from '../../../../../types/amr-pipeline/models/BankSession';\r\nimport { BankAccessTypes } from '../../../../../types/amr-pipeline/enums/BankAccessType';\r\n\r\nconst profileViewHistoryColumnsDefinition: IColumnDefinition[] = [\r\n {\r\n columnKey: 'profileViews',\r\n renderColumnHeaderContent: () => 'Profile Views',\r\n renderColumnContent: (userSession) => (\r\n \r\n {dateTimeUtils.utcToLocalString(userSession.accessDateTime)}\r\n \r\n ),\r\n sortingField: 'accessDateTime',\r\n className: 'data-list-cell-lg',\r\n sortingType: SORTING_TYPE.date,\r\n },\r\n {\r\n columnKey: 'tabsViewed',\r\n renderColumnHeaderContent: () => 'Tabs Viewed',\r\n renderColumnContent: profileSession => {\r\n const views = profileSession.views;\r\n\r\n return (\r\n ({\r\n title: t.text,\r\n value: views && profileSession.views[t.value],\r\n color: t.color\r\n }))}\r\n />\r\n );\r\n },\r\n className: 'data-list-cell-lg-02',\r\n },\r\n {\r\n columnKey: 'fullName',\r\n renderColumnHeaderContent: () => 'Full Name',\r\n renderColumnContent: (profileSession) => (\r\n \r\n {profileSession.userFullName}\r\n \r\n ),\r\n sortingField: 'userFullName',\r\n className: 'data-list-cell-xl',\r\n sortingType: SORTING_TYPE.string,\r\n },\r\n {\r\n columnKey: 'companyLegalName',\r\n renderColumnHeaderContent: () => 'Company',\r\n renderColumnContent: ({ companyLegalName }) => (\r\n \r\n {companyLegalName}\r\n \r\n ),\r\n sortingField: 'companyLegalName',\r\n className: 'data-list-cell-xl-xxl',\r\n sortingType: SORTING_TYPE.string,\r\n },\r\n {\r\n columnKey: 'follow-up',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (profileSession) => ,\r\n className: 'data-list-cell-md-flexible',\r\n }\r\n];\r\n\r\nexport const profileViewHistoryColumns = () => profileViewHistoryColumnsDefinition.map(c => new ColumnBuilder(c));\r\n\r\n","import { useDispatch, useSelector } from 'react-redux';\r\nimport { AppState } from '../../../../../types/state/AppState';\r\nimport { TreeSelectOption } from '../../../../controls/TreeSelect';\r\nimport { AnalyticsWidget } from '../../../../amrPipeline/common/analytics/AnalyticsWidget';\r\nimport { ProfileViewHistoryTable } from '../../../../common/manager-analytics/ProfileViewHistoryTable';\r\nimport { SubscriptionFeature } from '../../../../../types/billing/SubscriptionFeature';\r\nimport { banksActions } from '../../../../../actions/banks.actions';\r\nimport { BankAnalyticsFilter } from '../../../../../types/analytics/AnalyticsFilter';\r\nimport { BankAccessTypes } from '../../../../../types/amr-pipeline/enums/BankAccessType';\r\nimport { profileViewHistoryColumns } from './profileViewHistory.columns';\r\nimport { GetAction, withAnalyticsRequest } from '../../../../common/manager-analytics/withAnalyticsRequest';\r\n\r\ninterface ProfileViewHistoryWidgetProps {\r\n companyReferenceName: string;\r\n isLoaded: boolean;\r\n users: TreeSelectOption[];\r\n}\r\n\r\nconst selector = (state: AppState) => state.banks.analytics;\r\n\r\nconst getAction = (companyReferenceName: string, filter: BankAnalyticsFilter) => {\r\n return banksActions.profileViewHistoryRequest(\r\n companyReferenceName,\r\n filter.date.dateFrom || undefined,\r\n filter.date.dateTo || undefined,\r\n );\r\n};\r\n\r\nfunction ProfileViewHistoryWidgetComponent({ companyReferenceName, isLoaded, users }: ProfileViewHistoryWidgetProps) {\r\n const dispatch = useDispatch();\r\n const state = useSelector(selector);\r\n\r\n const { profileHistoryViews } = state;\r\n const { filter, data, numberOfHiddenItems } = profileHistoryViews;\r\n\r\n const handleFilterChange = (filter: BankAnalyticsFilter) => {\r\n dispatch(banksActions.profileViewHistoryFilterChange(filter));\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport const ProfileViewHistoryWidget = withAnalyticsRequest(\r\n getAction as GetAction,\r\n selector,\r\n (state) => state.profileHistoryViews,\r\n)(ProfileViewHistoryWidgetComponent);\r\n","import { useCallback, useMemo } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { AppState } from '../../../../types/state/AppState';\r\nimport { SubscriptionFeature } from '../../../../types/billing/SubscriptionFeature';\r\nimport { AnalyticsWidget } from '../../../amrPipeline/common/analytics/AnalyticsWidget';\r\nimport { BankAnalyticsFilter } from '../../../../types/analytics/AnalyticsFilter';\r\nimport { ChartRequiredFeature } from '../../../access/ChartRequiredFeature';\r\nimport { BaseAnalyticsComponentProps, GetAction, withAnalyticsRequest } from '../../../common/manager-analytics/withAnalyticsRequest';\r\nimport { ClientsActivityChart } from '../../../common/manager-analytics/ClientsActivityChart';\r\nimport { banksActions } from '../../../../actions/banks.actions';\r\nimport { BankAccessType } from '../../../../types/amr-pipeline/enums/BankAccessType';\r\n\r\nconst selector = (state: AppState) => state.banks.analytics;\r\n\r\nconst getAction = (companyReferenceName: string, filter: BankAnalyticsFilter) => {\r\n return banksActions.clientsActivityRequest(\r\n companyReferenceName,\r\n filter.date.dateFrom || undefined,\r\n filter.date.dateTo || undefined,\r\n );\r\n};\r\n\r\nfunction ClientsActivityWidgetComponent({ companyReferenceName, isLoaded, users, accessTypes }: BaseAnalyticsComponentProps) {\r\n const dispatch = useDispatch();\r\n const state = useSelector(selector);\r\n\r\n const { clientsActivity } = state;\r\n const { filter, data } = clientsActivity;\r\n\r\n const handleFilterChange = useCallback((filter: BankAnalyticsFilter) => {\r\n dispatch(banksActions.clientsActivityFilterChange(filter));\r\n }, [dispatch]);\r\n\r\n const handleBarClick = useCallback((accessType: BankAccessType, date: Date) => {\r\n dispatch(\r\n banksActions.profileViewHistoryFilterByBar(\r\n companyReferenceName,\r\n accessType,\r\n date\r\n )\r\n );\r\n }, [dispatch, companyReferenceName]);\r\n\r\n const filteredClientsActivity = useMemo(() => data\r\n .filter(row => {\r\n if (filter.users.length && !filter.users.includes(row.userEmail)) {\r\n return false;\r\n }\r\n\r\n if (filter.tabs.length && !filter.tabs.some(x => x === row.accessType)) {\r\n return false;\r\n }\r\n\r\n return true;\r\n }), [data, filter.users, filter.tabs]);\r\n\r\n const chart = useMemo(() => , [handleBarClick, filter, filteredClientsActivity]);\r\n\r\n return (\r\n \r\n \r\n {chart}\r\n \r\n \r\n );\r\n}\r\n\r\nexport const ClientsActivityWidget = withAnalyticsRequest(\r\n getAction as GetAction,\r\n selector,\r\n (state) => state.clientsActivity\r\n)(ClientsActivityWidgetComponent);\r\n","import { AppState } from '../../../../types/state/AppState';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { General } from './General';\r\nimport { ViewedTabs } from './ViewedTabs';\r\nimport { useContext, useEffect } from 'react';\r\nimport BanksContext from '../../banksContext';\r\nimport { ProfileViewHistoryWidget } from './profileViewHistory/ProfileViewHistoryWidget';\r\nimport { TransactionViewHistoryWidget } from '../../../common/manager-analytics/transactionViewHistory/TransactionViewHistoryWidget';\r\nimport { EmptyPlaceholder, Preloader } from '../../../common';\r\nimport { BanksState } from '../../../../types/state/BanksState';\r\nimport { banksActions } from '../../../../actions/banks.actions';\r\nimport { ClientsActivityWidget } from './ClientsActivityWidget';\r\nimport { BankAccessTypes } from '../../../../types/amr-pipeline/enums/BankAccessType';\r\nimport { SubscriptionFeature } from '../../../../types/billing/SubscriptionFeature';\r\n\r\nexport const Analytics = () => {\r\n const dispatch = useDispatch();\r\n const { hasAnalyticsAccess } = useContext(BanksContext);\r\n const { analytics: { general, isLoading, profileHistoryViews }, selectedBank } = useSelector((state: AppState) => state.banks);\r\n\r\n useEffect(() => {\r\n if (!selectedBank?.referenceName) {\r\n return;\r\n }\r\n\r\n dispatch(banksActions.analyticsInit(selectedBank.referenceName));\r\n\r\n return () => {\r\n dispatch(banksActions.analyticsReset());\r\n };\r\n }, [selectedBank?.referenceName, dispatch]);\r\n\r\n if (isLoading) {\r\n return ;\r\n }\r\n\r\n if (!general || !selectedBank || !hasAnalyticsAccess) {\r\n return null;\r\n }\r\n\r\n\r\n const isAnalyticsEmpty =\r\n !general.dealViews\r\n && !general.presentationDownloads\r\n && !general.totalProfileViews\r\n && !general.transactionViewHistory.items.length\r\n // Also check these in case user has no access to Banks prouct\r\n && !profileHistoryViews.data.length\r\n && !general.recentProfileViews\r\n && !general.viewedTabsContactsEvents;\r\n\r\n if (isAnalyticsEmpty) {\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 { useContext, useEffect, useMemo } from \"react\";\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\nimport { routes } from \"../../constants\";\r\nimport { AppState } from \"../../types/state/AppState\";\r\nimport { useHistory, useParams } from \"react-router\";\r\nimport { TabList, TabItem } from '../bidding/common/tab-list';\r\nimport { TabContent } from '../amrPipeline/common/tabs/TabContent';\r\nimport { Preloader } from '../common';\r\nimport { TabBody } from '../amrPipeline/common/tabs/TabBody';\r\nimport { BanksTabType, BanksTabTypes } from '../../types/banks/BanksTabType';\r\nimport { ContactsAndEvents } from './tabs/contacts-and-events/ContactsAndEvents';\r\nimport { Primary } from './tabs/primary/Primary';\r\nimport { Secondary } from './tabs/secondary/Secondary';\r\nimport { Analytics } from './tabs/analytics/Analytics';\r\nimport BanksContext from './banksContext';\r\nimport { Bank } from '../../types/banks/Bank';\r\nimport { banksActions } from '../../actions/banks.actions';\r\nimport { BankAccessType } from '../../types/amr-pipeline/enums/BankAccessType';\r\n\r\ninterface BanksRouteParams {\r\n referenceName: string;\r\n tab?: BanksTabType;\r\n}\r\n\r\ninterface BankViewPageProps {\r\n bank: Bank;\r\n}\r\n\r\nconst TabTypeToAccessType: Partial> = {\r\n [BanksTabType.ContactsAndEvents]: BankAccessType.ContactsEventsTab,\r\n [BanksTabType.Primary]: BankAccessType.PrimaryTab,\r\n [BanksTabType.Secondary]: BankAccessType.SecondaryTab,\r\n};\r\n\r\nexport const BankViewPage = ({ bank }: BankViewPageProps) => {\r\n const { referenceName, tab } = useParams();\r\n const { hasAnalyticsAccess } = useContext(BanksContext);\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n\r\n const isLoading = useSelector((state: AppState) => state.banks.isLoading);\r\n\r\n const selectedTab = tab || BanksTabType.ContactsAndEvents;\r\n\r\n useEffect(() => {\r\n // This is to prevent double logging, when switching between\r\n // managers and selected tab is not Overview\r\n if (bank.referenceName !== referenceName) {\r\n return;\r\n }\r\n\r\n if (selectedTab === BanksTabType.Analytics) {\r\n return;\r\n }\r\n\r\n dispatch(banksActions.logUserActivity(bank.referenceName, TabTypeToAccessType[selectedTab] as BankAccessType));\r\n }, [dispatch, referenceName, bank.referenceName, selectedTab]);\r\n\r\n const accessibleTabs = useMemo(() => BanksTabTypes.filter(tabType =>\r\n tabType.value === BanksTabType.Analytics ? hasAnalyticsAccess : true\r\n ), [hasAnalyticsAccess]);\r\n\r\n const renderActiveTab = () => {\r\n switch (tab) {\r\n case BanksTabType.Primary:\r\n return ;\r\n case BanksTabType.Secondary:\r\n return ;\r\n // TODO: Second Iteration\r\n // case BanksTabType.SettlementAccounts:\r\n // return ;\r\n case BanksTabType.Analytics:\r\n return ;\r\n default:\r\n return ;\r\n }\r\n };\r\n\r\n const handleTabChange = (tab: BanksTabType) => {\r\n return history.replace(routes.manageBanksUrl(referenceName, tab));\r\n };\r\n\r\n return (\r\n <>\r\n \r\n {accessibleTabs.map(({ value, text }) => (\r\n handleTabChange(value)}\r\n />\r\n ))}\r\n \r\n \r\n \r\n {isLoading ? : renderActiveTab()}\r\n \r\n \r\n \r\n );\r\n};\r\n","import IconSVG from '../../../styles/svg-icons';\r\nimport { FormField } from '../../amrPipeline/common/FormField';\r\nimport { JoditEditor } from '../../common/JoditEditor';\r\nimport { Checkbox } from '../../controls';\r\n\r\ninterface EventItemProps {\r\n companyReferenceName: string;\r\n description: string;\r\n published: boolean;\r\n onChange: (value: string, published: boolean) => void;\r\n onDelete: () => void;\r\n}\r\n\r\nexport const EventItem = ({ companyReferenceName, description, published, onChange, onDelete }: EventItemProps) => (\r\n \r\n onChange(value, published)}\r\n placeholder=\"Add Event Description\"\r\n />\r\n
    \r\n onChange(description, !e.target.checked)} />\r\n \r\n
    \r\n \r\n);\r\n","import { EventItem } from './EventItem';\r\nimport { CompanyEvent } from '../../../types/banks/CompanyEvent';\r\nimport { useEffect } from 'react';\r\nimport { stringUtils } from '../../../utils';\r\nimport { SectionContent } from '../../amrPipeline/common/section/SectionContent';\r\nimport IconSVG from '../../../styles/svg-icons';\r\nimport { OnHoverTooltip } from '../../common';\r\n\r\ninterface EventsProps {\r\n events: CompanyEvent[];\r\n companyReferenceName: string;\r\n onChange: (events: CompanyEvent[]) => void;\r\n}\r\n\r\nconst MaxEventsCount = 10;\r\n\r\nexport const EmptyEvent = {\r\n referenceName: '',\r\n description: '',\r\n published: true,\r\n} as CompanyEvent;\r\n\r\nexport const Events = ({ events, companyReferenceName, onChange }: EventsProps) => {\r\n useEffect(() => {\r\n if (!events.length) {\r\n onChange([EmptyEvent]);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [events.length]);\r\n\r\n const allEventsEmpty = events.every(event => stringUtils.isHTMLEmpty(event.description));\r\n\r\n const maxEventsCountReached = events.length >= MaxEventsCount;\r\n\r\n const handleChange = (eventIndex: number) => (description: string, published: boolean) => {\r\n const changedEvents = events.map((event, index) => {\r\n if (index === eventIndex) {\r\n return {\r\n ...event,\r\n description,\r\n published,\r\n };\r\n }\r\n\r\n return event;\r\n });\r\n\r\n onChange(changedEvents);\r\n };\r\n\r\n const handleDelete = (eventIndex: number) => () => {\r\n const changedEvents = events.filter((_, index) => index !== eventIndex);\r\n\r\n onChange(changedEvents);\r\n };\r\n\r\n const handleAdd = () => {\r\n onChange([\r\n EmptyEvent,\r\n ...events,\r\n ]);\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n Event\r\n \r\n \r\n }>\r\n {events.map((event, index) => (\r\n \r\n ))}\r\n \r\n );\r\n}\r\n","import { isNil } from 'lodash';\r\nimport * as Yup from \"yup\";\r\nimport { errorMessages } from '../../../constants';\r\n\r\nexport const BanksValidationSchema = Yup.object().shape({\r\n headOfDesk: Yup.object().shape({\r\n email: Yup\r\n .string()\r\n .optional()\r\n .email(errorMessages.invalidEmail),\r\n distributionListEmail: Yup\r\n .string()\r\n .optional()\r\n .email(errorMessages.invalidEmail),\r\n }),\r\n headOfTrading: Yup.object().shape({\r\n firstName: Yup\r\n .string()\r\n .optional()\r\n .nullable(),\r\n lastName: Yup\r\n .string()\r\n .optional()\r\n .nullable(),\r\n email: Yup\r\n .string()\r\n .when(['firstName', 'lastName'], {\r\n is: (firstName?: string, lastName?: string) => !isNil(firstName) || !isNil(lastName),\r\n then: () => Yup\r\n .string()\r\n .typeError(errorMessages.empty)\r\n .required(errorMessages.empty)\r\n .email(errorMessages.invalidEmail),\r\n otherwise: () => Yup\r\n .string()\r\n .optional()\r\n .nullable()\r\n .email(errorMessages.invalidEmail),\r\n }),\r\n distributionListEmail: Yup\r\n .string()\r\n .optional()\r\n .email(errorMessages.invalidEmail),\r\n })\r\n});\r\n","import { Formik, FormikProps } from 'formik';\r\nimport { SectionContent } from '../../amrPipeline/common/section/SectionContent';\r\nimport { TextField } from '../../common/form-fields/TextField';\r\nimport { EmptyEvent, Events } from './EditEvents';\r\nimport { useSelector } from 'react-redux';\r\nimport { AppState } from '../../../types/state/AppState';\r\nimport { useEffect, useRef } from 'react';\r\nimport { BanksState } from '../../../types/state/BanksState';\r\nimport { Grid } from '../../grid';\r\nimport { gridActions } from '../../../actions';\r\nimport { constants, gridColumns } from '../../../constants';\r\nimport { banksActions } from '../../../actions/banks.actions';\r\nimport { Bank } from '../../../types/banks/Bank';\r\nimport { CompanyEvent } from '../../../types/banks/CompanyEvent';\r\nimport { isNil } from 'lodash';\r\nimport { BrokerDealerSave } from '../../../types/banks/BrokerDealerSave';\r\nimport { BanksValidationSchema } from './BanksValidationSchema';\r\nimport { useAppDispatch } from '../../../effects/useAppDispatch';\r\nimport { useHistory } from 'react-router';\r\nimport { RouteLeavingGuard } from '../../routing';\r\n\r\ninterface Form {\r\n events: CompanyEvent[];\r\n headOfDesk?: BrokerDealerSave;\r\n headOfTrading?: BrokerDealerSave;\r\n}\r\n\r\ninterface BanksEditPageProps {\r\n companyReferenceName: string;\r\n bank: Bank;\r\n setSubmitHandler: (fn: () => Promise) => void;\r\n}\r\n\r\nexport const BankEditPage = ({ companyReferenceName, bank, setSubmitHandler }: BanksEditPageProps) => {\r\n const dispatch = useAppDispatch();\r\n const history = useHistory();\r\n\r\n const formRef = useRef>(null);\r\n const { editBank } = useSelector(state => state.banks);\r\n\r\n useEffect(() => {\r\n dispatch(banksActions.editBank());\r\n\r\n return () => {\r\n dispatch(banksActions.editBankReset());\r\n dispatch(gridActions.reset());\r\n };\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (isNil(editBank)) {\r\n return;\r\n }\r\n\r\n dispatch(banksActions.editBank());\r\n dispatch(gridActions.reset());\r\n dispatch(gridActions.init(editBank.contacts, gridColumns.banksContacts(), constants.gridRowsLimit, 10, false));\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [isNil(editBank)]);\r\n\r\n useEffect(() => {\r\n if (formRef.current) {\r\n setSubmitHandler(formRef.current.submitForm);\r\n }\r\n }, [setSubmitHandler]);\r\n\r\n if (!editBank) {\r\n return null;\r\n }\r\n\r\n const handleSubmit = (values: Form) => {\r\n dispatch(gridActions.validate());\r\n dispatch(banksActions.updateBank(bank.referenceName, values));\r\n };\r\n\r\n const initialValuesWithEvents = editBank.events.length\r\n ? editBank\r\n : {\r\n ...editBank,\r\n events: [\r\n EmptyEvent\r\n ],\r\n };\r\n\r\n return (\r\n \r\n {({ setFieldValue, values, dirty, isSubmitting }) => (\r\n <>\r\n history.push(pathname)}\r\n shouldBlockNavigation={() => !!dirty && !isSubmitting}\r\n />\r\n
    \r\n \r\n
    \r\n

    Head of Desk

    \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

    Head of Trading

    \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('events', events)}\r\n />\r\n
    \r\n \r\n )}\r\n \r\n );\r\n};\r\n","import { useContext } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { Bank } from '../../types/banks/Bank';\r\nimport BanksContext from './banksContext';\r\nimport { BanksState } from '../../types/state/BanksState';\r\nimport { BanksLabels } from './BanksLabels';\r\nimport { BanksAlertsButton } from './BanksAlertsButton';\r\nimport { banksActions } from '../../actions/banks.actions';\r\nimport { UserConfigState } from '../../types/state/UserConfigState';\r\nimport { hasBankAnalyticsAlertsChangeAccess, withTurnedOnAlerts } from '../../utils/amr-pipeline.utils';\r\nimport { user } from '../../user';\r\nimport { SubscriptionFeature } from '../../types/billing/SubscriptionFeature';\r\nimport { bankImApRequiredFeatures } from '../../constants/banks/bankImApRequiredFeatures';\r\n\r\ninterface BanksHeaderProps {\r\n bank: Bank;\r\n edit: boolean;\r\n onEdit?: () => void;\r\n onSave?: () => void;\r\n onCancel?: () => void;\r\n}\r\n\r\nconst BanksHeader = ({ bank, edit, onEdit, onSave, onCancel }: BanksHeaderProps) => {\r\n const dispatch = useDispatch();\r\n const { canEdit } = useContext(BanksContext);\r\n const { isUpdating } = useSelector((state: AppState) => state.banks);\r\n\r\n const alertConfigs = useSelector((state: AppState) => state.imUserConfig);\r\n const userCompany = useSelector((state: AppState) => state.issuanceMonitor.amrPipelineCommon.userCompany);\r\n\r\n const withAnalyticsAccess = hasBankAnalyticsAlertsChangeAccess(bank, userCompany);\r\n const withDiAccess = user.hasFeatures(SubscriptionFeature.InventoryAlerts);\r\n const withImApAccess = user.hasAllFeatures(...bankImApRequiredFeatures);\r\n\r\n const withAlerts = withTurnedOnAlerts([\r\n ...(withAnalyticsAccess ? alertConfigs.bankAnalyticsAlert.value : []),\r\n ...(withImApAccess ? alertConfigs.bankArrangerPipelineAlert.value : []),\r\n ...(withImApAccess ? alertConfigs.bankIssuanceMonitorAlert.value : []),\r\n ...(withDiAccess ? alertConfigs.bankDealerInventoryAlert.value : []),\r\n ], bank.referenceName);\r\n\r\n const renderEditButtons = () => {\r\n if (edit) {\r\n return (\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\r\n const defaultHeader = (\r\n

    {bank.legalName}

    \r\n );\r\n\r\n const editHeader = (\r\n <>\r\n

    Edit Bank

    \r\n {bank.legalName}\r\n \r\n );\r\n\r\n const alertsButton = (\r\n dispatch(banksActions.setBankForAlertPopup(bank.referenceName))}\r\n />\r\n );\r\n\r\n const spacer = (
    );\r\n\r\n const renderActions = () => {\r\n if (!canEdit) {\r\n return alertsButton;\r\n }\r\n\r\n return (\r\n <>\r\n {!edit && alertsButton}\r\n {!edit && spacer}\r\n {renderEditButtons()}\r\n \r\n );\r\n };\r\n\r\n return (\r\n
    \r\n
    \r\n {bank.isUserCompany &&
    MY
    }\r\n \r\n {edit ? editHeader : defaultHeader}\r\n
    \r\n {renderActions()}\r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default BanksHeader;\r\n","import { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport {\r\n alertOptionTooltipText,\r\n alertOptions,\r\n analyticAlertOptions,\r\n secondaryStatsAlertOptions,\r\n} from \"../../constants/amr-pipeline/alertOptions\";\r\nimport { AlertOption } from \"../../types/email-preferences/EmailPreferences\";\r\nimport { AppState } from \"../../types/state/AppState\";\r\nimport {\r\n CompanyAlertsConfig,\r\n SecondaryStatsAlertsConfig,\r\n} from \"../../types/user-config/UserConfig\";\r\nimport { Preloader } from \"../common\";\r\nimport { Popup, PopupBody, PopupFooter } from \"../controls\";\r\nimport { EmailPreferencesRadioGroup } from \"../profile/tabs/email-preferences/tabs/EmailPreferencesRadioGroup\";\r\nimport { UserConfigType } from \"../../types/user-config/UserConfigType\";\r\nimport { imUserConfigActions } from \"../../actions\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { routes } from \"../../constants\";\r\nimport { EmailPreferencesTab } from \"../profile/tabs/email-preferences/EmailPreferencesContent\";\r\nimport { alertDescriptions } from \"../../constants/banks/alertDescriptions\";\r\nimport { Bank } from \"../../types/banks/Bank\";\r\nimport { hasBankAnalyticsAlertsAccess, hasBankAnalyticsAlertsChangeAccess } from \"../../utils/amr-pipeline.utils\";\r\nimport { SubscriptionFeature } from '../../types/billing/SubscriptionFeature';\r\nimport { user } from \"../../user\";\r\nimport { bankImApRequiredFeatures } from \"../../constants/banks/bankImApRequiredFeatures\";\r\n\r\ninterface Props {\r\n selectedBank: Bank;\r\n onClose: () => void;\r\n}\r\n\r\nexport const BanksAlertsPopup = ({ selectedBank, onClose }: Props) => {\r\n const dispatch = useDispatch();\r\n\r\n const {\r\n isUpdating: isUserConfigUpdating,\r\n isDeleting: isUserConfigDeleting,\r\n } = useSelector((state: AppState) => state.imUserConfig);\r\n\r\n const userCompany = useSelector((state: AppState) => state.issuanceMonitor.amrPipelineCommon.userCompany);\r\n\r\n const bankAnalyticsConfig = useSelector(\r\n (state: AppState) => state.imUserConfig.bankAnalyticsAlert\r\n ).value.find((c) => c.companyReferenceName === selectedBank?.referenceName);\r\n\r\n const bankApConfig = useSelector(\r\n (state: AppState) => state.imUserConfig.bankArrangerPipelineAlert\r\n ).value.find((c) => c.companyReferenceName === selectedBank?.referenceName);\r\n\r\n const bankImConfig = useSelector(\r\n (state: AppState) => state.imUserConfig.bankIssuanceMonitorAlert\r\n ).value.find((c) => c.companyReferenceName === selectedBank?.referenceName);\r\n\r\n const bankDealerInventoryConfig = useSelector<\r\n AppState,\r\n SecondaryStatsAlertsConfig\r\n >(\r\n (state: AppState) => state.imUserConfig.bankDealerInventoryAlert\r\n ).value.find((c) => c.companyReferenceName === selectedBank?.referenceName);\r\n\r\n const withAnalyticsAccess = hasBankAnalyticsAlertsAccess(selectedBank, userCompany);\r\n const withAnalyticsChangeAccess = hasBankAnalyticsAlertsChangeAccess(selectedBank, userCompany);\r\n const withDiAccess = user.hasFeatures(SubscriptionFeature.InventoryAlerts);\r\n const withImApAccess = user.hasAllFeatures(...bankImApRequiredFeatures);\r\n\r\n const [editBankAnalyticsConfig, setEditBankAnalyticsConfig] =\r\n useState(bankAnalyticsConfig);\r\n const [editBankApConfig, setEditBankApConfig] = useState(bankApConfig);\r\n const [editBankImConfig, setEditBankImConfig] = useState(bankImConfig);\r\n const [editBankDiConfig, setEditBankDiConfig] = useState(\r\n bankDealerInventoryConfig\r\n );\r\n\r\n const bankAnalyticsAlert =\r\n bankAnalyticsConfig?.alertOption || AlertOption.Never;\r\n const bankApAlert = bankApConfig?.alertOption || AlertOption.Never;\r\n const bankImAlert = bankImConfig?.alertOption || AlertOption.Never;\r\n const bankDiAlert =\r\n bankDealerInventoryConfig?.alertOption || AlertOption.Never;\r\n\r\n const selectedBankAnalyticsAlert =\r\n editBankAnalyticsConfig?.alertOption || AlertOption.Never;\r\n const selectedBankApAlert =\r\n editBankApConfig?.alertOption || AlertOption.Never;\r\n const selectedBankImAlert =\r\n editBankImConfig?.alertOption || AlertOption.Never;\r\n const selectedBankDiAlert =\r\n editBankDiConfig?.alertOption || AlertOption.Never;\r\n\r\n const isAlertsInProgress = isUserConfigUpdating || isUserConfigDeleting;\r\n const isInitialAlertsState =\r\n (withAnalyticsChangeAccess\r\n ? bankAnalyticsAlert === selectedBankAnalyticsAlert\r\n : true) &&\r\n bankApAlert === selectedBankApAlert &&\r\n bankImAlert === selectedBankImAlert &&\r\n bankDiAlert === selectedBankDiAlert;\r\n const isSaveDisabled = isInitialAlertsState || isAlertsInProgress;\r\n\r\n const [saving, setSaving] = useState(false);\r\n\r\n useEffect(() => {\r\n if (!isAlertsInProgress && saving) {\r\n onClose();\r\n setSaving(false);\r\n }\r\n }, [isAlertsInProgress, saving, onClose]);\r\n\r\n useEffect(() => {\r\n setEditBankAnalyticsConfig(bankAnalyticsConfig);\r\n setEditBankApConfig(bankApConfig);\r\n setEditBankImConfig(bankImConfig);\r\n setEditBankDiConfig(bankDealerInventoryConfig);\r\n }, [\r\n bankAnalyticsConfig,\r\n bankApConfig,\r\n bankImConfig,\r\n bankDealerInventoryConfig,\r\n ]);\r\n\r\n const handleSave = () => {\r\n setSaving(true);\r\n\r\n const configs = [\r\n ...(withAnalyticsChangeAccess && editBankAnalyticsConfig\r\n ? [\r\n {\r\n type: UserConfigType.bankAnalyticsAlert,\r\n value: editBankAnalyticsConfig,\r\n },\r\n ]\r\n : []),\r\n ...(withImApAccess && editBankApConfig\r\n ? [\r\n {\r\n type: UserConfigType.bankArrangerPipelineAlert,\r\n value: editBankApConfig,\r\n },\r\n ]\r\n : []),\r\n ...(withImApAccess && editBankImConfig\r\n ? [\r\n {\r\n type: UserConfigType.bankIssuanceMonitorAlert,\r\n value: editBankImConfig,\r\n },\r\n ]\r\n : []),\r\n ...(withDiAccess && editBankDiConfig\r\n ? [\r\n {\r\n type: UserConfigType.bankDealerInventoryAlert,\r\n value: editBankDiConfig,\r\n },\r\n ]\r\n : []),\r\n ];\r\n\r\n dispatch(imUserConfigActions.saveCompanyAlerts(configs));\r\n };\r\n\r\n return (\r\n \r\n Banks Alerts\r\n \r\n {selectedBank.legalName}\r\n \r\n \r\n }\r\n onClose={onClose}\r\n modalClass=\"modal-email-preferences\"\r\n >\r\n \r\n {withAnalyticsAccess && (\r\n
    \r\n \r\n setEditBankAnalyticsConfig({\r\n ...editBankAnalyticsConfig!,\r\n companyReferenceName:\r\n selectedBank.referenceName,\r\n alertOption,\r\n })\r\n }\r\n alertOptionInfo={{\r\n [AlertOption.Daily]:\r\n alertOptionTooltipText.Daily,\r\n }}\r\n requiredFeature={SubscriptionFeature.DealerProfileEmailAlerts}\r\n />\r\n
    \r\n )}\r\n
    \r\n \r\n setEditBankApConfig({\r\n ...editBankApConfig!,\r\n companyReferenceName:\r\n selectedBank.referenceName,\r\n alertOption:\r\n (a as AlertOption.Daily) ||\r\n AlertOption.Never,\r\n })\r\n }\r\n alertOptionInfo={{\r\n [AlertOption.Daily]: alertOptionTooltipText.Daily,\r\n [AlertOption.Instant]:\r\n \"Alerts are sent once bank’s upcoming transactions are published on Arranger Pipeline\",\r\n }}\r\n requiredFeatures={[SubscriptionFeature.DealerProfileEmailAlerts, SubscriptionFeature.IssuanceMonitorArrangerPipeline]}\r\n />\r\n
    \r\n
    \r\n \r\n setEditBankImConfig({\r\n ...editBankImConfig!,\r\n companyReferenceName:\r\n selectedBank.referenceName,\r\n alertOption:\r\n (a as AlertOption.Daily) ||\r\n AlertOption.Never,\r\n })\r\n }\r\n alertOptionInfo={{\r\n [AlertOption.Daily]:\r\n \"Alerts are sent at 5 PM EST every business day excluding holidays if bank’s transactions are published or updated\",\r\n [AlertOption.Instant]:\r\n \"Alerts are sent once bank’s transactions are published or updated\",\r\n }}\r\n requiredFeatures={[SubscriptionFeature.DealerProfileEmailAlerts, SubscriptionFeature.IssuanceMonitorDealUpdateEmailAlerts]}\r\n />\r\n
    \r\n
    \r\n \r\n setEditBankDiConfig({\r\n ...editBankDiConfig!,\r\n companyReferenceName:\r\n selectedBank.referenceName,\r\n alertOption:\r\n (a as AlertOption.Instant) ||\r\n AlertOption.Never,\r\n })\r\n }\r\n alertOptionInfo={{\r\n [AlertOption.Instant]:\r\n \"Alerts are sent once bank’s security was added/updated/marked as traded on the Dealer Inventory.\",\r\n }}\r\n requiredFeatures={[SubscriptionFeature.BwicMonitorAlerts]}\r\n />\r\n
    \r\n
    \r\n \r\n \r\n Manage Alerts\r\n \r\n \r\n \r\n Save {isAlertsInProgress && }\r\n \r\n \r\n \r\n );\r\n};\r\n","import { useCallback, useEffect, useRef } from 'react';\r\nimport { Redirect, Route, Switch, useHistory, useParams } from \"react-router\";\r\nimport { Preloader } from \"../common\";\r\nimport { BanksSelectionPanel } from \"./BanksSelectionPanel\";\r\nimport { routes } from \"../../constants\";\r\nimport { BanksTabType } from '../../types/banks/BanksTabType';\r\nimport { head, isNil } from 'lodash';\r\nimport { BankViewPage } from './BankViewPage';\r\nimport { BankEditPage } from './edit/BankEditPage';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { BanksState } from '../../types/state/BanksState';\r\nimport { banksActions } from '../../actions/banks.actions';\r\nimport BanksHeader from './BanksHeader';\r\nimport BanksContext from './banksContext';\r\nimport { canEditBank, hasBankAnalyticsAccess, isBrokerDealersOwnCompany } from '../../utils/amr-pipeline.utils';\r\nimport { BanksAlertsPopup } from \"./BanksAlertsPopup\";\r\nimport { imUserConfigActions } from \"../../actions\";\r\nimport { SubscriptionType } from '../../types/billing/SubscriptionType';\r\n\r\nconst EditTab = 'edit';\r\n\r\ninterface BanksRouteParams {\r\n referenceName: string;\r\n tab?: BanksTabType | typeof EditTab;\r\n}\r\n\r\nexport const Banks = () => {\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n const { referenceName, tab } = useParams();\r\n const {\r\n data,\r\n isLoading,\r\n isDetailsLoading,\r\n selectedBank,\r\n bankReferenceNameForAlert\r\n } = useSelector(state => state.banks);\r\n const userCompany = useSelector((state: AppState) => state.issuanceMonitor.amrPipelineCommon.userCompany);\r\n const submitHandler = useRef<() => Promise>();\r\n const bankForAlerts = data?.find(d => d.referenceName === bankReferenceNameForAlert);\r\n\r\n const banksLoaded = !isNil(data);\r\n const bankLegalName = selectedBank?.legalName;\r\n\r\n const contextValue = {\r\n canEdit: canEditBank(selectedBank, userCompany),\r\n ownCompany: isBrokerDealersOwnCompany(selectedBank, userCompany),\r\n hasAnalyticsAccess: hasBankAnalyticsAccess(selectedBank, userCompany),\r\n hasProArrangerSubscripion: selectedBank?.details?.subscription === SubscriptionType.pro,\r\n };\r\n\r\n const navigateToFirstBank = useCallback((tab?: BanksTabType) => {\r\n const firstBank = head(data);\r\n\r\n if (firstBank) {\r\n history.replace(routes.manageBanksUrl(firstBank.referenceName, tab || BanksTabType.ContactsAndEvents));\r\n }\r\n }, [history, data]);\r\n\r\n useEffect(() => {\r\n if (bankLegalName) {\r\n document.title = `${bankLegalName} - KTX ATS Platform`;\r\n }\r\n },[bankLegalName, tab]);\r\n\r\n useEffect(() => {\r\n if (!tab && referenceName) {\r\n history.replace(routes.manageBanksUrl(referenceName, BanksTabType.ContactsAndEvents));\r\n }\r\n\r\n if(!data) {\r\n dispatch(banksActions.getBanks(userCompany?.referenceName));\r\n return;\r\n }\r\n\r\n if (!tab && !referenceName) {\r\n navigateToFirstBank();\r\n }\r\n }, [dispatch, data, userCompany?.referenceName, tab, referenceName, history, navigateToFirstBank]);\r\n\r\n useEffect(() => {\r\n if (!referenceName || !banksLoaded) {\r\n return;\r\n }\r\n\r\n dispatch(banksActions.getBankDetails(referenceName));\r\n }, [dispatch, referenceName, banksLoaded]);\r\n\r\n useEffect(() => {\r\n if (referenceName || selectedBank) {\r\n return;\r\n }\r\n\r\n navigateToFirstBank(tab as BanksTabType);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [data, referenceName, history, selectedBank]);\r\n\r\n useEffect(() => {\r\n dispatch(imUserConfigActions.getUserConfig());\r\n\r\n return () => {\r\n dispatch(banksActions.reset());\r\n };\r\n }, [dispatch]);\r\n\r\n const handleViewBank = (referenceName: string) => {\r\n history.replace(routes.manageBanksUrl(referenceName));\r\n };\r\n\r\n if (!banksLoaded && !isLoading) {\r\n return ;\r\n }\r\n\r\n const handleEdit = () => {\r\n return history.replace(routes.manageBanksUrl(referenceName, EditTab));\r\n };\r\n\r\n const handleCancel = () => {\r\n return history.replace(routes.manageBanksUrl(referenceName));\r\n };\r\n\r\n const handleSave = () => {\r\n if (submitHandler.current) {\r\n submitHandler.current();\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 {selectedBank &&\r\n \r\n }\r\n \r\n \r\n selectedBank && submitHandler.current = handler} bank={selectedBank} />\r\n }\r\n />\r\n \r\n selectedBank && \r\n }\r\n />\r\n {referenceName && }\r\n \r\n \r\n
    \r\n {bankForAlerts && (\r\n dispatch(banksActions.setBankForAlertPopup(undefined))}\r\n />\r\n )}\r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n","export enum BankContactsColumn {\r\n fullName = 'fullName',\r\n linkedIn = 'linkedIn',\r\n distributionListIcon = 'distributionListIcon',\r\n title = 'title',\r\n email = 'email',\r\n officePhoneNumber = 'officePhoneNumber',\r\n mobilePhoneNumber = 'mobilePhoneNumber',\r\n}\r\n","import * as React from 'react';\r\nimport classNames from 'classnames';\r\nimport { formatUtils, numericUtils, stringUtils } from '../../../utils';\r\nimport { FormError, Checkbox } from '../../controls';\r\nimport { constants } from '../../../constants';\r\nimport { BidLevelDelta } from '../../common/bidding/BidLevelDelta';\r\nimport { BlockedFeatureContext } from '../../access/BlockedFeatureContext';\r\nimport { RevertBidButton } from \"../../common/RevertBidButton\";\r\nimport IconSVG from \"../../../styles/svg-icons\";\r\nimport { OnHoverTooltip } from \"../../common\";\r\n\r\ninterface Props {\r\n originalBid: number;\r\n bid?: string;\r\n axed: boolean;\r\n final: boolean;\r\n disabled?: boolean;\r\n error?: string;\r\n bidAttributesVisible: boolean;\r\n renderCommission: () => React.ReactNode;\r\n onBidChange: (bid: string | undefined, axed: boolean, final: boolean) => void;\r\n onRevert?: () => void;\r\n onLeave?: () => void;\r\n}\r\n\r\nexport function Bid({\r\n originalBid,\r\n bid,\r\n axed,\r\n final,\r\n disabled = false,\r\n bidAttributesVisible,\r\n error = '',\r\n renderCommission,\r\n onBidChange,\r\n onRevert,\r\n onLeave }: Props) {\r\n const isLevelChanged = originalBid\r\n ? originalBid !== numericUtils.numberOrDefault(bid)\r\n : !!Number(bid) && !stringUtils.isNullOrWhiteSpace(bid);\r\n const isBlocked = React.useContext(BlockedFeatureContext);\r\n const [hasFocus, setHasFocus] = React.useState(false);\r\n const levelInputRef = React.useRef(null);\r\n\r\n const handleFocus = (e: React.FocusEvent) => {\r\n e.target.select();\r\n setHasFocus(true);\r\n }\r\n const handleChange = (e: React.ChangeEvent) => {\r\n const rawValue = e.target.value;\r\n const changedBidValue = rawValue ? rawValue.replace(/\\s/g, '') : rawValue;\r\n\r\n if (changedBidValue && !(constants.bidNumber.test(changedBidValue))) {\r\n return null;\r\n }\r\n\r\n onBidChange(changedBidValue, axed, final);\r\n };\r\n const handleBlur = () => {\r\n setHasFocus(false);\r\n\r\n if (bid != null && numericUtils.isNumber(bid)) {\r\n const formatted = formatUtils.formatBid(+bid);\r\n onBidChange(formatted, axed, final);\r\n } else {\r\n const originalOrEmpty = originalBid ? formatUtils.formatBid(originalBid) : '';\r\n onBidChange(originalOrEmpty, axed, final);\r\n }\r\n\r\n if (onLeave) {\r\n onLeave();\r\n }\r\n }\r\n const handleRevert = () => {\r\n if (onRevert) {\r\n onRevert();\r\n }\r\n }\r\n\r\n const handleKeyDown = (e: React.KeyboardEvent) => {\r\n if (e.key === 'Enter') {\r\n setHasFocus(false);\r\n levelInputRef.current?.blur();\r\n }\r\n }\r\n\r\n const classes = classNames(\r\n 'display-inline',\r\n 'form-control-wrapper', {\r\n 'form-control-changed': isLevelChanged && !(disabled || isBlocked),\r\n 'form-control-error': !!error && isLevelChanged\r\n });\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n {\r\n hasFocus &&\r\n isLevelChanged &&\r\n bid &&\r\n originalBid != null &&\r\n originalBid > 0 &&\r\n \r\n }\r\n {isLevelChanged && typeof onRevert === 'function' && }\r\n
    {renderCommission()}
    \r\n
    \r\n {\r\n bidAttributesVisible &&\r\n <>\r\n
    \r\n \r\n \r\n \r\n onBidChange(bid, e.target.checked, final)}\r\n />\r\n
    \r\n
    \r\n \r\n \r\n \r\n onBidChange(bid, axed, e.target.checked)}\r\n />\r\n
    \r\n \r\n }\r\n
    \r\n
    \r\n );\r\n}\r\n","import { formatUtils } from '../../utils/format.utils';\r\nimport { AxedIcon } from '../bidding/common/AxedIcon';\r\nimport { FinalIcon } from '../bidding/common/FinalIcon';\r\n\r\ninterface Props {\r\n level: number;\r\n axed: boolean;\r\n final: boolean;\r\n commission: number;\r\n}\r\n\r\nexport function MyBidRequest({ level, axed, final, commission }: Props) {\r\n return (\r\n
    \r\n {formatUtils.formatBid(level)}\r\n
    {formatUtils.formatDecimal(commission, 4)}
    \r\n
    \r\n {axed && }\r\n {final && }\r\n
    \r\n
    \r\n );\r\n}\r\n","import * as React from 'react'\r\nimport { useSelector } from 'react-redux';\r\nimport { AppState } from '../../../types/state/AppState';\r\nimport { SubmitStatus } from '../../bidding/brokerDealer/confirm-bids/SubmitStatus';\r\nimport { isRequesting, isRequestSuccess, isRequestFailed } from '../../../utils/request-state.utils';\r\nimport { apiUtils, jsonUtils } from '../../../utils';\r\nimport { BidConflict } from '../../../types/bidding/BidConflict';\r\nimport { BuyerPosition } from '../../../types/bwic/BuyerPosition';\r\nimport { Process } from '../../../types/models/Process';\r\nimport { liveBiddingUtils } from '../../../utils/live-bidding.utils';\r\n\r\ninterface Props {\r\n position: BuyerPosition;\r\n process: Process;\r\n isSubmitting: boolean;\r\n bidsDueDateUtc: Date;\r\n}\r\n\r\nexport function SubmitBidRequestStatus({ position, process, isSubmitting, bidsDueDateUtc }: Props) {\r\n const apiOperation = useSelector((s: AppState) => s.apiOperation.requests.find(r => r.positionId === position.id));\r\n const liveBiddingStage2Expired = liveBiddingUtils.checkLiveBiddingStage2Expired(process, bidsDueDateUtc, position.latestBidSubmission);\r\n\r\n function parseConflict(jsonText: string) {\r\n const conflict: BidConflict | null = jsonText ? jsonUtils.tryParse(jsonText) : null;\r\n return conflict ?? undefined;\r\n }\r\n\r\n return (\r\n \r\n );\r\n}\r\n","import * as React from 'react'\r\nimport { useSelector } from 'react-redux';\r\nimport { RequestState } from '../../../constants/request-state';\r\nimport { BwicPositionBase } from '../../../types/bwic/BwicPositionBase';\r\nimport { AppState } from '../../../types/state/AppState';\r\nimport { apiUtils, isRequestFailed, isRequesting } from '../../../utils';\r\nimport { ReSubmitButton } from '../../bidding/brokerDealer/confirm-bids/ReSubmitButton';\r\n\r\ninterface Props {\r\n position: BwicPositionBase;\r\n isSubmitting: boolean;\r\n onClick: (positionId: number) => void\r\n}\r\n\r\nexport function ReSubmitBidRequestButton({ position, isSubmitting, onClick }: Props) {\r\n const apiOperation = useSelector((s: AppState) => s.apiOperation.requests.find(r => r.positionId === position.id));\r\n\r\n return (\r\n onClick(position.id)}\r\n />\r\n );\r\n}\r\n","import * as React from 'react';\r\nimport cn from 'classnames';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { BidRequest } from '../../../types/bid-as-dealer/BidRequest';\r\nimport Popup from '../../controls/Popup';\r\nimport { PopupBody, PopupFooter } from '../../controls';\r\nimport { Table } from '../../bidding/common/table';\r\nimport { IColumnDefinition } from '../../bidding/common/table/types/ColumnDefinition';\r\nimport { moneyUtils, formatUtils, isRequesting, isRequestSuccess, isRequestFailed, apiUtils } from '../../../utils';\r\nimport { BidLevelDelta } from '../../common/bidding/BidLevelDelta';\r\nimport { ColumnBuilder } from '../../bidding/common/table/columns/column-builder/ColumnBuilder';\r\nimport { CompanySlim } from '../../../types/company/CompanySlim';\r\nimport { AppState } from '../../../types/state/AppState';\r\nimport { ApiOperationType } from '../../../types/api-operation/ApiOperationType';\r\nimport { apiOperationActions } from '../../../actions';\r\nimport { SubmitBidRequestStatus } from './SubmitBidRequestStatus';\r\nimport { ReSubmitBidRequestButton } from './ReSubmitBidRequestButton';\r\nimport { constants } from '../../../constants';\r\nimport { StatusMessageSectionType } from \"../../../types/state/NotificationState\";\r\nimport { StatusMessageSection } from \"../../status-message/StatusMessageSection\";\r\nimport { BuyerPosition } from '../../../types/bwic/BuyerPosition';\r\nimport { BwicPositionBase } from '../../../types/bwic/BwicPositionBase';\r\nimport { Process } from '../../../types/models/Process';\r\nimport { liveBiddingUtils } from '../../../utils/live-bidding.utils';\r\nimport { OpenBiddingStatus } from '../../../types/enums/OpenBiddingStatus';\r\nimport { FinalIcon } from '../../bidding/common/FinalIcon';\r\nimport { AxedIcon } from '../../bidding/common/AxedIcon';\r\nimport { InfoTooltip } from '../../common/InfoTooltip';\r\n\r\ninterface Improvement {\r\n positionId: number;\r\n level: number;\r\n axed: boolean;\r\n final: boolean;\r\n commission: number;\r\n settlementAgent: CompanySlim;\r\n}\r\n\r\ninterface Props {\r\n bidRequests: BidRequest[];\r\n positions: BuyerPosition[];\r\n improvements: Improvement[];\r\n isSubmitting: boolean;\r\n process: Process;\r\n onConfirmed: () => void;\r\n onClose: () => void;\r\n onReSubmitSingle: (positionId: number) => void;\r\n bidsDueDateUtc: Date\r\n}\r\n\r\nexport function ConfirmBidRequestsPopup({\r\n bidRequests,\r\n positions,\r\n improvements,\r\n isSubmitting,\r\n process,\r\n onConfirmed,\r\n onClose,\r\n onReSubmitSingle,\r\n bidsDueDateUtc }: Props) {\r\n const dispatch = useDispatch();\r\n\r\n const [confirmPressed, setConfirmPressed] = React.useState(false);\r\n\r\n const isDirectBidOpetation = (e: ApiOperationType) =>\r\n e === ApiOperationType.SubmitAxedFinal ||\r\n e === ApiOperationType.SubmitBidRequest\r\n\r\n const hasPendingApiOperations = useSelector((s: AppState) =>\r\n s.apiOperation.requests.some(r => isRequesting(r.state) && isDirectBidOpetation(r.event))\r\n );\r\n const disabled = isSubmitting || hasPendingApiOperations;\r\n const finishedApiOperationsList = useSelector((s: AppState) => disabled\r\n ? []\r\n : s.apiOperation.requests.filter(r => (isRequestSuccess(r.state) || isRequestFailed(r.state)) && isDirectBidOpetation(r.event))\r\n );\r\n const finishedApiOperations = apiUtils.normalize(finishedApiOperationsList, o => o.positionId!, o => o);\r\n\r\n React.useEffect(() => {\r\n return () => {\r\n dispatch(apiOperationActions.resetEvent(ApiOperationType.SubmitAxedFinal));\r\n dispatch(apiOperationActions.resetEvent(ApiOperationType.SubmitBidRequest));\r\n }\r\n }, [dispatch]);\r\n\r\n const [position] = positions;\r\n\r\n if (!position) return null;\r\n\r\n\r\n const columnDefinitions: IColumnDefinition<{\r\n bidRequest?: BidRequest,\r\n position: BuyerPosition,\r\n improvement: Improvement\r\n }>[] = [\r\n {\r\n columnKey: 'isinCusip',\r\n renderColumnContent: item => item.position.isinCusip,\r\n renderColumnHeaderContent: () => 'Identifier',\r\n className: 'data-list-cell-sm'\r\n }, {\r\n columnKey: 'ticker',\r\n renderColumnContent: item => item.position.ticker,\r\n renderColumnHeaderContent: () => 'Ticker',\r\n className: 'data-list-cell-lg'\r\n }, {\r\n columnKey: 'size',\r\n renderColumnContent: item => moneyUtils.money(item.position.size),\r\n renderColumnHeaderContent: () => 'Bid Size',\r\n className: 'text-right'\r\n }, {\r\n columnKey: 'bid',\r\n renderColumnContent: item =>\r\n ,\r\n renderColumnHeaderContent: () => 'Bid',\r\n className: 'data-list-cell-md cell-bid-level'\r\n }, {\r\n columnKey: 'commission',\r\n renderColumnContent: item => item.improvement.commission.toFixed(constants.commissionDecimalPlaces),\r\n renderColumnHeaderContent: () => 'Comm, %',\r\n className: 'data-list-cell-xs text-right',\r\n }, {\r\n columnKey: 'total',\r\n renderColumnContent: item => formatUtils.formatBid(item.improvement.level + item.improvement.commission),\r\n renderColumnHeaderContent: () => <>Final Bid,\r\n headerClassName: 'text-right',\r\n bodyClassName: 'text-right text-bold'\r\n }, {\r\n columnKey: 'axed',\r\n renderColumnContent: item => <>{item.improvement.axed && },\r\n renderColumnHeaderContent: () => '',\r\n className: 'data-list-cell-xxxs padding-l-0 text-center'\r\n }, {\r\n columnKey: 'final',\r\n renderColumnContent: item => <>{item.improvement.final && },\r\n renderColumnHeaderContent: () => '',\r\n className: 'data-list-cell-xxxs padding-l-0 text-center'\r\n }, {\r\n columnKey: 'submit-status',\r\n renderColumnHeaderContent: () => 'Status',\r\n renderColumnContent: item =>\r\n ,\r\n className: 'data-list-cell-xl cell-submit-status'\r\n }, {\r\n columnKey: 'action-buttons',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: item =>\r\n liveBiddingUtils.checkLiveBiddingStage2Expired(process, bidsDueDateUtc, position.latestBidSubmission)\r\n || process.stagedBiddingStatus === OpenBiddingStatus.improvementRoundEnded ? null : ,\r\n className: 'data-list-cell-sm text-right',\r\n }\r\n ];\r\n\r\n const getGroupedData = () =>\r\n improvements\r\n .map(improvement => {\r\n const position = (positions as BwicPositionBase[]).find(p => p.id === improvement.positionId);\r\n const bidRequest = bidRequests.find(b => b.positionId === improvement.positionId);\r\n\r\n return position ? { bidRequest, position: position as BuyerPosition, improvement } : undefined;\r\n })\r\n .filter(i => i != null);\r\n\r\n const handleConfirm = () => {\r\n setConfirmPressed(true);\r\n onConfirmed();\r\n }\r\n\r\n return (\r\n { } : onClose}\r\n disabled={disabled}\r\n >\r\n \r\n \r\n A bid cannot be revoked or decreased;
    \r\n A bid must be good for at least 30 minutes beyond the bidding window;
    \r\n No security 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
    Seller will be notified if a bidder is bidding over themselves, but the KTX ATS platform does not enforce trading at the prior level.
    \r\n
    \r\n new ColumnBuilder(c))}\r\n dataItems={getGroupedData()}\r\n createSecurityCustomClassName={\r\n (dataItem: { position: BuyerPosition }) => {\r\n const operation = finishedApiOperations[dataItem.position.id];\r\n\r\n return cn({\r\n 'tradedaway':\r\n operation &&\r\n isRequestFailed(operation.state) &&\r\n operation.result &&\r\n operation.result.statusCode !== 409 &&\r\n operation.result.statusCode !== 300\r\n })\r\n }\r\n }\r\n />\r\n
    \r\n \r\n {\r\n confirmPressed &&\r\n \r\n }\r\n {\r\n !confirmPressed &&\r\n <>\r\n \r\n \r\n Confirm\r\n \r\n \r\n }\r\n \r\n \r\n );\r\n}\r\n","import * as React from 'react';\r\nimport classNames from 'classnames';\r\nimport { numericUtils } from '../../../utils';\r\nimport { FormError } from '../../controls';\r\nimport { BlockedFeatureContext } from '../../access/BlockedFeatureContext';\r\nimport { constants } from '../../../constants';\r\n\r\ninterface Props {\r\n originalCommission: number\r\n commission?: string\r\n disabled?: boolean\r\n error?: string\r\n onCommissionChange: (commission: string) => void\r\n onLeave?: () => void\r\n}\r\n\r\nexport function Commission({ originalCommission, commission, disabled = false, error = '', onCommissionChange, onLeave }: Props) {\r\n const isBlocked = React.useContext(BlockedFeatureContext);\r\n\r\n const handleFocus = (e: React.FocusEvent) => {\r\n e.target.select();\r\n }\r\n\r\n const handleChange = (e: React.ChangeEvent) => {\r\n const { value } = e.target;\r\n if (!value || numericUtils.isNumber(value)) {\r\n onCommissionChange(value);\r\n }\r\n };\r\n\r\n const handleBlur = () => {\r\n if (commission) {\r\n onCommissionChange((+commission).toFixed(constants.commissionDecimalPlaces));\r\n } else {\r\n onCommissionChange(originalCommission.toFixed(constants.commissionDecimalPlaces));\r\n }\r\n\r\n if (onLeave) {\r\n onLeave();\r\n }\r\n };\r\n\r\n return (\r\n
    \r\n \r\n \r\n
    \r\n );\r\n}\r\n"],"names":["BidAsDealerAgreementStatusLabel","_ref","status","rejectReason","_jsx","className","children","SettlementAgreementStatus","rejected","Popover","title","actionButton","toLowerCase","settlementAgreementStatusTitle","_jsxs","onClick","e","stopPropagation","BanksAlertsButton","isAlertOn","label","ActionBlocker","noTooltip","features","SubscriptionFeature","DealerProfileEmailAlerts","IssuanceMonitorArrangerPipeline","IssuanceMonitorDealUpdateEmailAlerts","BwicMonitorAlerts","blocked","AlertsButton","isSelected","BanksLabels","bank","showAlertSection","_ref$isAlertOn","_ref$showActivities","showActivities","dispatch","useDispatch","hasActiveTransactions","sendsPxTalk","existsOnDealerInventory","activitiesCount","compact","length","getTooltipOverlay","activities","undefined","reduce","acc","activity","concat","_Fragment","OnHoverTooltip","overlay","IconSVG","name","width","height","banksActions","setBankForAlertPopup","referenceName","BanksNavItem","forwardRef","ref","selected","searchTerm","withAlert","_useState","useState","_useState2","_slicedToArray","hovered","setHovered","legalName","isUserCompany","classNames","active","onMouseEnter","onMouseLeave","Highlighter","searchWords","autoEscape","textToHighlight","BanksSelectionPanel","_ref2","data","selectedReferenceName","onChange","collapsed","setCollapsed","_useState3","_useState4","setSearchTerm","selectedBankRef","useRef","alertConfigs","useSelector","state","imUserConfig","userCompany","issuanceMonitor","amrPipelineCommon","withAnalyticsAccess","hasBankAnalyticsAlertsChangeAccess","withDiAccess","user","hasFeatures","InventoryAlerts","withImApAccess","hasAllFeatures","apply","_toConsumableArray","bankImApRequiredFeatures","bankAnalyticsConfig","getAlertValues","bankAnalyticsAlert","value","bankApConfig","bankArrangerPipelineAlert","bankImConfig","bankIssuanceMonitorAlert","bankDealerInventoryConfig","bankDealerInventoryAlert","useEffect","customEvent","document","createEvent","initEvent","window","dispatchEvent","_selectedBankRef$curr","current","scrollIntoView","behavior","block","banks","filter","toLocaleLowerCase","includes","trim","searchBanks","classnames","SelectionPanelSearch","placeholder","onCollapseClick","onSearch","map","_bankAnalyticsConfig$","_bankApConfig$get","_bankImConfig$get","_bankDealerInventoryC","get","alertOption","some","alert","AlertOption","Never","EmptyPlaceholder","text","textView","BanksKWatchNewsWidget","companyReferenceName","_useBankNews","_useState9","RequestState","none","_useState10","requestState","setRequestState","_useState11","_useState12","news","setNews","hasRoles","roles","Media","isRequestNone","doRequest","_ref3","_asyncToGenerator","_regeneratorRuntime","mark","_callee3","_news","wrap","_context3","prev","next","request","newsService","getNews","arrangerReferenceNames","categories","NewsCategory","Primary","Secondary","Research","sent","success","t0","failure","stop","arguments","useBankNews","KWatchNewsWidget","onAllNewsClick","logUserActivity","BankAccessType","ContactsEventsAllNews","BankEvents","events","event","published","dangerouslySetInnerHTML","__html","description","React","canEdit","ownCompany","hasAnalyticsAccess","hasProArrangerSubscripion","bankContactsColumns","columnKey","BankContactsColumn","fullName","renderColumnHeaderContent","contactsColumnsLabels","renderColumnContent","contact","firstName","lastName","join","constants","emptyPlaceholder","linkedIn","onLinkedInClick","target","rel","href","distributionListIcon","type","headOfTrading","ContactType","DistributionList","HeadOfDesk","email","officePhoneNumber","_ref4","ValueBlocker","feature","DealerProfileBankContacts","overrideRequiredFeatures","mobilePhoneNumber","_ref5","c","ColumnBuilder","BankContacts","useContext","BanksContext","_useSelector","selectedBank","syndicateContacts","primaryContacts","secondaryContacts","allContactsCount","items","allHiddenContactsCount","numberOfHiddenItems","isBrokerDealer","bd","renderTable","primaryOrSecondary","contacts","Table","columns","dataItems","createSecurityCustomArgs","bankAccessType","ContactsEventsIn","BlockedFeatureContent","inline","SubscribeLink","ContactsAndEvents","SectionContent","ShowFor","getAllRolesExclude","RequiredFeature","DealerProfileBankEvents","renderBlockedContent","Statistics","stats","redirectToIssuanceMonitor","qsBuilder","queryString","open","location","origin","routes","AMRPipeline","redirectToArrangerPipeline","searchParams","arrangers","imPipelineTab","IssuanceMonitorTab","ArrangerPipeline","serializer","queryStringSerializer","serialize","PrimaryStatUpcomingDealsDoor","redirectToAmrDeals","transactionStatuses","StatisticsChartsTransactionStatuses","transactionTypes","StatisticsChartsTransactionTypes","amr","PrimaryStatAmrDealDoor","redirectToTotalTransactions","hasImAccess","PrimaryStatTotalTransactionsDoor","redirectToActiveTransactions","TransactionStatus","Active","PrimaryStatActiveTransactionsDoor","redirectToVolume","currency","collateralType","collateralTypes","multipleCurrencies","PrimaryStatVolDoor","StatisticsItem","showLink","usdBslCount","redirectRequiredFeatures","DealerProfilePieCharts","onLinkClick","Currency","USD","CollateralType","broadlySyndicated","AumStatisticsItem","usdBslVolume","count","usdMmCount","middleMarket","usdMmVolume","eurBslCount","EUR","eurBslVolume","eurMmCount","eurMmVolume","activeTransactions","TotalStatisticsItem","totalTransactions","IssuanceMonitorFiltersEmailAlerts","totalPipelines","numberOfAmrTransactions","managersTransactionColumns","manager","collateralManager","manageCloManagerUrl","sortingField","sortingType","SORTING_TYPE","string","newIssueCount","number","refinancingCount","resetCount","context","totalCount","DealerProfileTransactionsCount","disabled","CollateralTypesList","allListItem","CurrencyList","AvailableYears","getAvailableYears","ManagersTransactionCountFilter","filters","_objectWithoutProperties","_excluded","isFilterChanged","isEqual","defaultFilterValues","handleValueChange","prop","_objectSpread","_defineProperty","renderSelectedWithPrefix","prefix","item","FilterPanel","FilterSection","DropDownList","x","defaultSortingEnabled","renderSelectedItemCallback","YearSelector","years","selectedYear","year","currentYearPrefix","showAllOption","FilterClear","isShown","isDisabled","ManagersTransactionCount","companyLegalName","managerTransactions","exportTransactionCountLoading","filterChanged","setFilterChanged","setFilter","_useState5","field","direction","SORT","DESC","_useState6","orderBy","setOrderBy","_useSortedList","useSortedList","sort","a","b","compareStrings","sortedManagerTransactions","handleFilterChange","managersTransactionCountFilter","collateralManagers","PrimaryTotalTransactionsDoor","actionBtn","ImExportButton","handleExport","exportTransactionCountRequest","currencyCodes","ascending","ASC","isExportLoad","onSort","defaultSortBy","defaultSortByDirection","bankArrangerPipelineColumns","defaultLastUpdatedColumn","date","defaultDealNameColumn","defaultManagerColumn","company","defaultTransactionTypeColumn","defaultCollateralTypeColumn","defaultNonCallPeriodEndColumn","defaultReinvestmentPeriodEndColumn","defaultExpectedTimingColumn","defaultDealStageColumn","defaultEuComplianceColumn","boolean","defaultAnchorColumn","defaultEquityColumn","defaultDisclosureFileColumn","defaultManagerPresentationFileColumn","BankArrangerPipeline","_useContext","_useArrangerPipeline","_useState7","_useState8","pipelines","setPipelines","_callee2","_pipelines","_context2","amrArrangerPipelineService","getArrangerPipelines","MAX_BACKEND_INT","offset","defaultArrangerPipelineOrderCriteria","useArrangerPipeline","arrangerPipelinesDocs","useMemo","managerPresentations","disclosureFiles","forEach","ap","presentation","managerPresentationFile","disclosure","disclosureFile","push","_useDownloadDocumentL","useDownloadDocumentList","documents","downloadRequest","_len","rest","Array","_key","downloadManagerPresentation","managerPresentationLoadHandler","loadHandler","managerPresentationLoadingState","loadingState","_useDownloadDocumentL2","_len2","_key2","downloadDisclosureFile","disclosureLoadHandler","disclosureLoadingState","PrimaryArrangerPipelineIssuanceMonitor","Preloader","inProgress","isRequesting","DealerProfileArrangerPipeline","p","actions","onManagerClick","PrimaryArrangerPipelineManagersName","managerPresentationAccessType","CloManagerAccessType","DownloadManagerPresentationFileFromBank","bankReferenceName","isManagerPresentationDownloading","isDisclosureDownloading","dealColumns","isNewColumn","createLastUpdatedColumn","DealerProfileDeals","IssuanceMonitorHistoricalData","dealNameColumn","dealTickerColumn","PipelineColumn","pipelineColumnLabels","transaction","ManagerLink","transactionStatusColumn","transactionTypeColumn","transactionCollateralTypeColumn","transactionCurrencyColumn","transactionSizeColumn","pricingDateColumn","closingDateColumn","nonCallPeriodEndColumn","nonCallPeriodEndYrsColumn","outOfNcColumn","reinvestmentPeriodEndColumn","reinvestmentPeriodEndYrsColumn","outOfRiColumn","collapseStickRightColumn","dealOptionsColumn","dealIntexColumn","createGoToColumn","createRelatedTransactionsColumn","IssuanceMonitorMarketingHistory","BankDeals","transactionForIntex","setTransactionForIntex","_useDeals","transactions","setTransactions","_callee","_transactions","_context","amrPipelineService","getBankTransactions","useDeals","logColumnClick","Priced","OnHold","Closed","PrimaryIssuanceMonitor","convertToTableItem","onLastUpdatedClick","PrimaryDealsLastUpdated","onVersionHistoryClick","PrimaryDealsLastUpdatedTransactionVersion","PrimaryDealsManagersName","sticky","createRowCustomKey","t","IntexPopup","omitArrangerProOverride","onCloseClick","aggregatedManagersCount","details","params","redirectToIMWithCurrency","PrimaryPieGeographicMixDoor","redirectToIMWithESG","esgDeals","esg","PrimaryPieEsgDealsDoor","redirectToIMWithEUCompliance","euComplianceDeals","euCompliance","PrimaryPieEuCompliantDoor","redirectToIMWithStaticDeals","staticDeal","staticDeals","PrimaryPieStaticDealsDoor","redirectToIMWithOutOfNC","isOutOfNC","outOfNC","PrimaryPieOutOfNCDoor","redirectToIMWithOutOfRI","isOutOfRI","outOfRI","PrimaryPieOutOfRIDoor","StatisticsChart","onSectionClick","values","usdDeals","eurDeals","labels","colors","sections","DealerProfileStatistics","nonEsgDeals","euCompliantDeals","nonEuCompliantDeals","nonStaticDeals","notOutOfNC","notOutOfRI","bwicsPxTalkColumns","bwic","BwicStatusLabel","ticker","rating","moneyUtils","amountToMM","size","moment","bwicBidsDueDateUtc","format","dateTimeFormat","formatUtils","formatPxTalk","pxTalks","companyCode","companyPxTalks","DealerProfileBanksBWICsPxTalk","color","formatColor","createLinkToBwicMonitor","BwicMonitorBwicsData","Link","to","stickRight","BWICsPxTalk","_useBWICsPriceTalks","_useState13","_useState14","_useState15","_useState16","bwics","setBwics","_callee4","_bwics","_context4","banksService","getBwicsPriceTalks","useBWICsPriceTalks","isinCusipsAndTickers","dateFrom","Date","sorting","BwicMonitorSortByOptions","NewestFirst","identifiers","allBWICs","createHeaderCustomArgs","code","General","FormField","infoTooltip","recentProfileViews","DealerProfileAnalytics","totalProfileViews","dealViews","ViewedTabs","totalViews","sum","pick","PercentageBar","maxValue","viewedTabsContactsEvents","viewedTabsPrimary","viewedTabsSecondary","OverviewSection","views","BankAccessTypes","ContactsSection","userSession","userFullName","userEmail","overlayClassName","userPhoneNumber","ProfileViewHistoryPopover","formattedActionDate","dateTimeUtils","utcToLocalString","accessDateTime","PseudoLink","IssuanceMonitorFullAccess","showCloseButton","profileViewHistoryColumnsDefinition","profileSession","ProportionBar","FollowUp","selector","analytics","ProfileViewHistoryWidget","withAnalyticsRequest","profileViewHistoryRequest","dateTo","profileHistoryViews","isLoaded","users","AnalyticsWidget","isLoading","onFilterChange","profileViewHistoryFilterChange","tabDefinitions","ProfileViewHistoryTable","requiredFeature","ClientsActivityWidget","clientsActivityRequest","clientsActivity","accessTypes","useCallback","clientsActivityFilterChange","handleBarClick","accessType","profileViewHistoryFilterByBar","filteredClientsActivity","row","tabs","chart","ClientsActivityChart","onBarClick","ChartRequiredFeature","chartName","blockedClassName","Analytics","_useSelector$analytic","general","analyticsInit","analyticsReset","presentationDownloads","transactionViewHistory","TransactionViewHistoryWidget","TabTypeToAccessType","BanksTabType","ContactsEventsTab","PrimaryTab","SecondaryTab","BankViewPage","_useParams","useParams","tab","history","useHistory","selectedTab","accessibleTabs","BanksTabTypes","tabType","TabList","TabItem","replace","manageBanksUrl","handleTabChange","TabContent","TabBody","renderActiveTab","EventItem","onDelete","capitalize","JoditEditor","maxLength","uploadPath","Checkbox","checked","EmptyEvent","Events","allEventsEmpty","every","stringUtils","isHTMLEmpty","maxEventsCountReached","handleDelete","eventIndex","changedEvents","_","index","BanksValidationSchema","Yup","shape","headOfDesk","optional","errorMessages","invalidEmail","distributionListEmail","nullable","when","is","isNil","then","typeError","empty","required","otherwise","BankEditPage","setSubmitHandler","useAppDispatch","formRef","editBank","editBankReset","gridActions","reset","init","gridColumns","banksContacts","gridRowsLimit","submitForm","initialValuesWithEvents","Formik","initialValues","innerRef","validationSchema","onSubmit","validate","updateBank","_values$headOfTrading","_values$headOfTrading2","setFieldValue","dirty","isSubmitting","RouteLeavingGuard","navigate","pathname","shouldBlockNavigation","TextField","Grid","dataUploadDisabled","edit","onEdit","onSave","onCancel","isUpdating","withAlerts","withTurnedOnAlerts","defaultHeader","editHeader","alertsButton","spacer","BanksAlertsPopup","onClose","isUserConfigUpdating","isUserConfigDeleting","isDeleting","find","hasBankAnalyticsAlertsAccess","withAnalyticsChangeAccess","editBankAnalyticsConfig","setEditBankAnalyticsConfig","editBankApConfig","setEditBankApConfig","editBankImConfig","setEditBankImConfig","editBankDiConfig","setEditBankDiConfig","bankApAlert","bankImAlert","bankDiAlert","selectedBankAnalyticsAlert","selectedBankApAlert","selectedBankImAlert","selectedBankDiAlert","isAlertsInProgress","isSaveDisabled","saving","setSaving","Popup","modalClass","PopupBody","EmailPreferencesRadioGroup","alertOptions","analyticAlertOptions","groupNameIndentifier","alertDescriptions","alertOptionInfo","Daily","alertOptionTooltipText","arrangersPipeline","Instant","requiredFeatures","secondaryStatsAlertOptions","dealerInventory","PopupFooter","profileNotificationsTab","EmailPreferencesTab","Banks","configs","UserConfigType","imUserConfigActions","saveCompanyAlerts","small","EditTab","_selectedBank$details","isDetailsLoading","bankReferenceNameForAlert","submitHandler","bankForAlerts","d","banksLoaded","bankLegalName","contextValue","canEditBank","isBrokerDealersOwnCompany","hasBankAnalyticsAccess","subscription","SubscriptionType","pro","navigateToFirstBank","firstBank","head","getBanks","getBankDetails","getUserConfig","Redirect","notFound","Provider","fullScreen","BanksHeader","Switch","Route","exact","path","render","handler","manageBank","Bid","originalBid","bid","axed","final","_ref$disabled","bidAttributesVisible","_ref$error","error","renderCommission","onBidChange","onRevert","onLeave","isLevelChanged","numericUtils","numberOrDefault","Number","isNullOrWhiteSpace","isBlocked","BlockedFeatureContext","_React$useState","_React$useState2","hasFocus","setHasFocus","levelInputRef","classes","formatBid","onFocus","select","rawValue","changedBidValue","bidNumber","test","onBlur","isNumber","formatted","originalOrEmpty","onKeyDown","_levelInputRef$curren","key","blur","FormError","message","BidLevelDelta","currentLevel","updatedLevel","updatedLevelVisible","tooltip","RevertBidButton","MyBidRequest","level","commission","formatDecimal","AxedIcon","FinalIcon","SubmitBidRequestStatus","_apiOperation$result","_apiOperation$result2","_apiOperation$result3","_apiOperation$result4","_apiOperation$result5","_apiOperation$result6","_apiOperation$result7","_apiOperation$result8","_apiOperation$result9","_apiOperation$result10","_apiOperation$result11","position","process","bidsDueDateUtc","apiOperation","s","requests","r","positionId","id","liveBiddingStage2Expired","liveBiddingUtils","checkLiveBiddingStage2Expired","latestBidSubmission","SubmitStatus","trade","isTradedAway","isSuccess","isRequestSuccess","isFailed","isRequestFailed","isPass","conflict","result","statusCode","response","jsonText","jsonUtils","tryParse","parseConflict","stageTransitionConflict","isBidOverThemself","validationError","apiUtils","parseErrorMessage","isLoggedOut","ReSubmitBidRequestButton","_apiOperation$result$","ReSubmitButton","isValidationError","Boolean","hasStageTransitionConflict","hasConflict","ConfirmBidRequestsPopup","bidRequests","positions","improvements","onConfirmed","onReSubmitSingle","confirmPressed","setConfirmPressed","isDirectBidOpetation","ApiOperationType","SubmitAxedFinal","SubmitBidRequest","hasPendingApiOperations","finishedApiOperationsList","finishedApiOperations","normalize","o","apiOperationActions","resetEvent","columnDefinitions","isinCusip","money","_item$bidRequest$leve","_item$bidRequest","bidRequest","improvement","toFixed","commissionDecimalPlaces","InfoTooltip","headerClassName","bodyClassName","stagedBiddingStatus","OpenBiddingStatus","improvementRoundEnded","StatusMessageSection","StatusMessageSectionType","Alert","i","createSecurityCustomClassName","dataItem","operation","cn","Commission","originalCommission","onCommissionChange"],"sourceRoot":""}