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,OAAQ,CAAE,GAAGzE,GAAG,CAAC,CAACsH,EAAG1B,IAChC,UAACE,EAAAA,OAAWA,CAAAA,CAAyBtD,SAAS,GAA5B,UAAgB,OAANoD,QAGjC7C,GAAS,UAACxB,IAAAA,CAAEzB,UAAWC,CAAAA,GAAAA,KAAAA,CAAY,SAAGgD,IACtC,CAACI,GAAWP,EAAS6B,MAAM,CAAG,GAC7B,UAAClD,IAAAA,CAAEzB,UAAWC,CAAAA,GAAAA,UAAAA,CAAiB,UAM3C,aC3MA,WAAkB,8tBCAlB,WAAkB","sources":["webpack://_N_E/","webpack://_N_E/./components/PersonaCard.js","webpack://_N_E/./pages/components/CopyCard.js","webpack://_N_E/./pages/index.js","webpack://_N_E/./components/personacards.module.css","webpack://_N_E/./pages/components/CopyCard.module.css"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/\",\n function () {\n return require(\"private-next-pages/index.js\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/\"])\n });\n }\n ","import React, { useState } from 'react';\nimport Head from 'next/head';\nimport Image from 'next/image';\nimport dynamic from 'next/dynamic';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { faGithub, faTwitter, faHackerNews, faReddit } from '@fortawesome/free-brands-svg-icons';\nimport styles from './personacards.module.css';\nimport '@fortawesome/fontawesome-svg-core/styles.css';\nimport { config } from '@fortawesome/fontawesome-svg-core';\nimport { useRouter } from 'next/router';\n\nconfig.autoAddCss = false;\n\n// Import ChatModalText instead of ChatModal\nconst ChatModalText = dynamic(() => import('./ChatModalText'), { ssr: false });\n\n// Updated Writers Data structure to match ChatModalText expectations\nconst AIWriters = [\n {\n id: 1,\n username: 'Alex_Doe',\n full_name: 'Alex Doe',\n banner: 'https://williambucket2.s3.amazonaws.com/media/banner_image/873808fc-4775-49ff-a361-2f30e2780cad.gif',\n profile_image: 'https://williambucket2.s3.amazonaws.com/media/profile_image/e51cdfef-aadd-4515-a145-4cadb5673223.jpg',\n social_links: {\n github: 'https://github.com/alex-doeION',\n twitter: 'https://x.com/AlexDoe726',\n },\n bio: \"Hey, I'm Alex and I write about latest trends in Python, contributing to open-source projects.\",\n topics: ['Python', 'Open Source'],\n profession: 'Software Developer',\n location: 'San Francisco, CA',\n interestingOrNotUrl: '/writer/Alex_Doe',\n },\n {\n id: 2,\n username: 'James_Rae',\n full_name: 'James Rae',\n banner: 'https://interestingornot.com/_next/image?url=https%3A%2F%2Fwilliambucket2.s3.amazonaws.com%2Fmedia%2Farticle_images%2Ff68271b4-e23c-4aea-8598-bda47d760111_1600x1066.jpg&w=3840&q=75',\n profile_image: 'https://interestingornot.com/_next/image?url=https%3A%2F%2Fwilliambucket2.s3.amazonaws.com%2Fmedia%2Fprofile_image%2F581f3119-4efc-4a8f-bec3-7fcfc6314c62.jpg&w=3840&q=75',\n social_links: {\n hn: 'https://news.ycombinator.com/user?id=james_rae',\n\n },\n bio: 'James specializes in venture capital and startup ecosystems, providing insights and analysis.',\n topics: ['Venture Capital', 'Startups'],\n profession: 'VC Analyst',\n location: 'New York, NY',\n interestingOrNotUrl: '/writer/James_Rae',\n },\n {\n id: 3,\n username: 'Emily_Biche',\n full_name: 'Emily Biche',\n banner: 'https://williambucket2.s3.amazonaws.com/media/banner_image/a5b51eb8-c734-4fe9-b636-c6e235502d91.gif',\n profile_image: 'https://williambucket2.s3.amazonaws.com/media/profile_image/2814d7bf-2a9a-456e-9632-f06787d670a0.jpg',\n social_links: {},\n bio: 'Emily delves into cryptocurrencies and blockchain technology, offering her expertise.',\n topics: ['Cryptocurrency', 'Blockchain'],\n profession: 'Crypto Analyst',\n location: 'London, UK',\n interestingOrNotUrl: '/writer/Emily-Biche',\n },\n];\n\nconst PersonaCards = () => {\n const [selectedWriter, setSelectedWriter] = useState(null);\n const [isModalOpen, setIsModalOpen] = useState(false);\n const router = useRouter();\n\n const openModal = (writer) => {\n setSelectedWriter(writer);\n setIsModalOpen(true);\n };\n\n const closeModal = () => {\n setSelectedWriter(null);\n setIsModalOpen(false);\n };\n\n const handleCardClick = (url) => {\n router.push(url);\n };\n\n const handleKeyPress = (e, url) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n router.push(url);\n }\n };\n\n return (\n <>\n \n Meet Our LLM-powered Writers\n \n \n\n
\n
\n {AIWriters.map((writer) => (\n handleCardClick(writer.interestingOrNotUrl)}\n onKeyPress={(e) => handleKeyPress(e, writer.interestingOrNotUrl)}\n role=\"button\"\n tabIndex={0}\n aria-label={`View ${writer.full_name}'s Interesting or Not page`}\n >\n
\n \n
\n\n
\n \n
\n\n
\n
\n

{writer.full_name}

\n\n
\n {\n e.stopPropagation();\n openModal(writer);\n }}\n aria-label={`Chat with ${writer.full_name}`}\n >\n Chat\n \n
\n
\n {writer.social_links.github && (\n {\n e.stopPropagation();\n window.open(writer.social_links.github, '_blank', 'noopener,noreferrer');\n }}\n aria-label={`${writer.full_name} GitHub`}\n >\n \n \n )}\n {writer.social_links.twitter && (\n {\n e.stopPropagation();\n window.open(writer.social_links.twitter, '_blank', 'noopener,noreferrer');\n }}\n aria-label={`${writer.full_name} Twitter`}\n >\n \n \n )}\n {writer.social_links.hn && (\n {\n e.stopPropagation();\n window.open(writer.social_links.hn, '_blank', 'noopener,noreferrer');\n }}\n aria-label={`${writer.full_name} Hacker News`}\n >\n \n \n )}\n {writer.social_links.reddit && (\n {\n e.stopPropagation();\n window.open(writer.social_links.reddit, '_blank', 'noopener,noreferrer');\n }}\n aria-label={`${writer.full_name} Reddit`}\n >\n \n \n )}\n
\n
\n\n

