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EAAAA,GAAYG,MACvC,CAACH,EAAAA,GAAYQ,cAAeR,EAAAA,GAAYG,OAEpCM,EAAsB,CAC1BT,EAAAA,GAAYE,SACZF,EAAAA,GAAYK,eACZL,EAAAA,GAAYM,gBACZN,EAAAA,GAAYG,MACZH,EAAAA,GAAYO,YACZP,EAAAA,GAAYQ,cAGP,SAASE,IACd,MAAMC,GAAuBC,EAAAA,EAAAA,KACvBC,EAAcF,EAAqBG,WAAWC,MAAwBf,EAAAA,GAAYC,MAClFe,EAAcH,IAAeb,EAAAA,GAAYC,MACzCgB,EAAYC,EAAAA,SAChB,IACEnB,EAAUb,KAAK6B,IAAI,CACjB3B,MAAO+B,EAAAA,GAAoBJ,GAC3B1B,KAAMsB,EAAqBS,sBAAsB,CAAEL,SACnDzB,SAAU0B,EACND,IAASf,EAAAA,GAAYC,MACrBG,EAAcS,KAA8CE,EAChExB,gBAAgB,OAEpB,CAACsB,EAAYF,EAAsBK,IAGrC,OACEnC,EAAAA,EAAAA,MAAAwC,EAAAA,SAAA,CAAAzC,SAAA,EACEH,EAAAA,EAAAA,KAACM,EAAAA,EAAW,CAACE,KAAK,SAASD,MAAOiC,KAChCD,GAAeP,EAAoBa,SAAST,IAC5CpC,EAAAA,EAAAA,KAAC8C,EAAAA,GAAK,CAACtC,KAAK,QAAQP,UAAU,OAAOoB,QAAM,EAAAlB,SAAC,SAG1C,OAGV,C,oFCjDe,SAASqB,IACtB,OAAOxB,EAAAA,EAAAA,KAACN,EAAAA,EAAO,CAACE,aAAaI,EAAAA,EAAAA,KAACiC,EAAAA,EAAU,KAC1C,C","sources":["webpack://@finviz/website/./js/main/components/SubMenu/SubMenu.tsx","webpack://@finviz/website/./js/main/components/SubMenu/SubMenuTabs.tsx","webpack://@finviz/website/./js/main/modules/insider-trading/components/Navigation.tsx","webpack://@finviz/website/./js/main/modules/insider-trading/routes/Index.tsx"],"sourcesContent":["import classNames from 'classnames'\r\nimport { isRedesignEnabled } from 'finviz-charts/app/utils'\r\nimport * as React from 'react'\r\n\r\ninterface Props extends React.HTMLProps {\r\n leftContent?: React.ReactNode\r\n middleContent?: React.ReactNode\r\n rightContent?: React.ReactNode\r\n}\r\n\r\nexport function SubMenu({ leftContent, middleContent, rightContent, ...props }: Props) {\r\n return (\r\n
\r\n
\r\n \r\n {leftContent}\r\n
\r\n {middleContent &&
{middleContent}
}\r\n
{rightContent}
\r\n
\r\n \r\n )\r\n}\r\n","import { Link } from 'react-router-dom'\r\n\r\nimport { Button, ButtonSizeType } from '../button'\r\n\r\ninterface Props {\r\n items: Array<{ label: string; href: string; isActive: boolean; reloadDocument?: boolean }>\r\n size?: ButtonSizeType\r\n}\r\n\r\nexport function SubMenuTabs({ items, size = 'medium' }: Props) {\r\n return (\r\n
\r\n {items.map(({ label, href, isActive, reloadDocument }) => (\r\n \r\n {label}\r\n \r\n ))}\r\n
\r\n )\r\n}\r\n","import * as React from 'react'\r\n\r\nimport { Badge } from '../../../components'\r\nimport { SubMenuTabs } from '../../../components/SubMenu/SubMenuTabs'\r\nimport { INSIDER_VIEW_LABELS, InsiderView } from '../constants'\r\nimport { useInsiderTradingRouter } from '../hooks/useInsiderTradingRouter'\r\n\r\nconst MENU_TABS: Array = [InsiderView.Index, InsiderView.Managers, InsiderView.Funds]\r\nconst MENU_TABS_MAP = {\r\n [InsiderView.Managers]: InsiderView.Managers,\r\n [InsiderView.ManagerDetails]: InsiderView.Managers,\r\n [InsiderView.ManagerHoldings]: InsiderView.Managers,\r\n [InsiderView.Funds]: InsiderView.Funds,\r\n [InsiderView.FundDetails]: InsiderView.Funds,\r\n [InsiderView.FundHoldings]: InsiderView.Funds,\r\n}\r\nconst MANAGER_FUNDS_VIEWS = [\r\n InsiderView.Managers,\r\n InsiderView.ManagerDetails,\r\n InsiderView.ManagerHoldings,\r\n InsiderView.Funds,\r\n InsiderView.FundDetails,\r\n InsiderView.FundHoldings,\r\n]\r\n\r\nexport function Navigation() {\r\n const insiderTradingRouter = useInsiderTradingRouter()\r\n const activeView = (insiderTradingRouter.viewParams.view as InsiderView) || InsiderView.Index\r\n const isIndexPage = activeView === InsiderView.Index\r\n const menuItems = React.useMemo(\r\n () =>\r\n MENU_TABS.map((view) => ({\r\n label: INSIDER_VIEW_LABELS[view],\r\n href: insiderTradingRouter.getInsiderTradingLink({ view }),\r\n isActive: isIndexPage\r\n ? view === InsiderView.Index\r\n : MENU_TABS_MAP[activeView as keyof typeof MENU_TABS_MAP] === view,\r\n reloadDocument: true,\r\n })),\r\n [activeView, insiderTradingRouter, isIndexPage]\r\n )\r\n\r\n return (\r\n <>\r\n \r\n {!isIndexPage && MANAGER_FUNDS_VIEWS.includes(activeView) ? (\r\n \r\n Beta\r\n \r\n ) : null}\r\n \r\n )\r\n}\r\n","import { SubMenu } from '../../../components/SubMenu/SubMenu'\r\nimport { Navigation } from '../components/Navigation'\r\n\r\nexport default function Index() {\r\n return } />\r\n}\r\n"],"names":["SubMenu","_ref","leftContent","middleContent","rightContent","props","_jsx","className","classNames","children","_jsxs","isRedesignEnabled","SubMenuTabs","items","size","map","_ref2","label","href","isActive","reloadDocument","Button","as","Link","to","theme","rounding","active","MENU_TABS","InsiderView","Index","Managers","Funds","MENU_TABS_MAP","ManagerDetails","ManagerHoldings","FundDetails","FundHoldings","MANAGER_FUNDS_VIEWS","Navigation","insiderTradingRouter","useInsiderTradingRouter","activeView","viewParams","view","isIndexPage","menuItems","React","INSIDER_VIEW_LABELS","getInsiderTradingLink","_Fragment","includes","Badge"],"sourceRoot":""}