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_E/./src/api/client/vote-user.api.ts","webpack://_N_E/./src/components/base/filled-circle.tsx","webpack://_N_E/./src/components/common/ranking/ranking.tsx","webpack://_N_E/./src/components/common/voting/use-voting-status.ts","webpack://_N_E/./src/components/common/voting/utils/calculate-proportions.ts","webpack://_N_E/./src/components/common/voting/voting-answer.test-ids.ts","webpack://_N_E/./src/components/common/voting/voting-answer.tsx","webpack://_N_E/./src/components/common/voting/voting-answers-block.tsx","webpack://_N_E/./src/components/common/voting/voting-remaining-days.tsx","webpack://_N_E/./src/components/icons/play.tsx","webpack://_N_E/./src/hooks/following/use-underlying-following.ts","webpack://_N_E/./src/components/pages/underlying-overview/stock-search/stock-typeahead-wrapper.tsx","webpack://_N_E/./src/components/pages/underlying-overview/stock-search/stock-search.tsx","webpack://_N_E/./src/pages/[country]/stock-insights.tsx","webpack://_N_E/./src/stores/uderlying-follow-store.ts","webpack://_N_E/./src/utils/type-utils.ts","webpack://_N_E/./node_modules/@chakra-ui/avatar/dist/chunk-A4TTV745.mjs","webpack://_N_E/"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/[country]/stock-insights\",\n function () {\n return require(\"private-next-pages/[country]/stock-insights.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/[country]/stock-insights\"])\n });\n }\n ","import { IVotingDetailResult } from \"src/components/common/voting/types\";\nimport { API_VOTE_USER_URL } from \"src/consts/urls\";\nimport { useMutation } from \"src/hooks/react-query/use-mutation\";\nimport { IErrorResponse } from \"./types\";\n\nexport interface IVoteUserRequest {\n voteTemplateId: string;\n value: number;\n placement: number;\n}\n\nexport const useVoteUser = () => {\n const { mutate } = useMutation(API_VOTE_USER_URL);\n\n return mutate;\n};\n","import { Box, BoxProps } from \"@chakra-ui/react\";\nimport { SPACE_UNIT_SIZE_PX } from \"src/theme\";\n\nexport interface IFilledCircleProps extends BoxProps {\n size: number;\n color: string;\n}\n\nexport const FilledCircle = ({ size, color, ...props }: IFilledCircleProps) => (\n \n);\n","import { Box, BoxProps, Flex, FlexProps, HStack } from \"@chakra-ui/react\";\nimport { DescriptionDefinition, DescriptionTerm } from \"src/components/base\";\nimport { WfPopover, PopoverButtonIconInfo } from \"src/components/base/wf-popover\";\nimport { IFractionDigits } from \"src/hooks/formatters/number-formatter\";\nimport { ITooltip } from \"src/types/common\";\nimport { IRankingValueSize, RankingValue } from \"./ranking-value\";\nimport { IRankingData } from \"./types\";\n\nexport interface IRanking {\n size: IRankingValueSize;\n fractionDigits?: IFractionDigits;\n tooltip?: ITooltip | null;\n data: IRankingData;\n isDescriptionListItem?: boolean;\n hidePoints?: boolean;\n labelProps?: BoxProps;\n}\n\nexport interface IRankingProps extends IRanking, FlexProps {}\n\nexport const Ranking = ({ data, size, fractionDigits, tooltip, isDescriptionListItem, hidePoints, labelProps, ...flexProps }: IRankingProps) => {\n return (\n \n \n \n \n \n \n {data.label}\n \n {tooltip && (\n \n \n \n )}\n \n \n );\n};\n","import { differenceInDays, differenceInHours, differenceInMinutes, differenceInSeconds, isAfter } from \"date-fns\";\nimport { useTranslation } from \"next-i18next\";\n\nexport const useVotingStatus = (votingUntilString: string, currentDateString: string | undefined) => {\n const { t } = useTranslation(\"voting-module\");\n\n const votingUntilDate = new Date(votingUntilString);\n const currentDate = currentDateString ? new Date(currentDateString) : new Date();\n\n const getMinutesText = () => {\n const remainingMinutes = differenceInMinutes(votingUntilDate, currentDate);\n\n if (remainingMinutes > 1) {\n return t(\"several-minutes-left\", { 0: remainingMinutes });\n }\n\n if (remainingMinutes >= 0) {\n const remainingSeconds = differenceInSeconds(votingUntilDate, currentDate);\n if (remainingSeconds > 0) {\n return t(\"one-minute-left\");\n }\n }\n\n return t(\"voting-ended\");\n };\n\n const getHoursText = () => {\n const remainingHours = differenceInHours(votingUntilDate, currentDate);\n\n if (remainingHours > 1) {\n return t(\"several-hours-left\", { 0: remainingHours });\n }\n\n if (remainingHours === 1) {\n return t(\"one-hour-left\");\n }\n\n return getMinutesText();\n };\n\n return {\n getText: () => {\n const remainingDays = differenceInDays(votingUntilDate, currentDate);\n\n if (remainingDays > 1) {\n return t(\"several-days-left\", { 0: remainingDays });\n }\n\n if (remainingDays === 1) {\n return t(\"one-day-left\");\n }\n\n return getHoursText();\n },\n hasEnded: isAfter(currentDate, votingUntilDate),\n };\n};\n","import { IVoteSummaryItem } from \"src/components/common/voting/types\";\n\nexport const calculateProportionsOfCounts = (\n answers: ReadonlyArray,\n voteSummary: ReadonlyArray | null\n): ReadonlyArray => {\n const sum = voteSummary?.reduce((partialSummary, voteSummaryItem) => partialSummary + (voteSummaryItem.count ?? 0), 0) ?? 0;\n\n return answers.map((answer, index) => {\n if (sum === 0) {\n return 0;\n }\n\n const foundVoteSummaryItem = voteSummary?.find(item => Number(item.choice) === index);\n\n return (foundVoteSummaryItem?.count ?? 0) / sum;\n });\n};\n","export const VOTING_MODULE_ANSWER_TEST_ID = \"voting-module-answer\";\nexport const VOTING_MODULE_ANSWER_COUNT_TEST_ID = \"voting-module-answer-count\";\n","import { MouseEvent, useCallback } from \"react\";\nimport { Progress, Radio, Text } from \"@chakra-ui/react\";\nimport { SpanFlex } from \"src/components/base\";\nimport { formatPercent } from \"src/hooks/formatters/number-formatter\";\nimport { IVotingAnswer } from \"src/types/common\";\nimport { useRouterLocale } from \"src/utils/router/use-router-locale\";\nimport { isNumber } from \"src/utils/type-utils\";\nimport { VOTING_MODULE_ANSWER_COUNT_TEST_ID, VOTING_MODULE_ANSWER_TEST_ID } from \"./voting-answer.test-ids\";\n\nconst COMMON_HEIGHT = [9, 7];\n\nexport interface IVotingAnswerProps extends IVotingAnswer {\n isDisabled: boolean;\n isChecked: boolean;\n onClick: () => void;\n}\n\nexport const VotingAnswer = ({ text, count, onClick, isDisabled, isChecked }: IVotingAnswerProps) => {\n const { language } = useRouterLocale();\n\n const countPercents = typeof count === \"undefined\" ? undefined : count * 100;\n\n const handleClick = useCallback(\n (e: MouseEvent) => {\n // We have to check if the origin of the event is the input because it triggers the unwanted second call\n if (!isDisabled && !isChecked && (e.target as HTMLElement).nodeName !== \"INPUT\") {\n onClick();\n }\n },\n [isChecked, isDisabled, onClick]\n );\n\n return (\n \n \n \n {text}\n \n \n {isNumber(count) && (\n \n {formatPercent({ value: count, language })}\n \n )}\n \n );\n};\n","import { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { IVoteSummaryItem } from \"src/components/common/voting/types\";\nimport { calculateProportionsOfCounts } from \"src/components/common/voting/utils/calculate-proportions\";\nimport { VotingAnswer } from \"src/components/common/voting/voting-answer\";\nimport { isServerSide } from \"src/utils/common-util\";\n\ninterface IVotingAnswersBlockProps {\n answers: ReadonlyArray;\n selectedAnswerIndex: string | null;\n voteSummary: ReadonlyArray | null;\n onVoteChange: (userChoice: number) => void;\n hasVotingEnded: boolean;\n}\n\nexport const VotingAnswersBlock = ({ answers, selectedAnswerIndex, voteSummary, onVoteChange, hasVotingEnded }: IVotingAnswersBlockProps) => {\n const defaultCountPercentages = Array(answers.length).fill(0);\n const [visiblePercentages, setVisiblePercentages] = useState>(defaultCountPercentages);\n\n const calculatedPercentages = useMemo(() => calculateProportionsOfCounts(answers, voteSummary), [answers, voteSummary]);\n\n const getAnswerPercentageCount = useCallback(\n (index: number) => {\n if (selectedAnswerIndex || hasVotingEnded) {\n return isServerSide() ? calculatedPercentages[index] : visiblePercentages[index];\n }\n },\n [hasVotingEnded, selectedAnswerIndex, calculatedPercentages, visiblePercentages]\n );\n\n useEffect(() => {\n // to guarantee the re-rendering that provides the animation\n setTimeout(() => setVisiblePercentages(calculatedPercentages), 0);\n }, [calculatedPercentages, voteSummary]);\n\n return (\n <>\n {answers.map((answer, index) => (\n onVoteChange(index)}\n />\n ))}\n \n );\n};\n","import { HStack, Text } from \"@chakra-ui/react\";\nimport { FilledCircle } from \"src/components/base/filled-circle\";\nimport { useVotingStatus } from \"src/components/common/voting/use-voting-status\";\n\nconst VOTING_MODULE_REMAINING_DAYS_PART_TEST_ID = \"voting-module-remaining-days-part\";\n\nexport interface IVotingRemainingDaysProps {\n votingUntilDate: string;\n currentDate: string | undefined;\n}\n\nexport const VotingRemainingDays = ({ votingUntilDate, currentDate }: IVotingRemainingDaysProps) => {\n const { getText, hasEnded } = useVotingStatus(votingUntilDate, currentDate);\n\n return (\n \n \n {getText()}\n \n );\n};\n","import { Icon } from \"@chakra-ui/react\";\nimport { TIconComponent } from \"./icon-component.types\";\n\nexport const IconPlay: TIconComponent = props => (\n \n \n \n \n \n);\n","import { useTranslation } from \"next-i18next\";\nimport { useAddWatchlistUnderlyingsMutation, useRemoveWatchlistUnderlyingsMutation } from \"src/api/client/watchlist.api\";\nimport { EnumToastStatus, useWfToast } from \"src/hooks/use-wf-toast\";\nimport { useUnderlyingFollowStore } from \"src/stores/uderlying-follow-store\";\nimport { useUserStore } from \"src/stores/user-store\";\nimport { useLinkBuilder } from \"../use-link-builder\";\n\nconst SUCCESS_MESSAGE_DURATION = 5000;\nexport const useUnderlyingFollowing = (underlyingIsin: string) => {\n const { t } = useTranslation(\"common\");\n const { setIsFollowedUnderlying, canBeFollowedUnderlyingIsins, followedUnderlyingIsins } = useUnderlyingFollowStore();\n const toast = useWfToast();\n const { isLoggedIn } = useUserStore();\n const { openLoginModal } = useLinkBuilder();\n\n const isFollowed = followedUnderlyingIsins.includes(underlyingIsin);\n const canBeFollowed = canBeFollowedUnderlyingIsins.includes(underlyingIsin);\n\n const onError = () => {\n toast({ status: EnumToastStatus.Error, title: t(\"general-error\") });\n setIsFollowedUnderlying(underlyingIsin, !isFollowed);\n };\n\n const onSuccess = (message: string) => () => {\n toast({\n duration: SUCCESS_MESSAGE_DURATION,\n status: EnumToastStatus.Success,\n title: message,\n });\n };\n\n const addWatchlistUnderlyingsMutation = useAddWatchlistUnderlyingsMutation({ onError, onSuccess: onSuccess(t(\"underlying-follow-success\")) });\n const removeWatchlistUnderlyingsMutation = useRemoveWatchlistUnderlyingsMutation(underlyingIsin, {\n onError,\n onSuccess: onSuccess(t(\"underlying-unfollow-success\")),\n });\n\n const toggleIsFollowed = () => {\n if (!isLoggedIn) {\n openLoginModal();\n return;\n }\n\n setIsFollowedUnderlying(underlyingIsin, !isFollowed);\n\n if (isFollowed) {\n removeWatchlistUnderlyingsMutation.mutate();\n } else {\n addWatchlistUnderlyingsMutation.mutate({ isin: underlyingIsin });\n }\n };\n\n return {\n canBeFollowed,\n isFollowed,\n toggleIsFollowed,\n };\n};\n","import { useTranslation } from \"next-i18next\";\nimport { useNavigateOnSelect } from \"src/components/common/typeahead/hooks/use-navigate-on-select\";\nimport { useQueryWithSearchResults } from \"src/components/common/typeahead/hooks/use-query-with-search-results\";\nimport { ISearchResultsMutationVariables } from \"src/components/common/typeahead/hooks/use-search-results\";\nimport { UnderlyingSearchResults } from \"src/components/common/typeahead/results/underlying-search-results\";\nimport { ITypeaheadWrapper, Typeahead } from \"src/components/common/typeahead/typeahead\";\nimport { EnumSecurityType } from \"src/types/common-enum\";\n\nconst STOCK_SEARCH_MUTATION_VARIABLES: ISearchResultsMutationVariables = {\n wikifoliosCount: 0,\n underlyingsCount: 10,\n securityTypes: [EnumSecurityType.Stock],\n};\n\nexport const StockTypeaheadWrapper = ({ onFocus, placement, placeholderText: searchPlaceholderText, enableAutoFocus }: ITypeaheadWrapper) => {\n const { t } = useTranslation(\"underlying-overview\");\n const { query, setQuery, results, combinedResults, onClear } = useQueryWithSearchResults(STOCK_SEARCH_MUTATION_VARIABLES);\n const { handleSelect } = useNavigateOnSelect(results);\n\n return (\n \n {({ isOpen, selectedIndex }) =>\n isOpen &&\n results && (\n \n )\n }\n \n );\n};\n","import { Box, Stack, useDisclosure, useBreakpointValue } from \"@chakra-ui/react\";\nimport { useTranslation } from \"next-i18next\";\nimport { PrimaryHeadline } from \"src/components/common/module-headlines\";\nimport { SimpleRichText } from \"src/components/common/rich-text/simple-rich-text\";\nimport { Container } from \"src/components/layout/container\";\nimport { GlobalNavSearchUi } from \"src/components/layout/global-nav-search/global-nav-search-ui\";\nimport { ILink } from \"src/types/common\";\nimport { StockTypeaheadWrapper } from \"./stock-typeahead-wrapper\";\n\nexport interface ISearchModuleProps {\n /** Text description of the module, comes on top of the search */\n title: string;\n titleAsH1: boolean;\n link?: ILink;\n description?: string;\n placeholder?: string;\n disableSubmit?: boolean;\n}\n\nconst GrayBackground = () => ;\n\n/** Search typeahead with dropdown selection, combined with an arrow button */\nexport const StockSearch = ({ title, titleAsH1, description, placeholder }: ISearchModuleProps) => {\n const isMobileOrTablet = useBreakpointValue([true, true, false]);\n const { isOpen: isSearchOpen, onOpen: onSearchOpen, onClose: onSearchClose } = useDisclosure();\n const { t } = useTranslation(\"common\");\n\n const renderOverlaySearch = isMobileOrTablet && isSearchOpen;\n\n const onSearchFocus = () => {\n if (isMobileOrTablet) {\n onSearchOpen();\n }\n };\n\n return (\n <>\n {renderOverlaySearch && (\n \n \n \n )}\n \n \n {title}\n \n {description && }\n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","import { useEffect } from \"react\";\nimport { GetServerSideProps } from \"next\";\nimport { useTranslation } from \"next-i18next\";\nimport { fetchUnderlyingOverview } from \"src/api/server/underlying-overview/underlying-overview\";\nimport { Section } from \"src/components/base\";\nimport { BlogTeaserModule } from \"src/components/modules/blog-teaser-module\";\nimport { CtaModule } from \"src/components/modules/cta-module/cta-module\";\nimport { ImageVideoModule } from \"src/components/modules/image-video-module/image-video-module\";\nimport { UnderlyingListModule } from \"src/components/modules/underlying-lists-module/underlying-list-module\";\nimport { VotingModule } from \"src/components/modules/voting-module/voting-module\";\nimport { StockSearch } from \"src/components/pages/underlying-overview/stock-search/stock-search\";\nimport { IUnderlyingOverviewProps } from \"src/components/pages/underlying-overview/underlying-overview.types\";\nimport { TOP_MARGIN_CONTENT_APP } from \"src/consts/styles\";\nimport { useContentPageVisitTracking } from \"src/hooks/use-content-page-visit-tracking\";\nimport { serverSideTranslations } from \"src/i18n/server-side-translations\";\nimport { useAuthModalStore } from \"src/stores/auth-modal-store\";\nimport { useUserStore } from \"src/stores/user-store\";\nimport { IBaseParam } from \"src/types/common\";\nimport { EnumHorizontalAlignment } from \"src/types/common-enum\";\nimport { addServerTiming } from \"src/utils/nextjs/add-server-timing\";\nimport { useRouterCaller } from \"src/utils/router/use-router-caller\";\n\nconst UNDERLYING_LIST_SECTION_ID = \"underlyinglist\";\nconst VOTING_SECTION_ID = \"voting\";\nconst BLOG_TEASER_SECTION_ID = \"blogteaser\";\n\nfunction Page({ data, dict }: IUnderlyingOverviewProps) {\n const { isCallerContentApp } = useRouterCaller();\n useContentPageVisitTracking({});\n const { isLoggedIn } = useUserStore();\n const { t } = useTranslation(\"underlying-overview\");\n const { setReturnUrl } = useAuthModalStore();\n\n useEffect(() => {\n setReturnUrl(window.location.pathname);\n }, [setReturnUrl]);\n\n return (\n <>\n
\n \n
\n\n {data.multiVoteModule?.votes?.length && (\n
\n \n
\n )}\n\n
\n \n
\n\n {data.ctaModule && (\n
\n \n
\n )}\n\n
\n \n
\n\n {isLoggedIn && data.imageVideoModule && (\n
\n \n
\n )}\n\n {!isLoggedIn && data.imageVideoModuleLoggedOut && (\n
\n \n
\n )}\n \n );\n}\n\ntype IParam = IBaseParam;\n\nexport const getServerSideProps: GetServerSideProps = async context => {\n const [props, translations] = await addServerTiming(context.res, \"ssprops\", async () => {\n const props = await fetchUnderlyingOverview(context);\n const translations = await serverSideTranslations(context.locale as string, [\"common\", \"underlying-overview\", \"date-range\", \"voting-module\"]);\n\n return [props, translations];\n });\n\n if (!props) {\n return { notFound: true };\n }\n\n return {\n props: {\n ...props,\n ...translations,\n },\n };\n};\n\nexport default Page;\n","import { proxy, useSnapshot } from \"valtio\";\n\nexport type TIsinWithFollowData = {\n isin: string;\n isFollowed: boolean;\n canBeFollowed: boolean;\n};\n\nexport type TUnderlyingFollowStoreData = Record>;\n\nexport const underlyingFollowStore = proxy({\n underlyingsFollowData: {} as TUnderlyingFollowStoreData,\n\n setUnderlyingsFollowData(underlyingsFollowData: TUnderlyingFollowStoreData) {\n underlyingFollowStore.underlyingsFollowData = underlyingsFollowData;\n },\n\n setIsFollowedUnderlying(underlyingIsin: string, isFollowed: boolean) {\n underlyingFollowStore.underlyingsFollowData[underlyingIsin] = {\n ...underlyingFollowStore.underlyingsFollowData[underlyingIsin],\n isFollowed,\n };\n },\n\n setCanBeFollowedUnderlying(underlyingIsin: string, canBeFollowed: boolean) {\n underlyingFollowStore.underlyingsFollowData[underlyingIsin] = {\n ...underlyingFollowStore.underlyingsFollowData[underlyingIsin],\n canBeFollowed,\n };\n },\n\n get canBeFollowedUnderlyingIsins(): string[] {\n return Object.keys(underlyingFollowStore.underlyingsFollowData).filter(key => underlyingFollowStore.underlyingsFollowData[key].canBeFollowed);\n },\n\n get followedUnderlyingIsins(): string[] {\n return Object.keys(underlyingFollowStore.underlyingsFollowData).filter(key => underlyingFollowStore.underlyingsFollowData[key].isFollowed);\n },\n});\n\nexport function useUnderlyingFollowStore() {\n return useSnapshot(underlyingFollowStore);\n}\n","export const isNumber = (value: unknown): value is number => typeof value === \"number\";\n\nexport const isString = (value: unknown): value is string => typeof value === \"string\";\n","'use client'\nimport {\n baseStyle\n} from \"./chunk-V7PAE35Z.mjs\";\n\n// src/avatar-group.tsx\nimport {\n chakra,\n forwardRef,\n omitThemingProps,\n useMultiStyleConfig\n} from \"@chakra-ui/system\";\nimport { cx } from \"@chakra-ui/shared-utils\";\nimport { getValidChildren } from \"@chakra-ui/react-children-utils\";\n\n// ../../utilities/object-utils/src/compact.ts\nfunction compact(object) {\n const clone = Object.assign({}, object);\n for (let key in clone) {\n if (clone[key] === void 0)\n delete clone[key];\n }\n return clone;\n}\n\n// src/avatar-group.tsx\nimport { cloneElement } from \"react\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar AvatarGroup = forwardRef(\n function AvatarGroup2(props, ref) {\n const styles = useMultiStyleConfig(\"Avatar\", props);\n const {\n children,\n borderColor,\n max,\n spacing = \"-0.75rem\",\n borderRadius = \"full\",\n ...rest\n } = omitThemingProps(props);\n const validChildren = getValidChildren(children);\n const childrenWithinMax = max != null ? validChildren.slice(0, max) : validChildren;\n const excess = max != null ? validChildren.length - max : 0;\n const reversedChildren = childrenWithinMax.reverse();\n const clones = reversedChildren.map((child, index) => {\n var _a;\n const isFirstAvatar = index === 0;\n const childProps = {\n marginEnd: isFirstAvatar ? 0 : spacing,\n size: props.size,\n borderColor: (_a = child.props.borderColor) != null ? _a : borderColor,\n showBorder: true\n };\n return cloneElement(child, compact(childProps));\n });\n const groupStyles = {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n flexDirection: \"row-reverse\",\n ...styles.group\n };\n const excessStyles = {\n borderRadius,\n marginStart: spacing,\n ...baseStyle,\n ...styles.excessLabel\n };\n return /* @__PURE__ */ jsxs(\n chakra.div,\n {\n ref,\n role: \"group\",\n __css: groupStyles,\n ...rest,\n className: cx(\"chakra-avatar__group\", props.className),\n children: [\n excess > 0 && /* @__PURE__ */ jsx(chakra.span, { className: \"chakra-avatar__excess\", __css: excessStyles, children: `+${excess}` }),\n clones\n ]\n }\n );\n }\n);\nAvatarGroup.displayName = \"AvatarGroup\";\n\nexport {\n AvatarGroup\n};\n//# sourceMappingURL=chunk-A4TTV745.mjs.map"],"names":["window","__NEXT_P","push","__webpack_require__","useVoteUser","mutate","useMutation","API_VOTE_USER_URL","FilledCircle","size","color","props","param","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","Box","w","h","rounded","SPACE_UNIT_SIZE_PX","bg","Ranking","data","fractionDigits","tooltip","isDescriptionListItem","hidePoints","labelProps","flexProps","jsxs","Flex","flexDir","align","overflow","mx","as","DescriptionTerm","fontWeight","maxW","RankingValue","HStack","DescriptionDefinition","alignItems","spacing","fontSize","noOfLines","wordBreak","label","WfPopover","PopoverButtonIconInfo","ariaLabel","useVotingStatus","votingUntilString","currentDateString","t","useTranslation","votingUntilDate","Date","currentDate","getMinutesText","remainingMinutes","differenceInMinutes","remainingSeconds","differenceInSeconds","getHoursText","remainingHours","differenceInHours","getText","remainingDays","differenceInDays","hasEnded","isAfter","calculateProportionsOfCounts","answers","voteSummary","voteSummaryItem","sum","reduce","partialSummary","count","map","answer","index","foundVoteSummaryItem","find","item","Number","choice","COMMON_HEIGHT","VotingAnswer","text","onClick","isDisabled","isChecked","language","useRouterLocale","handleClick","useCallback","e","target","nodeName","jsx_runtime","Progress","value","undefined","border","borderColor","backgroundColor","cursor","width","data-test-id","Radio","position","top","left","Text","display","pr","isNumber","SpanFlex","right","formatPercent","VotingAnswersBlock","selectedAnswerIndex","onVoteChange","hasVotingEnded","defaultCountPercentages","Array","length","fill","visiblePercentages","setVisiblePercentages","useState","calculatedPercentages","useMemo","getAnswerPercentageCount","isServerSide","useEffect","setTimeout","Fragment","VotingRemainingDays","IconPlay","Icon","viewBox","g","fillRule","path","transform","d","useUnderlyingFollowing","setIsFollowedUnderlying","canBeFollowedUnderlyingIsins","followedUnderlyingIsins","useUnderlyingFollowStore","toast","useWfToast","isLoggedIn","useUserStore","openLoginModal","useLinkBuilder","isFollowed","includes","underlyingIsin","canBeFollowed","onError","status","EnumToastStatus","title","onSuccess","duration","message","addWatchlistUnderlyingsMutation","useAddWatchlistUnderlyingsMutation","removeWatchlistUnderlyingsMutation","useRemoveWatchlistUnderlyingsMutation","toggleIsFollowed","isin","STOCK_SEARCH_MUTATION_VARIABLES","wikifoliosCount","underlyingsCount","securityTypes","EnumSecurityType","StockTypeaheadWrapper","onFocus","placement","placeholderText","searchPlaceholderText","enableAutoFocus","query","setQuery","results","combinedResults","onClear","useQueryWithSearchResults","handleSelect","useNavigateOnSelect","Typeahead","onSelect","isOpen","selectedIndex","UnderlyingSearchResults","resultsTitle","notFoundMessage","GrayBackground","pos","bottom","zIndex","StockSearch","titleAsH1","description","placeholder","isMobileOrTablet","useBreakpointValue","isSearchOpen","onOpen","onSearchOpen","onClose","onSearchClose","useDisclosure","onSearchFocus","renderOverlaySearch","GlobalNavSearchUi","navHeights","Container","PrimaryHeadline","mb","SimpleRichText","Stack","direction","py","px","flex","stock_insights","dict","isCallerContentApp","useRouterCaller","useContentPageVisitTracking","setReturnUrl","useAuthModalStore","location","pathname","Section","mt","TOP_MARGIN_CONTENT_APP","introHeadline","introDescription","multiVoteModule","votes","pt","id","VotingModule","UnderlyingListModule","underlyingListHeadline","underlyingListDescription","underlyingLists","isOverlayEnabled","isUnderlyingListOverlayEnabled","overlayTitle","underlyingListOverlayHeadline","overlayDescription","underlyingListOverlayDescription","ctaModule","CtaModule","imageVideoModule","BlogTeaserModule","blogTeaserHeadline","headerAlignment","EnumHorizontalAlignment","items","blogTeaserSectionPosts","ImageVideoModule","isFirstModule","imageVideoModuleLoggedOut","underlyingFollowStore","proxy","underlyingsFollowData","setUnderlyingsFollowData","setCanBeFollowedUnderlying","Object","keys","filter","key","useSnapshot","AvatarGroup","_chakra_ui_system__WEBPACK_IMPORTED_MODULE_2__","G","ref","styles","_chakra_ui_system__WEBPACK_IMPORTED_MODULE_3__","jC","children","max","borderRadius","rest","_chakra_ui_system__WEBPACK_IMPORTED_MODULE_4__","Lr","validChildren","_chakra_ui_react_children_utils__WEBPACK_IMPORTED_MODULE_5__","W","childrenWithinMax","slice","excess","reversedChildren","reverse","clones","child","_a","childProps","marginEnd","isFirstAvatar","showBorder","react__WEBPACK_IMPORTED_MODULE_0__","cloneElement","compact","object","clone","assign","groupStyles","justifyContent","flexDirection","group","excessStyles","marginStart","_chunk_V7PAE35Z_mjs__WEBPACK_IMPORTED_MODULE_6__","O","excessLabel","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__","_chakra_ui_system__WEBPACK_IMPORTED_MODULE_7__","m","div","role","__css","className","_chakra_ui_shared_utils__WEBPACK_IMPORTED_MODULE_8__","cx","span","displayName"],"sourceRoot":""}