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,EAAAA,KAACwE,EAAAA,EAAO,CAACJ,MAAK,GAAAc,QAAAC,EAAAA,EAAAA,GAAMf,EAAAA,GAAMgB,UAAQ,CAAEhB,EAAAA,GAAMM,oBAAqBN,EAAAA,GAAME,qBAAoBzB,UACzH7C,EAAAA,EAAAA,KAACwoB,EAAAA,EAAO,CACJ/K,MAAM,OACN5X,KAAMyiB,EAAOviB,EAAAA,GAAOijB,SAAWjjB,EAAAA,GAAOkjB,WACtCP,OAAQnmB,IAAcvF,EAAAA,EAAYM,WAKtD,C","sources":["components/allBWICS/AllBwicsTab.ts","components/allBWICS/AllBwicsFilter.tsx","components/allBWICS/MyBwicCustomButtons.tsx","components/allBWICS/AllBWICCustomButtons.tsx","components/allBWICS/BuyerBidButton.tsx","components/allBWICS/ViewBwicRulesButton.tsx","components/allBWICS/BwicTradedAmount.tsx","components/allBWICS/AllBwicsControlPanel.tsx","components/allBWICS/BwicGroupView.tsx","components/allBWICS/BwicsResultExist.tsx","components/allBWICS/AllBwicsSummaryRow.tsx","components/allBWICS/AllBwics.tsx","components/allBWICS/statsColumns.tsx","components/allBWICS/Stats.jsx","components/allBWICS/AllBwicsTabList.tsx"],"sourcesContent":["export enum AllBwicsTab {\r\n All,\r\n Buy,\r\n Sell\r\n}\r\n","import { useEffect, useMemo } from 'react';\r\nimport { allBWICSActions } from '../../actions';\r\nimport { createFilterActions } from '../../actions/filter.actions';\r\nimport { RequestState } from '../../constants/request-state';\r\nimport { useAppSelector } from '../../effects/useAppSelector';\r\nimport { BwicFilterType } from '../../types/filters/FilterState';\r\nimport { PageConfigType } from '../../types/page-config/PageConfigType';\r\nimport { bwicMonitorBuyFilters, bwicMonitorFilters, bwicMonitorSellFilters } from '../../types/state/AllBwicsState';\r\nimport { FiltersState } from '../../types/state/FiltersState';\r\nimport { isRequestNone, isRequestSuccess, isRequesting } from '../../utils';\r\nimport { BwicFilters } from '../filters/BwicFilters';\r\nimport { AllBwicsTab } from './AllBwicsTab';\r\nimport { SubscriptionFeature } from '../../types/billing/SubscriptionFeature';\r\nimport { useAppDispatch } from '../../effects/useAppDispatch';\r\nimport { AlertOption } from '../../types/email-preferences/EmailPreferences';\r\nimport { textLabels } from \"../../constants/text-labels\";\r\n\r\ninterface Props {\r\n tab: AllBwicsTab;\r\n disabled?: boolean;\r\n myBwicsExist: boolean;\r\n requestStateIsMyBwicsExist: RequestState;\r\n}\r\n\r\nexport function getFilterType(tab: AllBwicsTab) {\r\n switch (tab) {\r\n case AllBwicsTab.Buy:\r\n return BwicFilterType.BwicMonitorBuy;\r\n case AllBwicsTab.Sell:\r\n return BwicFilterType.BwicMonitorSell;\r\n default:\r\n return BwicFilterType.BwicMonitor;\r\n }\r\n}\r\n\r\nfunction getState(tab: AllBwicsTab, state: FiltersState) {\r\n switch (tab) {\r\n case AllBwicsTab.Buy:\r\n return state.bwicMonitorBuy;\r\n case AllBwicsTab.Sell:\r\n return state.bwicMonitorSell;\r\n default:\r\n return state.bwicMonitor;\r\n }\r\n}\r\n\r\nfunction getAdditionalFilters(tab: AllBwicsTab) {\r\n switch (tab) {\r\n case AllBwicsTab.Buy:\r\n return bwicMonitorBuyFilters.additionalFilters;\r\n case AllBwicsTab.Sell:\r\n return bwicMonitorSellFilters.additionalFilters;\r\n default:\r\n return bwicMonitorFilters.additionalFilters;\r\n }\r\n}\r\n\r\nexport const AllBwicsFilter = (\r\n { tab, disabled = false, myBwicsExist, requestStateIsMyBwicsExist }: Props\r\n) => {\r\n const dispatch = useAppDispatch();\r\n\r\n const filterType = useMemo(() => getFilterType(tab), [tab]);\r\n const filterActions = useMemo(() => createFilterActions(filterType), [filterType]);\r\n\r\n const isFilterChanged = useAppSelector(s => getState(tab, s.filters).filterChanged);\r\n const isFilterModified = useAppSelector(s => getState(tab, s.filters).filterModified);\r\n const visibleFilters = useAppSelector(s => getState(tab, s.filters).visibleFilters);\r\n const filter = useAppSelector(s => getState(tab, s.filters).filter);\r\n const lastAppliedFilter = useAppSelector(s => getState(tab, s.filters).lastAppliedFilter);\r\n const searchInProgress = useAppSelector(s => s.allBWICS.searchInProgress);\r\n const isNextPageRequesting = useAppSelector(s => s.allBWICS.isNextPageRequesting);\r\n const selectedFilterReferenceName = useAppSelector(s => getState(tab, s.filters).selectedFilterReferenceName);\r\n\r\n useEffect(() => {\r\n if (isRequestSuccess(requestStateIsMyBwicsExist) && !myBwicsExist) {\r\n dispatch(filterActions.resetFiltersAndUnselectSavedFilter());\r\n }\r\n }, [myBwicsExist, requestStateIsMyBwicsExist, tab, dispatch, filterActions]);\r\n\r\n return (\r\n dispatch(filterActions.filterVisibilityChange(key))}\r\n onApply={() => {\r\n dispatch(allBWICSActions.advancedFilterBlocked(false));\r\n dispatch(allBWICSActions.searchBwics(tab, true))\r\n }}\r\n onReset={() => {\r\n dispatch(filterActions.resetFiltersAndUnselectSavedFilter());\r\n dispatch(allBWICSActions.searchBwics(tab, true));\r\n }}\r\n />\r\n )\r\n}\r\n","import { onBoardingTooltipConst, roles } from '../../constants';\r\nimport { BwicSearchResult } from '../../types/bwic-monitor/BwicSearchResult';\r\nimport { BwicStatus } from '../../types/enums/BwicStatus';\r\nimport { ShowFor } from '../access';\r\nimport { ExportButton } from '../bidding/common';\r\nimport { ContextMenu } from '../controls';\r\nimport { OnBoardingTooltip } from '../onBoarding/OnBoardingTooltip';\r\nimport { AllBwicsTab } from './AllBwicsTab';\r\nimport { BwicViewLink } from '../common/BwicViewLink';\r\n\r\ninterface Props {\r\n bwic: BwicSearchResult;\r\n bwicIndex: number;\r\n activeTab: AllBwicsTab;\r\n onCancel: (bwic: BwicSearchResult) => void;\r\n}\r\n\r\nexport function MyBwicCustomButtons({ bwic, bwicIndex, onCancel, activeTab }: Props) {\r\n return (\r\n
e.stopPropagation()}>\r\n
e.stopPropagation()}>\r\n \r\n {bwicIndex === 0 && }\r\n
\r\n {\r\n activeTab === AllBwicsTab.Sell &&\r\n
\r\n {\r\n bwic.status === BwicStatus.scheduled &&\r\n onCancel(bwic)\r\n }]}\r\n />\r\n }\r\n
\r\n }\r\n \r\n
\r\n {\r\n bwic.status === BwicStatus.finished &&\r\n \r\n }\r\n
\r\n
\r\n
\r\n );\r\n}\r\n","import { onBoardingTooltipConst, roles } from '../../constants';\r\nimport { BwicSearchResult } from '../../types/bwic-monitor/BwicSearchResult';\r\nimport { ShowFor } from '../access';\r\nimport { Relative } from '../common';\r\nimport { OnBoardingTooltip } from '../onBoarding/OnBoardingTooltip';\r\nimport { BwicViewLink } from '../common/BwicViewLink';\r\n\r\ninterface Props {\r\n bwicIndex: number;\r\n bwic: BwicSearchResult;\r\n}\r\n\r\nexport const AllBWICCustomButtons = ({ bwicIndex, bwic }: Props) => {\r\n return (\r\n
e.stopPropagation()}>\r\n \r\n \r\n \r\n {\r\n bwicIndex === 0 &&\r\n \r\n }\r\n \r\n \r\n
\r\n );\r\n}\r\n","import * as React from 'react';\r\nimport { urlBuilder } from '../../services/url.builder';\r\nimport { BwicSearchResult } from '../../types/bwic-monitor/BwicSearchResult';\r\nimport { canBid } from '../../utils/direct-bidding.utils';\r\nimport {\r\n DirectBiddingDisclaimerActionBlocker\r\n} from '../direct-bidding-agreement-disclaimer/DirectBiddingDisclaimerActionBlocker';\r\nimport { FeatureButton } from '../access/FeatureButton';\r\nimport { TooltipPlacement } from '../common/Tooltip';\r\nimport { roles, routes } from '../../constants';\r\nimport { useHistory } from 'react-router';\r\nimport { BwicPositionSearchResult } from '../../types/bwic-monitor/BwicPositionSearchResult';\r\nimport { useAgreement } from '../seller-buyside/useAgreement';\r\nimport { OnHoverTooltip } from '../common/OnHoverTooltip';\r\nimport { RoleActionBlocker } from '../access/RoleActionBlocker';\r\n\r\ninterface Props {\r\n bwic: BwicSearchResult;\r\n position: BwicPositionSearchResult;\r\n}\r\n\r\nexport function BuyerBidButton({ bwic, position }: Props) {\r\n const history = useHistory();\r\n const { agreement } = useAgreement();\r\n\r\n const handleClick = () => {\r\n const path = urlBuilder(routes.sellerBuy, { statuses: 'Scheduled,Bidding', isinCusipsAndTickers: encodeURI(position.ticker) });\r\n history.push(path);\r\n };\r\n\r\n const canImprove = canBid(bwic.status, bwic.isColorDistribution, false, agreement);\r\n\r\n if (canImprove) {\r\n return (\r\n
e.stopPropagation()}>\r\n \r\n {\r\n (blocked: boolean) =>\r\n \r\n \r\n \r\n Bid\r\n \r\n \r\n \r\n }\r\n \r\n
\r\n );\r\n }\r\n\r\n return null;\r\n}\r\n","import * as React from 'react';\r\nimport cn from 'classnames';\r\nimport { useSelector } from 'react-redux';\r\nimport { BwicSearchResult } from '../../types/bwic-monitor/BwicSearchResult';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { allBWICSActions, rulesActions } from '../../actions';\r\nimport { onBoardingTooltipConst } from '../../constants';\r\nimport { OnBoardingTooltip } from '../onBoarding/OnBoardingTooltip';\r\nimport { useAppDispatch } from '../../effects/useAppDispatch';\r\nimport { BwicRulesPseudoLink } from '../common/BwicRulesPseudoLink';\r\n\r\ninterface Props {\r\n bwic: BwicSearchResult;\r\n rowIndex: number;\r\n isBrokerDealer: boolean;\r\n}\r\n\r\nexport function ViewBwicRulesButton({ bwic, rowIndex, isBrokerDealer }: Props) {\r\n const dispatch = useAppDispatch();\r\n\r\n const bwicRulesVisible = !!useSelector((s: AppState) => s.rules.show)\r\n const activeBwic = useSelector((s: AppState) => s.allBWICS.activeBwicReferenceName\r\n ? s.allBWICS.bwics?.find(b => b.referenceName === s.allBWICS.activeBwicReferenceName)\r\n : null);\r\n const activePositionId: number | undefined = useSelector((s: AppState) =>\r\n (s.bwicHistory.visible && s.bwicHistory.positionId) ||\r\n (s.securityDetails.security && s.securityDetails.security.id) ||\r\n (s.bwicLog.security && s.bwicLog.security.id) ||\r\n (s.rules.show && s.rules.positionId) ||\r\n (s.pxTalkList.visible && s.pxTalkList.positionId)\r\n );\r\n\r\n const isBwicRulesVisible = bwicRulesVisible && activeBwic && activeBwic.referenceName === bwic.referenceName && !activePositionId;\r\n\r\n const handleRulesClick = (e: React.MouseEvent) => {\r\n e.stopPropagation();\r\n dispatch(allBWICSActions.setActiveBwic(bwic.referenceName));\r\n\r\n if (bwicRulesVisible &&\r\n activeBwic &&\r\n activeBwic.referenceName === bwic.referenceName &&\r\n !activePositionId) {\r\n dispatch(rulesActions.hide());\r\n dispatch(allBWICSActions.setActiveBwic(undefined));\r\n } else {\r\n dispatch(rulesActions.show(undefined, true));\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n\r\n \r\n {\r\n rowIndex === 0 &&\r\n \r\n }\r\n \r\n );\r\n\r\n}\r\n","import * as React from 'react';\r\nimport { BwicSearchResult } from '../../types/bwic-monitor/BwicSearchResult';\r\nimport { BwicStatus } from '../../types/enums/BwicStatus';\r\nimport { isActiveTrade } from '../../types/trades/TradeStatus';\r\nimport { moneyUtils } from '../../utils/money.utils';\r\nimport IconSVG from '../../styles/svg-icons';\r\nimport { SellerBwicPositionSearchResult } from '../../types/bwic-monitor/BwicPositionSearchResult';\r\n\r\ninterface Props {\r\n bwic: BwicSearchResult;\r\n}\r\n\r\nexport function BwicTradedAmount({ bwic }: Props) {\r\n if (bwic.isParsed || bwic.status !== BwicStatus.finished) return null;\r\n\r\n const tradedAmount = bwic.securities\r\n .filter(s => isActiveTrade((s as SellerBwicPositionSearchResult).trade))\r\n .map(s => (s as SellerBwicPositionSearchResult).trade?.size ?? 0)\r\n .reduce((accumulator, value) => accumulator + value, 0);\r\n\r\n if (!tradedAmount) return null;\r\n\r\n return (\r\n \r\n \r\n Traded: {moneyUtils.amountToMM(tradedAmount, true)}\r\n \r\n );\r\n}\r\n","import { ControlPanel } from '../bidding/common/ControlPanel';\r\nimport { useSelector } from 'react-redux';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { allBWICSActions } from '../../actions';\r\nimport { user } from '../../user';\r\nimport { roles } from '../../constants';\r\nimport { useAppDispatch } from '../../effects/useAppDispatch';\r\nimport { SubscriptionFeature } from '../../types/billing/SubscriptionFeature';\r\n\r\nexport function AllBwicsControlPanel() {\r\n const dispatch = useAppDispatch();\r\n\r\n const activeBwic = useSelector((s: AppState) => s.allBWICS.activeBwicReferenceName\r\n ? s.allBWICS.bwics?.find(b => b.referenceName === s.allBWICS.activeBwicReferenceName)\r\n : null);\r\n\r\n return dispatch(allBWICSActions.setActiveBwic(null))}\r\n />\r\n}\r\n","import moment from 'moment';\r\nimport cn from 'classnames';\r\nimport { useSelector } from 'react-redux';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport {\r\n BrokerDealerBwicPositionSearchResult,\r\n BwicPositionSearchResult,\r\n SellerBwicPositionSearchResult\r\n} from '../../types/bwic-monitor/BwicPositionSearchResult';\r\nimport { BwicSearchResult } from '../../types/bwic-monitor/BwicSearchResult';\r\nimport { collapseStickRightColumn } from '../bidding/common/table/CollapseStickRightColumn';\r\nimport { IColumnDefinition } from '../bidding/common/table/types/ColumnDefinition';\r\nimport { allBWICSActions, searchSecuritiesActions } from '../../actions';\r\nimport { BwicStatusLabel, EmptyPlaceholder, Preloader, TickerButton } from '../common';\r\nimport { amrFormatUtils, biddingUtils, dateTimeUtils, formatUtils, isRequestNone, isRequesting, moneyUtils } from '../../utils';\r\nimport { PxTalkListButton } from '../common/PxTalk/PxTalkListButton';\r\nimport { user } from '../../user/user';\r\nimport { roles, constants } from '../../constants';\r\nimport { BidLevel } from '../../types/bidding/BidLevel';\r\nimport { BwicStatus } from '../../types/enums/BwicStatus';\r\nimport { BidLevel as BidLevelComponent } from '../bidding/seller/biddingSecurities/BidLevel';\r\nimport { SubscriptionFeature } from '../../types/billing/SubscriptionFeature';\r\nimport { isActiveTrade, TradeStatus } from '../../types/trades/TradeStatus';\r\nimport { Table } from '../bidding/common/table/Table';\r\nimport { MyBwicCustomButtons } from './MyBwicCustomButtons';\r\nimport { AllBWICCustomButtons } from './AllBWICCustomButtons';\r\nimport { ColumnBuilder } from '../bidding/common/table/columns/column-builder/ColumnBuilder';\r\nimport { TableColumnStickType } from '../bidding/common/table/types/TableColumnStickType';\r\nimport { BuyerBidButton } from './BuyerBidButton';\r\nimport { ViewBwicRulesButton } from './ViewBwicRulesButton';\r\nimport { BwicTradedAmount } from './BwicTradedAmount';\r\nimport { AllBwicsControlPanel } from './AllBwicsControlPanel';\r\nimport { CompanyDetailsPanel } from '../company-details/CompanyDetailsPanel';\r\nimport { InfoTooltip } from '../common/InfoTooltip';\r\nimport { SameDayBwicIcon } from '../common/SameDayBwicIcon';\r\nimport { SecurityInventoryLink } from '../inventory/SecurityInventoryLink';\r\nimport { StickyTableRow } from '../bidding/common/table/sticky/StickyTableRow';\r\nimport { BwicProcessType } from '../../types/models/Process';\r\nimport { BiddingInfo } from '../bidding/brokerDealer/biddingSecurities/BiddingInfo';\r\nimport { BwicStatusTimerLabel } from '../common/BwicStatusTimerLabel';\r\nimport { LiveBiddingStage2Timer } from '../bidding/common/LiveBiddingStage2Timer';\r\nimport { BidFeedback, FeedbackCurrentBid } from '../bidding/brokerDealer/biddingSecurities/BidFeedback';\r\nimport { TradeAction } from '../trade/TradeAction';\r\nimport { IntexLink } from '../common/IntexLink';\r\nimport { AllBwicsTab } from './AllBwicsTab';\r\nimport { FinalIcon } from '../bidding/common/FinalIcon';\r\nimport { AxedIcon } from '../bidding/common/AxedIcon';\r\nimport { BloombergLink } from '../common/BloombergLink';\r\nimport { getAmrColumns } from '../amrPipeline/common-columns';\r\nimport { values } from 'lodash';\r\nimport { ValitanaLink } from '../common/ValitanaLink';\r\nimport { PipelineColumn } from '../amrPipeline/types/PipelineColumn';\r\nimport { liveBiddingUtils } from '../../utils/live-bidding.utils';\r\nimport { EvalKTalkLabel } from '../common/PxTalk/EvalKTalkLabel';\r\nimport { createColumnListBuilder } from '../../utils/ColumnListBuilder';\r\nimport { ColumnConfigKey } from '../../types/page-config/column-customizer/ColumnConfigKey';\r\nimport { PageConfig } from '../../types/page-config/PageConfig';\r\nimport { ListBuilder } from '../../utils/ListBuilder';\r\nimport { OpenBiddingStatus } from '../../types/enums/OpenBiddingStatus';\r\nimport { LiveBiddingStage2Level } from '../bidding/common/feedback/LiveBiddingStage2Level';\r\nimport { MyBwicIcon } from '../common/MyBwicIcon';\r\nimport { ImDealLookupLink } from '../amrPipeline/common/ImDealLookupLink';\r\nimport { BwicCreator } from '../bidding/brokerDealer';\r\nimport { LiveBiddingStrage2LevelData } from '../bidding/common/feedback/LiveBiddingStrage2LevelData';\r\nimport { IntersectionObserverProvider } from '../common/IntersectionObsereverProvider';\r\nimport { useAppDispatch } from '../../effects/useAppDispatch';\r\nimport { ViewDealDocumentsButton } from '../documents/deal-documents-popup/ViewDealDocumentButton';\r\nimport { useMemo } from 'react';\r\nimport { createFilterActions } from '../../actions/filter.actions';\r\nimport { getFilterType } from './AllBwicsFilter';\r\nimport { DataFromAmr } from '../amrPipeline/types/DataFromAmr';\r\nimport { bwicColumnsLabels } from '../../constants/bwicColumnsLabels';\r\n\r\ntype TPositionContext = {\r\n bwic: BwicSearchResult;\r\n};\r\n\r\ninterface Props {\r\n activeInventorySecurityIdByCount: { [securityId: number]: number };\r\n onCancel: (bwic: BwicSearchResult) => void;\r\n activeTab: AllBwicsTab,\r\n pageConfig?: PageConfig\r\n}\r\n\r\nexport function BwicGroupView({ activeInventorySecurityIdByCount, onCancel, activeTab, pageConfig }: Props) {\r\n const dispatch = useAppDispatch();\r\n const filterType = useMemo(() => getFilterType(activeTab), [activeTab]);\r\n const filterActions = useMemo(() => createFilterActions(filterType), [filterType]);\r\n\r\n const columnsConfig = user.hasFeatures(SubscriptionFeature.BwicMonitorColumnCustomizer)\r\n ? pageConfig?.columns\r\n : undefined;\r\n const isSeller = user.hasRoles(...roles.seller());\r\n const isSellerTrader = isSeller && user.hasRoles(roles.SellerTrader);\r\n const isBrokerDealer = user.hasRoles(...roles.bd());\r\n const isBrokerDealerTrader = isBrokerDealer && user.hasRoles(roles.BrokerDealerTrader);\r\n const isSellerAdmin = user.hasRoles(roles.SellerAdministrator);\r\n const isDataEntry = user.hasRoles(roles.DataEntry);\r\n const isViewer = user.hasRoles(roles.Viewer);\r\n const isMedia = user.hasRoles(roles.Media);\r\n\r\n const bwics = useSelector((s: AppState) => s.allBWICS.bwics);\r\n\r\n const totalRecordNumber = useSelector((s: AppState) => s.allBWICS.totalRecordNumber);\r\n const activeBwic = useSelector((s: AppState) =>\r\n s.allBWICS.bwics &&\r\n s.allBWICS.bwics.find(b => b.referenceName === s.allBWICS.activeBwicReferenceName));\r\n const activePositionId = useSelector((s: AppState) =>\r\n (s.bwicHistory.visible && s.bwicHistory.positionId) ||\r\n (s.securityDetails.security && s.securityDetails.security.id) ||\r\n (s.bwicLog.security && s.bwicLog.security.id) ||\r\n (s.rules.show && s.rules.positionId) ||\r\n (s.pxTalkList.visible && s.pxTalkList.positionId)\r\n );\r\n const companyDetailsPanelVisible: boolean = useSelector((state: AppState) => state.companyDetails.isPanelVisible);\r\n const isAllTab = activeTab === AllBwicsTab.All;\r\n const isBuyTab = activeTab === AllBwicsTab.Buy;\r\n const isSellTab = activeTab === AllBwicsTab.Sell\r\n const isBdBuyTab = isBrokerDealer && isBuyTab;\r\n const isBdSellTab = isBrokerDealer && isSellTab;\r\n const { [PipelineColumn.manager]: managerAmrColumn, ...restAmrColumns } = getAmrColumns();\r\n const manager = { ...managerAmrColumn, sortingField: undefined };\r\n\r\n const getBwicColumns = (): IColumnDefinition[] => {\r\n const bwicStatus = {\r\n columnKey: 'bwicStatus',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (bwic: BwicSearchResult) =>\r\n ,\r\n bodyClassName: 'data-list-cell-lg cell-bwic-status'\r\n };\r\n const myFlag = {\r\n columnKey: 'my-flag',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (bwic: BwicSearchResult) => (\r\n \r\n ),\r\n bodyClassName: 'data-list-cell-xxxs padding-l-0'\r\n };\r\n const sameDay = {\r\n columnKey: 'same-day',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (bwic: BwicSearchResult) => {\r\n return (\r\n <>\r\n {bwic.isSameDayBwic && }\r\n \r\n )\r\n },\r\n bodyClassName: 'data-list-cell-xxxs padding-l-0'\r\n };\r\n const dueDate = {\r\n columnKey: 'dueDate',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (bwic: BwicSearchResult) => {\r\n if (!bwic.bidsDueDateUtc) return '';\r\n\r\n const bidsDue = moment.utc(bwic.bidsDueDateUtc).local();\r\n\r\n const date = moment().isSame(bidsDue, 'd')\r\n ? `Today, ${dateTimeUtils.utcToLocalString(bwic.bidsDueDateUtc)}`\r\n : dateTimeUtils.utcToLocalString(bwic.bidsDueDateUtc, 'ddd, MMM D, YYYY hh:mm A');\r\n\r\n return date;\r\n },\r\n bodyClassName: 'data-list-cell-xl-xxl padding-l-0 text-bold'\r\n };\r\n const bwicName = {\r\n columnKey: 'bwic-name',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (bwic: BwicSearchResult) => bwic.name,\r\n bodyClassName: 'data-list-cell-xl'\r\n };\r\n const bwicRules = {\r\n columnKey: 'bwic-rules',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (bwic: BwicSearchResult, context: { rowIndex: number }) =>\r\n ,\r\n bodyClassName: 'data-list-cell-xl padding-l-0 overflow-visible'\r\n };\r\n const companyDetailsButton = {\r\n columnKey: 'company-details-button',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (bwic: BwicSearchResult, context: { rowIndex: number }) => {\r\n return (\r\n <>\r\n {\r\n Boolean(bwic.isParticipant) &&\r\n bwic.seller != null &&\r\n
\r\n \r\n
\r\n }\r\n \r\n );\r\n },\r\n bodyClassName: 'data-list-cell-xl'\r\n };\r\n const tradedAmount = {\r\n columnKey: 'tradedAmount',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (bwic: BwicSearchResult) => isSellTab && ,\r\n bodyClassName: 'data-list-cell-xl'\r\n };\r\n const goodUntil = {\r\n columnKey: 'bwic-good-until',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (bwic: BwicSearchResult) => !bwic.isParsed && bwic.status === BwicStatus.bidding\r\n ? \r\n \r\n {bwic.goodUntilDateUtc ? dateTimeUtils.utcToLocalString(bwic.goodUntilDateUtc) : ''}\r\n \r\n : null,\r\n bodyClassName: 'data-list-cell-xl text-right'\r\n };\r\n const bwicActions = {\r\n columnKey: 'bwicActions',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (bwic: BwicSearchResult, context: { rowIndex: number }) => isBuyTab || isSellTab\r\n ? \r\n : \r\n ,\r\n bodyClassName: 'data-list-cell-md text-right overflow-visible keep-while-collapsed',\r\n stickRight: true\r\n };\r\n\r\n const getEmptyCollapseRowCell = () => {\r\n let itemNumber = 0;\r\n return (className?: string, columnKey: string = '') => {\r\n itemNumber++;\r\n return ({\r\n columnKey: `${columnKey}-emptyCollapseRowCell-${itemNumber}`,\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: () => '',\r\n className,\r\n stickRight: true\r\n })\r\n }\r\n }\r\n\r\n const getEmptyPlaceholderColumns = () => {\r\n const [, , right] = getPositionListColumns();\r\n const emptyCollapseRowCell = getEmptyCollapseRowCell();\r\n\r\n return right\r\n .filter(x => !(x.column.bodyClassName || x.column.className)?.includes('keep-while-collapsed'))\r\n .map(x => emptyCollapseRowCell(x.column.className, x.column.columnKey));\r\n }\r\n\r\n const columns = new ListBuilder>()\r\n .add(bwicStatus)\r\n .add(myFlag, sameDay, dueDate, bwicName, bwicRules)\r\n .addWhen(() => isSeller || isBrokerDealerTrader, tradedAmount)\r\n .addWhen(() => isBrokerDealer, companyDetailsButton)\r\n .add(goodUntil)\r\n .addWhen(() => !isViewer, collapseStickRightColumn)\r\n .add(bwicActions)\r\n .result();\r\n\r\n return [...getEmptyPlaceholderColumns(), ...columns];\r\n }\r\n\r\n const renderLevel = (level: BidLevel, bwic: BwicSearchResult, position: BwicPositionSearchResult) => {\r\n if (bwic.status === BwicStatus.canceled) return constants.emptyPlaceholder;\r\n\r\n const sellerPosition = (position as SellerBwicPositionSearchResult);\r\n\r\n return ;\r\n }\r\n\r\n const getPositionListColumns = (): ColumnBuilder[][] => {\r\n const canViewBuyerBidButton = isAllTab && (isSeller || isDataEntry);\r\n\r\n const isinCusip: IColumnDefinition = {\r\n columnKey: 'isinCusip',\r\n configKey: ColumnConfigKey.IsinCusip,\r\n renderColumnHeaderContent: () => 'Identifier',\r\n renderColumnContent: position => position.isinCusip,\r\n className: 'data-list-cell-lg-02'\r\n };\r\n const ticker: IColumnDefinition = {\r\n columnKey: 'ticker',\r\n configKey: ColumnConfigKey.Ticker,\r\n renderColumnHeaderContent: () => 'Ticker',\r\n renderColumnContent: (position, context) =>\r\n dispatch(allBWICSActions.setActiveBwic(context.bwic.referenceName))}\r\n />,\r\n className: 'data-list-cell-lg'\r\n };\r\n const viewInventory: IColumnDefinition = {\r\n columnKey: 'view-invnetory',\r\n configKey: ColumnConfigKey.Inventory,\r\n renderColumnHeaderContent: () => (\r\n <>\r\n Inventory\r\n \r\n \r\n ),\r\n renderColumnContent: (position, { bwic }) =>\r\n ((bwic.status === BwicStatus.scheduled || bwic.status === BwicStatus.bidding) && activeInventorySecurityIdByCount[position.securityId])\r\n ? (\r\n \r\n ) : constants.emptyPlaceholder,\r\n className: 'data-list-cell-sm'\r\n };\r\n const asset = {\r\n columnKey: 'asset',\r\n configKey: ColumnConfigKey.Asset,\r\n renderColumnHeaderContent: () => 'Asset',\r\n renderColumnContent: (position: BwicPositionSearchResult) => position.asset,\r\n className: 'data-list-cell-xs'\r\n };\r\n const ccy = {\r\n columnKey: 'currency',\r\n configKey: ColumnConfigKey.Currency,\r\n renderColumnHeaderContent: () => 'Ccy',\r\n renderColumnContent: (position: BwicPositionSearchResult) => position.currency,\r\n className: 'data-list-cell-xs'\r\n };\r\n const rating = {\r\n columnKey: 'rating',\r\n configKey: ColumnConfigKey.Rating,\r\n renderColumnHeaderContent: () => 'Rtg',\r\n renderColumnContent: (position: BwicPositionSearchResult) => position.rating,\r\n className: 'data-list-cell-xs'\r\n };\r\n const size = {\r\n columnKey: 'size',\r\n configKey: ColumnConfigKey.Size,\r\n renderColumnHeaderContent: () => 'Size, MM',\r\n renderColumnContent: (position: BwicPositionSearchResult) => moneyUtils.amountToMM(position.size),\r\n className: 'text-right'\r\n };\r\n const evalPriceTalk: IColumnDefinition = {\r\n columnKey: 'evalPriceTalk',\r\n configKey: ColumnConfigKey.EvalPriceTalk,\r\n renderColumnHeaderContent: () => ,\r\n renderColumnContent: position => position.normalizedLevelEvalPriceTalk ?? constants.emptyPlaceholder,\r\n className: 'data-list-cell-sm text-right data-list-cell-eval',\r\n };\r\n const priceTalk: IColumnDefinition = {\r\n columnKey: 'price-talk',\r\n configKey: ColumnConfigKey.PxTalk,\r\n renderColumnHeaderContent: () => 'Px Talk',\r\n renderColumnContent: (position, { bwic }) =>\r\n dispatch(allBWICSActions.setActiveBwic(bwic.referenceName))}\r\n />,\r\n className: 'data-list-cell-sm text-right'\r\n };\r\n const color = {\r\n columnKey: 'color',\r\n configKey: ColumnConfigKey.Color,\r\n renderColumnHeaderContent: () => 'Color',\r\n renderColumnContent: (position: BwicPositionSearchResult) =>\r\n position.color ? formatUtils.formatColor(position.color) : constants.emptyPlaceholder,\r\n className: 'data-list-cell-md'\r\n };\r\n const buyerBidButton: IColumnDefinition = {\r\n columnKey: 'buyer-buy-button',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (position, { bwic }) => {\r\n if (!bwic.isMy && bwic.isClearingBankParticipant) {\r\n return \r\n }\r\n },\r\n className: 'data-list-cell data-list-cell-md text-right keep-while-collapsed',\r\n stickRight: true\r\n };\r\n const brokerDealerFeedback: IColumnDefinition = {\r\n columnKey: 'bd-feedback',\r\n renderColumnHeaderContent: () => 'Feedback',\r\n renderColumnContent: (p, { bwic }) => {\r\n const position = p as BrokerDealerBwicPositionSearchResult\r\n const currentBid = biddingUtils.getCurrentBid(position.bids);\r\n\r\n return bwic.process.type === BwicProcessType.Live\r\n ? \r\n {\r\n (requestState, data) =>\r\n \r\n {\r\n data == null\r\n ? <>{constants.emptyPlaceholder}\r\n : (
\r\n \r\n
\r\n )\r\n }\r\n
\r\n }\r\n
\r\n : ;\r\n },\r\n className: 'data-list-cell-xxl-flexible cell-flexible-text cell-feedback'\r\n };\r\n const brokerDealerBiddingInfo: IColumnDefinition = {\r\n columnKey: 'bd-bidding-info',\r\n renderColumnHeaderContent: () => 'Bidding Info',\r\n renderColumnContent: (p, { bwic }) => {\r\n const position = p as BrokerDealerBwicPositionSearchResult\r\n const currentBid = biddingUtils.getCurrentBid(position.bids);\r\n const liveBiddingStage2Expired = bwic.process.type === BwicProcessType.Live\r\n ? liveBiddingUtils.checkLiveBiddingStage2Expired(bwic.process, bwic.bidsDueDateUtc)\r\n : undefined;\r\n\r\n return ;\r\n },\r\n className: 'data-list-cell-lg-02'\r\n };\r\n const brokerDealerBid = {\r\n columnKey: 'bid',\r\n renderColumnHeaderContent: () => 'My Bid',\r\n renderColumnContent: (position: BwicPositionSearchResult) => {\r\n const currentBid = biddingUtils.getCurrentBid((position as BrokerDealerBwicPositionSearchResult).bids);\r\n const isPass = Boolean(currentBid?.pass);\r\n const hasBidValue = Number(currentBid?.value) > 0;\r\n\r\n return (\r\n
\r\n {isPass && 'Pass'}\r\n {hasBidValue && formatUtils.formatBid(currentBid.value)}\r\n {!isPass && !hasBidValue && constants.emptyPlaceholder}\r\n
\r\n {hasBidValue && currentBid.axed && }\r\n {hasBidValue && currentBid.final && }\r\n
\r\n
\r\n );\r\n },\r\n className: 'data-list-cell-lg cell-bid-padding text-right'\r\n };\r\n const liveBiddingStage2Timer: IColumnDefinition = {\r\n columnKey: 'liveBiddingStage2Timer',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (p, { bwic }) => {\r\n const position = p as BrokerDealerBwicPositionSearchResult;\r\n const isBidding = bwic.status === BwicStatus.bidding;\r\n\r\n if (position.isTradedAway || isActiveTrade(position.trade) || !isBidding) return constants.emptyPlaceholder;\r\n\r\n const isLiveBiddingStage2 =\r\n isBidding &&\r\n bwic.process.type === BwicProcessType.Live &&\r\n bwic.process.stagedBiddingStatus === OpenBiddingStatus.stage1Ended;\r\n\r\n if (isLiveBiddingStage2) {\r\n return (\r\n dispatch(allBWICSActions.liveBiddingStage2Expired(position.id))}\r\n />\r\n );\r\n }\r\n\r\n return <>{constants.emptyPlaceholder}}\r\n />\r\n\r\n },\r\n className: 'data-list-cell-sm'\r\n };\r\n const docs: IColumnDefinition = {\r\n columnKey: 'deal-documents',\r\n configKey: ColumnConfigKey.DealDocuments,\r\n renderColumnHeaderContent: () => 'Docs',\r\n renderColumnContent: (position, context) => position.documentsCount\r\n ? \r\n : constants.emptyPlaceholder,\r\n className: '',\r\n };\r\n const brokerDealerAction: IColumnDefinition = {\r\n columnKey: 'bdActions',\r\n configKey: ColumnConfigKey.Actions,\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (position, { bwic }) => !bwic.isMy && (\r\n \r\n ),\r\n className: 'data-list-cell-md cell-bd-trade-action padding-r-0 text-right keep-while-collapsed',\r\n stickRight: true,\r\n };\r\n const best: IColumnDefinition = {\r\n columnKey: 'best',\r\n renderColumnHeaderContent: () => 'Best',\r\n renderColumnContent: (p, { bwic }) => renderLevel(BidLevel.Best, bwic, p),\r\n className: 'data-list-cell-lg-02'\r\n };\r\n const cover: IColumnDefinition = {\r\n columnKey: 'cover',\r\n renderColumnHeaderContent: () => 'Cover',\r\n renderColumnContent: (p, { bwic }) => renderLevel(BidLevel.Cover, bwic, p),\r\n className: 'data-list-cell-lg-02'\r\n };\r\n const third: IColumnDefinition = {\r\n columnKey: 'third',\r\n renderColumnHeaderContent: () => 'Third',\r\n renderColumnContent: (p, { bwic }) => renderLevel(BidLevel.Third, bwic, p),\r\n className: 'data-list-cell-lg-02'\r\n };\r\n const externalLinks = {\r\n columnKey: 'externalLinks',\r\n renderColumnHeaderContent: () => 'Actions',\r\n renderColumnContent: (position: BwicPositionSearchResult) =>\r\n <>\r\n \r\n \r\n \r\n ,\r\n className: 'cell-external-links padding-r-0 text-right',\r\n stickRight: true\r\n };\r\n const dealLookupLink = {\r\n columnKey: 'dealLookupLink',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: (position: BwicPositionSearchResult) =>\r\n <>\r\n {\r\n !!position.dealReferenceName &&\r\n !!position.dealLegalName &&\r\n \r\n }\r\n ,\r\n className: 'data-list-cell-xxxs',\r\n stickRight: true\r\n };\r\n const bwicActionsPlaceholder = {\r\n columnKey: 'bwicActionsPlaceholder',\r\n renderColumnHeaderContent: () => '',\r\n renderColumnContent: () => '',\r\n className: \"data-list-cell-md text-right keep-while-collapsed\",\r\n stickRight: true\r\n };\r\n\r\n const canBrokerDealerBid = isBuyTab && isBrokerDealerTrader;\r\n\r\n const amrColumns = values(restAmrColumns).map(c => ({ ...c, sortingField: undefined }));\r\n\r\n const insertCurrentCoupon = (columns: IColumnDefinition[]) => {\r\n const result: IColumnDefinition | IColumnDefinition[] = [];\r\n\r\n const coupon: IColumnDefinition = {\r\n columnKey: 'coupon',\r\n configKey: ColumnConfigKey.CurrentCoupon,\r\n renderColumnHeaderContent: () => bwicColumnsLabels[ColumnConfigKey.CurrentCoupon],\r\n renderColumnContent: position =>\r\n amrFormatUtils.formatInventoryCoupon(position.floaterIndex, position.margin, constants.emptyPlaceholder),\r\n className: 'data-list-cell-md',\r\n };\r\n\r\n columns.forEach(c => {\r\n result.push(c);\r\n \r\n // Insert Coupon after Vintage column\r\n if (c.configKey === ColumnConfigKey.Vintage) {\r\n result.push(coupon);\r\n }\r\n });\r\n\r\n return result;\r\n }\r\n\r\n const middleColumns = createColumnListBuilder(columnsConfig)\r\n .addWhen(() => canBrokerDealerBid, liveBiddingStage2Timer)\r\n .addWhen(() => isSeller || isSellerAdmin || isAllTab || isBdSellTab, isinCusip)\r\n .addWhen(() => canBrokerDealerBid, brokerDealerBiddingInfo)\r\n .add(ticker)\r\n .addWhen(() => isAllTab, docs, manager)\r\n .add(viewInventory, asset, ccy, rating, size)\r\n .addWhen(() => !isMedia, evalPriceTalk)\r\n .add(priceTalk)\r\n .addWhen(() => isAllTab, color, ...insertCurrentCoupon(amrColumns))\r\n .addWhen(() => isAllTab && (isSeller || isSellerAdmin || isBrokerDealer))\r\n .addWhen(() => isSellTab && (isSeller || isSellerAdmin || isBrokerDealer), best, cover, third)\r\n .addWhen(() => canBrokerDealerBid, brokerDealerBid, brokerDealerFeedback)\r\n .addWhen(() => isBdBuyTab, color)\r\n .result()\r\n .map(c => new ColumnBuilder(c));\r\n\r\n const rightColumns = createColumnListBuilder(columnsConfig)\r\n .addWhen(() => !isViewer, collapseStickRightColumn)\r\n // brokerDealerAction or buyerBidButton will serve as placeholder\r\n .addWhen(() => !isBuyTab && !canViewBuyerBidButton, bwicActionsPlaceholder)\r\n .addWhen(() => canViewBuyerBidButton, buyerBidButton)\r\n .addWhen(() => isBdBuyTab, brokerDealerAction)\r\n .addWhen(() => isAllTab, dealLookupLink)\r\n .add(externalLinks)\r\n .result()\r\n .map(c => new ColumnBuilder(c));\r\n\r\n return [[], middleColumns, rightColumns];\r\n }\r\n\r\n const handleResetFilter = () => {\r\n dispatch(filterActions.resetFiltersAndUnselectSavedFilter());\r\n dispatch(allBWICSActions.searchBwics(activeTab, true));\r\n }\r\n\r\n const handleResetFilterAndSearch = () => {\r\n dispatch(searchSecuritiesActions.reset());\r\n handleResetFilter();\r\n }\r\n\r\n if (!bwics) return null;\r\n\r\n if (!bwics.length) return ;\r\n\r\n const renderBwicPositionRows = (bwic: BwicSearchResult, columnType?: TableColumnStickType) => {\r\n const highlightTradedState =\r\n (!bwic.isMy && isSellerTrader && bwic.isClearingBankParticipant) ||\r\n (isBuyTab && isBrokerDealerTrader);\r\n\r\n const [left, middle, right] = getPositionListColumns();\r\n\r\n let columns: ColumnBuilder[] = [];\r\n\r\n if (columnType === TableColumnStickType.Left) columns = left;\r\n if (columnType === TableColumnStickType.Middle) columns = middle;\r\n if (columnType === TableColumnStickType.Right) columns = right;\r\n\r\n return bwic.securities.map(s => {\r\n const { trade } = s as (BrokerDealerBwicPositionSearchResult | SellerBwicPositionSearchResult);\r\n return (\r\n \r\n );\r\n });\r\n }\r\n\r\n const renderHeader = (stickType?: TableColumnStickType, headerContext?: object) => {\r\n const [bwic] = bwics;\r\n\r\n if (!bwic) return null;\r\n\r\n const [, middle, right] = getPositionListColumns();\r\n\r\n switch (stickType) {\r\n case TableColumnStickType.Middle:\r\n return middle.map(c => c.renderHeader(undefined, undefined, undefined, headerContext));\r\n case TableColumnStickType.Right:\r\n return right.map(c => c.renderHeader(undefined, undefined, undefined, headerContext));\r\n default:\r\n return null;\r\n }\r\n }\r\n\r\n const createBwicRowClassName = (bwic: BwicSearchResult) => {\r\n return cn({\r\n 'is-active':\r\n activeBwic?.referenceName === bwic.referenceName &&\r\n !activePositionId\r\n });\r\n }\r\n\r\n return (\r\n \r\n new ColumnBuilder(c))}\r\n renderCollapsibleItem={renderBwicPositionRows}\r\n infiniteScrollEnabled={bwics.length < totalRecordNumber}\r\n onNextPageRequest={() => dispatch(allBWICSActions.loadNextPage(activeTab))}\r\n renderHeaderRow={renderHeader}\r\n />\r\n \r\n {companyDetailsPanelVisible && }\r\n \r\n );\r\n}\r\n","import { roles, routes } from \"../../constants\";\r\nimport { RequestState } from \"../../constants/request-state\";\r\nimport { useAllToAllAgreementBlocked } from \"../../effects/useAllToAllAgreementBlocked\";\r\nimport { useAppSelector } from \"../../effects/useAppSelector\";\r\nimport { user } from \"../../user\";\r\nimport { isRequesting, isRequestNone } from \"../../utils\";\r\nimport { BlockedFeatureContent, SubscribeLink } from \"../access/BlockedFeatureText\";\r\nimport { FeatureLink } from \"../access/FeatureLink\";\r\nimport { AllToAllArgeementRequiredActionBlocker } from \"../agreements/AllToAllArgeementRequiredActionBlocker\";\r\nimport { EmptyPlaceholder, Preloader } from \"../common\";\r\nimport { AllBwicsTab } from \"./AllBwicsTab\";\r\n\r\ninterface BwicResultPlaceholderProps {\r\n activeTab: AllBwicsTab;\r\n children: React.ReactNode;\r\n isLoading: boolean;\r\n requestStateIsMyBwicsExist: RequestState;\r\n myBwicsExist: boolean;\r\n}\r\n\r\nconst NewBwicButton = () => (\r\n \r\n {(disabled => (\r\n New BWIC\r\n ))}\r\n \r\n)\r\n\r\nexport const BwicResultPlaceholder = ({ activeTab, children, isLoading, myBwicsExist, requestStateIsMyBwicsExist }: BwicResultPlaceholderProps) => {\r\n const adavancedFiltersBlocked = useAppSelector(s => s.allBWICS.advancedFilterBlocked);\r\n const isAllTab = activeTab === AllBwicsTab.All;\r\n\r\n const allToAllAgreementBlocked = useAllToAllAgreementBlocked();\r\n const inProgress = isLoading\r\n || (!isAllTab && (isRequestNone(requestStateIsMyBwicsExist) || isRequesting(requestStateIsMyBwicsExist)))\r\n const noResults = !isAllTab && !myBwicsExist;\r\n\r\n if (inProgress) {\r\n return \r\n }\r\n\r\n if (adavancedFiltersBlocked) {\r\n return to see BWIC details.} />\r\n }\r\n\r\n const getPlaceholderProps = () => {\r\n switch (true) {\r\n case activeTab === AllBwicsTab.Buy:\r\n return {\r\n title: '',\r\n text: 'You do not have any BWICs yet.',\r\n children: null\r\n\r\n }\r\n case user.hasRoles(roles.SellerAdministrator, roles.SellerViewer): {\r\n return {\r\n title: 'No BWICs Scheduled',\r\n text: 'You have not scheduled any BWICs.',\r\n children: null\r\n };\r\n }\r\n case allToAllAgreementBlocked:\r\n return {\r\n title: '',\r\n text: 'There are no created BWICs yet',\r\n children: \r\n }\r\n default: {\r\n return {\r\n title: 'No BWICs Scheduled',\r\n text: <>You have not scheduled any BWICs.
To create a new BWIC, click “New BWIC” below.,\r\n children: \r\n }\r\n }\r\n\r\n }\r\n }\r\n\r\n if (noResults) {\r\n const { title, text, children } = getPlaceholderProps();\r\n return (\r\n \r\n {children}\r\n \r\n )\r\n }\r\n\r\n return <>{children};\r\n}\r\n","import { roles } from \"../../constants/roles\";\r\nimport { useAppSelector } from \"../../effects/useAppSelector\";\r\nimport { SubscriptionFeature } from \"../../types/billing/SubscriptionFeature\";\r\nimport { moneyUtils } from \"../../utils\";\r\nimport { ShowFor } from \"../access\";\r\nimport { SubscribeLink } from \"../access/BlockedFeatureText\";\r\nimport { RequiredFeature } from \"../access/RequiredFeature\";\r\nimport { SummaryRow } from \"../common/summary-row/SummaryRow\";\r\nimport { SummaryRowGroup } from \"../common/summary-row/SummaryRowGroup\";\r\nimport { SummaryRowItem } from \"../common/summary-row/SummaryRowItem\";\r\nimport { AllBwicsTab } from \"./AllBwicsTab\";\r\n\r\ninterface Props {\r\n tab: AllBwicsTab;\r\n}\r\n\r\nexport function AllBwicsSummaryRow({ tab }: Props) {\r\n const totalBwics = useAppSelector(s => s.allBWICS.totalRecordNumber);\r\n const summary = useAppSelector(s => s.allBWICS.summary);\r\n\r\n const getVolumeValues = () => {\r\n const usd = summary?.usdVolume ? moneyUtils.amountToRoundedMM(summary.usdVolume, true) : null;\r\n const eur = summary?.euroVolume ? moneyUtils.amountToRoundedMM(summary.euroVolume, true) : null;\r\n\r\n return [usd, eur];\r\n }\r\n\r\n const getBidValues = () => {\r\n const dealerBids = summary?.totalDealerBids || null;\r\n const directBids = summary?.totalDirectBids || null;\r\n \r\n return [dealerBids, directBids];\r\n }\r\n\r\n return (\r\n \r\n  to see BWICs stats.}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n {\r\n tab === AllBwicsTab.Sell &&\r\n \r\n \r\n \r\n \r\n }{\r\n tab === AllBwicsTab.Buy &&\r\n \r\n \r\n \r\n \r\n }\r\n \r\n \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 cn from 'classnames';\r\nimport { useCallback, useEffect, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { allBWICSActions as actions, controlPanelActions, sellerBiddingActions } from '../../actions';\r\nimport { pushHistoryActions } from '../../actions/entities/push-history.actions';\r\nimport { onBoardingTooltipConst, roles } from '../../constants';\r\nimport { useActiveInventorySecuritesIds } from '../../effects/useActiveInventorySecuritesIds';\r\nimport { useAllToAllAgreementBlocked } from '../../effects/useAllToAllAgreementBlocked';\r\nimport { useMyBwicsExist } from '../../effects/useMyBwicsExist';\r\nimport IconSVG from '../../styles/svg-icons';\r\nimport { SubscriptionFeature } from '../../types/billing/SubscriptionFeature';\r\nimport { BwicSearchResult } from '../../types/bwic-monitor/BwicSearchResult';\r\nimport { BwicFilterType } from '../../types/filters/FilterState';\r\nimport { PageConfigType } from '../../types/page-config/PageConfigType';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { user } from '../../user';\r\nimport { isRequestFailed, isRequesting, isRequestNone, isRequestSuccess } from '../../utils';\r\nimport { ShowFor } from '../access';\r\nimport { ActionBlocker } from '../access/ActionBlocker';\r\nimport { FeatureButton } from '../access/FeatureButton';\r\nimport { CancelReasonPopup } from '../bidding/seller/CancelReasonPopup';\r\nimport { Preloader, Relative } from '../common';\r\nimport { BwicColumnCustomizer } from '../common/pageConfig/column-customizer/BwicColumnCustomizer';\r\nimport { usePageConfig } from '../common/pageConfig/usePageConfig';\r\nimport { SecuritiesSearchInput } from '../filters';\r\nimport { useManagersFilterData } from '../filters/dinamicFilterEffects/useManagersFilterData';\r\nimport { useTrusteeFilterData } from '../filters/dinamicFilterEffects/useTrusteeFilterData';\r\nimport { OnBoardingTooltip } from '../onBoarding/OnBoardingTooltip';\r\nimport { BwicMonitorAlertsPreferences } from '../profile/tabs/email-preferences/tabs/bwic-monitor/BwicMonitorAlertsPreferences';\r\nimport { RequestSettlementAgentAgreementBanner } from '../request-settlement-agent-agreement/RequestSettlementAgentAgreementBanner';\r\nimport { AllBwicsFilter, getFilterType } from './AllBwicsFilter';\r\nimport { AllBwicsTab } from './AllBwicsTab';\r\nimport { AllBwicsTabList } from './AllBwicsTabList';\r\nimport { BwicGroupView } from './BwicGroupView';\r\nimport { BwicResultPlaceholder } from './BwicsResultExist';\r\nimport { Stats } from './Stats';\r\nimport { SortDropdown } from '../common/SortDropdown';\r\nimport { BwicMonitorSortByOptions, bwicMonitorSortByOptionsText } from '../../types/state/AllBwicsState';\r\nimport { AllBwicsSummaryRow } from './AllBwicsSummaryRow';\r\nimport { appConfig } from '../../app-config';\r\nimport { useAppDispatch } from '../../effects/useAppDispatch';\r\nimport { useLocation } from 'react-router';\r\n\r\ninterface AllBwicsProps {\r\n myBwicsOnly: boolean;\r\n isAllToAll?: boolean;\r\n activeTab: AllBwicsTab;\r\n}\r\n\r\nexport function AllBwics({ myBwicsOnly, isAllToAll, activeTab = AllBwicsTab.All }: AllBwicsProps) {\r\n const dispatch = useAppDispatch();\r\n const location = useLocation();\r\n\r\n const pageConfigType = activeTab === AllBwicsTab.All ? PageConfigType.BwicMonitorAll : undefined;\r\n const isPageConfigSupported = !!pageConfigType;\r\n const {\r\n config, requestState: pageConfigRequestState, defaultConfigRequestState\r\n } = usePageConfig(pageConfigType, !isPageConfigSupported, BwicFilterType.BwicMonitor);\r\n const searchTermItems = useSelector((state: AppState) => state.searchSecurities.searchTermItems || []);\r\n const sortBy = useSelector((state: AppState) => state.allBWICS.sortBy);\r\n const allToAllState = useSelector((state: AppState) => state.allBWICS.isAllToAll);\r\n const searchInProgress = useSelector((state: AppState) => state.allBWICS.searchInProgress);\r\n const isNextPageRequesting = useSelector((state: AppState) => state.allBWICS.isNextPageRequesting);\r\n const bwics = useSelector((state: AppState) => state.allBWICS.bwics || []);\r\n const isRequestingExportBwics = useSelector((state: AppState) => state.allBWICS.isRequestingExportBwics);\r\n const myBwicsOnlyState = useSelector((state: AppState) => state.allBWICS.myBwicsOnly);\r\n const [activeInvenotryRequestState, activeInventorySecurityIdByCount] =\r\n useActiveInventorySecuritesIds(user.hasSingleRole(roles.SellerAdministrator));\r\n const [myBwicsExist, requestStateIsMyBwicsExist] = useMyBwicsExist(activeTab, myBwicsOnly, isAllToAll);\r\n const managersRequestState = useManagersFilterData(getFilterType(activeTab));\r\n const trusteeRequestState = useTrusteeFilterData(getFilterType(activeTab));\r\n\r\n const [cancelBwicDialogVisible, setCancelBwicDialogVisible] = useState(false);\r\n const [bwic, setBwic] = useState(null);\r\n\r\n const allToAllAgreementBlocked = useAllToAllAgreementBlocked();\r\n const isAllToAllWithoutAgreement = isAllToAll && allToAllAgreementBlocked;\r\n const isFilterDisabled = (myBwicsOnly ? (!myBwicsExist || isNextPageRequesting) : isNextPageRequesting) || isAllToAllWithoutAgreement;\r\n\r\n const isPageConfigLoaded = isRequestSuccess(pageConfigRequestState, defaultConfigRequestState)\r\n || isRequestFailed(pageConfigRequestState, defaultConfigRequestState);\r\n const isColumnCustomizerDisabled = !isPageConfigSupported\r\n || !isRequestSuccess(pageConfigRequestState, defaultConfigRequestState);\r\n\r\n const hideSettlementAgentAgreementBanner = activeTab === AllBwicsTab.Sell && user.hasRoles(...roles.seller());\r\n\r\n useEffect(() => {\r\n if (\r\n (isPageConfigLoaded || !isPageConfigSupported) &&\r\n (isRequestSuccess(managersRequestState) || isRequestFailed(managersRequestState)) &&\r\n (isRequestSuccess(trusteeRequestState) || isRequestFailed(trusteeRequestState))\r\n ) {\r\n dispatch(actions.init(myBwicsOnly, isAllToAll, location.search, activeTab));\r\n }\r\n return () => {\r\n dispatch(actions.reset());\r\n dispatch(controlPanelActions.hide());\r\n dispatch(pushHistoryActions.reset());\r\n }; // eslint-disable-next-line\r\n }, [myBwicsOnly, isAllToAll, managersRequestState, trusteeRequestState, dispatch, isPageConfigLoaded]);\r\n\r\n const showCancelBwicDialog = useCallback((bwic: BwicSearchResult) => {\r\n setBwic(bwic);\r\n setCancelBwicDialogVisible(true);\r\n }, []);\r\n\r\n const closeCancelBwicDialog = () => {\r\n setBwic(null);\r\n setCancelBwicDialogVisible(false);\r\n };\r\n\r\n const handleBwicCancel = (reason: string) => {\r\n if (bwic) {\r\n dispatch(sellerBiddingActions.cancelBwic(bwic.referenceName, reason));\r\n closeCancelBwicDialog();\r\n }\r\n };\r\n\r\n const isLoading =\r\n Boolean(myBwicsOnly) !== Boolean(myBwicsOnlyState) ||\r\n Boolean(isAllToAll) !== Boolean(allToAllState) ||\r\n isRequestNone(searchInProgress, managersRequestState, trusteeRequestState) ||\r\n isRequesting(searchInProgress, activeInvenotryRequestState, managersRequestState, trusteeRequestState) ||\r\n (!isPageConfigLoaded && isPageConfigSupported);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n

