
Powered by Azure Cognitive Search and QnA Maker
\r\nTry searching \"How do I use fuzzy search?\" or \"When should I use cognitive skills?\"
\r\n{"version":3,"sources":["contexts/AuthContext.js","components/AppHeader/AppHeader.js","components/SearchBar/Suggestions/Suggestions.js","components/SearchBar/SearchBar.js","pages/Home/Home.js","components/Results/Result/Result.js","components/Results/Answer/Answer.js","components/Results/Results.js","components/Pager/Pager.js","components/Facets/CheckboxFacet/CheckboxFacet.js","components/Facets/Facets.js","pages/Search/Search.js","components/Transcript/Transcript.js","components/DocumentViewer/DocumentViewer.js","pages/Details/Details.js","pages/Upload/Upload.js","App/App.js","index.js"],"names":["AuthContext","createContext","iconStyle","width","height","onKbClick","alert","AppHeader","props","kbId","className","href","style","src","alt","type","data-toggle","data-target","aria-controls","aria-expanded","aria-label","id","onClick","Suggestions","suggestionClickHandler","e","currentTarget","suggestions","map","s","index","key","queryPlusText","onMouseDown","border","boxShadow","boxSizing","SearchBar","suggestionDiv","useState","q","setQ","setSuggestions","showSuggestions","setShowSuggestions","onSearchHandler","postSearchHandler","useEffect","_","timer","setTimeout","body","top","suggester","headers","code","url","axios","post","then","response","data","catch","error","console","log","clearTimeout","document","getElementById","value","onKeyDown","keyCode","autoComplete","placeholder","onChange","searchTerm","searchChangeHandler","defaultValue","onBlur","Home","showSamples","history","useHistory","push","Result","maxHeight","display","padding","paddingBottom","marginBottom","metadata_storage_name","color","paddingLeft","paddingTop","marginTop","whiteSpace","overflow","metadata_storage_path","fontSize","ReactHtmlParser","highlights","content","Answer","bodyStyle","overflowWrap","answer","questions","Results","results","documents","result","beginDocNumber","Math","min","skip","count","endDocNumber","margin","toLocaleString","Pager","currentPage","selectedPage","setSelectedPage","totalPages","ceil","resultCount","resultsPerPage","setCurrentPage","previousButton","nextButton","i","page_links","minPage","maxPage","parseInt","CheckboxFacet","isExpanded","setIsExpanded","checkboxes","values","facetValue","isSelected","selectedFacets","some","facet","FacetValueListItem","dense","disableGutters","Checkbox","edge","disableRipple","checked","removeFilter","field","name","addFilter","ListItemText","primary","FacetListItem","button","mapFacetName","ExpandLess","ExpandMore","Collapse","in","component","FacetValuesList","styled","ListItem","List","overflowY","marginRight","Facets","facetName","string","trim","toUpperCase","substring","replace","newFilters","filters","concat","setFilters","filter","item","facets","Object","keys","f","Chip","label","onDelete","FacetList","Search","location","useLocation","setAnswer","setResults","setResultCount","URLSearchParams","search","get","setSkip","setFacets","isLoading","setIsLoading","getAnswer","answers","CircularProgress","Transcript","highlight","highlightedElement","scrollIntoView","block","behavior","full_content","merged_content","length","searchText","regex","RegExp","str","shortname","slice","GetReferences","DocumentViewer","fileContainerHTML","path","sasToken","pathLower","toLowerCase","includes","title","txtHtml","controls","encodeURIComponent","Details","useParams","setDocument","setSasToken","selectedTab","setTab","setHighlight","searchBar","useRef","doc","sas","tags","tagValue","GetTagsHTML","keyPhrases","snippets","match","startIdx","ln","indexOf","maxLengthOfSnippet","reference","shortName","GetSnippets","tab_0_style","tab_1_style","tab_2_style","JSON","stringify","ref","current","Upload","loading","successMessage","errorMessage","file","setFile","isSuccess","setIsSuccess","isError","setIsError","class","role","disabled","for","event","selectedFile","target","files","onFileChange","App","functionCode","setFunctionCode","functionUrl","setFunctionUrl","user","knowledgeBaseID","setKnowledgeBaseID","a","kbResponse","qnAMakerKnowledgeBaseID","fetchCredentials","Provider","exact","render","ReactDOM","StrictMode"],"mappings":"4lBAGaA,EAAcC,0B,WCErBC,EAAY,CAChBC,MAAO,QACPC,OAAQ,QAGV,SAASC,IACPC,MAAM,0LAGO,SAASC,EAAUC,GACrB,0DAAsDA,EAAMC,MAEvE,OACE,4BAAQC,UAAU,UAChB,yBAAKA,UAAU,2BACb,uBAAGA,UAAU,eAAeC,KAAK,KAC/B,yBAAKC,MAAOV,EAAWW,IAAI,8BAA8BH,UAAU,OAAOI,IAAI,eAEhF,4BAAQJ,UAAU,iBAAiBK,KAAK,SAASC,cAAY,WAAWC,cAAY,0BAA0BC,gBAAc,yBAAyBC,gBAAc,QAAQC,aAAW,qB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,SAAb,CAAsBrO,MAAO8N,GAC3B,yBAAKzR,UAAU,uBACb,kBAAC,EAAD,CAAWD,KAAM2R,IACjB,kBAAC,IAAD,KACE,kBAAC,IAAD,KACE,kBAAC,IAAD,CAAOjE,KAAK,IAAIwE,OAAK,EAACC,OAAQ,kBAAM,kBAAC,EAAD,CAAMrP,KAAMwO,EAAcvO,IAAKyO,OACnE,kBAAC,IAAD,CAAO9D,KAAK,UAAUyE,OAAQ,kBAAM,kBAAC,EAAD,CAAQrP,KAAMwO,EAAcvO,IAAKyO,OACrE,kBAAC,IAAD,CAAO9D,KAAK,UAAUyE,OAAQ,kBAAM,kBAAC,EAAD,CAAQrP,KAAMwO,EAAcvO,IAAKyO,OACrE,kBAAC,IAAD,CAAO9D,KAAK,eAAeyE,OAAQ,kBAAM,kBAAC,EAAD,CAASrP,KAAMwO,EAAcvO,IAAKyO,WASnF,kBAACjF,EAAA,EAAD,MCnHN6F,IAASD,OACP,kBAAC,IAAME,WAAP,KACE,kBAAC,EAAD,OAEF3O,SAASC,eAAe,U","file":"static/js/main.d5593ff3.chunk.js","sourcesContent":["import { createContext, useContext } from 'react';\r\n\r\n// Create new auth context\r\nexport const AuthContext = createContext();\r\n\r\n// React hook to use auth context\r\nexport function useAuth() {\r\n return useContext(AuthContext);\r\n}\r\n","import React from 'react';\r\n// import AppHeaderAuth from '../AppHeaderAuth/AppHeaderAuth';\r\n\r\nimport './AppHeader.css';\r\n\r\nconst iconStyle = {\r\n width: \"1.5em\",\r\n height: \"auto\"\r\n}\r\n\r\nfunction onKbClick() {\r\n alert(\"This is a public demo so the knowledge base isn't accessible. If you spin up this solution from the repo, this link will take you to your knowledge base so you can view and edit QnA.\");\r\n}\r\n\r\nexport default function AppHeader(props) {\r\n const kbUrl = `https://www.qnamaker.ai/Edit/KnowledgeBase?kbId=${props.kbId}`;\r\n\r\n return (\r\n
Powered by Azure Cognitive Search and QnA Maker
\r\nTry searching \"How do I use fuzzy search?\" or \"When should I use cognitive skills?\"
\r\n{props.document.metadata_storage_path}
\r\n\r\n {ReactHtmlParser(props?.highlights?.content[0] || \"\")}\r\n
\r\n\r\n
{props.data.document.document.metadata_storage_path}
\r\n \r\nShowing {beginDocNumber}-{endDocNumber} of {props.count.toLocaleString()} results
\r\nTry searching \"How do I use fuzzy search?\" or \"When should I use cognitive skills?\"
\r\n\r\n {ReactHtmlParser(full_content)}\r\n | \r\n
{txtHtml};\r\n }\r\n else if (pathLower.includes(\".las\")) {\r\n fileContainerHTML = \r\n ;\r\n }\r\n else if (pathLower.includes(\".jpg\") || pathLower.includes(\".jpeg\") || pathLower.includes(\".gif\") || pathLower.includes(\".png\")) {\r\n fileContainerHTML =\r\n
\r\n {JSON.stringify(document, null, 2)}
\r\n
\r\n This site is a public demo so the ability to upload documents has been disabled.
\r\nIf you deploy your own version of the solution from the repo, you'll be able to upload documents.
\r\n{file.name}
\r\n\r\n