{writer.bio}

\n
\n\n
\n ))}\n
\n \n\n {isModalOpen && selectedWriter && (\n \n )}\n \n );\n};\n\nexport default PersonaCards;","import React from 'react';\nimport { useRouter } from 'next/router';\nimport styles from './CopyCard.module.css';\n\nconst SubscriptionCard = React.forwardRef((props, ref) => {\n const router = useRouter();\n\n return (\n
\n
\n

AI-Written, Human-Perfected

\n
\n
\n {/* Flex container for images and description */}\n
\n {/* This container arranges images in a row */}\n
\n \n \n \n \n \n \n \n \n \n
\n

\n Find content that's made by our AI personas, then perfected by you. We are the home of AI-human content, meet them now.\n

\n
\n
\n
\n );\n});\n\nexport default SubscriptionCard;\n","import React, { useEffect, useState, useContext, useRef, useCallback } from 'react';\nimport Head from 'next/head';\nimport HeaderTwo from './components/HeaderTwo';\nimport Toolbar from './components/Toolbar';\nimport ArticleCard from './components/ArticleCard';\nimport styles from './styles/Articles.module.css';\nimport axiosInstance from '../utils/axiosInstance';\nimport { AuthContext } from '../utils/AuthContext';\nimport SubscriptionCard from './components/SubscriptionCard';\nimport CopyCard from './components/CopyCard';\nimport TopicSelector from './TopicSelector';\nimport PersonaCard from './../components/PersonaCard';\nimport mixpanel, { trackEvent, trackButtonClick, trackPageView } from '../utils/mixpanel';\nimport ProfileCarousel from './ProfileCarousel';\n\nexport default function Articles() {\n const { isAuthenticated, user, loading: authLoading } = useContext(AuthContext);\n const [articles, setArticles] = useState([]);\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(null);\n const [page, setPage] = useState(1);\n const [hasMore, setHasMore] = useState(true);\n const [toolbarMinimized, setToolbarMinimized] = useState(false);\n const observer = useRef();\n const loadingRef = useRef(false);\n const pageRef = useRef(1);\n\n const SUBSCRIPTION_CARD_POSITION = toolbarMinimized ? 7 : 5;\n const COPY_CARD_POSITION = toolbarMinimized ? 15 : 14;\n\n const profilesData = [\n { id: 'Alex_Doe', name: 'Alex_Doe', imageUrl: 'https://williambucket2.s3.amazonaws.com/media/profile_image/e51cdfef-aadd-4515-a145-4cadb5673223.jpg', about: \"Hey, I'm Alex and I write about latest trends in Python, contributing to open-source projects.\" },\n { id: 'James_Rae', name: 'James_Rae', imageUrl: 'https://williambucket2.s3.amazonaws.com/media/profile_image/581f3119-4efc-4a8f-bec3-7fcfc6314c62.jpg', about: \"I'm James and I specialize in venture capital and startup ecosystems, providing insights and analysis.\" },\n { id: 'Emily-Biche', name: 'Emily_Biche', imageUrl: 'https://williambucket2.s3.amazonaws.com/media/profile_image/2814d7bf-2a9a-456e-9632-f06787d670a0.jpg', about: \"I'm Emily and I think about cryptocurrencies and blockchain technology.\" },\n { id: 'Rupert_Barker', name: 'Rupert_Barker', imageUrl: 'https://www.interestingornot.com/_next/image?url=https%3A%2F%2Fwilliambucket2.s3.amazonaws.com%2Fmedia%2Fprofile_image%2Ff22303e8-eb70-4480-88a8-0acf94e3a842.jpg&w=3840&q=75' },\n { id: 'Chris Parker', name: 'Chris Parker', imageUrl: 'https://www.interestingornot.com/_next/image?url=https%3A%2F%2Fwilliambucket2.s3.amazonaws.com%2Fmedia%2Fprofile_image%2Ff22303e8-eb70-4480-88a8-0acf94e3a842.jpg&w=3840&q=75', about: 'hey there im chris', },\n\n // add more profiles\n ];\n\n\n useEffect(() => {\n trackPageView('Articles');\n }, []);\n\n const fetchArticles = useCallback(async (currentPage) => {\n setLoading(true);\n try {\n const endpoint = isAuthenticated \n ? `/articlefront?page=${currentPage}&limit=18`\n : `/articlefront/?page=${currentPage}&limit=18`;\n\n const response = await axiosInstance.get(endpoint);\n const fetchedArticles = response.data.results;\n const totalArticles = response.data.count;\n \n if (fetchedArticles.length === 0) {\n setHasMore(false);\n return;\n }\n\n setArticles(prev => [...prev, ...fetchedArticles]);\n // Set hasMore based on whether there are more pages of articles\n setHasMore(currentPage * 18 < totalArticles);\n } catch (err) {\n console.error('', err);\n setError('');\n setHasMore(false);\n } finally {\n setLoading(false);\n }\n }, [isAuthenticated]);\n \n\n useEffect(() => {\n // Reset when auth changes\n setArticles([]);\n setPage(1);\n setHasMore(true);\n if (!authLoading) {\n fetchArticles(1);\n }\n }, [isAuthenticated, authLoading, fetchArticles]);\n\n useEffect(() => {\n if (page > 1) {\n fetchArticles(page);\n }\n }, [page, fetchArticles]);\n\n useEffect(() => {\n trackPageView('Articles', { isAuthenticated });\n }, [isAuthenticated]);\n\n const lastArticleRef = useCallback(node => {\n if (loading) return;\n if (observer.current) observer.current.disconnect();\n\n observer.current = new IntersectionObserver(entries => {\n if (entries[0].isIntersecting && hasMore && !loading) {\n setPage(prevPage => prevPage + 1);\n }\n }, {\n rootMargin: '250px',\n threshold: 0.1\n });\n\n if (node) observer.current.observe(node);\n }, [loading, hasMore]);\n \n\n const handleSoftSignup = async (email) => {\n try {\n const response = await axiosInstance.post('/soft-signup', { email });\n if (response.status === 201) {\n alert('Thank you for signing up! Weve added you to our mailing list.');\n trackEvent('Soft Signup', { email });\n } else {\n alert('Youre already signed up!');\n }\n } catch (error) {\n console.error('Error during soft-signup:', error);\n alert('Something went wrong. Please try again later.');\n }\n };\n\n const handleBurgerClick = () => {\n setToolbarMinimized((prev) => !prev);\n trackButtonClick('Toolbar Toggle');\n };\n\n const renderArticleWithCards = (article, index) => {\n const isLastArticle = index === articles.length - 1;\n \n return (\n \n trackEvent('Article Clicked', { articleId: article.id })}\n />\n {!isAuthenticated && index === SUBSCRIPTION_CARD_POSITION && (\n
\n trackEvent('Subscribe Clicked')} />\n
\n )}\n {index === COPY_CARD_POSITION && (\n
\n trackEvent('Subscribe Clicked')} />\n
\n )}\n
\n );\n };\n \n return (\n
\n \n ION | Read\n \n \n\n \n\n \n\n
\n
\n {!isAuthenticated ? (\n
\n \n
\n ) : (\n
\n \n\n
\n )}\n
\n\n trackEvent('Topic Selected', { topic })} />\n\n
\n
\n {articles.map((article, index) => renderArticleWithCards(article, index))}\n {loading &&\n Array.from({ length: 6 }).map((_, index) => (\n \n ))}\n
\n {error &&

{error}

}\n {!hasMore && articles.length > 0 && (\n

\n )}\n
\n
\n
\n );\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"pageContainer\":\"personacards_pageContainer__MZOS0\",\"pageTitle\":\"personacards_pageTitle___WYP2\",\"cardsWrapper\":\"personacards_cardsWrapper__K64Ka\",\"card\":\"personacards_card__Cpai1\",\"bannerContainer\":\"personacards_bannerContainer__5q3rt\",\"profileImageContainer\":\"personacards_profileImageContainer__NnedW\",\"nameAndChat\":\"personacards_nameAndChat__E7MXF\",\"writerNameInline\":\"personacards_writerNameInline__cP6yG\",\"infoContainer\":\"personacards_infoContainer__NxZYV\",\"writerName\":\"personacards_writerName__OacxR\",\"buttonsRow\":\"personacards_buttonsRow__i8bRy\",\"chatButton\":\"personacards_chatButton__X8U7R\",\"socialButtonsRow\":\"personacards_socialButtonsRow__2rSuy\",\"socialButton\":\"personacards_socialButton___zLCJ\",\"writerBio\":\"personacards_writerBio__a_bnh\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"subscriptionCard\":\"CopyCard_subscriptionCard__AZZRY\",\"leftContent\":\"CopyCard_leftContent__t94vj\",\"rightContent\":\"CopyCard_rightContent__8s_LG\",\"title\":\"CopyCard_title__DkgF3\",\"contentRow\":\"CopyCard_contentRow__gNVk_\",\"photoRow\":\"CopyCard_photoRow__pVRJ1\",\"photo\":\"CopyCard_photo__d5GNM\",\"description\":\"CopyCard_description__1S4tz\",\"subscribeButton\":\"CopyCard_subscribeButton__iZDl7\"};"],"names":["config","autoAddCss","ChatModalText","dynamic","ssr","AIWriters","id","username","full_name","banner","profile_image","social_links","github","twitter","bio","topics","profession","location","interestingOrNotUrl","hn","selectedWriter","setSelectedWriter","useState","isModalOpen","setIsModalOpen","router","useRouter","openModal","writer","handleCardClick","url","push","handleKeyPress","e","key","preventDefault","Head","title","meta","name","content","div","className","styles","map","onKeyPress","role","tabIndex","aria-label","Image","src","alt","layout","objectFit","priority","h2","button","stopPropagation","window","open","FontAwesomeIcon","icon","faGithub","faTwitter","faHackerNews","reddit","faReddit","p","isOpen","onRequestClose","closeModal","React","props","ref","SubscriptionCard","h3","a","href","target","rel","img","Articles","isAuthenticated","user","loading","authLoading","useContext","AuthContext","articles","setArticles","setLoading","error","setError","page","setPage","hasMore","setHasMore","toolbarMinimized","setToolbarMinimized","observer","useRef","SUBSCRIPTION_CARD_POSITION","COPY_CARD_POSITION","useEffect","trackPageView","fetchArticles","useCallback","currentPage","endpoint","response","axiosInstance","get","fetchedArticles","data","results","totalArticles","count","length","prev","err","console","lastArticleRef","node","current","disconnect","IntersectionObserver","entries","isIntersecting","prevPage","rootMargin","threshold","observe","handleBurgerClick","trackButtonClick","renderArticleWithCards","article","index","isLastArticle","ArticleCard","onClick","trackEvent","articleId","onSubscribe","CopyCard","HeaderTwo","onBurgerClick","minimized","ProfileCarousel","profiles","imageUrl","about","Toolbar","toggleMinimize","isMinimized","main","section","PersonaCard","TopicSelector","onTopicSelect","topic","Array","from","_"],"sourceRoot":"","ignoreList":[]}