All BWICs

\r\n
\r\n \r\n dispatch(actions.searchBwics(activeTab, false, true))}\r\n disabled={isLoading || (!bwics.length && !searchTermItems.length) || isNextPageRequesting || isFilterDisabled}\r\n requiredFeature={SubscriptionFeature.BwicMonitorSecuritySearch}\r\n />\r\n \r\n
\r\n {!isAllToAll && \r\n \r\n }\r\n \r\n \r\n \r\n dispatch(actions.exportBwics(activeTab))}\r\n >\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n {\r\n blocked =>\r\n ({\r\n value,\r\n text: bwicMonitorSortByOptionsText[value],\r\n selected: sortBy === value,\r\n }))}\r\n onChange={(sortBy) => dispatch(actions.sortChanged(sortBy, activeTab))}\r\n />\r\n\r\n }\r\n \r\n {isPageConfigSupported &&
\r\n
\r\n \r\n
}\r\n
\r\n \r\n {hideSettlementAgentAgreementBanner ? null : }\r\n \r\n
\r\n {appConfig.isSummaryRowHidden ? null: }\r\n
\r\n \r\n \r\n \r\n
\r\n {\r\n cancelBwicDialogVisible &&\r\n \r\n }\r\n
\r\n );\r\n}\r\n","import React from 'react';\r\nimport { IColumnDefinition } from '../bidding/common/table/types/ColumnDefinition';\r\nimport { ColumnBuilder } from '../bidding/common/table/columns/column-builder/ColumnBuilder';\r\nimport { IDealersStats } from '../../types/models/DealersStats';\r\nimport { user } from '../../user';\r\nimport { roles, SORTING_TYPE, constants } from '../../constants';\r\nimport { OnHoverTooltip } from \"../common\";\r\n\r\nexport const statsColumns = () => {\r\n const isSeller = user.hasRoles(...roles.seller());\r\n const statsColumnDefinitions: IColumnDefinition[] = [\r\n {\r\n columnKey: 'dealer',\r\n renderColumnHeaderContent: () => isSeller ? 'Dealer' : 'Client',\r\n renderColumnContent: position => (\r\n isSeller ?\r\n \r\n {position.dealerCode || ''}\r\n :\r\n \r\n {position.sellerCode || ''}\r\n \r\n ),\r\n headerClassName: 'data-list-ds-dealer',\r\n bodyClassName: 'data-list-ds-dealer',\r\n sortingField: isSeller ? 'dealerCode' : 'sellerCode',\r\n sortingType: SORTING_TYPE.string,\r\n }, {\r\n columnKey: 'live-bidding',\r\n renderColumnHeaderContent: () => 'LiveBidding\\u2122',\r\n headerOnHoverText: '# of your LiveBidding\\u2122 BWICs in which this dealer submitted a bid',\r\n renderColumnContent: position => String(position.liveBiddingNumber),\r\n headerClassName: 'data-list-ds-live-bidding',\r\n bodyClassName: 'data-list-ds-live-bidding',\r\n sortingField: 'liveBiddingNumber',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'bwics',\r\n renderColumnHeaderContent: () => 'Total BWICs',\r\n headerOnHoverText: '# of your BWICs in which this dealer submitted a bid',\r\n renderColumnContent: position => String(position.bwicsNumber),\r\n headerClassName: 'data-list-ds-bwic',\r\n bodyClassName: 'data-list-ds-bwic',\r\n sortingField: 'bwicsNumber',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'invited',\r\n renderColumnHeaderContent: () => 'Total Invited',\r\n headerOnHoverText: isSeller ? '# of BWICs you have invited this dealer to' : '# of BWICs Seller has invited this dealer to',\r\n renderColumnContent: position => String(position.invitedNumber),\r\n headerClassName: 'data-list-ds-invited',\r\n bodyClassName: 'data-list-ds-invited',\r\n sortingField: 'invitedNumber',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'participation-rate',\r\n renderColumnHeaderContent: () => 'Participation %',\r\n headerOnHoverText: 'BWICs Joined (including LiveBidding) / BWICs Invited',\r\n renderColumnContent: position => (position.participationRate * 100).toFixed(2),\r\n headerClassName: 'data-list-ds-rate',\r\n bodyClassName: 'data-list-ds-rate',\r\n sortingField: 'participationRate',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'pxTalk-subm',\r\n renderColumnHeaderContent: () => 'PxTalk Subm %',\r\n headerOnHoverText: '% of your BWICs where this dealer has submitted Px Talk',\r\n renderColumnContent: position => (position.pxTalkSubmissionRate * 100).toFixed(2),\r\n headerClassName: 'data-list-ds-pxtalk',\r\n bodyClassName: 'data-list-ds-pxtalk',\r\n sortingField: 'pxTalkSubmissionRate',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'avg-px-talk-deviation',\r\n renderColumnHeaderContent: () => 'Avg PxTalk Deviation',\r\n headerOnHoverText: 'Average deviation of Px Talk vs traded price',\r\n renderColumnContent: position => (\r\n {position.avgPxTalkDeviation == null ? constants.emptyPlaceholder : position.avgPxTalkDeviation.toFixed(2)}\r\n ),\r\n headerClassName: 'data-list-ds-pxtalk-deviation',\r\n bodyClassName: 'data-list-ds-pxtalk-deviation',\r\n sortingField: 'avgPxTalkDeviation',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: '#-of-bids',\r\n renderColumnHeaderContent: () => 'Bids #',\r\n headerOnHoverText: 'Total number of bids this dealer has submitted across all your BWICs',\r\n renderColumnContent: position => String(position.bidsNumber),\r\n headerClassName: 'data-list-ds-bids',\r\n bodyClassName: 'data-list-ds-bids',\r\n sortingField: 'bidsNumber',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'avg-#-of-impv',\r\n renderColumnHeaderContent: () => 'Avg Impv #',\r\n headerOnHoverText: 'The average number of improvement bids this dealer submits per bond, not including the initial bid',\r\n renderColumnContent: position => position.improvementsAvgNumber.toFixed(2),\r\n headerClassName: 'data-list-ds-impv',\r\n bodyClassName: 'data-list-ds-impv',\r\n sortingField: 'improvementsAvgNumber',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'total-trades',\r\n renderColumnHeaderContent: () => 'Total Trades',\r\n headerOnHoverText: '# of trades completed with this dealer',\r\n renderColumnContent: position => String(position.tradesNumber),\r\n headerClassName: 'data-list-ds-total-trades',\r\n bodyClassName: 'data-list-ds-total-trades',\r\n sortingField: 'tradesNumber',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'win-rate',\r\n renderColumnHeaderContent: () => 'Win %',\r\n headerOnHoverText: 'Trades to # of bonds',\r\n renderColumnContent: position => (position.winRate * 100).toFixed(2),\r\n headerClassName: 'data-list-ds-win-rate',\r\n bodyClassName: 'data-list-ds-win-rate',\r\n sortingField: 'winRate',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: '#-of-bonds',\r\n renderColumnHeaderContent: () => 'Bonds #',\r\n headerOnHoverText:\r\n isSeller\r\n ? 'The number of securities (non-unique) you have posted that this dealer has bid on'\r\n : 'The number of securities (non-unique) Seller has posted that this dealer has bid on',\r\n renderColumnContent: position => String(position.bondsNumber),\r\n headerClassName: 'data-list-ds-bonds',\r\n bodyClassName: 'data-list-ds-bonds',\r\n sortingField: 'bondsNumber',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'aaa',\r\n renderColumnHeaderContent: () => 'AAA',\r\n headerOnHoverText: '# of bonds broken down by rating',\r\n renderColumnContent: position => String(position.aaa),\r\n headerClassName: 'data-list-ds-aaa',\r\n bodyClassName: 'data-list-ds-aaa',\r\n sortingField: 'aaa',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'aa',\r\n renderColumnHeaderContent: () => 'AA',\r\n headerOnHoverText: '# of bonds broken down by rating',\r\n renderColumnContent: position => String(position.aa),\r\n headerClassName: 'data-list-ds-aa',\r\n bodyClassName: 'data-list-ds-aa',\r\n sortingField: 'aa',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'a',\r\n renderColumnHeaderContent: () => 'A',\r\n headerOnHoverText: '# of bonds broken down by rating',\r\n renderColumnContent: position => String(position.a),\r\n headerClassName: 'data-list-ds-a',\r\n bodyClassName: 'data-list-ds-a',\r\n sortingField: 'a',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'bbb',\r\n renderColumnHeaderContent: () => 'BBB',\r\n headerOnHoverText: '# of bonds broken down by rating',\r\n renderColumnContent: position => String(position.bbb),\r\n headerClassName: 'data-list-ds-bbb',\r\n bodyClassName: 'data-list-ds-bbb',\r\n sortingField: 'bbb',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'bb',\r\n renderColumnHeaderContent: () => 'BB',\r\n headerOnHoverText: '# of bonds broken down by rating',\r\n renderColumnContent: position => String(position.bb),\r\n headerClassName: 'data-list-ds-bb',\r\n bodyClassName: 'data-list-ds-bb',\r\n sortingField: 'bb',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'b',\r\n renderColumnHeaderContent: () => 'B',\r\n headerOnHoverText: '# of bonds broken down by rating',\r\n renderColumnContent: position => String(position.b),\r\n headerClassName: 'data-list-ds-b',\r\n bodyClassName: 'data-list-ds-b',\r\n sortingField: 'b',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'other',\r\n renderColumnHeaderContent: () => 'Other',\r\n headerOnHoverText: '# of bonds broken down by rating',\r\n renderColumnContent: position => String(position.otherRatings),\r\n headerClassName: 'data-list-ds-other',\r\n bodyClassName: 'data-list-ds-other',\r\n sortingField: 'otherRatings',\r\n sortingType: SORTING_TYPE.number,\r\n }, {\r\n columnKey: 'nr',\r\n renderColumnHeaderContent: () => 'NR',\r\n headerOnHoverText: '# of bonds broken down by rating',\r\n renderColumnContent: position => String(position.nr),\r\n headerClassName: 'data-list-ds-nr',\r\n bodyClassName: 'data-list-ds-nr',\r\n sortingField: 'nr',\r\n sortingType: SORTING_TYPE.number,\r\n }\r\n ];\r\n return statsColumnDefinitions.map(c => {\r\n return new ColumnBuilder(c);\r\n })\r\n};\r\n","import { useState, useEffect } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { Popup } from '../controls';\r\nimport { Table } from '../bidding/common/table';\r\nimport { statsColumns } from './statsColumns';\r\nimport { Preloader, OnHoverTooltip } from '../common';\r\nimport IconSVG from '../../styles/svg-icons';\r\nimport { roles, SORT } from '../../constants';\r\nimport { user } from '../../user';\r\nimport { dealersStatsActions } from \"../../actions\";\r\nimport { FeatureButton } from '../access/FeatureButton';\r\nimport { RoleActionBlocker } from '../access/RoleActionBlocker';\r\n\r\nexport function Stats() {\r\n const dispatch = useDispatch();\r\n const fetchStatsRequestStatus = useSelector(s => s.dealersStats.fetchStatsRequestStatus);\r\n const fetchStatsExistRequestState = useSelector(s => s.dealersStats.fetchStatsExistRequestState);\r\n const exportStatsRequestStatus = useSelector(s => s.dealersStats.exportStatsRequestStatus);\r\n const stats = useSelector(s => s.dealersStats.stats);\r\n const statsExist = useSelector(s => s.dealersStats.statsExist);\r\n const [visible, setVisible] = useState(false);\r\n const isSeller = user.hasRoles(...roles.seller());\r\n const isBdTrader = user.hasRoles(roles.BrokerDealerTrader);\r\n const title = isSeller ? 'Dealers' : 'Clients';\r\n\r\n\r\n useEffect(() => {\r\n if (isSeller || isBdTrader) {\r\n dispatch(dealersStatsActions.checkStatsExist());\r\n }\r\n }, [isSeller, isBdTrader, dispatch]);\r\n\r\n useEffect(() => {\r\n if (visible) {\r\n dispatch(dealersStatsActions.fetchStats());\r\n }\r\n }, [visible, dispatch]);\r\n\r\n const handleClose = (e) => {\r\n e.stopPropagation();\r\n setVisible(false);\r\n };\r\n\r\n const handleSetVisible = (e) => {\r\n e.stopPropagation();\r\n setVisible(true);\r\n };\r\n\r\n const handleExportDealersStats = (e) => {\r\n e.stopPropagation();\r\n dispatch(dealersStatsActions.exportDealersStats());\r\n };\r\n\r\n const renderPopupTitle = () => {\r\n return (\r\n
\r\n

