{"version":3,"sources":["components/search/SearchEngine.js","../node_modules/query-string/index.js","../node_modules/strict-uri-encode/index.js","../node_modules/decode-uri-component/index.js","../node_modules/split-on-first/index.js","../node_modules/filter-obj/index.js"],"names":["SearchBar","lazy","WeCare","InfoBar","Map","Redirects","Footer","Navigation","is100ProcentLokaal","window","location","href","includes","SearchEngine","props","lang","translate","useSelector","state","general","map","show","nis","search","redirect","setRedirect","useState","keyboard","match","params","vkb_params","queryString","parse","data","setData","loaded","setLoaded","useEffect","currentURL","localStorage","removeItem","isNaN","Number","location_by_name_model","require","default","option","from","size","query","query_string","fields","tie_breaker","Axios","get","auth","username","password","source_content_type","source","JSON","stringify","then","res","hits","length","_source","oldPath","newPath","nameNL","replace","toLowerCase","nameFR","nameDE","console","warn","catch","error","scrollTo","Object","keys","vkb","store","set","remove","e","top","behavior","React","createElement","Fragment","Meta","description","logo","local_logo","title","Suspense","fallback","className","Icon","name","animated","type","hostname","style","display","flexDirection","filter","undefined","id","municipality","assign","width","animation","active_logo","alt","src","png_nl","marginTop","charAt","toUpperCase","slice","AlternateSearchBar","options","Redirect","to","strictUriEncode","decodeComponent","splitOnFirst","filterObject","validateArrayFormatSeparator","value","TypeError","encode","strict","encodeURIComponent","decode","removeHash","input","hashStart","indexOf","extract","queryStart","parseValue","parseNumbers","trim","parseBooleans","sort","arrayFormat","arrayFormatSeparator","formatter","result","key","accumulator","exec","concat","isArray","isEncodedArray","newValue","split","item","parserForArrayFormat","ret","create","param","k","reduce","Boolean","Array","keysSorter","a","b","exports","object","shouldFilter","skipNull","skipEmptyString","index","join","encoderForArrayFormat","objectCopy","x","parseUrl","url","url_","hash","parseFragmentIdentifier","fragmentIdentifier","stringifyUrl","queryFromUrl","parsedQueryFromUrl","getHash","pick","exclude","exclusionFilter","module","str","charCodeAt","toString","singleMatcher","RegExp","multiMatcher","decodeComponents","components","decodeURIComponent","err","left","right","prototype","call","tokens","i","encodedURI","replaceMap","entries","customDecodeURIComponent","string","separator","separatorIndex","obj","pred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zL,EAAM,IAAM2H,GAIzB3H,EAAQ6K,EAAa/C,KAAKhB,GAI3B2E,EAAW,OAAS,SAIpB,IAFA,IAAIC,EAAUvI,OAAOC,KAAKqI,GAEjBF,EAAI,EAAGA,EAAIG,EAAQrJ,OAAQkJ,IAAK,CAExC,IAAI3D,EAAM8D,EAAQH,GAClBzE,EAAQA,EAAMpE,QAAQ,IAAIkI,OAAOhD,EAAK,KAAM6D,EAAW7D,IAGxD,OAAOd,EAeC6E,CAAyBH,M,iCCzFlCjB,EAAOvB,QAAU,CAAC4C,EAAQC,KACzB,GAAwB,kBAAXD,GAA4C,kBAAdC,EAC1C,MAAM,IAAIrF,UAAU,iDAGrB,GAAkB,KAAdqF,EACH,MAAO,CAACD,GAGT,MAAME,EAAiBF,EAAO5E,QAAQ6E,GAEtC,OAAwB,IAApBC,EACI,CAACF,GAGF,CACNA,EAAO/F,MAAM,EAAGiG,GAChBF,EAAO/F,MAAMiG,EAAiBD,EAAUxJ,W,iCClB1CkI,EAAOvB,QAAU,SAAU+C,EAAKC,GAK/B,IAJA,IAAI1D,EAAM,GACNlF,EAAOD,OAAOC,KAAK2I,GACnBE,EAAQrD,MAAMZ,QAAQgE,GAEjBT,EAAI,EAAGA,EAAInI,EAAKf,OAAQkJ,IAAK,CACrC,IAAI3D,EAAMxE,EAAKmI,GACXW,EAAMH,EAAInE,IAEVqE,GAAoC,IAA5BD,EAAUhF,QAAQY,GAAcoE,EAAUpE,EAAKsE,EAAKH,MAC/DzD,EAAIV,GAAOsE,GAIb,OAAO5D","file":"static/js/29.b315b375.chunk.js","sourcesContent":["import { Redirect } from \"react-router\";\r\nimport { useSelector } from \"react-redux\";\r\nimport queryString from \"query-string\";\r\nimport React, { useEffect, useState, lazy, Suspense } from \"react\";\r\nimport store from \"store\";\r\nimport Icon from \"@identitybuilding/idb-react-iconlib\";\r\n// import SearchBar from \"./SearchBar\";\r\n// import WeCare from '../privacy/WeCare'\r\n// import Map from '@identitybuilding/idb-react-100-percent-local'\r\n// import InfoBar from \"../_general/Infobar\"\r\n// import Redirects from '../_general/Redirects'\r\n// import Footer from \"../_general/Footer\";\r\n// import Navigation from \"../_general/Navigation\";\r\nimport Meta from \"../_general/Meta\";\r\nimport Axios from \"axios\";\r\nimport AlternateSearchBar from \"./AlternateSearchBar\";\r\n// const groupBy = require('lodash.groupby');\r\nconst SearchBar = lazy(() => import(\"./SearchBar\"));\r\n\r\nconst WeCare = lazy(() => import(\"../privacy/WeCare\"));\r\nconst InfoBar = lazy(() => import(\"../_general/Infobar\"));\r\nconst Map = lazy(() => import(\"@identitybuilding/idb-react-100-percent-local\"));\r\nconst Redirects = lazy(() => import(\"../_general/Redirects\"));\r\nconst Footer = lazy(() => import(\"../_general/Footer\"));\r\nconst Navigation = lazy(() => import(\"../_general/Navigation\"));\r\nconst is100ProcentLokaal = window.location.href.includes('100procentlokaal') || window.location.href.includes('100pourcentlocale');\r\n\r\nconst SearchEngine = (props) => {\r\n const { lang, translate } = useSelector((state) => state.general);\r\n const map = useSelector((state) => state.map.show);\r\n const nis = useSelector((state) => state.general.nis);\r\n let search = useSelector((state) => state.search);\r\n\r\n const [redirect, setRedirect] = useState(false);\r\n const keyboard = props.match && props.match.params.keyboard;\r\n const vkb_params = queryString.parse(keyboard);\r\n const [data, setData] = useState(\"\");\r\n const [loaded, setLoaded] = useState(false);\r\n useEffect(() => {\r\n // Clear mapSelection from localStorage if the site matches the specified URLs\r\n const currentURL = window.location.href;\r\n if (\r\n currentURL === \"http://localhost:3000/\" ||\r\n currentURL === \"https://ondernemersnetwerk.be/\" ||\r\n currentURL === \"https://reseauentrepreneurs.be/\"\r\n ) {\r\n localStorage.removeItem(\"mapSelection\");\r\n }\r\n\r\n }, []);\r\n\r\n useEffect(() => {\r\n // const getData = async () => {\r\n // \tlet result = await searchLocation({ translate: translate, name: nis, nis: nis, lang: lang });\r\n // \tsetData(result)\r\n // }\r\n\r\n // nis && setTimeout(() => { getData(); }, 100)\r\n if (nis && !isNaN(Number(nis))) {\r\n let location = \"\";\r\n const location_by_name_model = require(\"../../models/LocationByName\").default;\r\n\r\n let option = {\r\n from: 0,\r\n size: 30,\r\n query: {\r\n query_string: {\r\n query: `${nis}`,\r\n fields: [\r\n 'pkancode',\r\n 'nis_code',\r\n 'submunicipality_set.pkancode',\r\n ],\r\n tie_breaker: 0.3,\r\n },\r\n },\r\n };\r\n Axios.get(`${process.env.REACT_APP_BASE_MEDIA_URL2}municipalities/_search`, {\r\n auth: {\r\n username: `${process.env.REACT_APP_ESUSERNAME}`,\r\n password: `${process.env.REACT_APP_ESPSW}`,\r\n },\r\n params: {\r\n source_content_type: \"application/json\",\r\n source: JSON.stringify(option),\r\n },\r\n })\r\n .then((res) => {\r\n const hits = res.data.hits.hits;\r\n if (hits && hits.length > 0) {\r\n let data = hits[0]._source;\r\n location = location_by_name_model(translate, data, lang, \"municipality\");\r\n\r\n let oldPath = window.location.href;\r\n let newPath = \"\";\r\n if (lang === \"nl\") {\r\n if (location.nameNL && location.nameNL !== \"\") {\r\n newPath = oldPath.replace(/^[^.]*/, location.nameNL.toLowerCase());\r\n } else if (location.nameFR && location.nameFR !== \"\") {\r\n newPath = oldPath.replace(/^[^.]*/, location.nameFR.toLowerCase());\r\n } else {\r\n newPath = oldPath.replace(/^[^.]*/, location.nameDE.toLowerCase());\r\n }\r\n } else {\r\n if (location.nameFR && location.nameFR !== \"\") {\r\n newPath = oldPath.replace(/^[^.]*/, location.nameFR.toLowerCase());\r\n } else if (location.nameNL && location.nameNL !== \"\") {\r\n newPath = oldPath.replace(/^[^.]*/, location.nameNL.toLowerCase());\r\n } else {\r\n newPath = oldPath.replace(/^[^.]*/, location.nameDE.toLowerCase());\r\n }\r\n }\r\n\r\n window.location.href = `https://${newPath\r\n .replace(\"(stad)\", \"\")\r\n .replace(\"(ville)\", \"\")\r\n .replace(\"(stadt)\", \"\")\r\n .replace(\"city\", \"\")\r\n .replace(\" \", \"\")\r\n .replace(\"œ\", \"oe\")\r\n .replace(\"fontaine-l'évêque\", \"fontaine-levêque\")\r\n .replace(\"'sgravenbrakel\", \"s-gravenbrakel\")\r\n }`;\r\n } else {\r\n console.warn(\"No hits returned for the query\");\r\n // Handle the case where no hits are returned\r\n }\r\n })\r\n .catch((error) => {\r\n console.error(\"Error fetching data:\", error);\r\n });\r\n }\r\n\r\n\r\n scrollTo();\r\n setLoaded(true)\r\n // setData(props.location[0])\r\n }, []);\r\n\r\n // seperate this, as we don't want the getData function to be called again\r\n useEffect(() => {\r\n if (keyboard) {\r\n if (vkb_params)\r\n if (Object.keys(vkb_params)[0] === \"vkb\") {\r\n if (vkb_params.vkb) {\r\n store.set(\"vkb\", vkb_params);\r\n } else {\r\n store.remove(\"vkb\");\r\n }\r\n setRedirect(true);\r\n }\r\n }\r\n }, [keyboard, vkb_params]);\r\n\r\n // This makes sure that when going to the homepage, you're not scrolled down\r\n const scrollTo = (e) => {\r\n window.scrollTo({\r\n top: 0,\r\n behavior: \"smooth\",\r\n });\r\n };\r\n\r\n return (\r\n \r\n {window.location.href === \"https://www.100procentlokaal.be/\" ||\r\n window.location.href === \"https://vlaanderen.100procentlokaal.be/\" ||\r\n window.location.href === \"https://100procentlokaal.be/\" ||\r\n window.location.href === \"https://www.dev.100procentlokaal.be/\" ||\r\n window.location.href === \"https://www.100pourcentlocale.be/\" ||\r\n window.location.href === \"https://flandre.100pourcentlocale.be/\" ||\r\n window.location.href === \"https://100pourcentlocale.be/\" ||\r\n window.location.href === \"https://www.dev.100pourcentlocale.be/\" ||\r\n window.location.href === \"https://www.osntest.be/map\" ||\r\n window.location.href === \"https://www.osnsocial.be/map\" ||\r\n window.location.href === \"http://localhost:3000/map\" ? (\r\n \r\n \r\n \r\n \r\n \r\n }\r\n >\r\n \r\n \r\n \r\n ) : loaded && (\r\n \r\n
\r\n {nis && search.municipality && (\r\n
}>\r\n \r\n \r\n )}\r\n }>\r\n \r\n \r\n
\r\n
\r\n {nis ? (\r\n
\r\n
\r\n {search.municipality &&\r\n search.municipality.active_logo &&\r\n search.municipality.local_logo ? (\r\n // Manual made logo with municipality in 100PL logo\r\n \r\n ) : // If logo with municipality in 100PL logo is not created, try to make itself with css\r\n search.location.length > 0 &&\r\n search.municipality.active_logo &&\r\n !search.municipality.local_logo ? (\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n ) : (\r\n search.location.length > 0 && (\r\n // just normal logo\r\n \r\n )\r\n )}\r\n
\r\n

\r\n {translate(\"search_engine_desc_local\")}{\" \"}\r\n {\r\n \r\n {nis.charAt(0).toUpperCase() + nis.slice(1)}\r\n \r\n }\r\n

\r\n
\r\n ) : (\r\n
\r\n \r\n

\r\n {nis\r\n ? translate(\"search_engine_desc_local\")\r\n : translate(\"search_engine_desc\")}{\" \"}\r\n {nis && (\r\n \r\n {nis.charAt(0).toUpperCase() + nis.slice(1)}\r\n \r\n )}\r\n

\r\n
\r\n )}\r\n\r\n
}>\r\n {is100ProcentLokaal ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n\r\n
\r\n \r\n }>\r\n