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AAA,EAAeE,eAAAA,EAC5B,C,mHCnCO,SAASE,EAAoCvL,GAAsC,IAADxb,EAAlB+C,EAAQnH,UAAAC,OAAA,QAAAC,IAAAF,UAAA,IAAAA,UAAA,GACrEqB,GAAWC,EAAAA,EAAAA,MACjBwG,EAAyH,QAAzH1D,GAAiCC,EAAAA,EAAAA,KAAY,SAAC5C,GAAW,OAAKA,EAAE8C,SAAS6mB,0BAA0BC,WAAWzL,EAAU,WAAC,IAAAxb,EAAAA,EAAI,CACzHK,aAAcgC,EAAAA,EAAauB,KAAMsjB,OAAQ,CAAC,GADtC7mB,EAAYqD,EAAZrD,aAAc6mB,EAAMxjB,EAANwjB,OAUtB,OANApjB,EAAAA,WAAgB,YACRjB,EAAAA,EAAAA,IAAcxC,KAAkB0C,GAChC9F,EAASkqB,EAAAA,IAAoBC,iCAAiC5L,GAEtE,GAAG,CAACnb,EAAcmb,EAAWzY,EAAU9F,IAEhC,CAAEoD,aAAAA,EAAc6mB,OAAAA,EAC3B,C,wGCdaG,EAAiC,WAAuB,IAAtBtkB,EAAQnH,UAAAC,OAAA,QAAAC,IAAAF,UAAA,IAAAA,UAAA,GAC7CqB,GAAWC,EAAAA,EAAAA,MAEXoqB,GAAsBrnB,EAAAA,EAAAA,KAAY,SAAC5C,GAAW,OAAKA,EAAE8C,SAASonB,yBAAyB,IAW7F,OATA7pB,EAAAA,EAAAA,YAAU,YACFmF,EAAAA,EAAAA,IAAcykB,EAAoBjnB,gBAAkB0C,GACpD9F,EAASuqB,EAAAA,EAA+BC,mCAEhD,GAAG,CAACxqB,EAAUqqB,EAAoBjnB,aAAc0C,IAG5C,CAACukB,EAAoBjnB,aAAcinB,EAAoBhnB,MAG/D,C","sources":["effects/useBiddingCompletedNotification.ts","effects/data-accessors/useParties.ts","effects/useFavorites.ts","effects/data-accessors/useTradeAllocation.ts","effects/data-accessors/useSecurityLatestTransaction.ts","effects/useBrowserTabBlinkAnimation.ts","effects/useQuery.ts","effects/data-accessors/useAssetManagers.ts","effects/data-accessors/useCountries.ts","effects/data-accessors/useCities.ts","effects/useBwicWithSecurityExist.tsx","effects/data-accessors/useStates.ts","effects/data-accessors/useTrustee.ts","effects/data-accessors/useTradeAllocationTemplates.ts","effects/data-accessors/useNextBusinessDates.ts","effects/useDealTransactions.ts","effects/useImUserCompany.ts","effects/useSortedListByManyFields.ts","effects/useAppDispatch.ts","effects/data-accessors/useSettlementAccounts.ts","effects/useGetWebinar.ts","effects/useFocusOnError.js","effects/bidding/useBiddingCompletedSoonNotification.ts","effects/useAppSelector.ts","effects/useHistoryListener.ts","effects/useAssetManagers.ts","effects/data-accessors/useAvailableBrokerDealers.ts","effects/data-accessors/useCollateralManagers.ts","effects/data-accessors/useSecurityArrangersPipeline.ts","effects/useDownloadDocumentList.tsx","effects/useCurrentUserCompany.ts","effects/useLocationStateReset.ts","effects/useFilterNextLine.ts","effects/useResizeObserever.ts","effects/data-accessors/useBwicsSearch.ts","effects/useSecurityDocumentsExistFlag.ts","effects/useDebounce.ts","effects/useSettlementAgentAgreements.ts","effects/amr/usePreviousTransaction.ts","effects/useSetOnBoardingTooltipCountRequest.ts","effects/useAmrDocuments.tsx","effects/useDealersFilter.ts","effects/useSortedList.js","effects/useBackspaceRedirectBlocker.js","effects/useCacheOnBoardingState.js","effects/usePrevious.js","effects/useRequestInviteBuysideClients.jsx","effects/useBrokerDealers.ts","effects/data-accessors/useInventory.ts","effects/data-accessors/useCompany.ts","effects/useBrokerDealerUsers.ts","effects/useMyBwicsExist.ts","history.js","effects/useSettlementInstructions.tsx","effects/useCompanyUserList.ts","effects/usePriceTalks.ts","effects/data-accessors/useLiveBiddingData.ts","effects/data-accessors/useCloSystemInfrastructure.ts","effects/useExcludedDealers.tsx","effects/data-accessors/useEmailPreferences.ts","effects/data-accessors/useRejectedTrades.ts","effects/useRequestUserFeedback.js","effects/useAllToAllAgreementBlocked.ts","effects/usePortfolios.ts","effects/useBrokerDealerContacts.ts","effects/useDownloadDocument.ts","effects/data-accessors/useSettlementAgentDefaultCommission.tsx","effects/useActiveInventorySecuritesIds.ts"],"sourcesContent":["import { useEffect } from \"react\";\r\nimport { useAppSelector } from \"./useAppSelector\";\r\nimport { PushHistoryStateItemType } from \"../types/state/PushHistoryState\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { notificationActions } from \"../actions\";\r\nimport { BwicProcessType } from \"../types/models/Process\";\r\nimport { BwicBase } from \"../types/bwic/BwicBase\";\r\nimport { dateTimeUtils } from \"../utils\";\r\nimport { pushHistoryActions } from \"../actions/entities/push-history.actions\";\r\nimport { BwicPositionBase } from \"../types/bwic/BwicPositionBase\";\r\n\r\nexport enum RecipientType {\r\n Seller,\r\n Bidder\r\n}\r\n\r\ntype BiddingCompletedNotificationBwic = BwicBase & {\r\n securities: BwicPositionBase[];\r\n}\r\n\r\nexport function useBiddingCompletedNotification(\r\n recipient: RecipientType = RecipientType.Bidder,\r\n ...accepted: BiddingCompletedNotificationBwic[]) {\r\n\r\n // BFF \r\n useNotification(\r\n PushHistoryStateItemType.BwicStage1Ended,\r\n accepted,\r\n recipient,\r\n BwicProcessType.BestFootForward);\r\n\r\n // Live, TopX, JumpBall\r\n useNotification(\r\n PushHistoryStateItemType.BwicStage2Ended,\r\n accepted,\r\n recipient,\r\n BwicProcessType.Live,\r\n BwicProcessType.JumpBall,\r\n BwicProcessType.TopX\r\n );\r\n}\r\n\r\nfunction useNotification(\r\n pushType: PushHistoryStateItemType,\r\n accepted: BiddingCompletedNotificationBwic[],\r\n recipient: RecipientType,\r\n ...processTypes: BwicProcessType[]) {\r\n const dispatch = useDispatch();\r\n\r\n const push = useAppSelector(s => s.pushHistory.history[pushType]?.at(-1));\r\n\r\n const formatTickers = (securities: BwicPositionBase[]) =>\r\n `Securities from BWIC: `\r\n\r\n const showBiddingCompletedNotification = (bwic: BiddingCompletedNotificationBwic) => {\r\n const bidsDue = dateTimeUtils.utcToLocalString(bwic.bidsDueUtc ?? bwic.bidsDueDateUtc);\r\n const title = `Bidding period is completed ${bidsDue}, ${bwic.name}`;\r\n const message = recipient === RecipientType.Bidder\r\n ? 'No bids are accepted. BWIC is in the Bidding status until Seller completes the BWIC manually.'\r\n : bwic.process.type === BwicProcessType.BestFootForward\r\n ? 'Bidding period is completed. Bidders will no longer be able to improve their bids, however, you will be able to trade and send color.'\r\n : 'Stage 2 is completed. Bidders will no longer be able to improve their bids, however, you will be able to trade and send color.';\r\n const tabText = [document.title.toString(), 'Bidding period is completed'];\r\n\r\n dispatch(notificationActions.infoModalReplace(\r\n bwic.referenceName,\r\n `
${message}
` + formatTickers(bwic.securities),\r\n title,\r\n tabText,\r\n 'bidding-completed-popup')\r\n );\r\n }\r\n\r\n useEffect(() => {\r\n if (push != null) {\r\n const target = accepted.find(b => b &&\r\n b.referenceName === push.bwicReferenceName &&\r\n processTypes.some(p => p === b.process.type)\r\n );\r\n if (target) {\r\n showBiddingCompletedNotification(target);\r\n dispatch(pushHistoryActions.resetForType(pushType));\r\n }\r\n }\r\n // eslint-disable-next-line\r\n }, [push]);\r\n}","import { useCallback, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { errorActions } from \"../../actions\";\r\nimport { trusteeActions } from \"../../actions/entities/trustee.actions\";\r\nimport { RequestState } from \"../../constants/request-state\";\r\nimport { Company } from \"../../types/amr-pipeline/models/Company\";\r\nimport { AppState } from \"../../types/state/AppState\";\r\nimport { isRequestNone } from \"../../utils\";\r\nimport { amrCompaniesService } from \"../../services/amr-companies.service\";\r\nimport { partiesActions } from \"../../actions/entities/parties.actions\";\r\nimport { CompanyStatus } from \"../../types/amr-pipeline/enums/CompanyStatus\";\r\n\r\nconst visibleStatuses = [CompanyStatus.Active, CompanyStatus.OffPlatform];\r\n\r\nexport const useParties = () => {\r\n const dispatch = useDispatch();\r\n const { requestState, items } = useSelector(\r\n (state: AppState) => state.entities.parties\r\n );\r\n\r\n const getCompanies = useCallback(async () => {\r\n try {\r\n dispatch(partiesActions.request());\r\n\r\n const [\r\n arrangerCompanies,\r\n trusteeCompanies,\r\n collateralManagerCompanies,\r\n majorityEquityCompanies,\r\n amrAgentCompanies,\r\n ] = await Promise.all>([\r\n amrCompaniesService.getArrangersList(false, visibleStatuses),\r\n amrCompaniesService.getTrusteeList(visibleStatuses),\r\n amrCompaniesService.getCollateralManagerList(visibleStatuses),\r\n amrCompaniesService.getMajorityEquityList(visibleStatuses),\r\n amrCompaniesService.getAmrAgentList(visibleStatuses),\r\n ]);\r\n\r\n dispatch(\r\n partiesActions.requestResult(RequestState.success, {\r\n arrangerCompanies,\r\n trusteeCompanies,\r\n collateralManagerCompanies,\r\n majorityEquityCompanies,\r\n amrAgentCompanies,\r\n })\r\n );\r\n } catch (e) {\r\n dispatch(errorActions.unexpectedError(e));\r\n dispatch(trusteeActions.requestResult(RequestState.failure));\r\n }\r\n }, [dispatch]);\r\n\r\n useEffect(() => {\r\n if (isRequestNone(requestState)) {\r\n getCompanies();\r\n }\r\n }, [requestState, dispatch, getCompanies]);\r\n\r\n return { requestState, items };\r\n};\r\n\r\n","import { useEffect } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { user } from '../user';\r\nimport { favoriteBrokerDealersActions } from '../actions/favorite-broker-dealers.actions';\r\nimport { AppState } from '../types/state/AppState';\r\nimport { isRequestNone } from '../utils/request-state.utils';\r\nimport { roles } from '../constants';\r\n\r\nexport const useFavorites = (disabled = false) => {\r\n const dispatch = useDispatch();\r\n const favorites = useSelector((state: AppState) => state.favoriteBrokerDealers.favorites);\r\n const requestState = useSelector((state: AppState) => state.favoriteBrokerDealers.requestState);\r\n useEffect(() => {\r\n if (user.hasRoles(roles.SellerTrader) && isRequestNone(requestState) && !disabled) {\r\n dispatch(favoriteBrokerDealersActions.fetchFavoriteBrokerDealersRequest())\r\n }\r\n }, [dispatch, favorites, requestState, disabled]);\r\n return { requestState, favorites }\r\n};\r\n","import * as React from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { tradeAllocationActions } from '../../actions/trade-allocation.actions';\r\nimport { RequestState } from '../../constants/request-state';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { shouldRequest } from '../../utils/request-state.utils';\r\n\r\nexport function useTradeAllocation(tradeId: string, disabled: boolean = false) {\r\n const dispatch = useDispatch();\r\n const { requestState, tradeAllocationItems } = useSelector((s: AppState) => s.entities.tradeAllocation.items[tradeId])\r\n ?? { requestState: RequestState.none, tradeAllocationItems: [] };\r\n\r\n React.useEffect(() => {\r\n if (shouldRequest(requestState) && !disabled) {\r\n dispatch(tradeAllocationActions.request(tradeId));\r\n }\r\n }, [tradeId, requestState, disabled, dispatch])\r\n\r\n return { requestState, tradeAllocationItems };\r\n}\r\n","import { useEffect } from \"react\";\r\nimport { useAppDispatch } from \"../useAppDispatch\";\r\nimport { errorActions } from \"../../actions\";\r\nimport { latestTransactionActions } from \"../../actions/entities/latest-transaction.actions\";\r\nimport { RequestState } from \"../../constants/request-state\";\r\nimport { useAppSelector } from \"../useAppSelector\";\r\nimport { isRequestNone } from \"../../utils\";\r\nimport { amrPipelineService } from \"../../services/amr-pipeline.service\";\r\n\r\nexport function useSecurityLatestTransaction(tickers: string[]) {\r\n const dispatch = useAppDispatch();\r\n const requestState = useAppSelector(s => s.entities.latestTransaction.requestState);\r\n\r\n\r\n useEffect(() => {\r\n if (!isRequestNone(requestState) || !tickers.length) return;\r\n\r\n const doRequest = async () => {\r\n dispatch(latestTransactionActions.request(tickers));\r\n\r\n try {\r\n const transactions = await amrPipelineService.getLatestTransactionsByTicker(tickers);\r\n dispatch(latestTransactionActions.response(RequestState.success, transactions));\r\n } catch (e) {\r\n dispatch(latestTransactionActions.response(RequestState.failure));\r\n dispatch(errorActions.error(e));\r\n }\r\n }\r\n\r\n doRequest();\r\n // eslint-disable-next-line\r\n }, [JSON.stringify(tickers), dispatch, requestState])\r\n}","import { useEffect, useRef, useState } from \"react\";\r\n\r\nconst timeout = 1700;\r\n\r\nexport function useBrowserTabBlinkAnimation(text: string[]) {\r\n const original = useRef(document.title);\r\n const [index, setIndex] = useState(0);\r\n\r\n if (text.length) {\r\n document.title = document.hidden ? text[index] : original.current;\r\n }\r\n\r\n useEffect(() => {\r\n if (text.length) {\r\n setTimeout(\r\n () => setIndex(index === text.length - 1 ? 0 : index + 1),\r\n timeout)\r\n }\r\n // eslint-disable-next-line\r\n }, [index]);\r\n\r\n\r\n useEffect(()=> {\r\n return () => {\r\n // eslint-disable-next-line\r\n document.title = original.current\r\n }\r\n }, [])\r\n}","import { fromPairs } from 'lodash';\r\nimport { useMemo } from 'react';\r\nimport { useLocation } from 'react-router';\r\n\r\nexport const useQuery = () => {\r\n const { search } = useLocation();\r\n\r\n return useMemo(() => fromPairs(Array.from(new URLSearchParams(search).entries())) as T, [search]);\r\n};\r\n","import * as React from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { assetManagerActions } from '../../actions/asset-manager.actions';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { shouldRequest } from '../../utils';\r\n\r\nexport function useAssetManagers() {\r\n const dispatch = useDispatch();\r\n const { requestState, items } = useSelector((s: AppState) => s.entities.assetManager);\r\n\r\n React.useEffect(() => {\r\n if (shouldRequest(requestState)) {\r\n dispatch(assetManagerActions.request());\r\n }\r\n }, [requestState, dispatch]);\r\n\r\n return { assetManagersRequestState: requestState, assetManagers: items };\r\n}\r\n","import { useCallback, useEffect, useState } from 'react';\r\nimport { RequestState } from '../../constants/request-state';\r\nimport { locationService } from '../../services';\r\nimport { Country } from '../../types/location/Country';\r\n\r\nexport const useCountries = () => {\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n const [countries, setCountries] = useState([]);\r\n\r\n const getCountries = useCallback(async () => {\r\n try {\r\n setRequestState(RequestState.request);\r\n const countries = await locationService.getCountries();\r\n setCountries(countries)\r\n setRequestState(RequestState.success);\r\n } catch (e) {\r\n setRequestState(RequestState.failure);\r\n }\r\n }, [])\r\n\r\n useEffect(() => {\r\n getCountries()\r\n }, [getCountries])\r\n\r\n\r\n return {countries, requestState}\r\n}\r\n","import { useCallback, useEffect, useState, useRef } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { locationService } from '../../services';\r\nimport { City } from '../../types/location/City';\r\nimport { errorActions } from '../../actions';\r\nimport { RequestState } from '../../constants/request-state';\r\nimport { isRequesting } from '../../utils';\r\n\r\nexport const useCities = (stateId: number) => {\r\n const dispatch = useDispatch();\r\n const currentStateId = useRef(stateId)\r\n\r\n const [cities, setCities] = useState([]);\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n\r\n const getCities = useCallback(async () => {\r\n if (stateId && (currentStateId.current !== stateId || !isRequesting(requestState))) {\r\n currentStateId.current = stateId;\r\n try {\r\n setRequestState(RequestState.request)\r\n const cities = await locationService.getCities(stateId)\r\n setCities(cities)\r\n setRequestState(RequestState.success)\r\n } catch (e) {\r\n setRequestState(RequestState.failure)\r\n dispatch(errorActions.unexpectedError(e))\r\n }\r\n }\r\n }, [stateId, dispatch, requestState])\r\n\r\n useEffect(() => {\r\n getCities()\r\n }, [getCities]);\r\n\r\n return { cities }\r\n}\r\n","import { useEffect, useState } from 'react';\r\nimport { isRequestNone } from '../utils';\r\nimport { RequestState } from '../constants/request-state';\r\nimport { logger } from '../logging/logger';\r\nimport { bwicService } from '../services/bwic.service';\r\n\r\nexport const useBwicWithSecurityExist = (securityId: number, disabled = false) => {\r\n const [exist, setExist] = useState(false);\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n\r\n useEffect(() => {\r\n async function request() {\r\n try {\r\n const existRequest = await bwicService.isBwicWithSecuritesExist([securityId]);\r\n setExist(existRequest);\r\n setRequestState(RequestState.success);\r\n } catch(e) {\r\n logger.exception(e as Error, 'Failed to request exist bwics with securities');\r\n setRequestState(RequestState.failure);\r\n }\r\n }\r\n\r\n if (isRequestNone(requestState) && !disabled) {\r\n setRequestState(RequestState.request);\r\n request();\r\n }\r\n }, [requestState, securityId, disabled]);\r\n\r\n useEffect(() => {\r\n // Reset state if securityId is changed\r\n setRequestState(RequestState.none);\r\n setExist(false);\r\n }, [securityId]);\r\n\r\n const result: [requestState: RequestState, exist: boolean] = [requestState, exist];\r\n\r\n return result;\r\n};\r\n","import { locationService } from '../../services';\r\nimport { constants } from '../../constants';\r\nimport { useCallback, useEffect, useState } from 'react';\r\nimport { State } from '../../types/location/State';\r\nimport { useDispatch } from 'react-redux';\r\nimport { errorActions } from '../../actions';\r\nimport { RequestState } from '../../constants/request-state';\r\nimport { isRequesting } from '../../utils';\r\n\r\nexport const useStates = () => {\r\n const dispatch = useDispatch();\r\n const [states, setStates] = useState([]);\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n\r\n const getStates = useCallback(async () => {\r\n try {\r\n setRequestState(RequestState.request)\r\n const states = await locationService.getStates(constants.USCountryCode)\r\n setStates(states)\r\n setRequestState(RequestState.success)\r\n } catch (e) {\r\n setRequestState(RequestState.failure)\r\n dispatch(errorActions.unexpectedError(e))\r\n }\r\n }, [dispatch])\r\n\r\n useEffect(() => {\r\n if(!isRequesting(requestState)) {\r\n getStates()\r\n }\r\n }, [requestState, getStates])\r\n\r\n return { states, requestState };\r\n}\r\n","import { useCallback, useEffect } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { errorActions } from '../../actions';\r\nimport { trusteeActions } from '../../actions/entities/trustee.actions';\r\nimport { RequestState } from '../../constants/request-state';\r\nimport { Company } from '../../types/amr-pipeline/models/Company';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { isRequestNone } from '../../utils';\r\nimport { amrCompaniesService } from '../../services/amr-companies.service';\r\n\r\nexport const useTrustee = () => {\r\n const dispatch = useDispatch();\r\n const { requestState, items } = useSelector((state: AppState) => state.entities.trustee);\r\n\r\n const getTrustee = useCallback(async () => {\r\n try {\r\n dispatch(trusteeActions.request());\r\n const trustee: Company[] = await amrCompaniesService.getTrusteeList();\r\n dispatch(trusteeActions.requestResult(RequestState.success, trustee));\r\n } catch (e) {\r\n dispatch(errorActions.unexpectedError(e));\r\n dispatch(trusteeActions.requestResult(RequestState.failure, []));\r\n }\r\n }, [dispatch])\r\n\r\n useEffect(() => {\r\n if (isRequestNone(requestState)) {\r\n getTrustee()\r\n }\r\n }, [requestState, dispatch, getTrustee]);\r\n\r\n return { requestState, items, }\r\n}\r\n","import * as React from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { tradeAllocationTemplateActions } from '../../actions/trade-allocation-template.actions';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { shouldRequest } from '../../utils';\r\n\r\nexport function useTradeAllocationTemplates(disabled: boolean = false) {\r\n const dispatch = useDispatch();\r\n const { requestState, items } = useSelector((s: AppState) => s.entities.tradeAllocationTemplate);\r\n\r\n React.useEffect(() => {\r\n if (!disabled && shouldRequest(requestState)) {\r\n dispatch(tradeAllocationTemplateActions.request());\r\n }\r\n }, [requestState, disabled, dispatch]);\r\n\r\n return { tradeAllocationTemplatesRequestState: requestState, templates: items };\r\n}\r\n","import { useDispatch } from 'react-redux';\r\nimport { isRequestNone } from '../../utils';\r\nimport { daysService } from '../../services';\r\nimport { errorActions } from '../../actions';\r\nimport { useEffect, useState } from 'react';\r\nimport { RequestState } from '../../constants/request-state';\r\nimport { Moment } from 'moment';\r\n\r\nexport function useNextBusinessDates(from: Moment, daysCount: number = 10) {\r\n const dispatch = useDispatch();\r\n const [requestStateFetchNextBusinessDates, setRequestStateFetchNextBusinessDates] = useState(RequestState.none);\r\n const [nextBusinessDates, setNextBusinessDates] = useState([]);\r\n\r\n useEffect(() => {\r\n if (isRequestNone(requestStateFetchNextBusinessDates)) {\r\n (async () => {\r\n try {\r\n setRequestStateFetchNextBusinessDates(RequestState.request);\r\n const nextBusinessDates = await daysService.getNextBusinessDates(from, daysCount);\r\n setNextBusinessDates(nextBusinessDates);\r\n setRequestStateFetchNextBusinessDates(RequestState.success);\r\n } catch (e) {\r\n setRequestStateFetchNextBusinessDates(RequestState.failure);\r\n dispatch(errorActions.error(e));\r\n }\r\n })();\r\n }\r\n }, [requestStateFetchNextBusinessDates, daysCount, from, dispatch]);\r\n\r\n return { nextBusinessDates, requestStateFetchNextBusinessDates };\r\n}\r\n","import { useEffect, useState } from \"react\";\r\nimport { RequestState } from \"../constants/request-state\";\r\nimport { isRequesting } from \"../utils\";\r\nimport { dealsService } from \"../services/deals.service\";\r\nimport { Transaction } from \"../types/amr-pipeline/models/Transaction\";\r\n\r\nexport function useDealTransactions(\r\n dealReferenceName: string,\r\n isRequestAllowed: boolean\r\n) {\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n const [dealTransactions, setDealTransactions] = useState();\r\n\r\n useEffect(() => {\r\n if (!isRequestAllowed || isRequesting(requestState)) {\r\n return;\r\n }\r\n\r\n const doRequest = async () => {\r\n setRequestState(RequestState.request);\r\n try {\r\n const dealDetails: Transaction[] =\r\n await dealsService.getDealTransactions(dealReferenceName);\r\n setDealTransactions(dealDetails);\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 // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [isRequestAllowed]);\r\n\r\n return { dealTransactions, requestState };\r\n}\r\n\r\n","import { useEffect } from \"react\";\r\nimport { isRequestNone } from \"../utils/request-state.utils\";\r\nimport { useAppSelector } from \"./useAppSelector\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { amrPipelineCommonActions } from \"../actions\";\r\n\r\nexport function useImUserCompany() {\r\n const dispatch = useDispatch();\r\n const imUserCompany = useAppSelector(\r\n (s) => s.issuanceMonitor.amrPipelineCommon.userCompany\r\n );\r\n const imUserCompanyRequestState = useAppSelector(\r\n (s) => s.issuanceMonitor.amrPipelineCommon.requestState\r\n );\r\n\r\n useEffect(() => {\r\n if (isRequestNone(imUserCompanyRequestState)) {\r\n dispatch(amrPipelineCommonActions.loadUserCompanyRequest());\r\n }\r\n }, [dispatch, imUserCompanyRequestState]);\r\n\r\n return { imUserCompany, imUserCompanyRequestState };\r\n}\r\n","import { useEffect, useRef } from 'react';\r\nimport { isEqual } from 'lodash';\r\nimport { SORTING_TYPE, sortingOptions, SORT } from '../constants';\r\n\r\ninterface SortRule {\r\n sortingField: string;\r\n sortingType: string;\r\n direction?: string;\r\n}\r\n\r\nexport function useSortedListByManyFields(\r\n list: T[],\r\n setSortedList: (list: T[]) => void,\r\n sortingField: string = '',\r\n sortDirection: string = SORT.DESC,\r\n sortingType: string = SORTING_TYPE.string,\r\n sortRules: { [field: string]: SortRule[] } = {}\r\n) {\r\n const lastList = useRef([]);\r\n useEffect(() => {\r\n let newList = [...list];\r\n const sortCollection = sortRules[sortingField] || [{ sortingField, sortingType }, ...sortRules.default];\r\n [...sortCollection].reverse().forEach(s => {\r\n const direction = s.direction || sortDirection;\r\n const option = sortingOptions.find(o => (\r\n o.type === s.sortingType &&\r\n o.direction === direction\r\n )\r\n );\r\n newList.sort((a, b) => {\r\n return option?.compare(a[s.sortingField as keyof T], b[s.sortingField as keyof T]);\r\n })\r\n });\r\n\r\n if (!isEqual(lastList.current, newList)) {\r\n lastList.current = newList;\r\n setSortedList(newList);\r\n }\r\n }, [list, setSortedList, sortingField, sortDirection, sortingType, sortRules])\r\n}\r\n","import { ThunkDispatch } from \"redux-thunk\";\r\nimport { AppState } from \"../types/state/AppState\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { UnknownAction } from \"redux\";\r\n\r\nexport type AppDispatch = ThunkDispatch;\r\n\r\nexport const useAppDispatch = () => useDispatch() as AppDispatch","import * as React from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { settlementAccountActions } from '../../actions/settlement-account.actions';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { shouldRequest } from '../../utils';\r\nimport { user } from '../../user';\r\nimport { roles } from '../../constants';\r\n\r\nexport function useSettlementAccounts(requestEnabled = true) {\r\n const dispatch = useDispatch();\r\n const { requestState, items } = useSelector((s: AppState) => s.entities.settlementAccount);\r\n\r\n React.useEffect(() => {\r\n if (requestEnabled && shouldRequest(requestState) && (user.hasRoles(...roles.seller()) || user.current()!.isClearingBank)){\r\n dispatch(settlementAccountActions.request());\r\n }\r\n }, [requestState, requestEnabled, dispatch]);\r\n\r\n return { settlementAccountsRequestState: requestState, settlementAccounts: items };\r\n}\r\n","import { useCallback, useEffect, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { errorActions } from '../actions';\r\nimport { RequestState } from '../constants/request-state';\r\nimport { Webinar } from '../types/marketing/Webinar';\r\nimport { releaseService } from '../services/release.service';\r\nimport { isRequestNone } from '../utils';\r\n\r\nexport const useGetWebinar = (disabled: boolean = false) => {\r\n const dispatch = useDispatch();\r\n\r\n const [webinar, setWebinar] = useState();\r\n const [requestStateGetWebinar, setRequestStateGetWebinar] = useState(RequestState.none);\r\n\r\n const getData = useCallback(async () => {\r\n try {\r\n setRequestStateGetWebinar(RequestState.request);\r\n const data = await releaseService.fetchWebinar();\r\n setWebinar(data);\r\n setRequestStateGetWebinar(RequestState.success);\r\n } catch (e) {\r\n dispatch(errorActions.unexpectedError(e));\r\n setRequestStateGetWebinar(RequestState.failure);\r\n }\r\n }, [dispatch])\r\n\r\n useEffect(() => {\r\n if(!disabled && isRequestNone(requestStateGetWebinar)) {\r\n getData()\r\n }\r\n }, [disabled, getData, requestStateGetWebinar])\r\n\r\n return { requestStateGetWebinar, webinar }\r\n}\r\n","import { useEffect, useRef } from 'react';\r\nimport { useFormikContext } from 'formik';\r\n\r\nexport function useFocusOnError({ fieldRef, name, enable = true }) {\r\n const formik = useFormikContext();\r\n const prevSubmitCountRef = useRef(formik.submitCount);\r\n const nameList = getNameList(formik.errors);\r\n const firstErrorKey = nameList[0];\r\n useEffect(() => {\r\n if ((prevSubmitCountRef.current !== formik.submitCount || formik.isSubmitting) && !formik.isValid && enable) {\r\n if (fieldRef.current && firstErrorKey === name) fieldRef.current.focus();\r\n }\r\n prevSubmitCountRef.current = formik.submitCount; // eslint-disable-next-line\r\n }, [formik.submitCount, formik.isValid, firstErrorKey]);\r\n}\r\n\r\nfunction getNameList(x) {\r\n const names = [];\r\n const keys = Object.keys(x);\r\n for (let i = 0; i < keys.length; i++) {\r\n const key = keys[i];\r\n const value = x[key];\r\n if (value) {\r\n if (typeof value === 'object') {\r\n const childPathList = getNameList(value);\r\n names.push(...childPathList.map(c => `${key}.${c}`));\r\n } else {\r\n names.push(key);\r\n }\r\n }\r\n }\r\n return names;\r\n}\r\n","import { useEffect } from \"react\";\r\nimport { useAppSelector } from \"../useAppSelector\";\r\nimport { PushHistoryStateItemType } from \"../../types/state/PushHistoryState\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { notificationActions } from \"../../actions/notification.actions\";\r\nimport { BwicBase } from \"../../types/bwic/BwicBase\";\r\nimport dateTimeUtils from \"../../utils/dateTime.utils\";\r\nimport { constants } from \"../../constants\";\r\n\r\nexport function useBiddingCompletedSoonNotification(...accepted: BwicBase[]){\r\n const dispatch = useDispatch();\r\n\r\n const reminderPush = useAppSelector(s =>\r\n s.pushHistory.history[PushHistoryStateItemType.BiddingCompleteReminder]?.at(-1)\r\n );\r\n\r\n const showNotification = (bwic: BwicBase) => {\r\n const bidsDue = dateTimeUtils.utcToLocalString(bwic.bidsDueUtc ?? bwic.bidsDueDateUtc);\r\n const goodUntil = dateTimeUtils.utcToLocalString(bwic.goodUntilUtc ?? bwic.goodUntilDateUtc, constants.timeFormat);\r\n const title = `BWIC ends in ${reminderPush?.payload.remainingMinutes} minutes. ${bidsDue}, ${bwic.name}`;\r\n const message = `The BWIC is scheduled to end at ${goodUntil}. Please note, bids will not be firm past ${goodUntil}. However, the system will not force the end of the BWIC.`\r\n const blinkingBrowserTabText = [\r\n document.title.toString(),\r\n `BWIC ends in ${reminderPush?.payload.remainingMinutes} minutes`\r\n ];\r\n\r\n dispatch(notificationActions.infoModalReplace(bwic.referenceName, message, title, blinkingBrowserTabText, 'bidding-completed-popup'));\r\n }\r\n\r\n useEffect(() => {\r\n if (reminderPush != null) {\r\n const target = accepted.find(\r\n b => b &&\r\n b.referenceName === reminderPush.bwicReferenceName\r\n );\r\n\r\n if (target) {\r\n showNotification(target);\r\n }\r\n }\r\n // eslint-disable-next-line\r\n }, [reminderPush]);\r\n}","import { useSelector } from 'react-redux';\r\nimport { AppState } from '../types/state/AppState'\r\n\r\nexport function useAppSelector(selector: (s: AppState) => T) {\r\n return useSelector(selector);\r\n}\r\n","import { useHistory } from 'react-router';\r\nimport { useEffect, useRef } from 'react';\r\nimport { Location, UnregisterCallback } from 'history';\r\n\r\nexport const useHistoryListener = (onChange: () => void, disabled: boolean = false) => {\r\n const history = useHistory();\r\n const prevLocation = useRef | null>(null);\r\n\r\n const isPathChanged = (nextLocation: Location) =>\r\n !prevLocation.current ||\r\n !nextLocation ||\r\n prevLocation.current.pathname !== nextLocation?.pathname;\r\n\r\n useEffect(() => {\r\n let unListen: UnregisterCallback | null = null;\r\n\r\n if (disabled) {\r\n unListen = history.listen(location => {\r\n if (isPathChanged(location)) {\r\n onChange();\r\n }\r\n prevLocation.current = location\r\n })\r\n }\r\n\r\n return () => {\r\n unListen && unListen()\r\n }\r\n }, [history, disabled, onChange])\r\n}\r\n","import { useEffect, useState } from \"react\";\r\nimport { RequestState } from \"../constants/request-state\";\r\nimport { accountService } from \"../services\";\r\nimport { AssetManager } from \"../types/company/AssetManager\";\r\n\r\nexport const useAssetManagers = () => {\r\n const [assetManagersRequestState, setAssetManagersRequestState] = useState(RequestState.none);\r\n const [assetManagers, setAssetManagers] = useState([]);\r\n\r\n useEffect(() => {\r\n (async () => {\r\n try {\r\n setAssetManagersRequestState(RequestState.request);\r\n const response = await accountService.getAssetManagers();\r\n setAssetManagers(response);\r\n setAssetManagersRequestState(RequestState.success);\r\n } catch (e) {\r\n setAssetManagersRequestState(RequestState.failure);\r\n }\r\n })();\r\n }, [])\r\n\r\n return { assetManagers, assetManagersRequestState };\r\n}","import { useCallback, useEffect } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { errorActions } from '../../actions';\r\nimport { RequestState } from '../../constants/request-state';\r\nimport { Company } from '../../types/amr-pipeline/models/Company';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { isRequestNone } from '../../utils';\r\nimport { amrCompaniesService } from '../../services/amr-companies.service';\r\nimport { availableBrokerDealersActions } from '../../actions/entities/availableBrokerDealers.actions';\r\n\r\nexport const useAvailableBrokerDealers = () => {\r\n const dispatch = useDispatch();\r\n const { requestState, items } = useSelector((state: AppState) => state.entities.availableBrokerDealers);\r\n\r\n const getCompanies = useCallback(async () => {\r\n try {\r\n dispatch(availableBrokerDealersActions.request());\r\n const companies: Company[] = await amrCompaniesService.getAvailableBrokerDealers();\r\n dispatch(availableBrokerDealersActions.requestResult(RequestState.success, companies));\r\n } catch (e) {\r\n dispatch(errorActions.unexpectedError(e));\r\n dispatch(availableBrokerDealersActions.requestResult(RequestState.failure, []));\r\n }\r\n }, [dispatch]);\r\n\r\n useEffect(() => {\r\n if (isRequestNone(requestState)) {\r\n getCompanies();\r\n }\r\n }, [requestState, dispatch, getCompanies]);\r\n\r\n return { requestState, items };\r\n};\r\n","import { useEffect } from \"react\";\r\nimport { RequestState } from \"../../constants/request-state\";\r\nimport { isRequestNone } from \"../../utils\";\r\nimport { amrCompaniesService } from '../../services/amr-companies.service';\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { collateralManagersActions } from \"../../actions/entities/collateralManagers.action\";\r\nimport { AppState } from \"../../types/state/AppState\";\r\nimport { Company } from \"../../types/amr-pipeline/models/Company\";\r\n\r\nexport function useCollateralManagers() {\r\n const dispatch = useDispatch();\r\n const { requestState, items } = useSelector((state: AppState) => state.entities.collateralManagers);\r\n\r\n useEffect(() => {\r\n if (isRequestNone(requestState)) {\r\n const doRequest = async () => {\r\n dispatch(collateralManagersActions.requestCollateralManagers(RequestState.request));\r\n try {\r\n const managers: Company[] = await amrCompaniesService.getManagersList();\r\n dispatch(collateralManagersActions.responseCollateralManagers(RequestState.success, managers));\r\n } catch (e) {\r\n dispatch(collateralManagersActions.requestCollateralManagers(RequestState.failure));\r\n }\r\n };\r\n\r\n doRequest();\r\n }\r\n }, [requestState, dispatch]);\r\n\r\n return {\r\n requestState,\r\n items,\r\n }\r\n}\r\n","import { useEffect } from \"react\";\r\nimport { errorActions } from \"../../actions\";\r\nimport { arrangersPipelineActions } from \"../../actions/entities/arrangers-pipeline.actions\";\r\nimport { RequestState } from \"../../constants/request-state\";\r\nimport { amrArrangerPipelineService } from \"../../services/amr-arranger-pipeline.service\";\r\nimport { isRequestNone } from \"../../utils\";\r\nimport { useAppDispatch } from \"../useAppDispatch\";\r\nimport { useAppSelector } from \"../useAppSelector\";\r\nimport { SubscriptionFeature } from \"../../types/billing/SubscriptionFeature\";\r\nimport { user } from \"../../user\";\r\n\r\nexport function useSecurityArrangersPipeline(tickers: string[]) {\r\n const dispatch = useAppDispatch();\r\n const requestState = useAppSelector(s => s.entities.latestTransaction.requestState);\r\n\r\n\r\n useEffect(() => {\r\n const requiredFeatures = [\r\n SubscriptionFeature.IssuanceMonitorArrangerPipeline,\r\n SubscriptionFeature.CanLookupArrangersPipelineFromPortfolio\r\n ];\r\n \r\n if (!isRequestNone(requestState) || !tickers.length || !user.hasAllFeatures(...requiredFeatures)) return;\r\n\r\n const doRequest = async () => {\r\n dispatch(arrangersPipelineActions.request(tickers));\r\n\r\n try {\r\n const transactions = await amrArrangerPipelineService.getArrangerPipelinesByTicker(tickers);\r\n dispatch(arrangersPipelineActions.response(RequestState.success, transactions));\r\n } catch (e) {\r\n dispatch(arrangersPipelineActions.response(RequestState.failure));\r\n dispatch(errorActions.error(e));\r\n }\r\n }\r\n\r\n doRequest();\r\n // eslint-disable-next-line\r\n }, [JSON.stringify(tickers), dispatch, requestState])\r\n\r\n}","import { useState, useCallback } from 'react';\r\nimport saveAs from 'file-saver';\r\nimport { errorActions } from '../actions';\r\nimport { useAppDispatch } from './useAppDispatch';\r\nimport { DownloadFile } from '../types/amr-pipeline/models/DownloadedDocument';\r\n\r\ninterface Props {\r\n documents: T[];\r\n downloadRequest: (referenceName: string, ...rest: any[]) => Promise;\r\n dealReferenceName?: string;\r\n transactionReferenceName?: string;\r\n uniqueIdentifier?: keyof T;\r\n}\r\n\r\nexport function useDownloadDocumentList({ documents = [], downloadRequest, uniqueIdentifier = 'referenceName' as keyof T }: Props) {\r\n const dispatch = useAppDispatch();\r\n\r\n const [loadingState, setLoadingState] = useState>(\r\n documents.reduce((acc, doc) => {\r\n const docKey = doc[uniqueIdentifier];\r\n\r\n if (docKey) {\r\n acc[docKey as string] = false;\r\n }\r\n\r\n return acc;\r\n }, {} as Record),\r\n );\r\n\r\n const loadHandler = useCallback(\r\n async (referenceName: string, documentName?: string, ...rest: any[]) => {\r\n setLoadingState(prevState => ({ ...prevState, [referenceName]: true }));\r\n\r\n try {\r\n setLoadingState(prevState => ({\r\n ...prevState,\r\n [referenceName]: true,\r\n }));\r\n\r\n const file = await downloadRequest(referenceName, ...rest);\r\n\r\n saveAs(file.blob, documentName ?? file.name);\r\n } catch (e) {\r\n dispatch(errorActions.error(e));\r\n } finally {\r\n setLoadingState(prevState => ({\r\n ...prevState,\r\n [referenceName]: false,\r\n }));\r\n }\r\n },\r\n [downloadRequest, dispatch],\r\n );\r\n\r\n return {\r\n loadingState,\r\n loadHandler,\r\n };\r\n};\r\n\r\nexport default useDownloadDocumentList;\r\n","import * as React from 'react';\r\nimport { Company } from '../types/company/Company';\r\nimport { RequestState } from '../constants/request-state';\r\nimport { companiesService } from '../services/companies.service';\r\nimport { shouldRequest } from '../utils/request-state.utils';\r\nimport { logger } from '../logging/logger';\r\n\r\nexport function useCurrentUserCompany() {\r\n const [company, setCompany] = React.useState();\r\n const [requestState, setRequestState] = React.useState(RequestState.none);\r\n\r\n React.useEffect(() => {\r\n const request = async () => {\r\n try {\r\n const company: Company = await companiesService.getCurrentUserCompany();\r\n setCompany(company);\r\n setRequestState(RequestState.success);\r\n } catch (e) {\r\n logger.exception(e as Error, 'Failed to request current user company');\r\n setRequestState(RequestState.failure);\r\n }\r\n }\r\n\r\n if (shouldRequest(requestState)) {\r\n setRequestState(RequestState.request);\r\n request();\r\n }\r\n }, [requestState]);\r\n\r\n const result: [requestState: RequestState, company?: Company] = [requestState, company];\r\n\r\n return result;\r\n}\r\n","import * as React from 'react';\r\nimport { useHistory } from 'react-router';\r\n\r\nexport function useLocationStateReset() {\r\n const history = useHistory();\r\n\r\n React.useEffect(() => {\r\n if (history.location.state) {\r\n history.replace({ ...history.location, state: undefined });\r\n }\r\n // eslint-disable-next-line\r\n }, []);\r\n}\r\n","import { RefObject, useState } from 'react';\r\nimport { useResizeObserver } from './useResizeObserever';\r\n\r\nconst PIPELINE_FILTER_ROW_HEIGHT = 32;\r\n\r\nexport const useFilterNextLineHide = (parentRef: RefObject, filtersRefs: RefObject, isFilterCollapsed: boolean, shouldShowHideButtonCallback: (shouldShow: boolean) => void) => {\r\n const [countOfHiddenFilters, setCountOfHiddenFilters] = useState(0);\r\n\r\n useResizeObserver(parentRef, (entry: DOMRectReadOnly) => {\r\n shouldShowHideButtonCallback(entry.height > PIPELINE_FILTER_ROW_HEIGHT);\r\n const topDimensionFilterContainer = parentRef?.current?.getBoundingClientRect().top || 0;\r\n let numberOfHiddenFilters = 0;\r\n\r\n filtersRefs?.current?.map(el => {\r\n const topDimensionFilterItem = el?.getBoundingClientRect().top;\r\n\r\n // if filter not visible\r\n if (topDimensionFilterItem === 0) {\r\n numberOfHiddenFilters++\r\n }\r\n\r\n if (topDimensionFilterItem > topDimensionFilterContainer) {\r\n numberOfHiddenFilters++;\r\n isFilterCollapsed ? el.classList.add('display-none') : el.classList.remove('display-none');\r\n }\r\n\r\n setCountOfHiddenFilters(numberOfHiddenFilters);\r\n return el;\r\n });\r\n });\r\n\r\n return countOfHiddenFilters\r\n};\r\n","import { RefObject, useState, useCallback, useLayoutEffect } from \"react\";\r\n\r\nexport const useResizeObserver = (ref: RefObject, callback?: (entry: DOMRectReadOnly) => void) => {\r\n const [width, setWidth] = useState();\r\n const [height, setHeight] = useState();\r\n const handleResize = useCallback(\r\n (entries: ResizeObserverEntry[]) => window.requestAnimationFrame(() => {\r\n if (!Array.isArray(entries)) {\r\n return;\r\n }\r\n\r\n const entry = entries[0];\r\n setWidth(entry.contentRect.width);\r\n setHeight(entry.contentRect.height);\r\n\r\n if (callback) {\r\n callback(entry.contentRect);\r\n }\r\n }),\r\n [callback],\r\n );\r\n\r\n useLayoutEffect(() => {\r\n if (!ref.current) {\r\n return;\r\n }\r\n\r\n let RO = new ResizeObserver((entries: ResizeObserverEntry[]) => handleResize(entries));\r\n RO.observe(ref.current);\r\n\r\n return () => {\r\n RO.disconnect();\r\n };\r\n }, [ref, handleResize]);\r\n\r\n return [width, height];\r\n};\r\n","import { useEffect, useState } from \"react\";\r\nimport { bwicService } from \"../../services\";\r\nimport { BwicStatus } from \"../../types/enums/BwicStatus\";\r\nimport { BwicSearchResult } from \"../../types/bwic-monitor/BwicSearchResult\";\r\nimport { RequestState } from \"../../constants/request-state\";\r\nimport { isRequestNone } from \"../../utils\";\r\n\r\nexport function useBwicsSearch(tickers: string[], statuses: BwicStatus[], disabled?: boolean){\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n const [bwics, setBwics] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!disabled && tickers?.length && isRequestNone(requestState)) {\r\n const doRequest = async () => {\r\n setRequestState(RequestState.request);\r\n try {\r\n const bwics = await bwicService.searchBwics({\r\n isinCusipsAndTickers: tickers,\r\n statuses: statuses ?? [],\r\n pageSize: 200 // 200 is max allowed page size\r\n });\r\n setBwics(bwics.result);\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, tickers, statuses, disabled])\r\n\r\n return { bwics, requestState };\r\n}","import * as React from 'react';\r\nimport { RequestState } from '../constants/request-state';\r\nimport { documentsService } from '../services/documents.service';\r\nimport { logger } from '../logging/logger';\r\n\r\nexport function useSecurityDocumentsExistFlag(isinCusip?: string, disabled: boolean = false) {\r\n const [state, setState] = React.useState({ isExist: false, requestState: RequestState.none });\r\n\r\n React.useEffect(() => {\r\n const request = async () => {\r\n if (disabled) return;\r\n\r\n try {\r\n const isExist: boolean = await documentsService.getSecurityDocumentsExistFlag(isinCusip);\r\n setState({ isExist, requestState: RequestState.success });\r\n } catch (e) {\r\n logger.exception(e as Error, 'Failed to request company documents exist flag');\r\n setState({ isExist: true, requestState: RequestState.failure });\r\n }\r\n }\r\n\r\n if (isinCusip) {\r\n setState({ isExist: false, requestState: RequestState.request });\r\n request();\r\n }\r\n }, [disabled, isinCusip]);\r\n\r\n const result: [requestState: RequestState, isDocumentsExist: boolean] = [state.requestState, state.isExist];\r\n\r\n return result;\r\n}\r\n","import { useEffect, useState } from 'react'\r\n\r\nexport function useDebounce(value: T, delay?: number): T {\r\n const [debouncedValue, setDebouncedValue] = useState(value)\r\n\r\n useEffect(() => {\r\n const timer = setTimeout(() => setDebouncedValue(value), delay || 500)\r\n\r\n return () => {\r\n clearTimeout(timer)\r\n }\r\n }, [value, delay])\r\n\r\n return debouncedValue\r\n}","import * as React from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { settlementAgentAgreementActions } from '../actions/settlement-agent-agreements.actions';\r\nimport { roles } from '../constants';\r\nimport { user } from '../user';\r\nimport { isRequestNone } from '../utils';\r\nimport { RequestState } from '../constants/request-state';\r\nimport { settlementAgentAgreementService } from '../services/settlement-agent-agreement.service';\r\nimport { errorActions } from '../actions';\r\nimport { useAppSelector } from './useAppSelector';\r\n\r\nlet _requestState = RequestState.none;\r\n\r\nexport function resetSettlementAgentAgreementsRequestState() {\r\n _requestState = RequestState.none;\r\n}\r\n\r\nexport const useSettlementAgentAgreements = () => {\r\n const dispatch = useDispatch();\r\n\r\n const items = useAppSelector(s => s.entities.settlementAgentAgreements.items);\r\n const requestState = useAppSelector(s => s.entities.settlementAgentAgreements.requestState);\r\n\r\n React.useEffect(() => {\r\n const shouldRequest =\r\n isRequestNone(_requestState) &&\r\n user.hasRoles(...roles.seller(), ...roles.bd()) &&\r\n !user?.current()?.isClearingBank;\r\n\r\n if (shouldRequest) {\r\n (async function () {\r\n try {\r\n _requestState = RequestState.request;\r\n dispatch(settlementAgentAgreementActions.request());\r\n const agreements = await settlementAgentAgreementService.getAgreements();\r\n dispatch(settlementAgentAgreementActions.requestResult(RequestState.success, agreements));\r\n _requestState = RequestState.success;\r\n } catch (e) {\r\n _requestState = RequestState.failure;\r\n dispatch(settlementAgentAgreementActions.requestResult(RequestState.failure));\r\n dispatch(errorActions.unexpectedError(e));\r\n }\r\n })();\r\n }\r\n }, [dispatch])\r\n\r\n return { items, requestState };\r\n};\r\n\r\n\r\n","import { useEffect, useState } from \"react\";\r\nimport { RequestState } from \"../../constants/request-state\";\r\nimport { OriginatingTransaction } from \"../../types/amr-pipeline/models/OriginatingTransaction\";\r\nimport { isRequestNone } from \"../../utils\";\r\nimport { dealsService } from \"../../services/deals.service\";\r\n\r\nexport function usePreviousTransaction(\r\n dealReferenceName: string,\r\n transactionReferenceName: string,\r\n disabled?: boolean\r\n) {\r\n const [previousTransaction, setTransaction] = useState(null);\r\n const [previousTransactionRequestState, setRequestState] = useState(RequestState.none);\r\n\r\n useEffect(() => {\r\n if ( // reset data set if deal is changed\r\n !disabled &&\r\n !isRequestNone(previousTransactionRequestState) &&\r\n dealReferenceName &&\r\n transactionReferenceName) {\r\n setTransaction(null);\r\n setRequestState(RequestState.none);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [dealReferenceName, transactionReferenceName, disabled])\r\n\r\n useEffect(() => {\r\n if (!isRequestNone(previousTransactionRequestState)) {\r\n return;\r\n }\r\n\r\n const doRequest = async () => {\r\n setRequestState(RequestState.request);\r\n try {\r\n const transaction: OriginatingTransaction =\r\n await dealsService.getPreviousTransaction(dealReferenceName, transactionReferenceName);\r\n setTransaction(transaction);\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 // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [previousTransactionRequestState]);\r\n\r\n\r\n return { previousTransaction, previousTransactionRequestState };\r\n}","import { useDispatch } from \"react-redux\";\r\nimport { errorActions } from \"../actions\";\r\nimport { onBoardingTooltipService } from \"../services\";\r\nimport { OnBoardingTooltipType } from \"../types/onboarding-tooltips/OnBoardingTooltipType\";\r\nimport { user } from \"../user\";\r\n\r\nexport const useSetOnBoardingTooltipCountRequest = () => {\r\n const dispatch = useDispatch();\r\n\r\n const setCount = async (count: number, type: OnBoardingTooltipType) => {\r\n try {\r\n user.setOnBoardingTooltipCounter(type, count);\r\n await onBoardingTooltipService.setCount([\r\n {\r\n page: type,\r\n count,\r\n },\r\n ]);\r\n user.setOnBoardingTooltipCounter(type, count);\r\n } catch (e) {\r\n dispatch(errorActions.error(e));\r\n }\r\n };\r\n\r\n return { setCount };\r\n};\r\n","import { useEffect, useState } from 'react';\r\nimport { RequestState } from '../constants/request-state';\r\nimport { AmrDocument } from '../types/amr-pipeline/models/AmrDocument';\r\nimport { dealsService } from '../services/deals.service';\r\n\r\ninterface Props {\r\n dealReferenceName?: string;\r\n transactionReferenceName?: string;\r\n}\r\n\r\nexport const useAmrDocuments = ({ dealReferenceName, transactionReferenceName }: Props) => {\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n const [amrDocuments, setAmrDocuments] = useState();\r\n\r\n useEffect(() => {\r\n (async () => {\r\n if (!dealReferenceName || !transactionReferenceName) {\r\n return;\r\n }\r\n\r\n try {\r\n setRequestState(RequestState.request);\r\n const response = await dealsService.getAmrDocument(dealReferenceName, transactionReferenceName);\r\n setAmrDocuments(response);\r\n setRequestState(RequestState.success);\r\n } catch (e) {\r\n setRequestState(RequestState.failure);\r\n }\r\n })();\r\n }, [dealReferenceName, transactionReferenceName]);\r\n\r\n return { amrDocuments, requestState };\r\n};\r\n","import { useEffect, useState } from 'react';\r\nimport { BrokerDealerCompanySlim } from '../types/company/BrokerDealerCompanySlim';\r\nimport { FavoriteCompanyState } from '../types/state/FavoriteBrokerDealersState';\r\nimport { CompanyStatus } from '../types/company/CompanyStatus';\r\nimport { Contact } from '../types/company/Contact';\r\nimport { UserSlim } from '../types/account/UserSlim';\r\nimport { DealerListFilterOption } from '../types/state/DealerListState';\r\nimport { DealerFilterOptions } from '../components/dealer-list/DealerFilterOptions';\r\nimport { SettlementAgentAgreement } from '../types/bid-as-dealer/SettlementAgentAgreement';\r\n\r\nconst searchContact = (contact: Contact, searchTerm: string) =>\r\n `${contact.firstName} ${contact.lastName}`.toLowerCase().includes(searchTerm) ||\r\n (contact?.role && contact?.role.toLowerCase().includes(searchTerm)) ||\r\n contact.email.toLowerCase().includes(searchTerm);\r\n\r\nconst searchUser = (user: UserSlim, searchTerm: string) =>\r\n `${user.firstName} ${user.lastName}`.toLowerCase().includes(searchTerm) ||\r\n user.email.toLowerCase().includes(searchTerm);\r\n\r\nexport const useDealersFilter = (\r\n dealersList: BrokerDealerCompanySlim[],\r\n contacts: Contact[],\r\n users: UserSlim[],\r\n searchTerm: string,\r\n filterOption: DealerListFilterOption[],\r\n favoriteDealers: FavoriteCompanyState,\r\n agreements?: SettlementAgentAgreement[],\r\n disabled?: boolean\r\n) => {\r\n const [dealers, setDealers] = useState(dealersList);\r\n\r\n useEffect(() => {\r\n if (disabled) return;\r\n\r\n const searchTermLowerCase = searchTerm.trim().toLowerCase();\r\n const isAnyOptionSelected = filterOption.some(o => o.selected);\r\n const isFavorites = filterOption?.some(o => o.value === DealerFilterOptions.Favorite && o.selected);\r\n const isPlatform = filterOption?.some(o => o.value === DealerFilterOptions.Platform && o.selected);\r\n const isOffPlatform = filterOption?.some(o => o.value === DealerFilterOptions.OffPlatform && o.selected);\r\n\r\n const newList = dealersList.filter(dealer => {\r\n const companyMatch = dealer.name.toLowerCase().includes(searchTermLowerCase);\r\n const distributionListMatch = dealer.distributionList && dealer.distributionList.toLowerCase().includes(searchTermLowerCase);\r\n const headOfTradingMatch = dealer.headOfTrading && dealer.headOfTrading?.email?.toLowerCase().includes(searchTermLowerCase);\r\n const dealerContactsOccurrences = contacts.filter(c => c.companyId === dealer.id && searchContact(c, searchTermLowerCase));\r\n const dealerUsersOccurrences = users.filter(u => u.companyId === dealer.id && searchUser(u, searchTermLowerCase));\r\n\r\n let bySearchTerm = true;\r\n let byOption = true;\r\n\r\n if (searchTermLowerCase) {\r\n bySearchTerm = companyMatch || distributionListMatch || headOfTradingMatch || !!dealerContactsOccurrences.length || !!dealerUsersOccurrences.length;\r\n }\r\n\r\n if (isAnyOptionSelected) {\r\n const returnFavorites = !!(isFavorites && favoriteDealers[dealer.id]);\r\n const returnPlatform = !!(isPlatform && dealer.status === CompanyStatus.active);\r\n const returnOffPlatform = !!(isOffPlatform && dealer.status !== CompanyStatus.active);\r\n byOption = returnFavorites || returnPlatform || returnOffPlatform;\r\n }\r\n\r\n return bySearchTerm && byOption;\r\n });\r\n\r\n setDealers(newList);\r\n }, [dealersList, contacts, users, favoriteDealers, filterOption, disabled, searchTerm, agreements]);\r\n\r\n return { dealers };\r\n};\r\n","import { useEffect, useState } from 'react';\r\nimport { sortingOptions, SORT } from '../constants';\r\n\r\nexport function useSortedList(list, sortBy, sortDirection, sortingType, enabled = true, customSortingCompareCallback) {\r\n const shouldSort = enabled && sortBy && list.length;\r\n const [newList, setList] = useState(shouldSort ? list : []);\r\n\r\n useEffect(() => {\r\n let compareCallback = null;\r\n\r\n const resolveSortByPath = obj => sortBy\r\n .split('.')\r\n .reduce((o, p) => o ? o[p] : undefined, obj)\r\n\r\n try {\r\n if (shouldSort) {\r\n if (sortingType) {\r\n const option = sortingOptions.find(o => o.type === sortingType && o.direction === sortDirection);\r\n if (option) compareCallback = (a, b) => option.compare(resolveSortByPath(a), resolveSortByPath(b), a, b)\r\n } else {\r\n if (typeof list[0][sortBy] === 'string') {\r\n compareCallback = (a, b) =>\r\n sortDirection === SORT.ASC\r\n ? (a[sortBy] || '').localeCompare(b[sortBy])\r\n : (b[sortBy] || '').localeCompare(a[sortBy])\r\n } else {\r\n compareCallback = (a, b) =>\r\n sortDirection === SORT.ASC\r\n ? a[sortBy] - b[sortBy]\r\n : b[sortBy] - a[sortBy]\r\n }\r\n }\r\n }\r\n\r\n if (compareCallback && customSortingCompareCallback) {\r\n const sortedList = [...list].sort((a,b) => customSortingCompareCallback(a,b) || compareCallback(a,b));\r\n setList(sortedList);\r\n } else if (compareCallback) {\r\n const sortedList = [...list].sort(compareCallback);\r\n setList(sortedList);\r\n } else if (customSortingCompareCallback) {\r\n const sortedList = [...list].sort(customSortingCompareCallback)\r\n setList(sortedList);\r\n }\r\n } catch (e) {\r\n console.log(e);\r\n }\r\n\r\n \r\n }, [list, sortBy, sortDirection, sortingType, enabled, customSortingCompareCallback, shouldSort]);\r\n\r\n return shouldSort ? [newList] : [list];\r\n}\r\n","import {useEffect } from 'react';\r\n\r\n// Prevents IE from navigating back on backspace button click\r\nexport const useBackspaceRedirectBlocker = () => {\r\n const handleKeyDown = e => {\r\n if (e.keyCode === 8) {\r\n const tagName = e.target.tagName && e.target.tagName.toLowerCase();\r\n const editable = (tagName === 'input' || tagName === 'textarea') && e.target.contentEditable;\r\n\r\n if (!editable || e.target.disabled || e.target.readOnly) {\r\n e.preventDefault();\r\n }\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n if (document.documentMode) { // IE\r\n document.addEventListener('keydown', handleKeyDown);\r\n return () => document.removeEventListener('keydown', handleKeyDown);\r\n }\r\n }, []);\r\n}\r\n","import { useEffect, useRef } from 'react';\r\nimport { onBoardingTooltipConst } from '../constants';\r\nimport { ObjectUtils } from '../utils/object.utils';\r\n\r\nexport function useCacheOnBoardingState(step, stateBoardingTooltip) {\r\n const currentState = useRef({});\r\n useEffect(() => {\r\n if (step === 1 && !ObjectUtils.equal(stateBoardingTooltip, currentState.current)) {\r\n currentState.current = stateBoardingTooltip;\r\n localStorage.setItem(onBoardingTooltipConst.localStorageKey, JSON.stringify(currentState.current))\r\n } // eslint-disable-next-line\r\n }, [stateBoardingTooltip]);\r\n}\r\n","import { useRef, useEffect } from 'react';\r\n\r\nexport function usePrevious(value) {\r\n const ref = useRef();\r\n useEffect(() => {\r\n ref.current = value\r\n });\r\n return ref.current;\r\n}\r\n","import { useEffect, useRef } from 'react';\r\nimport { contactsService } from \"../services\";\r\n\r\nexport const useRequestInviteBuysideClients = (emailList, sending, setSending, setSent, setError) => {\r\n const mounted = useRef(true);\r\n\r\n useEffect(() => {\r\n mounted.current = true;\r\n return () => mounted.current = false; // eslint-disable-next-line\r\n }, []);\r\n\r\n useEffect(() => {\r\n async function request() {\r\n if (sending) {\r\n try {\r\n await contactsService.inviteBuysideClients(emailList);\r\n if (mounted.current) {\r\n setSending(false);\r\n setSent(true);\r\n setError(null);\r\n }\r\n } catch (e) {\r\n if (mounted.current) {\r\n setSending(false);\r\n setSent(false);\r\n setError(e && e.message);\r\n }\r\n }\r\n }\r\n }\r\n\r\n request(); // eslint-disable-next-line\r\n }, [sending]);\r\n};\r\n","import { useEffect } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { AppState } from '../types/state/AppState';\r\nimport { shouldRequest } from '../utils';\r\nimport { brokerDealerListActions } from '../actions/broker-dealer-list.actions';\r\n\r\nexport const useBrokerDealers = (requestEnabled: boolean = true) => {\r\n const dispatch = useDispatch();\r\n\r\n const items = useSelector((state: AppState) => state.entities.brokerDealerList.items);\r\n const requestState = useSelector((state: AppState) => state.entities.brokerDealerList.requestState);\r\n\r\n useEffect(() => {\r\n if (shouldRequest(requestState) && requestEnabled) {\r\n dispatch(brokerDealerListActions.request());\r\n }\r\n }, [dispatch, requestState, requestEnabled]);\r\n\r\n return { requestState, items }\r\n};\r\n","import { useEffect, useRef, useState } from \"react\";\r\nimport { roles } from \"../../constants\";\r\nimport { isRequestFailed, isRequestNone, isRequestSuccess } from \"../../utils\";\r\nimport { InventoryPosition } from \"../../types/inventory/InventoryPosition\";\r\nimport { RequestState } from \"../../constants/request-state\";\r\nimport { user } from \"../../user\";\r\nimport { inventoryService } from \"../../services/inventory.service\";\r\nimport { InventoryPositionStatus } from \"../../types/inventory/InventoryPositionStatus\";\r\nimport { isEqual } from \"lodash\";\r\nimport { Rating } from \"../../types/enums/Rating\";\r\n\r\nexport function useInvenotory(disabled?: boolean, statuses?: InventoryPositionStatus[], ...tickers: string[]) {\r\n const bd = useBdInventory(disabled, statuses, tickers);\r\n const all = useAllInventory(disabled, statuses ?? [], tickers ?? []);\r\n\r\n if (user.hasRoles(...roles.bd())) return bd;\r\n if (user.hasRoles(...roles.inventoryAccess())) return all;\r\n return { requestState: RequestState.success, inventory: [] };\r\n}\r\n\r\nfunction useBdInventory(disabled?: boolean, statuses?: InventoryPositionStatus[], tickers?: string[]) {\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n const [inventory, setInventory] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!disabled && isRequestNone(requestState) && user.hasRoles(...roles.bd())) {\r\n const doRequest = async () => {\r\n setRequestState(RequestState.request);\r\n try {\r\n const inventory = await inventoryService.getBdInventory();\r\n setInventory(inventory.inventorySecurities);\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, disabled])\r\n\r\n return {\r\n requestState,\r\n inventory: inventory\r\n .filter(x => !tickers?.length || tickers.some(t => x.ticker.localeCompare(t, undefined, { sensitivity: 'accent' }) === 0))\r\n .filter(x => !statuses?.length || statuses.some(s => x.status === s))\r\n };\r\n}\r\n\r\ntype TFilter = {\r\n identifiers: string[];\r\n statuses: InventoryPositionStatus[];\r\n ratings: Rating[];\r\n dealers: number[] | null;\r\n};\r\n\r\nfunction useAllInventory(disabled?: boolean, statuses: InventoryPositionStatus[] = [], tickers: string[] = []) {\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n const [inventory, setInventory] = useState([]);\r\n const lastAppliedFilter = useRef(null);\r\n\r\n useEffect(() => {\r\n if (disabled || !user.hasRoles(...roles.inventoryAccess())) return;\r\n\r\n // Reset state if filter changed\r\n const filter: TFilter = { identifiers: tickers, statuses, ratings: [], dealers: null };\r\n if (\r\n lastAppliedFilter.current != null &&\r\n (isRequestSuccess(requestState) || isRequestFailed(requestState)) &&\r\n !isEqual(filter, lastAppliedFilter.current)) {\r\n setRequestState(RequestState.none);\r\n setInventory([]);\r\n }\r\n\r\n if (isRequestNone(requestState)) {\r\n const doRequest = async () => {\r\n setRequestState(RequestState.request);\r\n try {\r\n const inventory = await inventoryService.getAllInventory({\r\n ...filter,\r\n pageSize: 200 // 200 is max allowed page size\r\n });\r\n lastAppliedFilter.current = { ...filter };\r\n setInventory(inventory.result);\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 } // eslint-disable-next-line\r\n }, [requestState, JSON.stringify(tickers), JSON.stringify(statuses), disabled])\r\n\r\n return { requestState, inventory };\r\n}\r\n","import { useState, useEffect } from 'react';\r\nimport { RequestState } from '../../constants/request-state';\r\nimport { isRequestNone } from '../../utils';\r\nimport { CompanyWithMembers } from '../../types/amr-pipeline/models/Company';\r\nimport { amrCompaniesService } from '../../services/amr-companies.service';\r\n\r\nexport function useCompany(referenceName: string) {\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n const [companyWithMembers, setCompanyWithMembers] = useState(null);\r\n\r\n useEffect(() => {\r\n if (isRequestNone(requestState)) {\r\n const doRequest = async () => {\r\n setRequestState(RequestState.request);\r\n try {\r\n const [company, members] = await Promise.all([\r\n amrCompaniesService.getCompanyInfo(referenceName),\r\n amrCompaniesService.getMembersList(referenceName),\r\n ]);\r\n setCompanyWithMembers({ ...company, members });\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, referenceName]);\r\n\r\n return { companyWithMembers, requestState };\r\n}\r\n","import { useEffect } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { AppState } from '../types/state/AppState';\r\nimport { shouldRequest } from '../utils';\r\nimport { brokerDealerUserListActions } from '../actions/broker-dealer-user-list.actions';\r\n\r\nexport const useBrokerDealerUsers = () => {\r\n const dispatch = useDispatch();\r\n\r\n const items = useSelector((state: AppState) => state.entities.brokerDealerUserList.items);\r\n const requestState = useSelector((state: AppState) => state.entities.brokerDealerUserList.requestState);\r\n\r\n useEffect(() => {\r\n if (shouldRequest(requestState)) {\r\n dispatch(brokerDealerUserListActions.request())\r\n }\r\n }, [dispatch, requestState]);\r\n\r\n return { requestState, items }\r\n};\r\n","import { useCallback, useEffect, useState } from 'react';\r\nimport { RequestState } from '../constants/request-state';\r\nimport { bwicService } from '../services';\r\nimport { useDispatch } from 'react-redux';\r\nimport { errorActions } from '../actions';\r\nimport { shouldRequest } from '../utils';\r\nimport { AllBwicsTab } from '../components/allBWICS/AllBwicsTab';\r\nimport { user } from '../user';\r\nimport { roles } from '../constants';\r\n\r\nexport const useMyBwicsExist = (activeTab: AllBwicsTab, myBwicsOnly: boolean, isAllToAll?: boolean): [boolean, RequestState] => {\r\n const dispatch = useDispatch();\r\n const [requestStateIsMyBwicsExist, setRequestStateIsMyBwicsExist] = useState(RequestState.none);\r\n const [myBwicsExist, setMyBwicsExist] = useState(false);\r\n const isBdBuy = activeTab === AllBwicsTab.Buy && user.hasRoles(...roles.bd());\r\n\r\n const getBwicsExist = useCallback(async (isBdBuy: boolean) => {\r\n try {\r\n setRequestStateIsMyBwicsExist(RequestState.request)\r\n const exist = await bwicService.myBwicsExist(isBdBuy);\r\n setMyBwicsExist(exist)\r\n setRequestStateIsMyBwicsExist(RequestState.success)\r\n } catch (e) {\r\n dispatch(errorActions.criticalError(e))\r\n setRequestStateIsMyBwicsExist(RequestState.failure)\r\n }\r\n }, [dispatch])\r\n\r\n useEffect(() => {\r\n setRequestStateIsMyBwicsExist(RequestState.none);\r\n }, [isBdBuy])\r\n\r\n useEffect(() => {\r\n if (shouldRequest(requestStateIsMyBwicsExist) && (myBwicsOnly || isAllToAll)) {\r\n getBwicsExist(isBdBuy)\r\n }\r\n }, [getBwicsExist, myBwicsOnly, isAllToAll, requestStateIsMyBwicsExist, isBdBuy])\r\n\r\n return [myBwicsExist, requestStateIsMyBwicsExist]\r\n}\r\n","import { createBrowserHistory } from 'history';\r\n\r\nexport const history = createBrowserHistory();\r\n","import { useEffect, useState } from 'react';\r\nimport { RequestState } from '../constants/request-state';\r\nimport { dealsService } from '../services/deals.service';\r\nimport { SettlementInstructions } from '../types/amr-pipeline/models/SettlementInstructions';\r\n\r\ninterface Props {\r\n dealReferenceName: string;\r\n transactionReferenceName: string;\r\n classReferenceName: string;\r\n}\r\n\r\nexport const useSettlementInstructions = ({\r\n dealReferenceName,\r\n transactionReferenceName,\r\n classReferenceName,\r\n}: Props) => {\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n const [settlementInstructions, setSettlementInstructions] = useState();\r\n\r\n useEffect(() => {\r\n (async () => {\r\n try {\r\n setRequestState(RequestState.request);\r\n const response = await dealsService.getSettlementInstructions(\r\n dealReferenceName,\r\n transactionReferenceName,\r\n classReferenceName,\r\n );\r\n setSettlementInstructions(response);\r\n setRequestState(RequestState.success);\r\n } catch (e) {\r\n setRequestState(RequestState.failure);\r\n }\r\n })();\r\n }, [classReferenceName, dealReferenceName, transactionReferenceName]);\r\n\r\n return { settlementInstructions, requestState };\r\n};\r\n","import { useCallback, useEffect, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { errorActions } from '../actions';\r\nimport { RequestState } from '../constants/request-state';\r\nimport { companiesService } from '../services';\r\nimport { CompanyMember } from '../types/company/CompanyMember';\r\n\r\nexport const useCompanyUserList = (companyId: number) => {\r\n const dispatch = useDispatch();\r\n\r\n const [requestStateGetUsers, setRequestState] = useState(RequestState.none);\r\n const [users, setUsers] = useState([]);\r\n\r\n const getUsers = useCallback(async () => {\r\n try {\r\n setRequestState(RequestState.request);\r\n const users = await companiesService.getCompanyMembers(companyId);\r\n setUsers(users);\r\n setRequestState(RequestState.success);\r\n } catch (e) {\r\n setRequestState(RequestState.failure);\r\n dispatch(errorActions.error(e))\r\n }\r\n }, [companyId, dispatch])\r\n\r\n useEffect(() => {\r\n getUsers();\r\n }, [companyId, getUsers]);\r\n\r\n return { requestStateGetUsers, users };\r\n}\r\n","import { useEffect } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { AppState } from '../types/state/AppState';\r\nimport { isRequestNone } from '../utils';\r\nimport { priceTalksActions } from '../actions/price-talks.actions';\r\nimport { RequestState } from '../constants/request-state';\r\n\r\nexport const usePriceTalks = (bwicReferenceName: string, positionId: number, enabled = true) => {\r\n const dispatch = useDispatch();\r\n\r\n const { requestState, items } = useSelector((s: AppState) => s.entities.priceTalks.priceTalks[positionId])\r\n ?? { requestState: RequestState.none, items: [] };\r\n\r\n useEffect(() => {\r\n if (enabled &&\r\n bwicReferenceName &&\r\n positionId &&\r\n isRequestNone(requestState)) {\r\n dispatch(priceTalksActions.request(bwicReferenceName, positionId));\r\n }\r\n }, [enabled, bwicReferenceName, positionId, dispatch, requestState]);\r\n\r\n useEffect(() => {\r\n return () => {\r\n dispatch(priceTalksActions.resetFailed());\r\n };\r\n }, [dispatch]);\r\n\r\n return { requestState, priceTalks: items };\r\n};\r\n","import { useEffect } from \"react\";\r\nimport { RequestState } from \"../../constants/request-state\";\r\nimport { isRequestNone } from \"../../utils\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { liveBiddingActions } from \"../../actions/entities/live-bidding.actions\";\r\nimport { biddingService } from \"../../services/bidding.service\";\r\nimport { LiveBiddingPosition } from \"../../types/live-bidding/LiveBiddingPosition\";\r\nimport { useAppSelector } from \"../useAppSelector\";\r\n\r\nlet _requestState = RequestState.none;\r\n\r\nexport function resetLiveBiddingDataRequestState() {\r\n _requestState = RequestState.none;\r\n}\r\n\r\nexport function useLiveBiddingData(positionId: number) {\r\n const dispatch = useDispatch();\r\n\r\n const requestState = useAppSelector(s => s.entities.liveBidding.requestState);\r\n const data = useAppSelector(s => s.entities.liveBidding.items.find(i => i.positionId === positionId));\r\n\r\n useEffect(() => {\r\n if (isRequestNone(_requestState)) {\r\n (async function () {\r\n _requestState = RequestState.request;\r\n dispatch(liveBiddingActions.request());\r\n try {\r\n const positions: LiveBiddingPosition[] = await biddingService.getLiveBiddingData();\r\n _requestState = RequestState.success;\r\n dispatch(liveBiddingActions.response(positions, RequestState.success));\r\n } catch {\r\n dispatch(liveBiddingActions.response([], RequestState.failure));\r\n _requestState = RequestState.failure\r\n }\r\n })();\r\n }\r\n }, [dispatch])\r\n\r\n return { requestState, data };\r\n}","import { useEffect, useMemo } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { RequestState } from \"../../constants/request-state\";\r\nimport { AppState } from \"../../types/state/AppState\";\r\nimport { isRequestNone } from \"../../utils\";\r\nimport { cloSystemInfrastructureActions } from \"../../actions/entities/cloSystemInfrastructure\";\r\nimport { cloManagersService } from \"../../services/clo-managers.service\";\r\nimport { CloSystemInfrastructures } from \"../../types/clo-managers/CloSystemInfrastructures\";\r\nimport { groupCloSystemInfrastructure } from \"../../utils/clo-managers.utils\";\r\n\r\nexport function useCloSystemInfrastructure() {\r\n const dispatch = useDispatch();\r\n const { requestState, items } = useSelector((state: AppState) => state.entities.cloSystemInfrastructure);\r\n\r\n const cloSystemInfrastructureItems = useMemo(() => groupCloSystemInfrastructure(items), [items]);\r\n\r\n useEffect(() => {\r\n if (isRequestNone(requestState)) {\r\n const doRequest = async () => {\r\n dispatch(cloSystemInfrastructureActions.requestData(RequestState.request));\r\n try {\r\n const cloSystemInfrastructure: CloSystemInfrastructures[] = await cloManagersService.getCloSystemInfrastructures();\r\n dispatch(cloSystemInfrastructureActions.responseData(RequestState.success, cloSystemInfrastructure));\r\n } catch (e) {\r\n dispatch(cloSystemInfrastructureActions.requestData(RequestState.failure));\r\n }\r\n };\r\n\r\n doRequest();\r\n }\r\n }, [requestState, dispatch]);\r\n\r\n return {\r\n requestState,\r\n cloSystemInfrastructureItems\r\n };\r\n}\r\n","import { useEffect, useState } from 'react';\r\nimport { RequestState } from '../constants/request-state';\r\nimport { dealsService } from '../services/deals.service';\r\nimport { ExcludedDealer } from '../types/amr-pipeline/models/ExcludedDealer';\r\n\r\ninterface Props {\r\n dealReferenceName: string;\r\n transactionReferenceName: string;\r\n classReferenceName: string;\r\n}\r\n\r\nexport const useExcludedDealers = ({ dealReferenceName, transactionReferenceName, classReferenceName }: Props) => {\r\n const [requestState, setRequestState] = useState(RequestState.none);\r\n const [excludedDealers, setExcludedDealers] = useState([]);\r\n\r\n useEffect(() => {\r\n (async () => {\r\n try {\r\n setRequestState(RequestState.request);\r\n const response = await dealsService.getExcludedDealers(\r\n dealReferenceName,\r\n transactionReferenceName,\r\n classReferenceName,\r\n );\r\n setExcludedDealers(response);\r\n setRequestState(RequestState.success);\r\n } catch (e) {\r\n setRequestState(RequestState.failure);\r\n }\r\n })();\r\n }, [classReferenceName, dealReferenceName, transactionReferenceName]);\r\n\r\n return { excludedDealers, requestState };\r\n};\r\n","import * as React from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { isRequestNone } from '../../utils/request-state.utils';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { emailPreferencesActions } from '../../actions/email-preferences.actions';\r\n\r\nexport function useEmailPreferences() {\r\n const dispatch = useDispatch();\r\n const { requestState, preferences } = useSelector((s: AppState) => s.entities.emailPreferences);\r\n\r\n React.useEffect(() => {\r\n if (isRequestNone(requestState)) {\r\n dispatch(emailPreferencesActions.request());\r\n }\r\n }, [requestState, dispatch]);\r\n\r\n return { requestState, preferences };\r\n}\r\n","import { useEffect } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { shouldRequest } from '../../utils';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { rejectedTradeActions } from '../../actions/entities/rejected-trades.actions';\r\n\r\nexport function useRejectedTrades(disabled: boolean = false) {\r\n const dispatch = useDispatch();\r\n const { requestState, items } = useSelector((s: AppState) => s.entities.rejectedTrades);\r\n\r\n useEffect(() => {\r\n if (shouldRequest(requestState) && !disabled) {\r\n dispatch(rejectedTradeActions.request());\r\n }\r\n }, [requestState, disabled, dispatch]);\r\n\r\n return { requestStateGetTrades: requestState, rejectedTrades: items };\r\n}\r\n","import { useEffect } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { errorActions } from '../actions';\r\nimport { RequestState } from '../constants/request-state';\r\nimport { feedbackService } from '../services';\r\n\r\nexport const useRequestUserFeedback = (requestBody, requestState, setRequestState) => {\r\n const dispatch = useDispatch();\r\n useEffect(() => {\r\n async function request() {\r\n if (requestState === RequestState.request) {\r\n try {\r\n await feedbackService.sendFeedback(requestBody);\r\n setRequestState(RequestState.success);\r\n } catch (e) {\r\n dispatch(errorActions.unexpectedError(e));\r\n setRequestState(RequestState.failure);\r\n }\r\n }\r\n }\r\n\r\n request(); // eslint-disable-next-line\r\n }, [requestState]);\r\n};\r\n","import { useAgreement } from \"../components/seller-buyside/useAgreement\";\r\nimport { roles } from \"../constants\";\r\nimport { SettlementAgreementStatus } from \"../types/bid-as-dealer/SettlementAgreementStatus\";\r\nimport { user } from \"../user\";\r\n\r\nexport function useAllToAllAgreementBlocked() {\r\n const { agreement } = useAgreement();\r\n const isAgreementConfirmed = agreement?.agreementStatus === SettlementAgreementStatus.confirmed;\r\n const isBdTrader = user.hasRoles(roles.BrokerDealerTrader);\r\n return isBdTrader && !isAgreementConfirmed && !user?.current()?.isClearingBank;\r\n}","import { useEffect } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { AppState } from '../types/state/AppState';\r\nimport { shouldRequest } from '../utils';\r\nimport { portfolioListActions } from \"../actions/portfolio-list.actions\";\r\n\r\nexport const usePortfolios = (readOnly: boolean = false) => {\r\n const dispatch = useDispatch();\r\n const items = useSelector((state: AppState) => state.entities.portfolios.items);\r\n const requestState = useSelector((state: AppState) => state.entities.portfolios.requestState);\r\n\r\n useEffect(() => {\r\n if (shouldRequest(requestState) && !readOnly) {\r\n dispatch(portfolioListActions.request());\r\n }\r\n }, [dispatch, requestState, readOnly]);\r\n return { items, requestState };\r\n}\r\n","import { useEffect } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { AppState } from '../types/state/AppState';\r\nimport { shouldRequest } from '../utils';\r\nimport { brokerDealerContactListActions } from '../actions/broker-dealer-contact-list.actions';\r\n\r\nexport const useBrokerDealerContacts = () => {\r\n const dispatch = useDispatch();\r\n\r\n const items = useSelector((state: AppState) => state.entities.brokerDealerContactList.items);\r\n const requestState = useSelector((state: AppState) => state.entities.brokerDealerContactList.requestState);\r\n\r\n useEffect(() => {\r\n if (shouldRequest(requestState)) {\r\n dispatch(brokerDealerContactListActions.request())\r\n }\r\n }, [dispatch, requestState]);\r\n\r\n return { requestState, items }\r\n};\r\n","import saveAs from 'file-saver';\r\nimport { useCallback, useState } from 'react';\r\nimport { useAppDispatch } from './useAppDispatch';\r\nimport { errorActions } from '../actions';\r\nimport { DownloadFile } from '../types/amr-pipeline/models/DownloadedDocument';\r\nimport { Nullable } from '../types/primitives/Nullable';\r\n\r\ninterface Props {\r\n downloadRequest: (...args: TArgs) => Promise;\r\n requestArgs: TArgs;\r\n fileNameForSave?: Nullable;\r\n}\r\n\r\nexport const useDownloadDocument = ({\r\n downloadRequest,\r\n requestArgs,\r\n fileNameForSave,\r\n}: Props) => {\r\n const dispatch = useAppDispatch();\r\n const [isDownloading, setIsDownloading] = useState(false);\r\n\r\n const handleDownload = useCallback(downloadHandler, [\r\n downloadRequest,\r\n requestArgs,\r\n fileNameForSave,\r\n dispatch,\r\n ]);\r\n\r\n async function downloadHandler() {\r\n setIsDownloading(true);\r\n\r\n try {\r\n const file = await downloadRequest(...requestArgs);\r\n\r\n saveAs(file.blob, fileNameForSave ? `${fileNameForSave}` : file.name);\r\n } catch (e) {\r\n dispatch(errorActions.error(e));\r\n } finally {\r\n setIsDownloading(false);\r\n }\r\n }\r\n\r\n return { isDownloading, handleDownload };\r\n};\r\n","import * as React from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { clearingBankActions } from '../../actions';\r\nimport { RequestState } from '../../constants/request-state';\r\nimport { SettlementAgentCommissionByRating } from '../../types/bid-as-dealer/SettlementAgentCommissionByRating';\r\nimport { AppState } from '../../types/state/AppState';\r\nimport { isRequestNone } from '../../utils';\r\n\r\nexport function useSettlementAgentDefaultCommission(companyId: number, disabled = false) {\r\n const dispatch = useDispatch();\r\n const { requestState, values } = useSelector((s: AppState) => s.entities.settlementAgentCommission.commission[companyId]) ?? {\r\n requestState: RequestState.none, values: {} as SettlementAgentCommissionByRating\r\n };\r\n\r\n React.useEffect(() => {\r\n if (isRequestNone(requestState) && !disabled) {\r\n dispatch(clearingBankActions.settlementAgentCommissionRequest(companyId));\r\n }\r\n }, [requestState, companyId, disabled, dispatch])\r\n\r\n return { requestState, values };\r\n}\r\n","import { useEffect } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { isRequestNone } from '../utils';\r\nimport { RequestState } from '../constants/request-state';\r\nimport { activeInventorySecurityActions } from '../actions/active-inventory-security.actions';\r\nimport { AppState } from \"../types/state/AppState\";\r\n\r\nexport const useActiveInventorySecuritesIds = (disabled = false) => {\r\n const dispatch = useDispatch();\r\n\r\n const activeSecuriesState = useSelector((s: AppState) => s.entities.activeInventorySecurities);\r\n\r\n useEffect(() => {\r\n if (isRequestNone(activeSecuriesState.requestState) && !disabled) {\r\n dispatch(activeInventorySecurityActions.requestActiveInventorySecurities());\r\n }\r\n }, [dispatch, activeSecuriesState.requestState, disabled]);\r\n\r\n const result: [requestState: RequestState, securitiesByInventoryCount: { [securityId: number]: number }] =\r\n [activeSecuriesState.requestState, activeSecuriesState.items];\r\n\r\n return result;\r\n};\r\n"],"names":["RecipientType","useBiddingCompletedNotification","recipient","arguments","length","undefined","Bidder","_len","accepted","Array","_key","useNotification","PushHistoryStateItemType","BwicStage1Ended","BwicProcessType","BestFootForward","BwicStage2Ended","Live","JumpBall","TopX","pushType","_len2","processTypes","_key2","dispatch","useDispatch","push","useAppSelector","s","_s$pushHistory$histor","pushHistory","history","at","useEffect","target","find","b","referenceName","bwicReferenceName","some","p","process","type","bwic","_bwic$bidsDueUtc","securities","bidsDue","dateTimeUtils","utcToLocalString","bidsDueUtc","bidsDueDateUtc","title","concat","name","message","tabText","document","toString","notificationActions","infoModalReplace","map","ticker","join","showBiddingCompletedNotification","pushHistoryActions","resetForType","visibleStatuses","CompanyStatus","Active","OffPlatform","useParties","_useSelector","useSelector","state","entities","parties","requestState","items","getCompanies","useCallback","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_yield$Promise$all","_yield$Promise$all2","arrangerCompanies","trusteeCompanies","collateralManagerCompanies","majorityEquityCompanies","amrAgentCompanies","wrap","_context","prev","next","partiesActions","request","Promise","all","amrCompaniesService","getArrangersList","getTrusteeList","getCollateralManagerList","getMajorityEquityList","getAmrAgentList","sent","_slicedToArray","requestResult","RequestState","success","t0","errorActions","unexpectedError","trusteeActions","failure","stop","isRequestNone","useFavorites","disabled","favorites","favoriteBrokerDealers","user","hasRoles","roles","SellerTrader","favoriteBrokerDealersActions","fetchFavoriteBrokerDealersRequest","useTradeAllocation","tradeId","_ref","tradeAllocation","none","tradeAllocationItems","React","shouldRequest","tradeAllocationActions","useSecurityLatestTransaction","tickers","useAppDispatch","latestTransaction","doRequest","transactions","latestTransactionActions","amrPipelineService","getLatestTransactionsByTicker","response","error","apply","JSON","stringify","timeout","useBrowserTabBlinkAnimation","text","original","useRef","_useState","useState","_useState2","index","setIndex","hidden","current","setTimeout","useQuery","search","useLocation","useMemo","fromPairs","from","URLSearchParams","entries","useAssetManagers","assetManager","assetManagerActions","assetManagersRequestState","assetManagers","useCountries","setRequestState","_useState3","_useState4","countries","setCountries","getCountries","_countries","locationService","useCities","stateId","currentStateId","cities","setCities","getCities","_cities","isRequesting","useBwicWithSecurityExist","securityId","exist","setExist","_request","existRequest","bwicService","isBwicWithSecuritesExist","logger","exception","useStates","states","setStates","getStates","_states","constants","USCountryCode","useTrustee","trustee","getTrustee","useTradeAllocationTemplates","tradeAllocationTemplate","tradeAllocationTemplateActions","tradeAllocationTemplatesRequestState","templates","useNextBusinessDates","daysCount","requestStateFetchNextBusinessDates","setRequestStateFetchNextBusinessDates","nextBusinessDates","setNextBusinessDates","_nextBusinessDates","daysService","getNextBusinessDates","useDealTransactions","dealReferenceName","isRequestAllowed","dealTransactions","setDealTransactions","dealDetails","dealsService","getDealTransactions","useImUserCompany","imUserCompany","issuanceMonitor","amrPipelineCommon","userCompany","imUserCompanyRequestState","amrPipelineCommonActions","loadUserCompanyRequest","useSortedListByManyFields","list","setSortedList","sortingField","sortDirection","SORT","DESC","sortingType","SORTING_TYPE","string","sortRules","lastList","newList","_toConsumableArray","sortCollection","default","reverse","forEach","direction","option","sortingOptions","o","sort","a","compare","isEqual","useSettlementAccounts","requestEnabled","settlementAccount","seller","isClearingBank","settlementAccountActions","settlementAccountsRequestState","settlementAccounts","useGetWebinar","webinar","setWebinar","requestStateGetWebinar","setRequestStateGetWebinar","getData","data","releaseService","fetchWebinar","useFocusOnError","fieldRef","_ref$enable","enable","formik","useFormikContext","prevSubmitCountRef","submitCount","firstErrorKey","getNameList","errors","isSubmitting","isValid","focus","x","names","keys","Object","_loop","key","i","value","childPathList","c","useBiddingCompletedSoonNotification","reminderPush","BiddingCompleteReminder","_bwic$goodUntilUtc","goodUntil","goodUntilUtc","goodUntilDateUtc","timeFormat","payload","remainingMinutes","blinkingBrowserTabText","showNotification","selector","useHistoryListener","onChange","useHistory","prevLocation","unListen","listen","location","nextLocation","pathname","setAssetManagersRequestState","setAssetManagers","accountService","getAssetManagers","useAvailableBrokerDealers","availableBrokerDealers","companies","availableBrokerDealersActions","getAvailableBrokerDealers","useCollateralManagers","collateralManagers","managers","collateralManagersActions","requestCollateralManagers","getManagersList","responseCollateralManagers","useSecurityArrangersPipeline","requiredFeatures","SubscriptionFeature","IssuanceMonitorArrangerPipeline","CanLookupArrangersPipelineFromPortfolio","hasAllFeatures","arrangersPipelineActions","amrArrangerPipelineService","getArrangerPipelinesByTicker","_ref$documents","documents","downloadRequest","_ref$uniqueIdentifier","uniqueIdentifier","reduce","acc","doc","docKey","loadingState","setLoadingState","loadHandler","_ref2","documentName","rest","file","_args","prevState","_objectSpread","_defineProperty","saveAs","blob","finish","_x","_x2","useCurrentUserCompany","_React$useState","_React$useState2","company","setCompany","_React$useState3","_React$useState4","_company","companiesService","getCurrentUserCompany","useLocationStateReset","replace","useFilterNextLineHide","parentRef","filtersRefs","isFilterCollapsed","shouldShowHideButtonCallback","countOfHiddenFilters","setCountOfHiddenFilters","ref","callback","width","setWidth","height","setHeight","handleResize","window","requestAnimationFrame","isArray","entry","contentRect","useLayoutEffect","RO","ResizeObserver","observe","disconnect","useResizeObserver","_parentRef$current","_filtersRefs$current","topDimensionFilterContainer","getBoundingClientRect","top","numberOfHiddenFilters","el","topDimensionFilterItem","classList","add","remove","useBwicsSearch","statuses","bwics","setBwics","_bwics","searchBwics","isinCusipsAndTickers","pageSize","result","useSecurityDocumentsExistFlag","isinCusip","isExist","setState","abrupt","documentsService","getSecurityDocumentsExistFlag","useDebounce","delay","debouncedValue","setDebouncedValue","timer","clearTimeout","_requestState","resetSettlementAgentAgreementsRequestState","useSettlementAgentAgreements","settlementAgentAgreements","_user$current","bd","agreements","settlementAgentAgreementActions","settlementAgentAgreementService","getAgreements","usePreviousTransaction","transactionReferenceName","previousTransaction","setTransaction","previousTransactionRequestState","transaction","getPreviousTransaction","useSetOnBoardingTooltipCountRequest","setCount","count","setOnBoardingTooltipCounter","onBoardingTooltipService","page","useAmrDocuments","amrDocuments","setAmrDocuments","getAmrDocument","useDealersFilter","dealersList","contacts","users","searchTerm","filterOption","favoriteDealers","dealers","setDealers","searchTermLowerCase","trim","toLowerCase","isAnyOptionSelected","selected","isFavorites","DealerFilterOptions","Favorite","isPlatform","Platform","isOffPlatform","filter","dealer","_dealer$headOfTrading","_dealer$headOfTrading2","companyMatch","includes","distributionListMatch","distributionList","headOfTradingMatch","headOfTrading","email","dealerContactsOccurrences","companyId","id","contact","firstName","lastName","role","searchContact","dealerUsersOccurrences","u","searchUser","bySearchTerm","byOption","returnFavorites","returnPlatform","status","active","returnOffPlatform","useSortedList","sortBy","enabled","customSortingCompareCallback","shouldSort","setList","compareCallback","resolveSortByPath","obj","split","ASC","localeCompare","sortedList","e","console","log","useBackspaceRedirectBlocker","handleKeyDown","keyCode","tagName","contentEditable","readOnly","preventDefault","documentMode","addEventListener","removeEventListener","useCacheOnBoardingState","step","stateBoardingTooltip","currentState","ObjectUtils","equal","localStorage","setItem","onBoardingTooltipConst","localStorageKey","usePrevious","useRequestInviteBuysideClients","emailList","sending","setSending","setSent","setError","mounted","contactsService","inviteBuysideClients","useBrokerDealers","brokerDealerList","brokerDealerListActions","useInvenotory","inventory","setInventory","_inventory","inventoryService","getBdInventory","inventorySecurities","t","sensitivity","useBdInventory","_useState5","_useState6","_useState7","_useState8","lastAppliedFilter","inventoryAccess","identifiers","ratings","isRequestSuccess","isRequestFailed","_callee2","_inventory2","_context2","getAllInventory","useAllInventory","useCompany","companyWithMembers","setCompanyWithMembers","members","getCompanyInfo","getMembersList","useBrokerDealerUsers","brokerDealerUserList","brokerDealerUserListActions","useMyBwicsExist","activeTab","myBwicsOnly","isAllToAll","requestStateIsMyBwicsExist","setRequestStateIsMyBwicsExist","myBwicsExist","setMyBwicsExist","isBdBuy","AllBwicsTab","Buy","getBwicsExist","criticalError","createBrowserHistory","useSettlementInstructions","classReferenceName","settlementInstructions","setSettlementInstructions","getSettlementInstructions","useCompanyUserList","requestStateGetUsers","setUsers","getUsers","_users","getCompanyMembers","usePriceTalks","positionId","priceTalks","priceTalksActions","resetFailed","resetLiveBiddingDataRequestState","useLiveBiddingData","liveBidding","positions","liveBiddingActions","biddingService","getLiveBiddingData","useCloSystemInfrastructure","cloSystemInfrastructure","cloSystemInfrastructureItems","groupCloSystemInfrastructure","cloSystemInfrastructureActions","requestData","cloManagersService","getCloSystemInfrastructures","responseData","useExcludedDealers","excludedDealers","setExcludedDealers","getExcludedDealers","useEmailPreferences","emailPreferences","preferences","emailPreferencesActions","useRejectedTrades","rejectedTrades","rejectedTradeActions","requestStateGetTrades","useRequestUserFeedback","requestBody","feedbackService","sendFeedback","useAllToAllAgreementBlocked","agreement","useAgreement","isAgreementConfirmed","agreementStatus","SettlementAgreementStatus","confirmed","BrokerDealerTrader","usePortfolios","portfolios","portfolioListActions","useBrokerDealerContacts","brokerDealerContactList","brokerDealerContactListActions","useDownloadDocument","requestArgs","fileNameForSave","isDownloading","setIsDownloading","handleDownload","_downloadHandler","useSettlementAgentDefaultCommission","settlementAgentCommission","commission","values","clearingBankActions","settlementAgentCommissionRequest","useActiveInventorySecuritesIds","activeSecuriesState","activeInventorySecurities","activeInventorySecurityActions","requestActiveInventorySecurities"],"sourceRoot":""}