{"version":3,"file":"search.api-D9GLOHu4.js","sources":["../../../../../../../app/frontend/shared/api/search.api.ts"],"sourcesContent":["import { get } from '.'\n\nconst PATH = '/api/locations'\nconst PUBLIC_PATH = '/public_api/locations'\n\nexport const search = (country: string, term: string) => {\n return get(`${PUBLIC_PATH}/search?c=${country}&q=${term}`)\n}\n\nexport const searchLocations = (id?: number | string | undefined) => {\n return get(`${PATH}/${id}`)\n}\n\nexport const searchZamanuhaByCountry = (countryCode: string) => {\n return get(`${PATH}/${countryCode}`)\n}\n\nexport default { search, searchLocations, searchZamanuhaByCountry }\n"],"names":["PATH","PUBLIC_PATH","search","country","term","get","searchLocations","id","searchZamanuhaByCountry","countryCode","searchApi"],"mappings":"wCAEA,MAAMA,EAAO,iBACPC,EAAc,wBAEPC,EAAS,CAACC,EAAiBC,IAC/BC,EAAI,GAAGJ,CAAW,aAAaE,CAAO,MAAMC,CAAI,EAAE,EAG9CE,EAAmBC,GACvBF,EAAI,GAAGL,CAAI,IAAIO,CAAE,EAAE,EAGfC,EAA2BC,GAC/BJ,EAAI,GAAGL,CAAI,IAAIS,CAAW,EAAE,EAGrCC,EAAe,CAAE,OAAAR,EAAQ,gBAAAI,EAAiB,wBAAAE,CAAwB"}