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SearchOverlay.js","webpack://_N_E/./pages/components/ScrolledHeader.js","webpack://_N_E/./pages/components/ArticleHeader.module.css","webpack://_N_E/./pages/components/IonSearchOverlay.module.css"],"sourcesContent":["import React, { useState, useRef } from 'react';\nimport styles from './IonSearchOverlay.module.css';\n\nconst API_URL = 'http://ion-agentic-env.eba-rq3muvb8.us-east-1.elasticbeanstalk.com/';\n\nconst IonSearchOverlay = ({ isOpen, onClose }) => {\n const [query, setQuery] = useState('');\n const [isLoading, setIsLoading] = useState(false);\n const [searchResults, setSearchResults] = useState(null);\n const inputRef = useRef(null);\n\n const parseMarkdownResults = (markdownString) => {\n // Split into individual results\n const results = markdownString.split('\\n\\n').map(section => {\n const lines = section.split('\\n');\n const resultObj = {};\n \n lines.forEach(line => {\n // Extract number prefix if it exists\n const content = line.replace(/^\\d+\\.\\s*/, '');\n \n if (content.startsWith('**Title:**')) {\n const match = content.match(/\\[(.*?)\\]\\((.*?)\\)/);\n if (match) {\n resultObj.title = match[1];\n resultObj.url = match[2];\n }\n } else if (content.startsWith('**Date:**')) {\n resultObj.date = content.replace('**Date:**', '').trim();\n } else if (content.startsWith('**Writer:**')) {\n const match = content.match(/\\[(.*?)\\]\\((.*?)\\)/);\n if (match) {\n resultObj.writerText = match[1];\n resultObj.writerLink = match[2];\n }\n } else if (content.startsWith('**Preview:**')) {\n resultObj.preview = content.replace('**Preview:**', '').trim();\n } else if (content.startsWith('**Expertise:**')) {\n resultObj.expertise = content.replace('**Expertise:**', '').trim();\n } else if (content.startsWith('**Bio:**')) {\n resultObj.bio = content.replace('**Bio:**', '').trim();\n }\n });\n \n return resultObj;\n });\n \n return results.filter(result => result.title && result.url);\n };\n\n const handleSubmit = async (e) => {\n e.preventDefault();\n if (!query.trim()) return;\n\n setIsLoading(true);\n setSearchResults(null);\n\n try {\n const response = await fetch(`${API_URL}/api/search`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n query: query.trim(),\n query_type: 'articles',\n limit: 5\n })\n });\n\n if (!response.ok) {\n const errorData = await response.json();\n throw new Error(errorData.detail || 'Search request failed');\n }\n\n const data = await response.json();\n console.log('Raw API Response:', data);\n \n if (data.results) {\n const parsed = parseMarkdownResults(data.results);\n console.log('Parsed results:', parsed);\n setSearchResults(parsed);\n }\n } catch (error) {\n console.error('Search error:', error);\n setSearchResults([]);\n } finally {\n setIsLoading(false);\n }\n };\n\n const renderSearchResult = (result) => {\n return (\n
\n \n {result.title}\n \n
\n {result.date && (\n \n {result.date}\n \n )}\n {result.writerLink && (\n <>\n \n \n {result.writerText || 'View Writer Profile'}\n \n \n )}\n
\n {result.preview && (\n

\n {result.preview}\n

\n )}\n {result.expertise && (\n

{result.expertise}

\n )}\n {result.bio && (\n

{result.bio}

\n )}\n
\n );\n };\n\n if (!isOpen) return null;\n\n return (\n
\n
\n
\n

Search With ION

\n \n \n \n \n \n
\n\n
\n
\n setQuery(e.target.value)}\n placeholder=\"Search articles...\"\n className={styles.searchInput}\n />\n \n {isLoading ? (\n \n \n \n \n ) : (\n 'Search'\n )}\n \n
\n
\n\n
\n {isLoading && (\n
\n \n \n \n \n
\n )}\n \n {searchResults?.length === 0 && (\n
\n No results found for \"{query}\"\n
\n )}\n\n {searchResults && searchResults.length > 0 && (\n
\n {searchResults.map(renderSearchResult)}\n
\n )}\n
\n
\n
\n );\n};\n\nexport default IonSearchOverlay;","// ArticleHeader.jsx\nimport React, { useState, useEffect, useRef, useContext } from 'react';\nimport Image from 'next/image';\nimport { useRouter } from 'next/router';\nimport Link from 'next/link';\nimport IonSearchOverlay from './IonSearchOverlay';\nimport { FaArrowLeft } from 'react-icons/fa';\nimport styles from './ArticleHeader.module.css'; // Import the CSS module\nimport { SearchContext } from '../../utils/SearchContext';\n\nconst ArticleHeader = ({ writer }) => {\n const [visible, setVisible] = useState(true);\n const [lastScrollY, setLastScrollY] = useState(0);\n const [showIonOverlay, setShowIonOverlay] = useState(false);\n const [searchQuery, setSearchQuery] = useState(''); // State for search input\n const [isSearchOpen, setIsSearchOpen] = useState(false); // State to track if search is open\n const searchInputRef = useRef(null); // Ref to the search input\n const { performSearch } = useContext(SearchContext);\n const router = useRouter();\n\n useEffect(() => {\n const handleScroll = () => {\n const currentScrollY = window.scrollY;\n setVisible(currentScrollY < lastScrollY || currentScrollY < 100);\n setLastScrollY(currentScrollY);\n };\n\n window.addEventListener('scroll', handleScroll, { passive: true });\n return () => window.removeEventListener('scroll', handleScroll);\n }, [lastScrollY]);\n\n const handleSearch = () => {\n if (searchQuery.trim() === '') return;\n \n performSearch(searchQuery, 1);\n \n if (router.pathname !== '/search') {\n router.push('/search');\n }\n \n setIsSearchOpen(false);\n };\n \n // Update the handleSearchChange function\n const handleSearchChange = (e) => {\n setSearchQuery(e.target.value);\n };\n\n // Toggle the search input visibility\n const toggleSearch = () => {\n setIsSearchOpen((prev) => !prev);\n };\n return (\n \n setShowIonOverlay(false)}\n />\n
\n {/* Left Side */}\n
\n {/* Home Link */}\n \n
\n {/* You can add an icon or logo here */}\n {/* Example: */}\n
\n \n\n {/* Back Button */}\n \n
\n \n
\n \n\n {/* Writer Information */}\n \n
\n
\n {\n e.target.src = '/images/default-avatar.png';\n }}\n />\n
\n \n {writer?.user?.username || 'Unknown Author'}\n \n
\n \n
\n\n {/* Right Side */}\n
\n\n {isSearchOpen && (\n {\n if (e.key === 'Enter') {\n handleSearch();\n }\n }}\n className={styles.searchInput}\n ref={searchInputRef}\n />\n )}\n \n \n \n \n \n \n
\n
\n \n );\n};\n\nexport default ArticleHeader;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"header\":\"ArticleHeader_header__srfRL\",\"headerHidden\":\"ArticleHeader_headerHidden__tbsPt\",\"headerContent\":\"ArticleHeader_headerContent__iJyNR\",\"leftContainer\":\"ArticleHeader_leftContainer__EC8hD\",\"homeLink\":\"ArticleHeader_homeLink__59D5z\",\"backButton\":\"ArticleHeader_backButton__c5wIJ\",\"writerInfo\":\"ArticleHeader_writerInfo__mY548\",\"avatarContainer\":\"ArticleHeader_avatarContainer__B0pWT\",\"writerName\":\"ArticleHeader_writerName__qv9my\",\"rightContainer\":\"ArticleHeader_rightContainer__5yMFY\",\"searchIcon\":\"ArticleHeader_searchIcon__fDhff\",\"magnifyButton\":\"ArticleHeader_magnifyButton__yd_dM\",\"searchInput\":\"ArticleHeader_searchInput__uZZa3\",\"searchButton\":\"ArticleHeader_searchButton__wQo8A\",\"askIonButton\":\"ArticleHeader_askIonButton__4DG_T\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"overlay\":\"IonSearchOverlay_overlay___tIk9\",\"container\":\"IonSearchOverlay_container__9E9eJ\",\"header\":\"IonSearchOverlay_header__shi92\",\"title\":\"IonSearchOverlay_title__XTlJ_\",\"closeButton\":\"IonSearchOverlay_closeButton__ZKE8Y\",\"searchForm\":\"IonSearchOverlay_searchForm__OEmrc\",\"searchInputWrapper\":\"IonSearchOverlay_searchInputWrapper__AcNR8\",\"searchInput\":\"IonSearchOverlay_searchInput__ru4Af\",\"searchButton\":\"IonSearchOverlay_searchButton__3ZScl\",\"resultsArea\":\"IonSearchOverlay_resultsArea__hENau\",\"loading\":\"IonSearchOverlay_loading__TMFlo\",\"loadingSpinner\":\"IonSearchOverlay_loadingSpinner__r3GNQ\",\"spin\":\"IonSearchOverlay_spin__Oj107\",\"noResults\":\"IonSearchOverlay_noResults__7kP0h\",\"searchResults\":\"IonSearchOverlay_searchResults__kzYx9\",\"searchResult\":\"IonSearchOverlay_searchResult__HlrFS\",\"resultTitle\":\"IonSearchOverlay_resultTitle__L1APi\",\"resultMeta\":\"IonSearchOverlay_resultMeta__2MGkW\",\"resultDate\":\"IonSearchOverlay_resultDate__F_BXN\",\"writerLink\":\"IonSearchOverlay_writerLink__xUKf9\",\"resultPreview\":\"IonSearchOverlay_resultPreview__1uUZ_\",\"expertise\":\"IonSearchOverlay_expertise__zRRXR\",\"bio\":\"IonSearchOverlay_bio__zRCYd\"};"],"names":["isOpen","onClose","query","setQuery","useState","IonSearchOverlay","isLoading","setIsLoading","searchResults","setSearchResults","inputRef","useRef","parseMarkdownResults","results","split","map","section","lines","resultObj","forEach","line","content","replace","startsWith","match","title","url","date","trim","writerText","writerLink","preview","expertise","bio","filter","result","handleSubmit","e","preventDefault","response","fetch","API_URL","method","headers","body","JSON","stringify","query_type","limit","ok","errorData","json","detail","data","console","log","parsed","error","div","className","styles","h2","button","onClick","svg","xmlns","width","height","viewBox","fill","stroke","strokeWidth","strokeLinecap","strokeLinejoin","path","d","form","onSubmit","input","ref","type","value","onChange","target","placeholder","circle","cx","cy","r","opacity","length","a","href","rel","span","p","writer","visible","setVisible","ArticleHeader","lastScrollY","setLastScrollY","showIonOverlay","setShowIonOverlay","searchQuery","setSearchQuery","setIsSearchOpen","searchInputRef","performSearch","useContext","SearchContext","router","useRouter","useEffect","handleScroll","currentScrollY","window","scrollY","addEventListener","passive","removeEventListener","handleSearch","pathname","push","header","Link","FaArrowLeft","style","paddingTop","user","username","Image","src","profile_image","alt","layout","objectFit","onError","isSearchOpen","handleSearchChange","onKeyDown","key","toggleSearch","prev","aria-label","x1","y1","x2","y2"],"sourceRoot":"","ignoreList":[]}