`, '') : ``; /* Get the tracking pixels wrapper element */ const wrapper = document.querySelector('#pixels-wrapper'); /* If the wrapper element already exists, append to it. If not, create it with the pixels inside */ if (wrapper) { wrapper.insertAdjacentHTML('beforeend', pixels); } else { document.body.insertAdjacentHTML('beforeend', `
No providers found as this location
' : ''}${this.state.description}
`; this.state.description = false; } /** * If we have the testing parameter added for internal testing and the type object is present on the API * response, then we're going to render that content above the search results. */ if (isTest && results.info?.type?.length) { resultsHtml += `${results.info.type.join(', ')}
Showing ${count.toLocaleString()} Results From ${results.geoip.zip}
`; } else if(results.geoip.city !== undefined){ resultsHtml += `Showing ${count.toLocaleString()} Results From ${results.geoip.city}
`; } else if(results.geoip.county !== undefined){ resultsHtml += `Showing ${count.toLocaleString()} Results From ${results.geoip.county}
`; } else if(results.geoip.state !== undefined){ resultsHtml += `Showing ${count.toLocaleString()} Results From ${results.geoip.state}
`; }else { resultsHtml += `Showing ${count.toLocaleString()} Results
`; } } catch (err) { resultsHtml += `Showing ${count.toLocaleString()} Results
`; console.error('resultsCount:\n', err); } } this.state.disclaimerSearch ? resultsHtml += '${descr}
${rating} ${offersVirtual} ${AcceptingClinicVisits} ${isTest && Tier ? `${curr}
`, '') + '${key}: ${searchFeatures[key]?.similarityScore.toFixed(3)}
`, '') + 'Searching for upcoming appointments...