{title} Stats

\r\n \r\n Export\r\n \r\n
\r\n );\r\n };\r\n\r\n const statsCodeToUpCase = (stats, key) => {\r\n return stats.map(stat => (\r\n {\r\n ...stat,\r\n [key]: stat[key] && stat[key].toUpperCase(),\r\n }\r\n )\r\n )\r\n }\r\n\r\n const changedStats = isSeller\r\n ? statsCodeToUpCase(stats, 'dealerCode')\r\n : statsCodeToUpCase(stats, 'sellerCode');\r\n\r\n const renderPopup = () => {\r\n return (visible &&\r\n \r\n
\r\n \r\n
    \r\n
  • BWICs Participation
  • \r\n
  • Bidding Stats
  • \r\n
  • Bonds by Rating
  • \r\n
\r\n \r\n
\r\n
\r\n {\r\n !fetchStatsRequestStatus &&\r\n
\r\n \r\n
\r\n }\r\n \r\n );\r\n };\r\n\r\n const renderButton = () => {\r\n const isDisabled = !statsExist && !fetchStatsExistRequestState;\r\n\r\n return (\r\n \r\n {blocked =>\r\n \r\n \r\n {title} Stats\r\n \r\n \r\n }\r\n \r\n );\r\n }\r\n\r\n return (\r\n <>\r\n {renderButton()}\r\n {renderPopup()}\r\n \r\n );\r\n}\r\n","import * as React from 'react';\r\nimport { TabItem, TabList } from '../bidding/common/tab-list';\r\nimport { roles, routes } from '../../constants';\r\nimport { AllBwicsTab } from './AllBwicsTab';\r\nimport { ShowFor } from '../access';\r\nimport { useSelector } from 'react-redux';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { TradedPositionsCountBadge } from '../common/TradedPositionsCountBadge';\r\nimport { TradeStatus } from '../../types/trades/TradeStatus';\r\nimport { user } from '../../user';\r\n\r\ninterface Props {\r\n activeTab?: AllBwicsTab;\r\n}\r\n\r\nexport function AllBwicsTabList({ activeTab = AllBwicsTab.All }: Props) {\r\n const tradedPositionsCount = useSelector((state: AppState) => state.tradeConfirm.tradedPositions.filter(p => p.trade.status === TradeStatus.pending).length);\r\n const isBd = user.hasRoles(...roles.bd());\r\n\r\n return (\r\n \r\n \r\n \r\n Buy}\r\n path={isBd ? routes.myBWICs : routes.sellerBuy}\r\n active={activeTab === AllBwicsTab.Buy}\r\n />\r\n \r\n {!user.current()?.isClearingBank && \r\n \r\n }\r\n \r\n );\r\n}\r\n"],"names":["AllBwicsTab","getFilterType","tab","Buy","BwicFilterType","BwicMonitorBuy","Sell","BwicMonitorSell","BwicMonitor","getState","state","bwicMonitorBuy","bwicMonitorSell","bwicMonitor","getAdditionalFilters","bwicMonitorBuyFilters","additionalFilters","bwicMonitorSellFilters","bwicMonitorFilters","AllBwicsFilter","_ref","_ref$disabled","disabled","myBwicsExist","requestStateIsMyBwicsExist","dispatch","useAppDispatch","filterType","useMemo","filterActions","createFilterActions","isFilterChanged","useAppSelector","s","filters","filterChanged","isFilterModified","filterModified","visibleFilters","filter","lastAppliedFilter","searchInProgress","allBWICS","isNextPageRequesting","selectedFilterReferenceName","useEffect","isRequestSuccess","resetFiltersAndUnselectSavedFilter","_jsx","BwicFilters","allowCollapsing","All","withAlerts","isSearching","isRequestNone","isRequesting","hiddenFilters","withBlockedSearchAndFilter","saveFilterVisible","pageConfigType","PageConfigType","BwicMonitorAll","saveFilterBlockerFeature","SubscriptionFeature","BwicMonitorSavedFilters","advancedFiltersBlockerFeature","BwicMonitorAvancedFilters","filterAlertPopupTooltips","_defineProperty","AlertOption","Daily","textLabels","savedFiltersDefaultDailyTooltip","Instant","savedFiltersDefaultInstantTooltip","onVisibilityChange","key","filterVisibilityChange","onApply","allBWICSActions","advancedFilterBlocked","searchBwics","onReset","MyBwicCustomButtons","bwic","bwicIndex","onCancel","activeTab","_jsxs","className","onClick","e","stopPropagation","children","BwicViewLink","small","referenceName","status","isDirectBidding","isClearingBankParticipant","isAllToAll","isMy","isParticipant","isParsed","OnBoardingTooltip","page","onBoardingTooltipConst","pages","allBwics","step","BwicStatus","scheduled","ContextMenu","text","menuItems","requiredRoles","roles","SellerTrader","BrokerDealerTrader","action","ShowFor","role","SellerAdministrator","finished","ExportButton","tooltipText","bwicReferenceName","textVisible","AllBWICCustomButtons","Relative","concat","_toConsumableArray","seller","bd","BuyerBidButton","position","history","useHistory","agreement","useAgreement","handleClick","path","urlBuilder","routes","sellerBuy","statuses","isinCusipsAndTickers","encodeURI","ticker","push","canBid","isColorDistribution","RoleActionBlocker","placement","TooltipPlacement","BottomRight","blocked","DirectBiddingDisclaimerActionBlocker","onConfirm","OnHoverTooltip","overlay","FeatureButton","ViewBwicRulesButton","rowIndex","isBrokerDealer","bwicRulesVisible","useSelector","rules","show","activeBwic","_s$allBWICS$bwics","activeBwicReferenceName","bwics","find","b","activePositionId","bwicHistory","visible","positionId","securityDetails","security","id","bwicLog","pxTalkList","isBwicRulesVisible","_Fragment","BwicRulesPseudoLink","cn","setActiveBwic","rulesActions","hide","undefined","process","parsedProcess","BwicTradedAmount","tradedAmount","securities","isActiveTrade","trade","map","_trade$size","_trade","size","reduce","accumulator","value","IconSVG","name","width","height","moneyUtils","amountToMM","AllBwicsControlPanel","ControlPanel","historyEnabled","showEvalValues","user","hasRoles","Media","accessDealDocumentsFeature","CanAccessDealDocuments","onClose","BwicGroupView","activeInventorySecurityIdByCount","pageConfig","columnsConfig","hasFeatures","BwicMonitorColumnCustomizer","columns","isSeller","apply","isSellerTrader","isBrokerDealerTrader","isSellerAdmin","isDataEntry","DataEntry","isViewer","Viewer","isMedia","totalRecordNumber","companyDetailsPanelVisible","companyDetails","isPanelVisible","isAllTab","isBuyTab","isSellTab","isBdBuyTab","isBdSellTab","_getAmrColumns","getAmrColumns","_PipelineColumn$manag","PipelineColumn","manager","managerAmrColumn","restAmrColumns","_objectWithoutProperties","_toPropertyKey","_objectSpread","sortingField","renderLevel","level","canceled","constants","emptyPlaceholder","sellerPosition","BidLevelComponent","bwicStatus","bids","allowFeedback","getPositionListColumns","_createColumnListBuil","canViewBuyerBidButton","isinCusip","columnKey","configKey","ColumnConfigKey","IsinCusip","renderColumnHeaderContent","renderColumnContent","Ticker","context","TickerButton","fetchAgencyRatings","viewInventory","Inventory","InfoTooltip","_ref3","bidding","securityId","SecurityInventoryLink","count","asset","Asset","ccy","Currency","currency","rating","Rating","Size","evalPriceTalk","EvalPriceTalk","EvalKTalkLabel","withInfoButton","_position$normalizedL","normalizedLevelEvalPriceTalk","priceTalk","PxTalk","_ref4","PxTalkListButton","pxTalks","requiredFeature","BwicMonitorBwicsData","color","Color","formatUtils","formatColor","buyerBidButton","_ref5","stickRight","brokerDealerFeedback","p","_ref6","currentBid","biddingUtils","getCurrentBid","type","BwicProcessType","Live","LiveBiddingStrage2LevelData","requestState","data","Preloader","inProgress","LiveBiddingStage2Level","stagedBiddingStatus","levelSpecificationType","liveBidding","stage2Level","openBiddingStage2Level","tiedToBest","tiedForBest","animated","BidFeedback","feedback","feedbackDate","feedbackCreatedUtc","bidRequest","bidsDueUtc","bidsDueDateUtc","brokerDealerBiddingInfo","_ref7","_position$canBidOnSta","liveBiddingStage2Expired","liveBiddingUtils","checkLiveBiddingStage2Expired","BiddingInfo","canBidOnStage2","isStage2Participant","expired","brokerDealerBid","isPass","Boolean","pass","hasBidValue","Number","formatBid","axed","AxedIcon","final","FinalIcon","liveBiddingStage2Timer","_ref8","isBidding","isTradedAway","OpenBiddingStatus","stage1Ended","LiveBiddingStage2Timer","latestBidSubmission","onExpired","BwicStatusTimerLabel","directBidding","goodUntilUtc","goodUntilDateUtc","bwicTypeIconVisible","renderEmpty","docs","DealDocuments","documentsCount","ViewDealDocumentsButton","brokerDealerAction","Actions","_ref9","TradeAction","best","_ref10","BidLevel","Best","cover","_ref11","Cover","third","_ref12","Third","externalLinks","IntexLink","BloombergLink","identifier","ValitanaLink","dealLookupLink","dealReferenceName","dealLegalName","ImDealLookupLink","canBrokerDealerBid","amrColumns","values","c","createColumnListBuilder","addWhen","add","result","coupon","CurrentCoupon","bwicColumnsLabels","amrFormatUtils","formatInventoryCoupon","floaterIndex","margin","forEach","Vintage","insertCurrentCoupon","ColumnBuilder","collapseStickRightColumn","length","EmptyPlaceholder","onResetClick","searchSecuritiesActions","reset","IntersectionObserverProvider","Table","collapsible","sticky","dataItems","defaultExpandAll","createSecurityCustomClassName","BwicStatusLabel","bodyClassName","myFlag","MyBwicIcon","sameDay","isSameDayBwic","SameDayBwicIcon","dueDate","bidsDue","moment","local","isSame","dateTimeUtils","utcToLocalString","bwicRules","companyDetailsButton","BwicCreator","rowKey","goodUntil","bwicActions","ListBuilder","_getPositionListColum","right","_slicedToArray","emptyCollapseRowCell","itemNumber","arguments","getEmptyCollapseRowCell","x","_ref2","column","includes","getEmptyPlaceholderColumns","getBwicColumns","renderCollapsibleItem","columnType","highlightTradedState","_getPositionListColum3","_getPositionListColum4","left","middle","TableColumnStickType","Left","Middle","Right","StickyTableRow","String","dataItem","highlighted","tradedaway","TradeStatus","rejected","affirmed","infiniteScrollEnabled","onNextPageRequest","loadNextPage","renderHeaderRow","stickType","headerContext","_getPositionListColum5","_getPositionListColum6","renderHeader","CompanyDetailsPanel","NewBwicButton","AllToAllArgeementRequiredActionBlocker","FeatureLink","newBWIC","BwicResultPlaceholder","isLoading","adavancedFiltersBlocked","allToAllAgreementBlocked","useAllToAllAgreementBlocked","noResults","BlockedFeatureContent","inline","SubscribeLink","_getPlaceholderProps","title","SellerViewer","getPlaceholderProps","AllBwicsSummaryRow","totalBwics","summary","SummaryRow","RequiredFeature","feature","BwicMonitorCanViewSummaryRow","SummaryRowGroup","groupName","SummaryRowItem","label","tooltip","toLocaleString","usdVolume","amountToRoundedMM","euroVolume","totalPositions","totalDealerBids","totalDirectBids","totalTraded","totalBids","aaa","aa","a","bbb","bb","ccc","d","nr","AllBwics","myBwicsOnly","_ref$activeTab","location","useLocation","isPageConfigSupported","_usePageConfig","usePageConfig","config","pageConfigRequestState","defaultConfigRequestState","searchTermItems","searchSecurities","sortBy","allToAllState","isRequestingExportBwics","myBwicsOnlyState","_useActiveInventorySe","useActiveInventorySecuritesIds","hasSingleRole","_useActiveInventorySe2","activeInvenotryRequestState","_useMyBwicsExist","useMyBwicsExist","_useMyBwicsExist2","managersRequestState","useManagersFilterData","trusteeRequestState","useTrusteeFilterData","_useState","useState","_useState2","cancelBwicDialogVisible","setCancelBwicDialogVisible","_useState3","_useState4","setBwic","isFilterDisabled","isPageConfigLoaded","isRequestFailed","isColumnCustomizerDisabled","hideSettlementAgentAgreementBanner","actions","init","search","controlPanelActions","pushHistoryActions","showCancelBwicDialog","useCallback","closeCancelBwicDialog","AllBwicsTabList","admin","SecuritiesSearchInput","onSearch","BwicMonitorSecuritySearch","hidden","Stats","BwicMonitorAlertsPreferences","ActionBlocker","exportAllBwics","fullScreen","exportBwics","BwicMonitorSorting","SortDropdown","items","Object","BwicMonitorSortByOptions","bwicMonitorSortByOptionsText","selected","onChange","sortChanged","BwicColumnCustomizer","tabs","defaultTab","RequestSettlementAgentAgreementBanner","appConfig","isSummaryRowHidden","CancelReasonPopup","reason","sellerBiddingActions","cancelBwic","statsColumns","dealerName","dealerCode","sellerName","sellerCode","headerClassName","sortingType","SORTING_TYPE","string","headerOnHoverText","liveBiddingNumber","number","bwicsNumber","invitedNumber","participationRate","toFixed","pxTalkSubmissionRate","avgPxTalkDeviation","bidsNumber","improvementsAvgNumber","tradesNumber","winRate","bondsNumber","otherRatings","useDispatch","fetchStatsRequestStatus","dealersStats","fetchStatsExistRequestState","exportStatsRequestStatus","stats","statsExist","setVisible","isBdTrader","dealersStatsActions","checkStatsExist","fetchStats","handleClose","handleSetVisible","handleExportDealersStats","exportDealersStats","statsCodeToUpCase","stat","toUpperCase","changedStats","isDisabled","renderButton","Popup","modalClass","renderTitle","renderInBody","defaultSortBy","defaultSortByDirection","SORT","DESC","ASC","_user$current","tradedPositionsCount","tradeConfirm","tradedPositions","pending","isBd","TabList","TabItem","allBWICs","active","TradedPositionsCountBadge","hideCount","myBWICs","current","isClearingBank","allToAll","sellerSell"],"sourceRoot":""}