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,aAAcyE,YAAAA,EAAsB,OAAQ,iBAE5C,GAAAkD,EAAArI,GAAA,EAACuB,EAAAA,EAAIA,CAAAA,CACHC,MACE6B,IAAUkF,GAAUpD,SAAAA,EAChB,UACA9B,IAAUkF,GAAUpD,YAAAA,EACpB,QACAA,YAAAA,EACA,UACA,sBAGL4D,EAAOf,KAAK,CAAc1C,KAAK,GAEjCH,SAAAA,EACC,GAAAkD,EAAArI,GAAA,EAAAqI,EAAA2B,QAAA,WACG3G,IAAUkF,EACT,GAAAF,EAAArI,GAAA,EAACgD,EAAAA,EAAGA,CAAAA,CACFiH,GAAG,KACH7I,MAAM,OACNhB,OAAQ,aAAiCC,MAAA,CAApBC,EAAAA,EAAWA,CAACC,OAAO,EACxCG,aAAa,SAEb,OAEJ,OA5CC2C,GA8CL,QAGV,GAAAgF,EAAArI,GAAA,EAACgD,EAAAA,EAAGA,CAAAA,CAACiE,EAAE,KAAKgD,GAAI7E,EAAW/D,OAAO,gBAC/B+G,CAAQ,CAACG,EAAO,KAIzB,mFClIO,IAAM2B,EAAwBzG,CAAAA,EAAAA,EAAAA,EAAAA,EAAS,oJASjCe,EAAwB,GAClBb,CAAAA,EAAAA,EAAAA,EAAAA,EAASuG,EAAuB,CAC/CtG,UAAW,CACTC,MAAO,CACLC,IAAKA,CACP,CACF,CACF","sources":["webpack://_N_E/./app/(main)/profile/Components/ProfilePageHeader/[ProfilePageHeaderAlias]/Components/Organizations/Components/OrganisationFollowCard/OrganisationFollowCard.tsx","webpack://_N_E/./app/(main)/profile/Components/ProfilePageHeader/[ProfilePageHeaderAlias]/Components/Organizations/Components/OrganisationFollowCard/index.ts","webpack://_N_E/./app/(main)/profile/Components/ProfilePageHeader/[ProfilePageHeaderAlias]/Components/Organizations/Organizations.tsx","webpack://_N_E/./app/(main)/profile/Components/ProfilePageHeader/[ProfilePageHeaderAlias]/Components/Organizations/index.ts","webpack://_N_E/./hooks/useFetchSchoolsByIds.tsx","webpack://_N_E/./app/(main)/profile/Components/ProfilePageHeader/[ProfilePageHeaderAlias]/Components/Schools/Schools.tsx","webpack://_N_E/./app/(main)/profile/Components/ProfilePageHeader/[ProfilePageHeaderAlias]/Components/Schools/index.ts","webpack://_N_E/./app/(main)/profile/Components/ProfilePageHeader/[ProfilePageHeaderAlias]/Components/Keywords/Keywords.tsx","webpack://_N_E/./app/(main)/profile/Components/ProfilePageHeader/[ProfilePageHeaderAlias]/Components/Keywords/index.ts","webpack://_N_E/./app/(main)/profile/Components/ProfilePageHeader/[ProfilePageHeaderAlias]/Components/Following/Following.tsx","webpack://_N_E/./app/(main)/profile/Components/ProfilePageHeader/[ProfilePageHeaderAlias]/Components/Following/index.ts","webpack://_N_E/./hooks/useFollow.ts","webpack://_N_E/./hooks/useUnFollow.ts","webpack://_N_E/./components/FollowBtn/FollowBtn.tsx","webpack://_N_E/./components/FollowBtn/index.tsx","webpack://_N_E/./components/Spinner/Spinner.tsx","webpack://_N_E/./components/Spinner/index.ts","webpack://_N_E/./components/Tabs/Tab.tsx","webpack://_N_E/./components/Tabs/Tabs.tsx","webpack://_N_E/./hooks/useFetchKeywordsByIds.tsx"],"sourcesContent":["import { FollowBtn } from \"@/components/FollowBtn\";\nimport { PrimaryHoverBox, Row } from \"@/components/styled\";\nimport { FollowableType } from \"@/gql/graphql\";\nimport { BASE_COLORS } from \"@/theme\";\nimport Image from \"next/image\";\nimport { useRouter } from \"next/navigation\";\nimport { Text } from \"@/components/styled\";\n\ntype OrganisationFollowCardProps = {\n alias: string;\n id: string;\n image: string;\n name: string;\n alreadyFollowing: boolean;\n};\n\nexport const OrganisationFollowCard: React.FC = ({\n alias,\n id,\n image,\n name,\n alreadyFollowing,\n}) => {\n const router = useRouter();\n return (\n \n router.push(`/organization/${alias}/${id}/overview`)}\n style={{ cursor: \"pointer\" }}\n >\n \n \"logo\"\n {name}\n \n \n \n \n );\n};\n","export * from \"./OrganisationFollowCard\";\n","import { Box, Column, PrimaryHoverBox, Row, Text } from \"@/components/styled\";\nimport { useUser } from \"@/hooks/useUser\";\nimport { useFetchOrganizationbyIds } from \"@/hooks/useFetchOrganizationbyIds\";\nimport { BASE_COLORS } from \"@/theme\";\nimport Router, { useRouter } from \"next/navigation\";\nimport { LoadingScreen } from \"@/components/Loading\";\nimport Image from \"next/image\";\nimport { FollowBtn } from \"@/components/FollowBtn\";\nimport { SetStateAction, useState } from \"react\";\nimport { FollowableType } from \"@/gql/graphql\";\nimport { OrganisationFollowCard } from \"./Components/OrganisationFollowCard\";\nexport const Organizations = () => {\n const [followerCount, setFollowerCount] = useState(0);\n const { data, loading } = useUser();\n const router = useRouter();\n const organizationFollow = data?.me?.follows.filter(\n (follow) => follow.followableType === \"ORGANIZATION\"\n );\n\n const organizationIds = organizationFollow?.map(\n (follow) => follow?.followableId\n );\n // const alreadyFollowing = data?.me.follows.find((item) => {\n // if (\n // item.followableId === organizationIds. &&\n // item.followableType === FollowableType.Organization\n // )\n // return true;\n // else return false;\n // });\n\n const { data: organizationNames } = useFetchOrganizationbyIds(\n organizationIds!\n ); //check this\n if (loading) {\n return ;\n }\n return (\n \n \n {\" \"}\n You are following these organizations :\n \n \n {organizationNames?.fetchOrganizationsByIds.map((org, index) => (\n \n ))}\n \n \n );\n};\n","export * from \"./Organizations\";\n","import { graphql } from \"@/gql\";\nimport { useQuery } from \"@apollo/client\";\n\nexport const FETCH_SCHOOLS_BY_IDS = graphql(`\n query FetchSchoolsByIds($input: FetchSchoolsByIdsInput!) {\n fetchSchoolsByIds(input: $input) {\n alias\n id\n name\n logo\n }\n }\n`);\n\nexport const useFetchSchoolsByIds = (ids: string[]) => {\n const response = useQuery(FETCH_SCHOOLS_BY_IDS, {\n variables: {\n input: {\n ids: ids,\n },\n },\n });\n return response;\n};\n","import { LoadingScreen } from \"@/components/Loading\";\nimport { Box, Column, PrimaryHoverBox, Row, Text } from \"@/components/styled\";\nimport { useUser } from \"@/hooks/useUser\";\nimport { useFetchSchoolsByIds } from \"@/hooks/useFetchSchoolsByIds\";\nimport { BASE_COLORS } from \"@/theme\";\nimport Router, { useRouter } from \"next/navigation\";\nimport Image from \"next/image\";\nimport { FollowBtn } from \"@/components/FollowBtn\";\nimport { FollowableType } from \"@/gql/graphql\";\nimport { useState } from \"react\";\n\nexport const Schools = () => {\n const { data, loading } = useUser();\n const [followerCount, setFollowerCount] = useState(0);\n const router = useRouter();\n const schoolFollow = data?.me?.follows.filter(\n (follow) => follow.followableType === \"SCHOOL\"\n );\n const schoolIds = schoolFollow?.map((follow) => follow?.followableId);\n const { data: schoolNames } = useFetchSchoolsByIds(schoolIds!);\n if (loading) {\n return ;\n }\n return (\n \n \n {\" \"}\n You are following these Schools:{\" \"}\n \n \n {schoolNames?.fetchSchoolsByIds.map((org, index) => (\n \n router.push(`/school/${org.alias}/overview`)}\n style={{ cursor: \"pointer\" }}\n >\n \n {org ? (\n \n ) : null}\n {org.name}\n \n \n \n \n ))}\n \n \n );\n};\n","export * from \"./Schools\";\n","import { FollowBtn } from \"@/components/FollowBtn\";\nimport { LoadingScreen } from \"@/components/Loading\";\nimport { Box, Column, PrimaryHoverBox, Row, Text } from \"@/components/styled\";\nimport { FollowableType } from \"@/gql/graphql\";\nimport { useFetchKeywordsByIds } from \"@/hooks/useFetchKeywordsByIds\";\nimport { useFetchOrganizationbyIds } from \"@/hooks/useFetchOrganizationbyIds\";\nimport { useUser } from \"@/hooks/useUser\";\nimport { BASE_COLORS } from \"@/theme\";\nimport { useState } from \"react\";\n\nexport const Keywords = () => {\n const { data, loading } = useUser();\n const keywordsFollow = data?.me?.follows.filter(\n (follow) => follow.followableType === \"KEYWORD\"\n );\n const keywordsIds = keywordsFollow?.map((follow) => follow?.followableId);\n\n const { data: keywordNames } = useFetchKeywordsByIds(keywordsIds!); //check this\n\n if (loading) {\n return ;\n }\n return (\n \n \n {\" \"}\n You are following these Keywords :\n \n \n {keywordNames?.fetchKeywordsByIds.map((org, index) => (\n \n \n \n {org.keyword}\n \n \n \n \n ))}\n \n \n );\n};\n","export * from \"./Keywords\";\n","import { Organization } from \"@/components/Organization\";\nimport Tab from \"@/components/Tabs/Tab\";\nimport Tabs from \"@/components/Tabs/Tabs\";\nimport { Box } from \"@/components/styled\";\nimport { Organizations } from \"../Organizations\";\nimport { Schools } from \"../Schools\";\nimport { Keywords } from \"../Keywords\";\nimport { useUser } from \"@/hooks/useUser\";\nimport { Spinner } from \"@/components/Spinner\";\nimport { LoadingScreen } from \"@/components/Loading\";\nexport const Following = () => {\n const { data, loading } = useUser();\n const organizationCount = data?.me?.follows.filter(\n (follow) => follow.followableType === \"ORGANIZATION\"\n ).length;\n const schoolCount = data?.me?.follows.filter(\n (follow) => follow.followableType === \"SCHOOL\"\n ).length;\n const keywordsCount = data?.me?.follows.filter(\n (follow) => follow.followableType === \"KEYWORD\"\n ).length;\n\n return (\n \n {loading ? (\n \n ) : (\n \n \n {[\n \n \n ,\n \n \n ,\n \n \n ,\n ]}\n \n \n )}\n \n );\n};\n","export * from \"./Following\";\n","import { graphql } from \"@/gql\";\nimport { useMutation } from \"@apollo/client\";\n\nexport const FOLLOW_DOCUMENT = graphql(`\n mutation Follow($input: FollowActivityInput!) {\n follow(input: $input) {\n followableId\n }\n }\n`);\nexport const useFollow = () => {\n const [follow, { data, loading, error }] = useMutation(FOLLOW_DOCUMENT);\n return {\n follow,\n loading,\n error,\n data,\n };\n};\n","import { graphql } from \"@/gql\";\nimport { useMutation } from \"@apollo/client\";\n\nexport const UNFOLLOW_DOCUMENT = graphql(`\n mutation Unfollow($input: FollowActivityInput!) {\n unfollow(input: $input) {\n followableId\n }\n }\n`);\nexport const useUnFollow = () => {\n const [unfollow, { data, loading, error }] = useMutation(UNFOLLOW_DOCUMENT);\n return {\n unfollow,\n loading,\n error,\n data,\n };\n};\n","\"use client\";\n\nimport { BASE_COLORS } from \"@/theme\";\nimport { Box, Button, CenterBox, Text } from \"../styled\";\nimport { Dispatch, SetStateAction, useEffect, useState } from \"react\";\nimport { BouncyModal } from \"../styled/BouncyModal\";\nimport { useModal } from \"@/hooks/useModal\";\nimport { FollowableType } from \"@/gql/graphql\";\nimport { useFollow } from \"@/hooks/useFollow\";\nimport toast from \"react-hot-toast\";\nimport { useUnFollow } from \"@/hooks/useUnFollow\";\nimport { useUser } from \"@/hooks/useUser\";\nimport { Spinner } from \"../Spinner\";\nimport Image from \"next/image\";\nimport styled from \"styled-components\";\n\ntype FollowBtnProps = {\n name: string;\n follwableId: string;\n followableType: FollowableType;\n alreadyFollowing: boolean;\n loading: boolean;\n setFollowerCount?: Dispatch>;\n followerCount: number;\n border?: boolean;\n keyword?:boolean;\n};\n\nexport const FollowBtn = ({\n name,\n followableType,\n follwableId,\n alreadyFollowing,\n loading,\n setFollowerCount,\n followerCount,\n border,\n keyword\n}: FollowBtnProps) => {\n const [isfollowing, setIsFollowing] = useState(alreadyFollowing);\n const [isActionInProgress, setIsActionInProgress] = useState(false);\n const { isOpen, toggleModal } = useModal();\n const { follow } = useFollow();\n const { unfollow } = useUnFollow();\n const { refetch } = useUser();\n\n useEffect(() => {\n setIsFollowing(alreadyFollowing);\n }, [alreadyFollowing]);\n\n const handleFollow = async () => {\n setIsActionInProgress(true);\n try {\n const { data } = await follow({\n variables: {\n input: {\n followableId: follwableId,\n followableType: followableType,\n },\n },\n });\n setIsFollowing(true);\n setFollowerCount && setFollowerCount(followerCount + 1);\n toast.success(`Followed ${name}`);\n refetch();\n } catch (error: any) {\n let errorMessage = \"An unexpected error occurred.\";\n if (error.graphQLErrors && error.graphQLErrors.length > 0) {\n errorMessage = error.graphQLErrors[0].message;\n }\n toast.error(`Error: ${errorMessage}`);\n console.error(error);\n } finally {\n setIsActionInProgress(false);\n }\n };\n\n const handleUnFollow = async () => {\n setIsActionInProgress(true);\n try {\n const { data } = await unfollow({\n variables: {\n input: {\n followableId: follwableId,\n followableType: followableType,\n },\n },\n });\n setIsFollowing(false);\n setFollowerCount && setFollowerCount(followerCount - 1);\n toggleModal();\n toast.success(`Unfollowed ${name}`);\n refetch();\n } catch (error: any) {\n let errorMessage = \"An unexpected error occurred.\";\n if (error.graphQLErrors && error.graphQLErrors.length > 0) {\n errorMessage = error.graphQLErrors[0].message;\n }\n toast.error(`Error: ${errorMessage}`);\n console.error(error.message);\n } finally {\n setIsActionInProgress(false);\n }\n };\n\n return (\n \n \n {isActionInProgress || loading ? (\n \n \n \n ) : isfollowing ? (\n border ? (\n \n \n Following\n \n \n ) : (\n \n )\n ) : border ? (\n \n \n {keyword ? Follow keyword : Follow }\n \n \n \n ) : (\n \n )}\n \n\n \n \n \n Unfollow @{name}?\n \n \n Their posts will no longer show up in your Following timeline. You can\n still view their profile, unless their posts are protected.\n \n \n \n {isActionInProgress ? (\n \n \n \n ) : (\n \n Unfollow\n \n )}\n \n \n \n Cancel\n \n \n \n \n \n \n );\n};\n\nexport const StyledFollowHoverBtn = styled(CenterBox)`\n cursor: pointer;\n transition: all 0.3s ease-in-out;\n &:hover {\n border-radius: 50px;\n background-color: ${BASE_COLORS.primaryLight};\n\n /* transform: scale(0.9); */\n }\n`;\n","export * from \"./FollowBtn\";\n","import React, { FC } from \"react\";\nimport styled, { keyframes } from \"styled-components\";\nimport { Box, BoxProps } from \"../styled\";\n\nconst spin = keyframes`\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n`;\n\ninterface SpinnerBaseProps extends BoxProps {\n stroke?: string;\n}\n\nconst SpinnerBase = styled(Box)`\n display: inline-block;\n position: relative;\n width: inherit;\n height: inherit;\n border-radius: 100px;\n overflow: hidden;\n\n & div {\n box-sizing: border-box;\n display: block;\n position: absolute;\n width: inherit;\n height: inherit;\n border-color: white transparent transparent transparent;\n border-radius: 100px;\n border-style: solid;\n border-width: ${({ stroke }) => stroke};\n animation: ${spin} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n\n &:nth-child(1) {\n animation-delay: -0.45s;\n }\n\n &:nth-child(2) {\n animation-delay: -0.3s;\n }\n\n &:nth-child(3) {\n animation-delay: -0.15s;\n }\n }\n`;\n\ninterface SpinnerProps extends SpinnerBaseProps {}\n\nexport const Spinner: FC = (props) => (\n \n
\n
\n
\n
\n \n);\n","export * from \"./Spinner\";\n","import React from \"react\";\nimport { Box } from \"../styled\";\n\ninterface TabProps {\n children: React.ReactNode;\n title: string;\n}\n\nconst Tab: React.FC = ({ children, title }) => (\n {children}\n);\n\nexport default Tab;\n","\"use client\";\nimport React, { useState, useEffect, isValidElement } from \"react\";\nimport { useRouter, useSearchParams } from \"next/navigation\";\nimport { Box, CenterBox } from \"../styled\";\nimport { Text } from \"../styled\";\nimport { BASE_COLORS } from \"@/theme\";\ntype MarginSize =\n | \"xs\"\n | \"sm\"\n | \"md\"\n | \"lg\"\n | \"xl\"\n | \"2xl\"\n | \"3xl\"\n | \"4xl\"\n | \"5xl\"\n | \"6xl\";\ntype TabProps = {\n children: React.ReactNode[];\n title: string;\n key: string;\n\n onClick?: () => void;\n};\n\nconst Tabs: React.FC<{\n children: React.ReactElement[];\n type: \"rounded\" | \"text\";\n justifyContent: string[];\n top?: number;\n marginTop?: \"5xl\" | MarginSize;\n}> = ({ children, type, justifyContent, top, marginTop = \"5xl\" }) => {\n const [active, setActive] = useState(0);\n const router = useRouter();\n const searchParams = useSearchParams();\n const tab = searchParams.get(\"tab\");\n\n useEffect(() => {\n if (!tab) return;\n const index = React.Children.toArray(children)\n .filter(React.isValidElement)\n .map((child) => (child.props as TabProps).key)\n .indexOf(tab);\n if (index < 0) return;\n setActive(index);\n }, [tab, children]);\n\n const handleClick = (\n e: React.MouseEvent,\n index: number,\n cb = () => {}\n ) => {\n e.preventDefault();\n const newSearchParams = new URLSearchParams(searchParams);\n newSearchParams.set(\"tab\", index.toString());\n router.push(`?${newSearchParams.toString()}`);\n setActive(index);\n cb && cb();\n };\n\n return (\n \n \n {React.Children.toArray(children)\n .filter(isValidElement)\n .map((child, index) =>\n isValidElement(child) ? (\n \n handleClick(e, index, (child.props as TabProps).onClick)\n }\n px=\"lg\"\n py=\"xs\"\n minWidth=\"fit-content\"\n style={{ cursor: \"pointer\" }}\n bg={\n type === \"rounded\" && index === active\n ? \"primary\"\n : \"transparent\"\n }\n border={\n type === \"rounded\"\n ? `1px solid ${BASE_COLORS.primary}`\n : \"none\"\n }\n borderRadius={type === \"rounded\" ? `full` : \"none\"}\n >\n \n {(child.props as TabProps).title}\n \n {type === \"text\" ? (\n <>\n {index === active ? (\n \n ) : null}\n \n ) : null}\n \n ) : null\n )}\n \n \n {children[active]}\n \n \n );\n};\n\nexport default Tabs;\n","import { graphql } from \"@/gql\";\nimport { useQuery } from \"@apollo/client\";\n\nexport const FETCH_KEYWORDS_BY_IDS = graphql(`\n query FetchKeywordsByIds($input: FetchKeywordsByIdsInput!) {\n fetchKeywordsByIds(input: $input) {\n keyword\n id\n }\n }\n`);\n\nexport const useFetchKeywordsByIds = (ids: string[]) => {\n const response = useQuery(FETCH_KEYWORDS_BY_IDS, {\n variables: {\n input: {\n ids: ids,\n },\n },\n });\n return response;\n};\n"],"names":["OrganisationFollowCard","alias","id","image","name","alreadyFollowing","param","router","useRouter","jsx_runtime","jsxs","Row","justifyContent","jsx","PrimaryHoverBox","minWidth","hoverBackgroundColor","border","concat","BASE_COLORS","primary","px","py","borderRadius","backgroundColor","onClick","push","style","cursor","gap","alignItems","Image","src","width","height","alt","Text","color","FollowBtn","follwableId","followableType","FollowableType","Organization","loading","followerCount","Organizations","data","setFollowerCount","useState","useUser","organizationFollow","me","follows","filter","follow","organizationIds","map","followableId","organizationNames","useFetchOrganizationbyIds","LoadingScreen","Box","size","Column","fetchOrganizationsByIds","org","index","school","logo","FETCH_SCHOOLS_BY_IDS","graphql","useFetchSchoolsByIds","useQuery","variables","input","ids","Schools","schoolFollow","schoolNames","fetchSchoolsByIds","School","Keywords","keywordsFollow","keywordsIds","keywordNames","useFetchKeywordsByIds","fetchKeywordsByIds","keyword","Keyword","Following","organizationCount","length","schoolCount","keywordsCount","pt","Tabs","type","marginTop","Tab","title","FOLLOW_DOCUMENT","useFollow","error","useMutation","UNFOLLOW_DOCUMENT","useUnFollow","unfollow","isfollowing","setIsFollowing","isActionInProgress","setIsActionInProgress","isOpen","toggleModal","useModal","refetch","useEffect","handleFollow","toast","success","errorMessage","graphQLErrors","message","console","handleUnFollow","CenterBox","StyledFollowHoverBtn","p","Spinner","Button","BouncyModal","onClose","weight","pb","bg","disabled","styled","primaryLight","spin","keyframes","SpinnerBase","stroke","props","div","__webpack_exports__","Z","children","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","top","active","setActive","searchParams","useSearchParams","tab","get","React","toArray","child","key","indexOf","handleClick","e","cb","preventDefault","newSearchParams","URLSearchParams","set","toString","flexDirection","overflowX","overflowY","borderBottom","primaryTransparent","isValidElement","Fragment","mt","FETCH_KEYWORDS_BY_IDS"],"sourceRoot":""}