{"version":3,"sources":["components/Searchbar.js","Images/searchico.png","components/SearchModal.js","App.js","reportWebVitals.js","index.js"],"names":["CustomSearchBox","connectSearchBox","currentRefinement","refine","isSearchStalled","noValidate","action","role","onSubmit","e","preventDefault","src","className","type","placeholder","value","onChange","event","currentTarget","autoFocus","SearchModal","props","React","useState","theList","setList","setShowResult","domNode1","handler","useRef","useEffect","maybeHandler","current","contains","target","document","addEventListener","removeEventListener","useClickOutside1","id","queryString","parse","location","search","host","toggleState","setToggleState","getTitleFromHierarchy","hit","title","i","hierarchy","lvl0","getLeastLevelFromHierarchy","splitHubUrl","url","split","replace","toggleTab","index","CustomHits","connectHits","hits","count","length","console","log","map","includes","last","str2","description","onClick","window","open","Row","Col","xs","style","objectID","lang","product","connectPagination","nbPages","createURL","Array","fill","_","page","fontWeight","href","ref","color","class","height","Index","indexName","Configure","hitsPerPage","App","setOpen","searchClient","algoliasearch","domNode","useClickOutside","InstantSearch","exact","path","component","Modal","to","reportWebVitals","onPerfEntry","Function","then","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","render","StrictMode","getElementById"],"mappings":"oYAiCaA,EAAkBC,aA3Bb,SAAC,GAAoD,IAAlDC,EAAiD,EAAjDA,kBAAoCC,GAAa,EAA9BC,gBAA8B,EAAbD,QAUvD,OAAQ,uBAAME,YAAU,EAACC,OAAO,GAAGC,KAAK,SAASC,SAAU,SAAAC,GAAOA,EAAEC,kBAA5D,UACN,qBAAKC,ICjBM,qnBDiBWC,UAAU,eAChC,uBACEA,UAAU,YACVC,KAAK,SACLC,YAAa,qBACbC,MAAOb,EACPc,SAAU,SAAAC,GAAK,OAAId,EAAOc,EAAMC,cAAcH,QAE9CI,WAAS,U,oCE0RAC,MA5Qf,SAAqBC,GAEnB,MAA2BC,IAAMC,SAAS,IAA1C,mBAAOC,EAAP,KAAgBC,EAAhB,KACA,EAAsCH,IAAMC,SAAS,GAArD,mBACA,GADA,UACoCD,IAAMC,SAAS,IAAnD,mBAAmBG,GAAnB,W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AIJ,qBACEhD,UAA2B,IAAhBiC,EAAoB,0BAA4B,UAD7D,SAGE,eAACkD,EAAA,EAAD,CAAOC,UAAU,yBAAjB,UAEE,cAACC,EAAA,EAAD,IACA,cAACrC,EAAD,iB,2CCvLCuC,MAxEf,WACE,MAAkC5E,oBAAS,GAA3C,mBACA,GADA,UACsBA,oBAAS,IAA/B,mBAAY6E,GAAZ,WAEMC,EAAeC,IACnB,aACA,oCAwBF,OApDoB,SAAC1E,GACrB,IAAI2E,EAAU1E,mBAEdC,qBAAU,WACR,IAAIC,EAAe,SAACd,GACdsF,EAAQvE,UAAYuE,EAAQvE,QAAQC,SAAShB,EAAMiB,SACrDN,KAMJ,OAFAO,SAASC,iBAAiB,YAAaL,GAEhC,WACLI,SAASE,oBAAoB,YAAaN,OAkBhCyE,EAAgB,WAC5BvC,QAAQC,IAAI,gBACZkC,GAAQ,MAoBR,cAAC,IAAD,UACA,qBAAKxF,UAAU,MAAf,SACE,cAAC6F,EAAA,EAAD,CAAeT,UAAU,eAAeK,aAAcA,EAAtD,SA0BA,eAAC,IAAD,WACE,cAAC,IAAD,CAAOK,OAAK,EAACC,KAAK,IAAIC,UAAWC,IACjC,cAAC,IAAD,CAAUC,GAAG,gBCtFNC,EAZS,SAAAC,GAClBA,GAAeA,aAAuBC,UACxC,8BAAqBC,MAAK,YAAkD,IAA/CC,EAA8C,EAA9CA,OAAQC,EAAsC,EAAtCA,OAAQC,EAA8B,EAA9BA,OAAQC,EAAsB,EAAtBA,OAAQC,EAAc,EAAdA,QAC3DJ,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAON,GACPO,EAAQP,OCAdQ,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,EAAD,MAEFvF,SAASwF,eAAe,SAM1BZ,M","file":"static/js/main.81cc7fec.chunk.js","sourcesContent":["import { connectSearchBox } from 'react-instantsearch-dom';\r\n// import SearchIcon from '@material-ui/icons/Search';\r\nimport SearchIcon from '../Images/searchico.png';\r\nimport \"./Modal.css\";\r\nimport React from \"react\";\r\n\r\nconst SearchBox = ({ currentRefinement, isSearchStalled, refine }) => {\r\n \r\n // const inputRef = React.useRef();\r\n\r\n\r\n // const onClick = () => {\r\n // inputRef.current.value = \"\";\r\n // refine(inputRef.current.value);\r\n // }\r\n\r\n return (
)\r\n};\r\n\r\nexport const CustomSearchBox = connectSearchBox(SearchBox);\r\n\r\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFaSURBVHgBlZJNUsJAEIXfS0JKdxwhNxBvoDvABXgCZAO40xuEE8gS2RhPIFYpLoUb6AnkBrLDCpC2Z2IwpSBlVyUz1f2+mekfImcnrfgCZA2CkhBFdb0AEvks3A/7nOa1NL96Zx7E4t3ptkTBDA6HIqKglFQS6Df16R7nYQtW2/GbEaj48mng9/InVzvxGRNeCTnz993DYY8z43dMwJ4q6P6EjI36fkQHp3p7EM+XYeZ3CDbMU0aDQogt9tAvjEmMddtYgyI4Alav2GECTHQpljsSWDDN1H3HP01BmcLeukMoODDr3h7S4mjfbk3ilfNlfRtk2pXootpoXVX/w+uZW5nITaX1G0577D6bfQK3m/ltH8sadGyQgTrGOjUTG02fV/8WM3q89pprMIMJN3QS1r7GLRVrG1bwmm6yCHUIGhnMzTmlJYcWIsvJmM5ylMEbwb+s2l5oTVj7BLbWhFFfLcn+AAAAAElFTkSuQmCC\"","import React, { useState, useEffect, useRef } from \"react\";\r\nimport \"./Modal.css\";\r\nimport \"../App.css\";\r\nimport { connectPagination, Stats } from 'react-instantsearch-dom';\r\nimport LibraryBooksIcon from '@mui/icons-material/LibraryBooks';\r\nimport QueryStatsIcon from '@mui/icons-material/QueryStats';\r\nimport GroupIcon from '@mui/icons-material/Group';\r\nimport queryString from 'query-string';\r\nimport { connectHits } from 'react-instantsearch-dom';\r\nimport { Scrollbar } from \"react-scrollbars-custom\";\r\nimport 'bootstrap/dist/css/bootstrap.min.css';\r\nimport { CustomSearchBox } from \"./Searchbar\";\r\nimport { Link } from \"react-router-dom\";\r\nimport {\r\n Index,\r\n Configure\r\n\r\n} from 'react-instantsearch-dom';\r\nimport { Col, Row } from \"react-bootstrap\";\r\n\r\nlet useClickOutside1 = (handler) => {\r\n let domNode1 = useRef();\r\n\r\n useEffect(() => {\r\n let maybeHandler = (event) => {\r\n if (domNode1.current && !domNode1.current.contains(event.target)) {\r\n handler();\r\n }\r\n };\r\n document.addEventListener(\"mousedown\", maybeHandler);\r\n\r\n return () => {\r\n document.removeEventListener(\"mousedown\", maybeHandler);\r\n };\r\n });\r\n\r\n return domNode1;\r\n};\r\n\r\nfunction SearchModal(props) {\r\n\r\n const [theList, setList] = React.useState([]);\r\n const [resultCount, setResultCount] = React.useState(0);\r\n const [showResult, setShowResult] = React.useState(5);\r\n\r\n let domNode1 = useClickOutside1(() => {\r\n // console.log(\"testmodal\");\r\n // setModalOpen(false);\r\n });\r\n const id = queryString.parse(props.location.search).host === \"docs\" ? 1 : queryString.parse(props.location.search).host === \"learn\" ? 2 : queryString.parse(props.location.search).host === \"hub\" ? 3 : queryString.parse(props.location.search).host === \"support\" ? 4 : 1;\r\n const [toggleState, setToggleState] = useState(id);\r\n\r\n const toggleResults = (index) => {\r\n // setToggleState(index);\r\n };\r\n\r\n const showMore = () => {\r\n setShowResult(showResult+10);\r\n }\r\n\r\n const getshowMoreCount = () => {\r\n return (resultCount - showResult < 0) ? 0 : (resultCount - showResult > 10) ? 10 : resultCount - showResult\r\n }\r\n\r\n const handleAdd = (count) => {\r\n console.log(count);\r\n setList(...theList, count);\r\n };\r\n\r\n const getTitleFromHierarchy = (hit) => {\r\n var title = \"\";\r\n for(let i=1; i<=6; i++){\r\n if(hit.hierarchy[\"lvl\"+i] != null){\r\n title = (title !=\"\") ? `${title} | ${hit.hierarchy[\"lvl\"+i]}` : hit.hierarchy[\"lvl\"+i];\r\n }\r\n }\r\n\r\n return (title === \"\") ? hit.hierarchy.lvl0 : title;\r\n }\r\n\r\n const getLeastLevelFromHierarchy = (hit) => {\r\n var title = \"\";\r\n for(let i=0; i<=6; i++){\r\n if(hit.hierarchy[\"lvl\"+i] != null){\r\n return hit.hierarchy[\"lvl\"+i];\r\n }\r\n }\r\n }\r\n\r\n const splitHubUrl = (url) => {\r\n const keyword = url.split(\".com/\")[1].split(\"/\",1)[0].split(/(\\d+)/)[0].replace(/-/g, ' ');\r\n\r\n return keyword;\r\n }\r\n\r\n const toggleTab = (index) => {\r\n setShowResult(5);\r\n setToggleState(index);\r\n };\r\n const Hits = ({ hits }) => (\r\n